@trieungoctam/speckit 0.2.2 → 0.3.0

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.
Files changed (41) hide show
  1. package/README.md +32 -5
  2. package/dist/adapters/antigravity-adapter.js +4 -4
  3. package/dist/adapters/claude-code-adapter.js +7 -5
  4. package/dist/adapters/codex-adapter.js +5 -3
  5. package/dist/adapters/cursor-adapter.js +7 -3
  6. package/dist/adapters/opencode-adapter.js +1 -1
  7. package/dist/cli.js +28 -0
  8. package/dist/commands/doctor.js +2 -1
  9. package/dist/commands/graph.d.ts +7 -0
  10. package/dist/commands/graph.js +51 -0
  11. package/dist/commands/init.js +3 -1
  12. package/dist/commands/memory.d.ts +6 -0
  13. package/dist/commands/memory.js +11 -0
  14. package/dist/commands/session.d.ts +9 -0
  15. package/dist/commands/session.js +49 -0
  16. package/dist/commands/sprint.d.ts +7 -0
  17. package/dist/commands/sprint.js +54 -0
  18. package/dist/commands/start.js +4 -3
  19. package/dist/commands/sync.js +3 -0
  20. package/dist/commands/triage.js +2 -15
  21. package/dist/core/agent-scaffold.d.ts +2 -0
  22. package/dist/core/agent-scaffold.js +57 -0
  23. package/dist/core/beads-mirror.d.ts +3 -0
  24. package/dist/core/beads-mirror.js +46 -0
  25. package/dist/core/memory.d.ts +1 -0
  26. package/dist/core/memory.js +47 -0
  27. package/dist/core/scaffold.js +33 -63
  28. package/dist/core/session-manager.d.ts +15 -0
  29. package/dist/core/session-manager.js +139 -0
  30. package/dist/core/skill-catalog.d.ts +2 -0
  31. package/dist/core/skill-catalog.js +177 -0
  32. package/dist/core/synced-stories.d.ts +8 -0
  33. package/dist/core/synced-stories.js +17 -0
  34. package/dist/core/templates.d.ts +2 -0
  35. package/dist/core/templates.js +54 -0
  36. package/docs/development-roadmap.md +7 -5
  37. package/docs/product-contract.md +7 -4
  38. package/docs/project-changelog.md +30 -0
  39. package/docs/spec-enterprise-harness-plan.md +18 -1
  40. package/docs/workflow-model.md +23 -0
  41. package/package.json +1 -1
@@ -0,0 +1,54 @@
1
+ export const storyTemplate = `---
2
+ status: draft
3
+ evidence: .speckit/evidence/{{slug}}-tdd-evidence.md
4
+ context: pending
5
+ ---
6
+
7
+ # Story: {{title}}
8
+
9
+ ## Intent
10
+ {{intent}}
11
+
12
+ ## Acceptance Criteria
13
+ - Given ...
14
+ - When ...
15
+ - Then ...
16
+
17
+ ## TDD Checklist
18
+ - [ ] Test targets identified
19
+ - [ ] Red evidence recorded
20
+ - [ ] Green evidence recorded
21
+ - [ ] Refactor validation recorded
22
+
23
+ ## Notes
24
+ - Risks:
25
+ - Dependencies:
26
+
27
+ ## Spec Anti-Mistake Checklist
28
+ - Reuse existing project patterns before adding new files.
29
+ - Verify file locations before editing.
30
+ - Do not introduce new libraries without explicit need.
31
+ - Preserve existing behavior unless an acceptance criterion requires change.
32
+ - Capture previous-story learnings if this continues prior work.
33
+ `;
34
+ export const tddEvidenceTemplate = `---
35
+ status: missing
36
+ story: {{story}}
37
+ ---
38
+
39
+ # TDD Evidence: {{story}}
40
+
41
+ ## Test Intent
42
+
43
+ ## Red
44
+ - Command:
45
+ - Result:
46
+
47
+ ## Green
48
+ - Command:
49
+ - Result:
50
+
51
+ ## Refactor
52
+ - Command:
53
+ - Result:
54
+ `;
@@ -4,9 +4,9 @@
4
4
 
5
5
  Speckit MVP is implemented and pushed to `git@github.com:trieungoctam/speckit.git` on `main`.
6
6
 
7
- Current package target: `@trieungoctam/speckit@0.2.2`.
7
+ Current package target: `@trieungoctam/speckit@0.3.0`.
8
8
 
9
- The CLI is npx-ready, generates Agile + TDD rules, creates workflow artifacts, supports five IDE adapters, wraps Beads Viewer safely, includes an enterprise harness, and has automated prompt/readiness tests plus CI.
9
+ The CLI is npx-ready, generates Agile + TDD rules, creates workflow artifacts, supports five IDE adapters, wraps Beads Viewer safely, includes an enterprise harness, and has automated prompt/readiness/session tests plus CI.
10
10
 
11
11
  ## Milestones
12
12
 
@@ -15,17 +15,19 @@ The CLI is npx-ready, generates Agile + TDD rules, creates workflow artifacts, s
15
15
  | Product contract | Complete | Contract, workflow model, and command surface documented. |
16
16
  | CLI scaffold | Complete | `bin/speckit`, TypeScript build, command router, managed file writer. |
17
17
  | Workflow engine | Complete | `start`, `shape`, `plan`, `context`, `quick`, `sync`, `triage`, `ready`, `run`, `review`, and `close` generate linked artifacts. |
18
+ | Long session manager | Complete | `memory refresh` plus `session start/checkpoint/compact/resume/status` preserve agent continuity outside chat history. |
18
19
  | IDE adapters | Complete | Claude Code, Codex, Antigravity, OpenCode, Cursor. |
19
- | Beads integration | MVP Complete | `next` wraps BV robot mode; `sync` exports story metadata JSONL. |
20
+ | Beads integration | MVP Complete | `next` and `graph triage/plan/insights` wrap BV robot mode; `sync` exports story metadata JSONL. |
21
+ | Sprint automation | MVP Complete | `sprint plan` and `sprint next` select work from synced stories. |
20
22
  | Enterprise harness | MVP Complete | `init --enterprise` creates flow, tool-policy, and prompt harness files; `doctor --deep` verifies them. |
23
+ | Curated skill catalog | Complete | Speckit now generates focused phase skills, a schema, delegation statuses, and task hydration/sync-back guidance. |
21
24
  | Validation | Complete | Build and `node:test` suite pass locally with flow contract gates. |
22
25
  | GitHub publish | Complete | Initial code pushed to `trieungoctam/speckit` at commit `7e5c582`; status docs follow-up in progress. |
23
26
  | npm package readiness | Ready | Package scoped as `@trieungoctam/speckit`; `npm pack --dry-run` passes. |
24
27
 
25
28
  ## Next Roadmap
26
29
 
27
- - Expand Speckit Enterprise Harness with richer profile and context-pack layers.
28
30
  - Add `review --deep` with blind, edge-case, and acceptance audit prompts.
29
- - Add graph commands: `graph-plan`, `insights`, and `drift`.
31
+ - Add graph drift and history correlation commands.
30
32
  - Add GitHub trusted publishing for npm releases.
31
33
  - Add snapshot tests for full adapter file contents.
@@ -5,7 +5,10 @@ Speckit owns the workflow contract for enterprise Agile + TDD development with a
5
5
  ## Speckit Owns
6
6
 
7
7
  - The `.speckit/` source of truth: config, rules, workflows, templates, generated artifacts.
8
- - The command surface: `init`, `doctor`, `start`, `shape`, `plan`, `context`, `quick`, `sync`, `triage`, `next`, `ready`, `run`, `review`, `close`.
8
+ - The command surface: `init`, `doctor`, `start`, `memory`, `session`, `shape`, `plan`, `context`, `quick`, `sync`, `triage`, `sprint`, `graph`, `next`, `ready`, `run`, `review`, `close`.
9
+ - The skill catalog and super-agent routing contract for phase-specific agent behavior.
10
+ - IDE-specific initialization that installs the shared Speckit runtime plus only the selected IDE adapter when `--ide <name>` is provided.
11
+ - The long-session contract: project memory, active session state, checkpoints, compaction summaries, and resume handoffs.
9
12
  - The TDD gate: code stories require red, green, and refactor evidence.
10
13
  - The adapter compiler for Claude Code, Codex, Antigravity, OpenCode, and Cursor.
11
14
  - The safety policy for destructive commands, secrets, production access, and review readiness.
@@ -15,13 +18,13 @@ Speckit owns the workflow contract for enterprise Agile + TDD development with a
15
18
  - Implementation to the selected IDE and agent runtime.
16
19
  - Product lifecycle, story readiness, and quality gates to Speckit-native phases.
17
20
  - Execution orchestration to Speckit-native plan/run/test/review flows.
18
- - Task graph prioritization to beads and Beads Viewer robot commands.
21
+ - Task graph prioritization to beads and Beads Viewer robot commands, with local JSON fallback when `bv` is unavailable.
19
22
  - Git, tests, CI, and deployment to project-local tooling.
20
23
 
21
24
  ## State Model
22
25
 
23
26
  ```text
24
- intake -> session -> shaped -> planned -> context-ready -> synced -> triaged -> ready-for-dev -> tests-red -> running -> tests-green -> refactor -> review-ready -> closed
27
+ intake -> session -> memory-ready -> shaped -> planned -> sprint-ready -> context-ready -> synced -> graph-triaged -> ready-for-dev -> tests-red -> checkpointed -> running -> tests-green -> refactor -> compacted -> review-ready -> closed
25
28
  ```
26
29
 
27
- Implementation starts only after `speckit ready <story>` passes. Review starts only after test evidence exists.
30
+ Implementation starts only after `speckit ready <story>` passes. Review starts only after test evidence exists and the active session has a current checkpoint.
@@ -1,5 +1,35 @@
1
1
  # Project Changelog
2
2
 
3
+ ## 0.3.0 - 2026-05-10
4
+
5
+ ### Added
6
+
7
+ - Added `speckit memory refresh` for durable project context, decisions, and lessons.
8
+ - Added `speckit session start`, `checkpoint`, `compact`, `resume`, and `status`.
9
+ - Added `speckit sprint plan` and `speckit sprint next` from synced stories.
10
+ - Added `speckit graph triage`, `graph plan`, and `graph insights` with Beads Viewer robot mode and local JSON fallback.
11
+ - Added `.speckit/agents/super-agent.md` as the portable orchestration router.
12
+ - Added `.speckit/skills/catalog.md` plus a curated Speckit skill set for shape, research, plan, context, graph, session, TDD, test, debug, review, docs, and ship phases.
13
+ - Added `.speckit/skills/schema.json` to define the portable skill contract and delegation statuses.
14
+ - Added long-session prompt requirements for project memory, active session state, checkpoints, and compaction summaries.
15
+ - Added automatic `.beads/beads.jsonl` mirror generation so Beads Viewer robot commands can run without missing-project errors.
16
+ - Standard `speckit init --ide <name>` now installs the shared Speckit runtime, super-agent, and skill catalog for the selected IDE.
17
+
18
+ ### Changed
19
+
20
+ - Enterprise flow now includes memory, sprint planning, graph triage, readiness, checkpoint, and compaction phases.
21
+ - Enterprise adapters now route through the Speckit super agent and smallest matching skill before execution.
22
+ - Super-agent routing now includes delegation status, task hydration, and sync-back contracts adapted from long-session orchestration patterns.
23
+ - IDE adapters now instruct agents to checkpoint red-green-refactor boundaries and compact before handoff.
24
+ - `speckit graph triage|plan|insights` now prepares the Beads Viewer mirror before invoking `bv --robot-*` from the project root.
25
+ - Selected-IDE init now avoids unrelated IDE adapters while still installing shared runtime files.
26
+
27
+ ### Quality
28
+
29
+ - Added workflow tests for memory/session state, sprint planning, and graph fallback.
30
+ - Expanded prompt quality tests for project memory, active session, checkpoint, and compaction.
31
+ - Added init and flow contract coverage for the curated skill catalog.
32
+
3
33
  ## 0.2.2 - 2026-05-10
4
34
 
5
35
  ### Added
@@ -11,11 +11,15 @@ The product vocabulary is Spec-only. External tools may exist underneath, but ge
11
11
  ```text
12
12
  idea
13
13
  -> spec start
14
+ -> super-agent route
15
+ -> spec memory
14
16
  -> spec shape
15
17
  -> spec plan
18
+ -> spec sprint
16
19
  -> spec context
17
20
  -> graph triage
18
21
  -> spec run
22
+ -> spec checkpoint
19
23
  -> spec review
20
24
  -> spec close
21
25
  ```
@@ -26,7 +30,10 @@ idea
26
30
  | --- | --- | --- |
27
31
  | Spec Flow | Phase order and state transitions | `.speckit/flows/*.md` |
28
32
  | Spec Prompt | Phase-specific instructions | `.speckit/prompts/**/*.md` |
33
+ | Spec Super Agent | Phase routing and orchestration policy | `.speckit/agents/super-agent.md` |
34
+ | Spec Skills | Focused phase capabilities loaded on demand | `.speckit/skills/*.md` |
29
35
  | Spec Session | Durable continuity across agents | `.speckit/sessions/<id>/*` |
36
+ | Spec Memory | Durable project rules and lessons | `.speckit/memory/*` |
30
37
  | Spec Context | Bounded task context | `.speckit/context/current.md` |
31
38
  | Spec Tool | Phase-aware allowed/denied actions | `.speckit/tool-policy.yaml` |
32
39
  | Spec Graph | Work queue and priority bridge | `.speckit/graph/*` |
@@ -38,8 +45,14 @@ idea
38
45
  speckit init --enterprise --ide all
39
46
  speckit doctor --deep
40
47
  speckit start "<idea>"
48
+ speckit memory refresh
49
+ speckit session checkpoint
50
+ speckit session compact
51
+ speckit session resume
41
52
  speckit shape "<idea>"
42
53
  speckit plan "<feature>"
54
+ speckit sprint plan
55
+ speckit graph triage
43
56
  speckit context <story-or-bead>
44
57
  speckit triage
45
58
  speckit next
@@ -53,7 +66,10 @@ speckit sync
53
66
 
54
67
  - Forbidden legacy vocabulary must not appear in publishable source, docs, tests, prompts, or generated adapter templates.
55
68
  - Every implementation story must link to acceptance criteria and TDD evidence.
69
+ - Every agent run must route through the super-agent policy and the smallest matching Speckit skill.
56
70
  - Every run must have a session handoff.
71
+ - Every long run must checkpoint after red, green, refactor, and review boundaries.
72
+ - Every handoff must have a compact session summary when context has grown noisy.
57
73
  - Every graph task must trace back to a story or spec artifact.
58
74
  - Every review must check AC coverage, TDD evidence, tool policy, and docs impact.
59
75
  - All robot task graph commands must use non-interactive flags.
@@ -61,8 +77,9 @@ speckit sync
61
77
  ## Definition Of Enterprise Ready
62
78
 
63
79
  - `speckit init --enterprise --ide all` creates a complete harness in a temp repo.
80
+ - The generated harness includes `.speckit/agents/super-agent.md` and `.speckit/skills/catalog.md`.
64
81
  - `speckit doctor --deep --json` returns stable machine-readable status.
65
- - `speckit start -> context -> run -> review -> close` preserves a single session id.
82
+ - `speckit start -> session checkpoint -> session compact -> context -> run -> review -> close` preserves a single session id.
66
83
  - `speckit sync -> triage -> next` preserves story-to-graph traceability.
67
84
  - All IDE adapters compile from the same Spec policies.
68
85
  - Tests enforce vocabulary, flow links, adapter parity, and robot-safe graph commands.
@@ -8,7 +8,10 @@ Use for a bounded change.
8
8
 
9
9
  ```bash
10
10
  speckit quick "Add invoice validation"
11
+ speckit memory refresh
12
+ speckit session start "Add invoice validation"
11
13
  speckit run .speckit/stories/<story>.md
14
+ speckit session checkpoint --note "story implemented"
12
15
  speckit review
13
16
  ```
14
17
 
@@ -16,6 +19,8 @@ Outputs:
16
19
 
17
20
  - `.speckit/stories/<story>.md`
18
21
  - `.speckit/evidence/<story>-tdd-evidence.md`
22
+ - `.speckit/sessions/<session>/summary.md`
23
+ - `.speckit/sessions/<session>/artifact-log.md`
19
24
 
20
25
  ## Full Lane
21
26
 
@@ -25,6 +30,8 @@ Use for product or enterprise rollout work.
25
30
  speckit shape "Standardize Agile + TDD across teams"
26
31
  speckit plan "Standardize Agile + TDD across teams"
27
32
  speckit sync
33
+ speckit sprint plan
34
+ speckit graph triage --json
28
35
  speckit next
29
36
  ```
30
37
 
@@ -36,6 +43,9 @@ Outputs:
36
43
  - `.speckit/plans/<plan>/story.md`
37
44
  - `.speckit/plans/<plan>/tdd-evidence.md`
38
45
  - `.speckit/sync/beads-sync.jsonl`
46
+ - `.beads/beads.jsonl`
47
+ - `.speckit/sprint/status.yaml`
48
+ - `.speckit/sprint/plan.md`
39
49
 
40
50
  ## TDD Evidence Gate
41
51
 
@@ -47,3 +57,16 @@ Each code story must record:
47
57
  - Refactor command and result
48
58
 
49
59
  Missing evidence means the story is not review-ready.
60
+
61
+ ## Long Session Gate
62
+
63
+ Long-running agent work must keep durable state outside chat history:
64
+
65
+ - `.speckit/memory/project-context.md` stores project-wide implementation rules.
66
+ - `.speckit/sessions/active.md` points to the active session.
67
+ - `.speckit/sessions/<id>/artifact-log.md` records checkpoints and files touched.
68
+ - `.speckit/sessions/<id>/summary.md` is the compacted handoff for resume.
69
+
70
+ ## Beads Viewer Automation
71
+
72
+ `speckit sync` prepares both Speckit sync metadata and a Beads Viewer-compatible `.beads/beads.jsonl` mirror. `speckit graph triage|plan|insights` refreshes that mirror before invoking `bv --robot-*` from the project root, then falls back to local JSON if Beads Viewer is unavailable or still fails.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trieungoctam/speckit",
3
- "version": "0.2.2",
3
+ "version": "0.3.0",
4
4
  "description": "Enterprise Agile + TDD workflow compiler for agentic IDEs.",
5
5
  "type": "module",
6
6
  "files": [