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
15 in 7 days
34.1
Multi-signal model
29 days ago
2026-07-22
Install and configure
opencode.jsonWrites to this project's opencode.json — applies to this repository only.
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["arch-governance-opencode@0.1.1"]
}Writes to ~/.config/opencode/opencode.json — applies to every project.
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["arch-governance-opencode@0.1.1"]
}If you want to modify the plugin locally, install it into the project and reference the local path.
shell
pnpm add -D arch-governance-opencodeopencode loads npm dependencies through its embedded runtime on startup and caches them locally — no manual global install needed.
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