Portable workflow template for agent-assisted software development.
It turns the collaboration habits refined in personal projects into a reusable structure you can copy into any repo: trusted planning sources, feature/slice IDs, DoD, handoff, and commit gates.
- Core layer (agent-agnostic):
docs/ai/— docs, IDs, trust tiers, Done Definition, handoff process - Adapter layers (optional, per-agent): rule/config files that enforce the same discipline in each agent
| Agent | Adapter File | Status |
|---|---|---|
| Any agent | docs/ai/ (core, agent-agnostic) |
✅ Always active |
| opencode | AGENTS.md + opencode.json + .opencode/skills/ |
✅ |
| Cursor | .cursor/rules/ |
✅ |
| Claude Code | CLAUDE.md |
✅ |
| GitHub Copilot | .github/copilot-instructions.md |
✅ |
| Cline | .clinerules |
✅ |
| Windsurf | .windsurfrules |
✅ |
You can use the core alone with any agent, or keep the agent-specific adapters you need.
- Stops agents from treating old roadmaps or snapshot docs as backlog
- Makes planning sources explicit:
ACTIVE_WORK,FEATURE_REGISTRY,TECH_DEBT, recentPROGRESS_LOG, plus code/tests - Standardizes Feature / Slice / Bug / ADR IDs
- Separates prepare commit (draft) from execute commit (explicit approval)
- Makes session recovery and handoff reliable
docs/ai/ Collaboration truth and workflow records (agent-agnostic)
docs/ai/WORKFLOW_PROFILE.md Deploy-time posture (presets / autonomy / role)
docs/ai/templates/ Design, plan, ADR, bug, session, preset templates
AGENTS.md opencode rules
opencode.json opencode project config
.opencode/skills/ opencode reusable skills
CLAUDE.md Claude Code rules
.github/copilot-instructions.md GitHub Copilot instructions
.clinerules Cline rules
.windsurfrules Windsurf rules
.cursor/rules/ Optional Cursor enforcement layer
INIT_GUIDE.md How to initialize this template in a new repo
- Read
INIT_GUIDE.md. - Configure workflow profile (or skip to defaults): see
docs/ai/WORKFLOW_PROFILE.mdanddocs/ai/templates/WORKFLOW_PRESETS.md. - Fill project metadata in
docs/ai/PROJECT_CONTEXT.md. - Define domain codes and verification commands.
- Keep or remove adapter layers based on which agents you use.
If docs/ai/WORKFLOW_PROFILE.md status is unconfigured, ask once:
This template includes recommended workflow presets (strictness, autonomy, agent role, docs language). Configure now, skip to
serious-engineeringdefaults, or defer until later?
Do not force a long questionnaire unless the user chooses configure now.
- Register a Feature ID
- Write Design / Implementation Plan
- Implement by slices
- Verify
- Update progress + registry
- Prepare commit, then execute only with explicit approval
This template generalizes stable patterns from agent collaboration practice in engineering and prototype repos (docs trust tiers, bootstrap digest, registry-first features, and work-boundary commit gates).
Private / personal use unless otherwise noted.