arch-governance-opencodeEnterprise architecture governance plugin for OpenCode — auto-triggering architecture review, diagnosis, and audit across project stages. Works standalone; cooperates with oh-my-openagent when present.
0
308
近 7 天 15
34.1
生态多维模型
29 天前
2026-07-22
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["arch-governance-opencode@0.1.1"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["arch-governance-opencode@0.1.1"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D arch-governance-opencodeopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
OpenCode plugins for enterprise-grade architecture governance of AI applications — covering traditional architecture, AI-specific constraints, compliance/security, and China NFREGA (国家金融监督管理总局《关于银行业保险业人工智能安全开发应用的指导意见》) financial industry supplements.
Packages
| Package | Description |
|---|---|
arch-governance-opencode |
Base plugin — 95 rules (40 traditional + 30 AI + 25 compliance), 3 agents, 3 commands |
arch-governance-nfrega |
NFREGA supplement — 30 NF rules + 9 enhancements, 2 finance-specific commands |
Installation
# Base plugin (required)
npm install -g arch-governance-opencode
# NFREGA supplement (optional, for China banking/insurance)
npm install -g arch-governance-nfrega
Then add to your opencode.json:
{
"plugin": [
"arch-governance-opencode",
"arch-governance-nfrega"
]
}
Three Scenarios
| Command | Scenario |
|---|---|
/arch-new |
New project architecture guidance |
/arch-diagnose |
Existing project diagnosis |
/arch-audit |
Production readiness audit |
/arch-finance-new |
Finance new project (with NFREGA) |
/arch-finance-audit |
Finance production audit (with NFREGA) |
Compatibility
- Works standalone or alongside
oh-my-openagent(soft cooperation, no naming conflicts) - Multi-tech-stack: Java/Spring, .NET, Node/TS, Python
License
MIT