@ambystech/ambykit 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +103 -0
- package/README.md +65 -21
- package/dist/cli/check.d.ts +2 -0
- package/dist/cli/check.js +39 -0
- package/dist/cli/check.js.map +1 -1
- package/dist/cli/index.js +2 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/init.js +17 -3
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/sync.js +10 -0
- package/dist/cli/sync.js.map +1 -1
- package/dist/cli/ui/interactive/prompt.d.ts +11 -0
- package/dist/cli/ui/interactive/prompt.js +37 -0
- package/dist/cli/ui/interactive/prompt.js.map +1 -1
- package/dist/cli/worktree.d.ts +18 -0
- package/dist/cli/worktree.js +161 -0
- package/dist/cli/worktree.js.map +1 -0
- package/dist/core/command-spec.js +2 -0
- package/dist/core/command-spec.js.map +1 -1
- package/dist/core/config.js +1 -0
- package/dist/core/config.js.map +1 -1
- package/dist/core/emit.js +2 -1
- package/dist/core/emit.js.map +1 -1
- package/dist/core/git.d.ts +33 -0
- package/dist/core/git.js +104 -0
- package/dist/core/git.js.map +1 -0
- package/dist/core/index.d.ts +3 -0
- package/dist/core/index.js +3 -0
- package/dist/core/index.js.map +1 -1
- package/dist/core/paths.d.ts +2 -0
- package/dist/core/paths.js +4 -0
- package/dist/core/paths.js.map +1 -1
- package/dist/core/roles.d.ts +19 -0
- package/dist/core/roles.js +59 -0
- package/dist/core/roles.js.map +1 -0
- package/dist/core/rules.js +6 -1
- package/dist/core/rules.js.map +1 -1
- package/dist/core/scaffold.d.ts +2 -0
- package/dist/core/scaffold.js +6 -1
- package/dist/core/scaffold.js.map +1 -1
- package/dist/core/types.d.ts +18 -0
- package/dist/core/worktree.d.ts +78 -0
- package/dist/core/worktree.js +121 -0
- package/dist/core/worktree.js.map +1 -0
- package/dist/emitters/base-emitter.d.ts +19 -2
- package/dist/emitters/base-emitter.js +43 -3
- package/dist/emitters/base-emitter.js.map +1 -1
- package/dist/emitters/claude.d.ts +3 -1
- package/dist/emitters/claude.js +12 -0
- package/dist/emitters/claude.js.map +1 -1
- package/dist/emitters/copilot.d.ts +3 -1
- package/dist/emitters/copilot.js +11 -0
- package/dist/emitters/copilot.js.map +1 -1
- package/dist/emitters/opencode.d.ts +3 -1
- package/dist/emitters/opencode.js +11 -0
- package/dist/emitters/opencode.js.map +1 -1
- package/docs/architecture.md +93 -0
- package/docs/artifacts/plan.md +31 -0
- package/docs/artifacts/spec.md +70 -0
- package/docs/artifacts/tasks.md +40 -0
- package/docs/artifacts/ui-design.md +59 -0
- package/docs/cli-reference.md +167 -0
- package/docs/concepts/constitution.md +35 -0
- package/docs/concepts/spec-driven-development.md +34 -0
- package/docs/contributing.md +50 -0
- package/docs/getting-started.md +106 -0
- package/docs/index.md +35 -0
- package/docs/tool-compatibility.md +78 -0
- package/docs/workflow.md +109 -0
- package/package.json +15 -3
- package/src/prompts/analyze.md +1 -0
- package/src/prompts/clarify.md +1 -0
- package/src/prompts/converge.md +27 -0
- package/src/prompts/design.md +1 -0
- package/src/prompts/implement.md +1 -0
- package/src/prompts/plan.md +1 -0
- package/src/prompts/review.md +24 -0
- package/src/prompts/revise.md +1 -0
- package/src/prompts/specify.md +6 -2
- package/src/prompts/tasks.md +1 -0
- package/src/roles/architect.md +17 -0
- package/src/roles/developer.md +17 -0
- package/src/roles/pm.md +17 -0
- package/src/roles/qa.md +17 -0
- package/src/roles/tech-lead.md +17 -0
- package/src/roles/ux.md +17 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Tool compatibility
|
|
2
|
+
|
|
3
|
+
Exact paths and formats AmbyKit emits for each supported assistant. Verified against official docs
|
|
4
|
+
(mid-2026). This is the source of truth for the emitters in `src/emitters/` — keep it in sync when a
|
|
5
|
+
tool's format changes.
|
|
6
|
+
|
|
7
|
+
## Selectable targets → emitters
|
|
8
|
+
|
|
9
|
+
Several targets share one emitter's output (why `BaseEmitter` + thin subclasses exist):
|
|
10
|
+
|
|
11
|
+
| Target | Emitter | Command surface |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| Claude Code (CLI) | `ClaudeEmitter` | `commands` |
|
|
14
|
+
| Claude Code (VS Code extension) | `ClaudeEmitter` | identical to CLI |
|
|
15
|
+
| GitHub Copilot (VS Code extension) | `CopilotEmitter` | `commands` |
|
|
16
|
+
| GitHub Copilot CLI (`copilot`) | `CopilotCliEmitter` | `skills` (no prompt files) |
|
|
17
|
+
| OpenCode | `OpenCodeEmitter` | `commands` |
|
|
18
|
+
| Cursor | `CursorEmitter` | `commands` |
|
|
19
|
+
| Cursor CLI (`cursor-agent`) | `CursorCliEmitter` | `none` (rules-only) |
|
|
20
|
+
| Antigravity (IDE) | `AntigravityEmitter` | `workflows` |
|
|
21
|
+
| Antigravity CLI (`agy`) | `AntigravityCliEmitter` | reuses Antigravity |
|
|
22
|
+
| Codex CLI (`codex`) | `CodexEmitter` | `skills` |
|
|
23
|
+
|
|
24
|
+
## Matrix
|
|
25
|
+
|
|
26
|
+
| Concern | Claude Code | OpenCode | Copilot (VS Code) | Copilot CLI | Cursor | Cursor CLI | Antigravity | Codex CLI |
|
|
27
|
+
|---|---|---|---|---|---|---|---|---|
|
|
28
|
+
| Rules file | `CLAUDE.md` (+`@AGENTS.md` bridge) | `AGENTS.md` | `.github/copilot-instructions.md` + `AGENTS.md` | same as Copilot VS Code | `.cursor/rules/*.mdc` + `AGENTS.md` | Cursor config + `AGENTS.md` | `AGENTS.md` (+`GEMINI.md`) + `.agents/rules/*.md` | `AGENTS.md` |
|
|
29
|
+
| Commands/prompts | `.claude/commands/amby/*.md` | `.opencode/commands/*.md` | `.github/prompts/*.prompt.md` | **none** → skills | `.cursor/commands/*.md` | none | `.agents/workflows/*.md` | `.agents/skills/*/SKILL.md` |
|
|
30
|
+
| Command frontmatter | `description`, `argument-hint`, `allowed-tools`, `model` | `description`, `agent`, `model`, `subtask` | `description`, `name`, `agent`, `model`, `tools` | (skills) `name`, `description`, `allowed-tools` | plain body | — | `description` (+ `// turbo` line) | `name`, `description` |
|
|
31
|
+
| Scoped instructions | `.claude/rules/*.md` (`paths:`) | `instructions[]` in `opencode.json` | `.github/instructions/*.instructions.md` (`applyTo`) | same (`applyTo`, `excludeAgent`) | `.mdc` `globs`/`alwaysApply` | via `.mdc` | `.agents/rules/*.md` | nested `AGENTS.md`/`AGENTS.override.md` per directory (no glob key) |
|
|
32
|
+
| Args placeholder | `$ARGUMENTS`, `$N`, `$name` | `$ARGUMENTS`, `$1` | `${input:x}` | — | prompt text | — | steps in body | none — trailing free text only (AmbyKit reworks `$ARGUMENTS` into prose) |
|
|
33
|
+
| Agents | `.claude/agents/*.md` | `.opencode/agents/*.md` | `.github/agents/*.agent.md` | `.github/agents/*.agent.md` | UI modes (no file) | — | none (SDK only) | none (skills only) |
|
|
34
|
+
| Agent frontmatter | `name`*, `description`*, `tools`, `model` (body = system prompt) | `description`* (+`mode`, `permission`; filename = id) | `description`*, `name`, `tools` | same as Copilot VS Code | — | — | — | — |
|
|
35
|
+
| MCP file | `.mcp.json` | `opencode.json` → `mcp` | `.vscode/mcp.json` | `~/.copilot/mcp-config.json` (user) | `.cursor/mcp.json` | reads `.cursor/mcp.json` | `mcp_config.json` (user) | `.codex/config.toml` (TOML) — **out of scope**, AmbyKit does not write it |
|
|
36
|
+
| MCP top-level key | (per-server `type`) | `mcp` | `servers` | `mcpServers` | `mcpServers` | — | `mcpServers` | `mcp_servers.<id>` (not written) |
|
|
37
|
+
| AGENTS.md native | No (bridge) | Yes | Yes (opt-in) | Yes | Yes | Yes | Yes | Yes |
|
|
38
|
+
|
|
39
|
+
## Gotchas the emitters encode
|
|
40
|
+
|
|
41
|
+
- **Claude Code does not read `AGENTS.md`.** Emit a `CLAUDE.md` whose first line is `@AGENTS.md` (or a
|
|
42
|
+
symlink) so there's a single shared rules source. This bridge line is preserved (re-added if missing)
|
|
43
|
+
when merging into an existing `CLAUDE.md`.
|
|
44
|
+
- **Rules files are merged, not overwritten.** Every rules file wraps AmbyKit's content in a
|
|
45
|
+
`### AmbyKit usage` section so it can be spliced into a file the user already authored; only that
|
|
46
|
+
section is AmbyKit's. (Command/prompt/skill/workflow files remain fully generated and overwritten.)
|
|
47
|
+
- **MCP top-level key differs**: `servers` (Copilot VS Code) vs `mcpServers` (Cursor, Copilot CLI,
|
|
48
|
+
Antigravity) vs `mcp` (OpenCode) vs per-server `type` blocks (Claude `.mcp.json`).
|
|
49
|
+
- **MCP scope differs**: Copilot CLI and Antigravity use **user-level** files outside the repo — AmbyKit
|
|
50
|
+
writes these only with explicit consent and excludes them from the "repo in sync" check.
|
|
51
|
+
- **Scoped-instruction key differs**: Copilot `applyTo` vs Cursor `globs` (+ `alwaysApply`).
|
|
52
|
+
- **Command surface differs**: Copilot CLI has no `.prompt.md`; phases map to `SKILL.md`. Antigravity
|
|
53
|
+
uses `.agents/workflows/*.md` with a `// turbo` line to auto-run a step. Cursor CLI is rules-only.
|
|
54
|
+
- **OpenCode** uses plural dirs (`agents/`, `commands/`) and `provider/model-id` model strings.
|
|
55
|
+
- **Antigravity** dir is `.agents/` (plural); `.agent/` is legacy read-compat.
|
|
56
|
+
- **Codex** shares the `.agents/` root with Antigravity but a different subdirectory (`skills/` vs
|
|
57
|
+
`workflows/`) — the two coexist without collision when both targets are selected. Codex's skills
|
|
58
|
+
frontmatter has no argument-placeholder key, so AmbyKit rewrites the neutral `$ARGUMENTS` token into
|
|
59
|
+
prose rather than leaving a literal, un-substituted placeholder in the emitted `SKILL.md`. Codex's
|
|
60
|
+
deprecated, user-level custom-prompts mechanism (`~/.codex/prompts/`, which does support
|
|
61
|
+
placeholders) is intentionally not targeted — see `specs/008-codex-integration/spec.md` FR-003/
|
|
62
|
+
FR-004. Codex also resolves nested `AGENTS.md`/`AGENTS.override.md` files per directory (closer
|
|
63
|
+
wins) with a 32 KiB combined-size cap; AmbyKit does not special-case this, consistent with every
|
|
64
|
+
other `AGENTS.md`-native tool.
|
|
65
|
+
|
|
66
|
+
## To verify against a live install
|
|
67
|
+
|
|
68
|
+
Docs conflicted on a couple of points; confirm before shipping those emitters:
|
|
69
|
+
|
|
70
|
+
- Antigravity `.agents/` vs `.agent/` default on the targeted version.
|
|
71
|
+
- Whether the `agy` CLI's `--output-format json` exists.
|
|
72
|
+
|
|
73
|
+
## Sources
|
|
74
|
+
|
|
75
|
+
Claude Code: code.claude.com/docs · OpenCode: opencode.ai/docs · Copilot: code.visualstudio.com/docs
|
|
76
|
+
and docs.github.com/copilot · Cursor: cursor.com/docs · Antigravity: antigravity.google/docs and
|
|
77
|
+
Google Cloud blog. Codex CLI: developers.openai.com/codex (skills, custom prompts, config reference,
|
|
78
|
+
AGENTS.md guide). AGENTS.md standard: agents.md.
|
package/docs/workflow.md
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# The AmbyKit workflow
|
|
2
|
+
|
|
3
|
+
Eleven phases, each a slash command in your assistant, each producing or updating one artifact. The
|
|
4
|
+
happy path is **specify → design → plan → tasks → implement**, with `constitution` once up front and
|
|
5
|
+
`clarify`/`revise`/`analyze`/`converge`/`review` when you need them.
|
|
6
|
+
|
|
7
|
+
| Phase | Command | Reads | Writes |
|
|
8
|
+
|---|---|---|---|
|
|
9
|
+
| Governance (once) | `/amby.constitution` | — | `.amby/constitution.md` |
|
|
10
|
+
| Specify (WHAT/WHY) | `/amby.specify` | constitution | `specs/NNN/spec.md` |
|
|
11
|
+
| Clarify | `/amby.clarify` | spec | spec (resolves markers) |
|
|
12
|
+
| Revise | `/amby.revise` | spec, ui | spec / ui (continues in place) |
|
|
13
|
+
| Design (UI) | `/amby.design` | spec | `ui.md`, `design-tokens.json` |
|
|
14
|
+
| Plan (HOW) | `/amby.plan` | spec, ui | `plan.md` (+ `data-model.md`, `contracts/`) |
|
|
15
|
+
| Tasks | `/amby.tasks` | plan | `tasks.md` |
|
|
16
|
+
| Analyze | `/amby.analyze` | all | consistency report |
|
|
17
|
+
| Implement | `/amby.implement` | tasks (one slice) | code + task/status updates |
|
|
18
|
+
| Converge | `/amby.converge` | spec, plan, tasks + code | `tasks.md` (appends gap tasks), story status |
|
|
19
|
+
| Review | `/amby.review` | any artifact + a role | findings (advisory); the artifact only with `--apply` |
|
|
20
|
+
|
|
21
|
+
## 1. Constitution
|
|
22
|
+
|
|
23
|
+
Durable, project-wide principles that constrain every feature. Written once, revised rarely. See
|
|
24
|
+
[the constitution](./concepts/constitution.md).
|
|
25
|
+
|
|
26
|
+
## 2. Specify — the WHAT and WHY
|
|
27
|
+
|
|
28
|
+
Describe the feature in business terms. The spec contains **no technology choices**. It defines user
|
|
29
|
+
stories with priorities, EARS functional requirements, Given/When/Then acceptance criteria, and
|
|
30
|
+
measurable success criteria. Unknowns become `[NEEDS CLARIFICATION: …]` markers rather than
|
|
31
|
+
guesses. See [the spec artifact](./artifacts/spec.md).
|
|
32
|
+
|
|
33
|
+
## 3. Clarify
|
|
34
|
+
|
|
35
|
+
Walks the open `[NEEDS CLARIFICATION]` markers, asks you targeted questions, and edits **only** those
|
|
36
|
+
lines — cheap and non-destructive.
|
|
37
|
+
|
|
38
|
+
## 4. Revise
|
|
39
|
+
|
|
40
|
+
Continues an existing feature: adds new user stories, requirements, and success criteria and refines
|
|
41
|
+
existing ones **in place**, preserving every stable ID. Distinct from `specify` (new feature) and
|
|
42
|
+
`clarify` (markers only). If the spec is already `done` it makes no edits and points you to
|
|
43
|
+
`/amby.specify`; otherwise it sets the spec `in-progress` and leaves completed stories untouched. Can
|
|
44
|
+
also extend an existing `ui.md`.
|
|
45
|
+
|
|
46
|
+
## 5. Design — UI as a first-class artifact
|
|
47
|
+
|
|
48
|
+
Produces `ui.md` (layout/wireframe, component inventory with props and states, interaction criteria)
|
|
49
|
+
and `design-tokens.json` (primitive → semantic → component tokens). A **sign-off gate** makes the
|
|
50
|
+
approved UI binding for `plan`/`tasks`/`implement`. See [UI design](./artifacts/ui-design.md).
|
|
51
|
+
|
|
52
|
+
## 6. Plan — the HOW
|
|
53
|
+
|
|
54
|
+
The first place technology appears. Chooses the stack and architecture consistent with the
|
|
55
|
+
constitution, and generates supporting artifacts (`data-model.md`, `contracts/`, `research.md`) as
|
|
56
|
+
needed. See [the plan artifact](./artifacts/plan.md).
|
|
57
|
+
|
|
58
|
+
## 7. Tasks
|
|
59
|
+
|
|
60
|
+
Turns the plan into an ordered, dependency-aware checklist: stable `T###` IDs, `[P]` parallel
|
|
61
|
+
markers, `[US#]` story tags, and file paths, grouped so foundational work precedes feature work. See
|
|
62
|
+
[the tasks artifact](./artifacts/tasks.md).
|
|
63
|
+
|
|
64
|
+
## 8. Analyze
|
|
65
|
+
|
|
66
|
+
Cross-checks spec ↔ plan ↔ tasks for coverage gaps and inconsistencies, and validates the story
|
|
67
|
+
**dependency graph** (cycles, dangling references, orphan stories, what's currently unblocked).
|
|
68
|
+
|
|
69
|
+
## 9. Implement
|
|
70
|
+
|
|
71
|
+
Executes tasks one slice at a time, checking off `tasks.md` checkboxes and updating each story's
|
|
72
|
+
`status:` as it goes — which is what `ambykit dashboard` reports on.
|
|
73
|
+
|
|
74
|
+
## 10. Converge
|
|
75
|
+
|
|
76
|
+
Closes the loop after implementation: checks the code against every `FR-###`/`SC-###`, plan
|
|
77
|
+
decision, and checked task; appends one unchecked task per gap under `## Convergence` in `tasks.md`
|
|
78
|
+
(`[VERIFY]` for inconclusive items); marks fully covered stories `done`. Append-only and idempotent —
|
|
79
|
+
it never edits source. Loop `implement → converge` until it reports **converged**.
|
|
80
|
+
|
|
81
|
+
## 11. Review
|
|
82
|
+
|
|
83
|
+
Asks a *different* role to critique an artifact — QA on a spec or task list, the Architect on a
|
|
84
|
+
plan, the PM on a UI design, or any role via `--as <id>`. Findings are one per line, each tied to a
|
|
85
|
+
stable ID with severity and a suggested fix; nothing is modified. `--apply` patches the artifact in
|
|
86
|
+
place (IDs are never renumbered) and appends a `## Reviews` record. Advisory, like `analyze`.
|
|
87
|
+
|
|
88
|
+
## Roles
|
|
89
|
+
|
|
90
|
+
Every phase acts as a role defined in `.amby/roles/<id>.md` (PM, UX Designer, Architect, Tech
|
|
91
|
+
Lead, Developer, QA by default — project-owned and editable, ≤ 150 words each). Phases load only
|
|
92
|
+
their role, by path; pass `--as <id>` to any phase for a one-run alternative perspective. `sync`
|
|
93
|
+
warns on oversized roles and refuses duplicate ids; `check` reports removed defaults.
|
|
94
|
+
|
|
95
|
+
## Parallel features (worktrees)
|
|
96
|
+
|
|
97
|
+
Every feature has its own branch; `ambykit worktree <feature>` gives it its own **working copy** at
|
|
98
|
+
`.worktrees/<feature>/` so two features — or two assistants — can progress side by side with no
|
|
99
|
+
checkout switching. Inside a worktree, every phase resolves "the current feature" from the directory
|
|
100
|
+
name. Opt in at `ambykit init` (or `"worktrees": true` in `.amby/config.json`) and `/amby.specify`
|
|
101
|
+
creates the worktree for each new feature; `ambykit worktree list|remove` and `ambykit check` keep
|
|
102
|
+
them tidy.
|
|
103
|
+
|
|
104
|
+
## Dependencies & prioritization
|
|
105
|
+
|
|
106
|
+
Stories and features carry `priority` (P1/P2/P3) and `depends-on`/`blocked-by` references by stable
|
|
107
|
+
ID. `tasks` orders work topologically within the foundational-first gate; `analyze` validates the
|
|
108
|
+
graph; `dashboard` shows blocked vs. buildable. See [the spec artifact](./artifacts/spec.md) for the
|
|
109
|
+
metadata shape.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ambystech/ambykit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Spec-Driven Development framework that helps AI coding assistants build better software — author your specs, user stories, UI design, plans and tasks once, and emit native config for Claude Code, OpenCode, GitHub Copilot, Cursor, Antigravity and more.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"spec-driven-development",
|
|
@@ -13,7 +13,15 @@
|
|
|
13
13
|
"cursor",
|
|
14
14
|
"antigravity",
|
|
15
15
|
"agents.md",
|
|
16
|
-
"codex"
|
|
16
|
+
"codex",
|
|
17
|
+
"agents-md",
|
|
18
|
+
"spec-kit",
|
|
19
|
+
"ai-agents",
|
|
20
|
+
"slash-commands",
|
|
21
|
+
"requirements",
|
|
22
|
+
"ears",
|
|
23
|
+
"prd",
|
|
24
|
+
"design-tokens"
|
|
17
25
|
],
|
|
18
26
|
"license": "MIT",
|
|
19
27
|
"author": "ambystech",
|
|
@@ -38,7 +46,11 @@
|
|
|
38
46
|
"src/templates",
|
|
39
47
|
"src/prompts",
|
|
40
48
|
"src/reference",
|
|
41
|
-
"
|
|
49
|
+
"src/roles",
|
|
50
|
+
"README.md",
|
|
51
|
+
"LICENSE",
|
|
52
|
+
"CHANGELOG.md",
|
|
53
|
+
"docs"
|
|
42
54
|
],
|
|
43
55
|
"engines": {
|
|
44
56
|
"node": ">=20"
|
package/src/prompts/analyze.md
CHANGED
|
@@ -4,6 +4,7 @@ name: amby.analyze
|
|
|
4
4
|
description: Cross-check spec, plan, and tasks for coverage, consistency, and dependency-graph health.
|
|
5
5
|
argument-hint: "[feature id, defaults to current]"
|
|
6
6
|
phase: analyze
|
|
7
|
+
role: qa
|
|
7
8
|
reads: [specs/NNN-slug/spec.md, specs/NNN-slug/plan.md, specs/NNN-slug/tasks.md]
|
|
8
9
|
writes: []
|
|
9
10
|
allowedTools: [read]
|
package/src/prompts/clarify.md
CHANGED
|
@@ -4,6 +4,7 @@ name: amby.clarify
|
|
|
4
4
|
description: Resolve the open [NEEDS CLARIFICATION] markers in a feature spec.
|
|
5
5
|
argument-hint: "[feature id, defaults to current]"
|
|
6
6
|
phase: clarify
|
|
7
|
+
role: pm
|
|
7
8
|
reads: [specs/NNN-slug/spec.md]
|
|
8
9
|
writes: [specs/NNN-slug/spec.md]
|
|
9
10
|
allowedTools: [read, edit]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: converge
|
|
3
|
+
name: amby.converge
|
|
4
|
+
description: Check the codebase against spec, plan, and tasks after implementing; append gap tasks, never edit code.
|
|
5
|
+
argument-hint: "[feature id, defaults to current]"
|
|
6
|
+
phase: converge
|
|
7
|
+
role: qa
|
|
8
|
+
reads: [specs/NNN-slug/spec.md, specs/NNN-slug/plan.md, specs/NNN-slug/tasks.md]
|
|
9
|
+
writes: [specs/NNN-slug/tasks.md, specs/NNN-slug/spec.md]
|
|
10
|
+
allowedTools: [read, edit]
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
Converge feature `$ARGUMENTS` (default: the current feature): does the code satisfy its artifacts?
|
|
14
|
+
Never edit source code — only that feature's `tasks.md` and `spec.md` are writable.
|
|
15
|
+
|
|
16
|
+
1. No `tasks.md` → stop, say to run `/amby.tasks`. No `plan.md` → converge on spec + tasks and say so.
|
|
17
|
+
2. For every `FR-###`/`SC-###`, plan decision (incl. `data-model.md`/`contracts/`), and checked
|
|
18
|
+
`T###`: look for evidence only in files the plan/tasks name. Classify **covered**, **gap**
|
|
19
|
+
(absent), or **unverified** (inconclusive). Skip items the plan marks deferred/out of scope.
|
|
20
|
+
3. **Append, don't rewrite.** Under `## Convergence` in `tasks.md` (create at the end if absent) add
|
|
21
|
+
`- [ ] [T###] [US#] … (closes FR-…)` per gap and `- [ ] [T###] [US#] [VERIFY] …` per unverified
|
|
22
|
+
item. Continue IDs from the highest `T###` anywhere in the file; skip items already listed
|
|
23
|
+
unchecked there. Nothing to add → leave the file untouched.
|
|
24
|
+
4. In `spec.md`, patch only `status:` lines: a story → `done` when every FR/SC it maps to is
|
|
25
|
+
covered; the feature → `done` when all stories are.
|
|
26
|
+
5. Report: **converged** (no gaps) or **gaps found (N)**, counts per class, and a table of every ID
|
|
27
|
+
with its class and a one-line reason for each gap/unverified item.
|
package/src/prompts/design.md
CHANGED
|
@@ -4,6 +4,7 @@ name: amby.design
|
|
|
4
4
|
description: Design the UI — wireframes, component specs, and design tokens — with a sign-off gate.
|
|
5
5
|
argument-hint: "[feature id, defaults to current]"
|
|
6
6
|
phase: design
|
|
7
|
+
role: ux
|
|
7
8
|
reads: [specs/NNN-slug/spec.md]
|
|
8
9
|
writes: [specs/NNN-slug/ui.md, specs/NNN-slug/design-tokens.json]
|
|
9
10
|
allowedTools: [read, write, edit]
|
package/src/prompts/implement.md
CHANGED
|
@@ -4,6 +4,7 @@ name: amby.implement
|
|
|
4
4
|
description: Execute the task list, checking off tasks and updating story status as you go.
|
|
5
5
|
argument-hint: "[task id or story id, defaults to next unblocked]"
|
|
6
6
|
phase: implement
|
|
7
|
+
role: developer
|
|
7
8
|
reads: [specs/NNN-slug/tasks.md, specs/NNN-slug/plan.md]
|
|
8
9
|
writes: [specs/NNN-slug/tasks.md, specs/NNN-slug/spec.md]
|
|
9
10
|
allowedTools: [read, write, edit, bash]
|
package/src/prompts/plan.md
CHANGED
|
@@ -4,6 +4,7 @@ name: amby.plan
|
|
|
4
4
|
description: Produce the technical implementation plan (the HOW) from an approved spec and UI.
|
|
5
5
|
argument-hint: "[feature id, defaults to current]"
|
|
6
6
|
phase: plan
|
|
7
|
+
role: architect
|
|
7
8
|
reads: [specs/NNN-slug/spec.md, specs/NNN-slug/ui.md, .amby/constitution.md]
|
|
8
9
|
writes: [specs/NNN-slug/plan.md, specs/NNN-slug/data-model.md, specs/NNN-slug/contracts/]
|
|
9
10
|
allowedTools: [read, write, edit]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: review
|
|
3
|
+
name: amby.review
|
|
4
|
+
description: Review an artifact from another role's perspective — findings by stable ID, advisory only.
|
|
5
|
+
argument-hint: "<artifact path> [--as <role id>] [--apply]"
|
|
6
|
+
phase: review
|
|
7
|
+
reads: [.amby/roles/*.md]
|
|
8
|
+
writes: []
|
|
9
|
+
allowedTools: [read, edit]
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
Review `$ARGUMENTS` (an artifact path, e.g. `specs/NNN-slug/spec.md`) as a **different** role.
|
|
13
|
+
If the path does not exist, stop and name the phase that produces it.
|
|
14
|
+
|
|
15
|
+
1. Pick the reviewer: `--as <id>` → `@.amby/roles/<id>.md`; otherwise QA for a spec or tasks,
|
|
16
|
+
Architect for a plan, PM for a UI design. If the file is missing, stop and list `.amby/roles/`.
|
|
17
|
+
Say which role you are acting as in your first line.
|
|
18
|
+
2. Read only the artifact (and its spec, if reviewing a plan or tasks). Apply the role's focus
|
|
19
|
+
checklist. Produce findings, one per line: `ID · severity (high/med/low) · finding · fix` —
|
|
20
|
+
every finding names a stable ID (`US-#`, `FR-###`, `SC-###`, `T###`). Modify nothing.
|
|
21
|
+
3. Only with `--apply`: patch the artifact in place for each finding, preserving every existing ID
|
|
22
|
+
(never renumber), then append under a `## Reviews` heading at the end:
|
|
23
|
+
`- <date> · <role> · <n> findings applied` — or `approved` when there were none.
|
|
24
|
+
4. This is advisory: no phase waits on a review. End with the findings count and the next phase to run.
|
package/src/prompts/revise.md
CHANGED
|
@@ -4,6 +4,7 @@ name: amby.revise
|
|
|
4
4
|
description: Continue an existing feature's spec (or design) — add and refine in place, with a done-guard.
|
|
5
5
|
argument-hint: "[feature id, defaults to current] + what to add or refine"
|
|
6
6
|
phase: revise
|
|
7
|
+
role: pm
|
|
7
8
|
reads: [specs/NNN-slug/spec.md, specs/NNN-slug/ui.md]
|
|
8
9
|
writes: [specs/NNN-slug/spec.md, specs/NNN-slug/ui.md]
|
|
9
10
|
allowedTools: [read, edit]
|
package/src/prompts/specify.md
CHANGED
|
@@ -4,9 +4,10 @@ name: amby.specify
|
|
|
4
4
|
description: Turn a feature idea into a spec — user stories, EARS requirements, acceptance criteria.
|
|
5
5
|
argument-hint: "<feature description>"
|
|
6
6
|
phase: specify
|
|
7
|
-
|
|
7
|
+
role: pm
|
|
8
|
+
reads: [.amby/constitution.md, .amby/config.json]
|
|
8
9
|
writes: [specs/NNN-slug/spec.md]
|
|
9
|
-
allowedTools: [read, write, edit]
|
|
10
|
+
allowedTools: [read, write, edit, bash]
|
|
10
11
|
---
|
|
11
12
|
|
|
12
13
|
Write a specification for: **$ARGUMENTS**
|
|
@@ -24,5 +25,8 @@ read other specs.
|
|
|
24
25
|
5. Write measurable, tech-agnostic **success criteria** (`SC-###`).
|
|
25
26
|
6. **Capture WHAT/WHY only — no technology choices.** Flag every unknown inline as
|
|
26
27
|
`[NEEDS CLARIFICATION: …]` instead of guessing.
|
|
28
|
+
7. If `.amby/config.json` has `"worktrees": true` and this is a git repo, run
|
|
29
|
+
`ambykit worktree NNN-slug` (the only command to run) and tell the user to continue in
|
|
30
|
+
`.worktrees/NNN-slug/`. Otherwise skip this step (say why if isolation was enabled but git is absent).
|
|
27
31
|
|
|
28
32
|
Keep it tight. Reference the constitution by principle number where relevant; don't restate it.
|
package/src/prompts/tasks.md
CHANGED
|
@@ -4,6 +4,7 @@ name: amby.tasks
|
|
|
4
4
|
description: Break the plan into an ordered, dependency-aware task checklist.
|
|
5
5
|
argument-hint: "[feature id, defaults to current]"
|
|
6
6
|
phase: tasks
|
|
7
|
+
role: tech-lead
|
|
7
8
|
reads: [specs/NNN-slug/plan.md, specs/NNN-slug/spec.md]
|
|
8
9
|
writes: [specs/NNN-slug/tasks.md]
|
|
9
10
|
allowedTools: [read, write, edit]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: architect
|
|
3
|
+
name: Architect
|
|
4
|
+
phases: [plan]
|
|
5
|
+
---
|
|
6
|
+
Own the HOW. Choose the simplest design that satisfies every requirement and the constitution.
|
|
7
|
+
|
|
8
|
+
**Focus:**
|
|
9
|
+
- Every FR/SC maps to a mechanism, by ID
|
|
10
|
+
- Boundaries: pure core, side effects at the edges
|
|
11
|
+
- Reuse before invention; cite existing patterns being followed
|
|
12
|
+
- Risks named with mitigations, not hidden
|
|
13
|
+
- Formats and external contracts verified, never guessed
|
|
14
|
+
- Token/performance cost of each choice stated
|
|
15
|
+
|
|
16
|
+
**Hand-off:** the Tech Lead must find a phased approach and requirement mapping precise enough to
|
|
17
|
+
break into ordered tasks without re-deciding the design.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: developer
|
|
3
|
+
name: Developer
|
|
4
|
+
phases: [implement]
|
|
5
|
+
---
|
|
6
|
+
Own the code. Implement exactly the mapped requirements, prove them with tests, leave the tree green.
|
|
7
|
+
|
|
8
|
+
**Focus:**
|
|
9
|
+
- Satisfy the task's FR/acceptance criteria — no scope creep
|
|
10
|
+
- Match surrounding style, naming, and idiom
|
|
11
|
+
- Tests accompany the change; typecheck and suite pass before done
|
|
12
|
+
- Patch artifacts in place: checkboxes, story status
|
|
13
|
+
- Load only the slice needed (token frugality)
|
|
14
|
+
- Stop at checkpoints for review
|
|
15
|
+
|
|
16
|
+
**Hand-off:** QA must find checked tasks that each correspond to real, tested behavior in the
|
|
17
|
+
codebase.
|
package/src/roles/pm.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: pm
|
|
3
|
+
name: Product Manager
|
|
4
|
+
phases: [specify, clarify, revise]
|
|
5
|
+
---
|
|
6
|
+
Own the WHAT and WHY. Turn ideas into specs a team can build and measure, and keep scope honest.
|
|
7
|
+
|
|
8
|
+
**Focus:**
|
|
9
|
+
- User value: every story names a real role and benefit
|
|
10
|
+
- Scope boundaries: what is explicitly out, not just in
|
|
11
|
+
- Priorities reflect user impact, not implementation ease
|
|
12
|
+
- Success criteria are measurable and tech-agnostic
|
|
13
|
+
- Ambiguity is flagged, never guessed
|
|
14
|
+
- Negative and edge scenarios get acceptance criteria too
|
|
15
|
+
|
|
16
|
+
**Hand-off:** the Architect must find testable EARS requirements, resolved clarifications, and
|
|
17
|
+
priorities they can sequence without asking what the feature is for.
|
package/src/roles/qa.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: qa
|
|
3
|
+
name: QA Engineer
|
|
4
|
+
phases: [analyze, converge]
|
|
5
|
+
---
|
|
6
|
+
Own verification. Assume the artifact is wrong until evidence says otherwise.
|
|
7
|
+
|
|
8
|
+
**Focus:**
|
|
9
|
+
- Every FR/SC traced to implementation and to a test
|
|
10
|
+
- Untestable or unmeasurable statements called out by ID
|
|
11
|
+
- Negative cases and edge cases covered, not just happy paths
|
|
12
|
+
- Checked tasks spot-verified against real deliverables
|
|
13
|
+
- Gaps become tasks, never prose
|
|
14
|
+
- Idempotent, append-only reporting — never edit source
|
|
15
|
+
|
|
16
|
+
**Hand-off:** the team must see a verdict (converged / gaps found) with every finding tied to a
|
|
17
|
+
stable ID and a one-line reason.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: tech-lead
|
|
3
|
+
name: Tech Lead
|
|
4
|
+
phases: [tasks]
|
|
5
|
+
---
|
|
6
|
+
Own sequencing. Turn the plan into small, ordered, verifiable units of work.
|
|
7
|
+
|
|
8
|
+
**Focus:**
|
|
9
|
+
- Foundational work gated before feature work
|
|
10
|
+
- Task order respects the story dependency graph
|
|
11
|
+
- Each task has one concrete file path and one outcome
|
|
12
|
+
- Parallelizable work marked; checkpoints end every story
|
|
13
|
+
- Tests are tasks, not afterthoughts
|
|
14
|
+
- Nothing in tasks that the plan didn't decide
|
|
15
|
+
|
|
16
|
+
**Hand-off:** the Developer must be able to pick the next unblocked task and finish it without
|
|
17
|
+
reading the whole spec tree.
|
package/src/roles/ux.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: ux
|
|
3
|
+
name: UX Designer
|
|
4
|
+
phases: [design]
|
|
5
|
+
---
|
|
6
|
+
Own how the feature looks, flows, and feels. Design before code; make states explicit.
|
|
7
|
+
|
|
8
|
+
**Focus:**
|
|
9
|
+
- Every screen covers empty, loading, error, and success states
|
|
10
|
+
- Flows minimize steps to the user's goal
|
|
11
|
+
- Components reference design tokens, not ad-hoc values
|
|
12
|
+
- Accessibility: contrast, focus order, labels, keyboard paths
|
|
13
|
+
- Copy is part of the design — no lorem ipsum
|
|
14
|
+
- Responsive behavior stated per breakpoint
|
|
15
|
+
|
|
16
|
+
**Hand-off:** the Architect must find wireframes and component specs complete enough to plan
|
|
17
|
+
against without inventing UI behavior, plus an explicit sign-off status.
|