This repository is a portable OpenCode setup: it provides reusable agents, skills, commands, scripts, and workspace context.
This file is the canonical development contract for both:
- humans contributing to this repo
- AI agents operating inside this repo
agents/: agent prompt files (roles likearchitect,skeptic,craftsman)skills/: structured skill docs (repeatable workflows/templates)commands/: reusable command docs (often mapped to scripts)scripts/: executable workflow helpersworkspaces/: repo-name keyed context templates that OpenCode can injectprofiles/: optional capability bundles with a registry + manifestsdocs/: onboarding, playbooks, and reference material
The installer (install.sh) symlinks these directories into ~/.config/opencode/.
Each skills/*/SKILL.md should include:
- Purpose
- Inputs
- Process
- Output Format
- Quality Checks
Keep skills:
- practical (focused on reducing rework)
- composable (usable alongside other skills)
- stable (avoid needless churn that breaks muscle memory)
Each agents/*.md should define:
- mission (what the agent is for)
- required inputs (what it needs from the user/repo)
- workflow (ordered steps)
- tool boundaries (what it must/must not do)
- output contract (how it reports results)
- anti-patterns (what to avoid)
Keep agents:
- narrow (one dominant responsibility)
- explicit about safety boundaries
- consistent across runs (avoid prompt drift)
Run these before opening a PR:
# lightweight repo-wide checks
python3 -m pip install --user pre-commit
pre-commit install
pre-commit run --all-files
# shell script syntax checks
bash -n install.sh
bash -n scripts/*.sh
# stack-aware quality gate detection for this repo
./scripts/ops-check.shIf you changed council-lite artifacts or workflows, also run:
./scripts/validate-council-lite.sh --latest- Do not commit secrets or local-only credentials.
- Prefer minimal diffs; avoid drive-by refactors.
- Do not use destructive git commands unless explicitly requested.
- Keep docs accurate: if behavior changes, update
README.mdand the relevantdocs/*.md.
- Default execution runbook:
docs/gpt53-opencode-playbook.md - Workflows and scripts:
docs/workflows-playbook.md - Agent usage patterns:
docs/agents-playbook.md - Profiles and installer behavior:
docs/profiles.md