opencode-agile-agent
v1.2.3
Published
AI Agile Spec-Driven Development - Install .opencode agile agent system into any project
Downloads
358
Maintainers
Readme
opencode-agile-agent
Scaffold the OpenCode spec-driven agent kit into any project with one confirmation.
Quick Start
npx opencode-agile-agentnpx opencode-agile-agent@latestnpx create-opencode-agile
Example Command Flow
Start a new project
- Run
npx opencode-agile-agentinside the repo you want to set up. - Ask the main agent to clarify the project direction first.
- Use
/brainstormif the idea is still fuzzy. - Use
/planonce the scope is clear enough to turn intobrief.html,spec.html,task.html,notes.html, andstatus.yaml. - Use
/createwhen you want the first implementation pass to begin. - Use
/testand/reviewbefore considering the first slice done. - Use
/archivewhen the finished slice is approved and worth preserving as a summary.
Example:
/brainstorm build a small SaaS app for tracking invoices for freelancers
/plan turn this into an MVP with auth, invoice CRUD, and dashboard
/create implement the MVP from the approved plan
/test cover the critical flows
/review check if this is safe to ship
/archive summarize what shipped in the approved MVP sliceStart a new feature in an existing project
- Start with
/brainstormif the request is ambiguous. - Use
/planto define the feature boundary and acceptance criteria. - Use
/createto implement the approved feature slice. - Use
/testto verify behavior and nearby paths. - Use
/reviewfor the final quality gate. - Use
/archiveafter approval to store a finished work summary. - Use
/statusanytime you want a compact progress snapshot.
Example:
/plan add team invitations with email, role selection, and acceptance flow
/create implement the invitations feature
/test verify invite creation, email sending, and acceptance flow
/review check for regressions, dead code, and spec drift
/archive summarize the approved invitations sliceInstall Flow
- The installer asks one yes/no question.
- Framework, language, and project name are auto-detected.
- Confirmed installs merge
.opencodeinto the current project root instead of replacing it. - If
templates/opencode.jsonexists, the installer also creates or mergesopencode.jsonin the project root. - If the project already uses
opencode.jsonc(and notopencode.json), the installer skips config installation to avoid creating a competing config file. - Missing files are created. Existing
.md,.txt, and.gitignorefiles receive appended template content when it is not already present. - Existing
.jsonfiles are merged key-wise without clobbering existing values. Other structured files like.tsand.yamlare left in place and are not overwritten. - Declining exits immediately.
Local Install
- Run
npx opencode-agile-agentfrom the repo you want to set up. - The installer writes to the current working directory, not the package directory.
What Gets Installed
- 15 agents
- 15 skills
- 11 commands
- 1 runtime plugin
- Shared rules, docs, and project config
Plannotator Integration
- The template includes
templates/opencode.jsonwith the localsession-artifactsplugin and@plannotator/opencode@latestconfigured. - With Plannotator enabled,
/planwill usesubmit_plan(when available) to open a browser UI for plan approval and feedback.
Custom Commands
.opencode/commands/*.mdholds the slash commands.- Each command uses Markdown frontmatter plus a prompt body, matching OpenCode's command format.
- The command set is
archive,assign-models,brainstorm,check-progress,create,plan,reframe,review,rubber-duck,status, andtest.
Design Notes
- Skills are compact, philosophy-first, and loaded by intent.
artifact-disciplineandclean-codeare the core quality spine.session-artifactsis the runtime spine that preserves active feature state and safe handoffs.retrospective-writercaptures reusable lessons from real failures and asks whether they should become a skill or rule.archiveris a dedicated archive-summary agent, not just a final step bolted onto the lead.session_artifact_repo_deltaguards summaries and reviews against drift from the real git state.- The compact planning bundle is
brief.html,spec.html,task.html,notes.html, andstatus.yaml. - HTML planning artifacts use a shared low-token block template with inline CSS, optional SVG, compact tables, graph/ERD/matrix/timeline/custom blocks, collapsible details, and
<script id="artifact-data" type="application/json">for AI-readable structured input data. - Reusable interactive block templates are included for all supported block types, including activity, swimlane, use case, sequence, C4-style architecture, ERD, graph, matrix, timeline, kanban, metric, evidence, and custom diagrams.
- The npm package only ships core workflow skills by default to avoid bloating agent context; larger domain skills are intentionally kept out of the default publish surface.
@feature-leadis the primary entry point; the rest are subagents..opencode/artifacts/is local runtime state and is git-ignored by the installed template.- Completed work summaries are archived in
.opencode/archive/<feature-slug>.md.
Flow Notes
- The default command spine is
/brainstorm -> /plan -> /create -> /test -> /review -> /archive. - The flow is not rigid. You can reuse commands mid-stream when the work needs them.
- Examples:
/brainstormagain when implementation reveals ambiguity./planagain when scope changes materially./teston an intermediate risky slice./reviewbefore the whole feature is finished./archivefor one completed slice while larger work continues.
Spec-Driven Flow
@feature-leadis the primary entry point.session_artifact_currentrestores active feature state before deeper work.@context-gatherermaps the current project before any planning or proof.@project-plannerand@system-analystbuildbrief.html,spec.html,task.html,notes.html, andstatus.yamlfrom.opencode/templates/planning-artifact.template.html.@developerimplements the approved spec.@test-engineer,@retrospective-writer,@security-auditor, and@pr-reviewerclose the loop.- When a resolved failure exposes a durable lesson, ask whether to promote it into a reusable skill or rule.
@feature-leadarchives the completed work summary in.opencode/archive/<feature-slug>.mdthrough the artifact finalizer.
Template Source Of Truth
templates/.opencodemirrors the project kit.- Use
node bin/sync-templates.jsafter editing.opencode. AGENTS.mdis generated per installed project and is not stored as a reusable template.
Requirements
- Node.js 16+
Development Notes
- Main CLI:
bin/cli.js - Template validator:
bin/validate-templates.js - Template sync:
bin/sync-templates.js
Validate Template Before Publish
node bin/validate-templates.js
License
- MIT
