Intent driven template
OpenSpec and OpenCode template for intent-driven development with specs, ADRs, C4 diagrams, Gherkin, TDD, Multi-Model Adversarial Spec Authoring, Glossary for Domain Terms, and reusable engineering workflows.
This is a template project for intent-driven software delivery with [OpenSpec](https://github.com/Fission-AI/OpenSpec), [OpenCode](https://opencode.ai/), and reusable engineering skills. The project is first published in 2026. Key topics include: adversarial-ai, aicoding, architectural-decision-records, c4model, context-engineering.
Intent-Driven Template
This is a template project for intent-driven software delivery with OpenSpec,
OpenCode, and reusable engineering skills.
It is intended for teams that want changes to start from clear intent, move
through explicit behaviour and design artifacts, and finish with implementation
tasks that preserve the reasoning behind the work.
Walkthrough
Read the full walkthrough: Spec-Driven Development with OpenSpec and OpenCode.
How To Use This Template
Start A New Project From This Template
Clone this repository, open it with OpenCode, and start working from the bundled
OpenSpec configuration, commands, skills, and schema.
Add This Template To An Existing Project
Open your existing project with OpenCode and ask it to install the template:
textRead and understand INSTALL_TEMPLATE.md and follow the instructions there.
What This Template Uses
- OpenSpec for setup, proposal, specification, design, ADR, and task artifacts.
- Custom schemas from https://github.com/intent-driven-dev/openspec-schemas.
- A bundled local copy of the
intent-drivencustom schema from
https://github.com/intent-driven-dev/openspec-schemas/tree/main/openspec/schemas/intent-driven
for the fullproposal -> specs -> design -> adr -> taskslifecycle. - OpenSpec git discipline so proposals land on
mainbefore apply, and
implementation lands onmainbefore archive. - OpenCode skills for repeatable collaboration and implementation workflows,
including C4 diagrams, ADR authoring, and OpenSpec lifecycle commands. - Superpowers from https://github.com/obra/superpowers for guided practices such
as brainstorming, planning, debugging, TDD, verification, worktrees, and
subagent-driven parallel work. - A
grill-mestyle of rigorous design interrogation, inspired by
https://github.com/mattpocock/skills/blob/main/skills/productivity/grill-me/SKILL.md. - ADRs for durable architectural decisions.
- C4 diagrams for communicating architecture boundaries and relationships.
- Gherkin-style requirements and scenarios for observable behaviour.
The bundled OpenSpec schema is a local copy of the intent-driven schema from
https://github.com/intent-driven-dev/openspec-schemas/tree/main/openspec/schemas/intent-driven.
Workflow
The intent-driven workflow moves through these artifacts in order:
textproposal -> specs -> design -> adr -> tasks
proposalcaptures why the change matters.specsdescribe observable behaviour with Gherkin-style scenarios.designexplains the implementation approach and trade-offs.adrrecords durable architectural decisions.tasksturn the accepted intent, behaviour, design, and decisions into work.
Schema
This repository includes a bundled local copy of the intent-driven schema at
openspec/schemas/intent-driven/. The upstream schema lives in
https://github.com/intent-driven-dev/openspec-schemas/tree/main/openspec/schemas/intent-driven.
To activate the schema, set this in openspec/config.yaml:
yamlschema: intent-driven
To validate it, run:
bashopenspec schema validate intent-driven
Skills
Standard OpenSpec lifecycle skills in .opencode/skills/ — names are self-explanatory:
openspec-new-change, openspec-propose, openspec-continue-change, openspec-explore,
openspec-apply-change, openspec-verify-change, openspec-sync-specs, openspec-archive-change
| Skill | Location | Purpose |
|---|---|---|
openspec-bulk-apply-change | .opencode/skills/ | Applies multiple active changes concurrently in isolated worktrees with parallel verification. |
adversarial-authoring | .opencode/skills/ | Runs author and reviewer agents in sequence to reduce model bias in drafts. |
grill-me | .agents/skills/ | Interrogates plans and designs with probing questions to surface hidden assumptions. |
c4-diagrams | .agents/skills/ | Visualises system architecture using C4 model levels in ASCII or Mermaid. |
architectural-decision-records | .agents/skills/ | Captures architectural decisions with rationale, tradeoffs, and supersession chains. |
gherkin-authoring | .agents/skills/ | Drafts and improves Gherkin scenarios for observable, domain-language behaviour. |
glossary | .agents/skills/ | Maintains consistent business and technical terminology across all specification artifacts. |
openspec-git-discipline | .agents/skills/ | Enforces that proposals reach main before apply, and implementation merges before archive. |
Agents
Specialist agents used within skills, in .opencode/agent/:
| Agent | Purpose |
|---|---|
adversarial-author | Writes an initial draft of a specification artifact or design document. |
adversarial-reviewer | Reviews the author's draft with challenges and improvement suggestions. |
Contributors
Showing top 1 contributor by commit count.


