Sovereign repo governance
Skill OpenSIN-AI/OpenSIN-Skills/operations/misc/sovereign-repo-governance
(opencode - Skill) The March 2026 gold standard for autonomous repository manageFrom its SKILL.md
npx -y skills add OpenSIN-AI/OpenSIN-Skills --skill sovereign-repo-governanceAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
10.7 KB, ~2.7k tokens by cl100k_base, as published. Nobody here has run it
sovereign-repo-governance (CEO & World Champion Edition)
(opencode - Skill) The March 2026 gold standard for autonomous repository management. This skill governs the entire lifecycle of a repository, divided into two primary pillars: Internal Governance (Zeus & Hermes Control Plane) for autonomous task orchestration, and External Outreach (CEO Bug-Hunter Protocol) for building global reputation by fixing upstream anomalies.
đ¨ MANDATORY COUPLING: /visual-repo
ABSOLUTE PFLICHT: Wenn /sovereign-repo-governance ausgefĂźhrt wird, MUSS der Agent AUTOMATISCH auch /visual-repo ausfĂźhren!
BegrĂźndung: Ein Repo mit Governance aber ohne visuelle Dokumentation ist wie ein Auto mit Motor aber ohne Karosserie - technisch perfekt, aber niemand versteht es auf den ersten Blick.
Reihenfolge:
1. sovereign-repo-governance â Struktur, Issues, Governance, Wiki
2. visual-repo â Mermaid-Diagramme, Infografiken, README-Optimierung, 3-Sekunden-Hook
Trigger-Erweiterung: Jedes Mal wenn sovereign-repo-governance aktiviert wird, lade zusätzlich den Skill visual-repo via skill(name="visual-repo").
Triggers
MANDATORY USE: Keywords "zeus", "bootstrap project", "roadmap to issues", "hermes dispatch", "github issue", "opencode issue", "hunt bugs", "fix upstream", "sync fixes", "report bug", "visual repo", "diagramme", "readme verbessern".
PART 1: Internal Governance (Zeus & Hermes Control Plane)
The internal governance model converts high-level plans into highly structured, actionable GitHub Projects, Epics, and Sub-Issues, and then automatically dispatches them to the specialized A2A Coder Fleet.
0. GitHub Metadata Governance (Mandatory for OpenSIN-AI)
When creating or updating any A2A-SIN repository inside the GitHub organization OpenSIN-AI, agents MUST set the GitHub metadata correctly:
- Required topic:
opnsin-agent - Required website field: the public dashboard URL for that agent
Website host rules:
- Until the official domain cutover is explicitly released by the user, use the currently live dashboard host on
https://a2a.delqhi.com - After the official cutover/release, update the repo website to
https://opensin.ai/agents/<slug>
Examples:
- before cutover:
https://a2a.delqhi.com/agents/sin-google-apps - after cutover:
https://opensin.ai/agents/sin-google-apps
Fail-closed rule:
- a newly created A2A-SIN repo is not governance-complete until the required topic and the correct website URL are both set
1. The Zeus Bootstrap Flow
When an autonomous plan or roadmap is approved (e.g., via /plan), it MUST be persisted into a structured JSON roadmap (e.g., Docs/operations/endgame-plan.json).
- Use
scripts/zeus/bootstrap-github-project.mjsto inject this plan into GitHub.- Example:
node scripts/zeus/bootstrap-github-project.mjs --owner Delqhi --repo SIN-Solver/OpenSIN --title "Phase 5 Endgame" --plan-file Docs/operations/endgame-plan.json
- Example:
- This script automatically:
- Creates a new GitHub Project Board.
- Converts the JSON plan into Epics and Sub-Issues.
- Generates working branches linked to each issue (e.g.,
zeus/01-phase-5-...). - Applies color-coded labels and team/capability hints.
2. The Hermes Dispatch Flow
Once issues are in the GitHub/Supabase pool, they must be assigned to the A2A Coder workforce.
- Use
scripts/zeus/hermes-pool-sync.mjsto poll thesin_issues_pooland dynamically route open tasks to the correct specialized agent (A2A-SIN-Code-Database,A2A-SIN-Code-Integration,A2A-SIN-Code-AI,A2A-SIN-Frontend,A2A-SIN-Backend, etc.) based on keywords and labels. - Use
scripts/zeus/hermes-dispatch.mjsto build capability routing artifacts for advanced topological assignments. - Use
scripts/zeus/hermes-intake.mjsto submit tasks directly to theRoom-13FastAPI coordinator if executing in the legacy worker lane.
3. Inbound Work + PR Watcher Lane (Mandatory)
Every governed repo must separate ingress from review feedback:
- Ingress: n8n webhook/poller only
- Normalization: shared
work_itemcontract only - Durable task state: GitHub issue first
- Review feedback: PR watcher only after a PR exists
Required repo artifacts:
governance/repo-governance.jsongovernance/pr-watcher.jsongovernance/coder-dispatch-matrix.jsonfor coding/work reposplatforms/registry.jsonn8n-workflows/inbound-intake.jsondocs/03_ops/inbound-intake.mdscripts/watch-pr-feedback.sh
Fail-closed rules:
- no raw external payloads inside repos
- no accepted inbound work without GitHub issue creation/update
- no PR-based repo without watcher config + runnable watcher entrypoint
- no platform activation without registry entry, signature/cursor verification, dedupe, and issue mapping
Canonical shared references:
~/.config/opencode/INBOUND_WORK_ARCHITECTURE.md~/.config/opencode/templates/work-item.schema.json~/.config/opencode/templates/platform-registry.schema.json~/.config/opencode/templates/pr-watcher.schema.json
PART 2: External Outreach (CEO Bug-Hunter Protocol)
The external protocol dictates how the agent proactively hunts for bugs in upstream repositories, fixes them using SIN-Solver best practices, and publishes elite PRs/Issues.
1. Autonomous Reconnaissance
- Use
scripts/bug_hunter.mjsto crawl upstreams likeanomalyco/opencodeandcode-yeongyu/oh-my-openagent. - Filter issues by complexity and local relevance.
2. The Fix-and-Vanish Loop
- Pick an issue, reproduce it in a local sandbox.
- Develop a structural fix following SIN-Solver's 2026 architecture standards.
- Add the bug to
repair-docs.mdwith status â GEFIXT.
3. Elite Publication & Visual Evidence
- Use
scripts/submit_sovereign_issue.mjsto dual-file the fix. - Public GitHub APIs do not expose first-class issue image uploads, so host screenshots on a stable public GitHub Release and embed them with Markdown.
- Generate premium code/error screenshots with
carbon-now-cli. - For issue evidence, capture three lanes when available: error state, changed code/diff state, successful post-fix state.
- Use
scripts/capture_diff_screenshot.mjsto generate AIometrics-watermarked screenshots and upload them to the publicauto-screenshotsrelease. - Ensure the PR/Issue comment includes a reference to our Sovereign Fleet.
Automation Tools
Internal (Zeus & Hermes):
scripts/zeus/bootstrap-github-project.mjs: Converts JSON roadmaps into full GitHub Project Boards, Epics, and working branches.scripts/zeus/hermes-pool-sync.mjs: Polls the Supabase issue pool and dispatches tasks to specific A2A Coder Agents.scripts/zeus/hermes-dispatch.mjs: Generates capability-routed executor jobs.scripts/zeus/hermes-intake.mjs: Submits capability payloads to the Room-13 coordinator.
External (Bug Hunter):
scripts/bug_hunter.mjs: Crawls upstreams for candidates.scripts/sync_all_local_fixes.mjs: Deep-scans docs and reports un-published local fixes.scripts/capture_diff_screenshot.mjs: Generates and hosts premium code/error screenshots.scripts/submit_sovereign_issue.mjs: Dual-files issues with CEO formatting and optional visual evidence (--error-file,--diff-file,--success-file).scripts/remediate_workspace_docs.mjs: Idempotent documentation sync for Google Workspace.
FLEET SYNC MANDATE: Any modifications to this skill or its scripts MUST be pushed to all runtimes via
sin-sync.
PART 3: Automated Wiki Governance (Best Practices)
In enterprise and private environments, standard GitHub Wikis easily become disorganized dumping grounds. To maintain technical excellence, all A2A agents MUST autonomously initialize and structure the GitHub Wiki of a new or existing repository using strict best practices based on the repository's use case.
Core Enterprise Wiki Rules
- Wiki as Code: A GitHub Wiki is just a secondary Git repository (
https://github.com/<org>/<repo>.wiki.git). Agents must interact with it viagit clone, generate the structure locally, andgit push. - Mandatory Navigation: Every wiki MUST have a
_Sidebar.mdto force a strict, hierarchical navigation menu. Do not rely on GitHub's default alphabetical sorting. - Logical Folders: Use slash-separated filenames to mimic folders (e.g.,
Architecture/System-Design.md). - Image Persistence: Create an
assets/folder inside the.wiki.gitrepository to host images. Never link to ephemeral external image hosts.
Standard Templates per Use Case
Use the scripts/zeus/wiki-bootstrap.mjs script to automatically generate the correct structure based on the repo type:
- Frontend (
--type frontend):Home.md(Project Overview, Setup)Architecture/State-Management.mdArchitecture/Component-Library.mdGuides/Styling-Conventions.md
- Backend/Service (
--type backend):Home.md(Project Overview, Setup)Architecture/System-Design.mdArchitecture/Database-Schema.mdAPI/Endpoints.mdOperations/Runbooks.md
- Library/Package (
--type library):Home.md(Overview, Installation)Usage/Quickstart.mdAPI/Reference.mdGuides/Contributing.md
- Monorepo (
--type monorepo):Home.md(Ecosystem Overview, Setup)Architecture/Package-Boundaries.mdOperations/CI-CD-Pipelines.mdGuides/Tooling.md
Execution
Whenever a new repo is created or an agent is tasked with documentation:
node scripts/zeus/wiki-bootstrap.mjs --org OpenSIN-AI --repo my-new-service --type backend
This clones the wiki, scaffolds the correct .md files and the _Sidebar.md, and pushes it to the repository.
PART 4: Mandatory Visual Enhancement (/visual-repo)
NACH Abschluss von Part 1-3 MUSS der Agent den /visual-repo Skill ausfĂźhren!
Was /visual-repo macht:
- Developer-Diagramme: Mermaid Architecture, Flow, Deployment Diagrams
- Nutzer-Infografiken: Benefit Cards, Before/After, 3-Schritte-Grafik
- Psychologische Optimierung: 3-Sekunden-Hook, WIIFM, SchmerzâNutzenâEinfachheit
- README-Restrukturierung: Goldene README-Struktur fßr maximale Verständlichkeit
AusfĂźhrungsreihenfolge:
sovereign-repo-governanceĺŽć â skill(name="visual-repo") â README + docs/architecture.md erstellen â Commit & Push
FLEET SYNC MANDATE: Any modifications to this skill or its scripts MUST be pushed to all runtimes via
sin-sync.
Related Skills
- See Skill Catalog for related skills
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.