agent-manifesto-kit 0.0.0-development
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/LICENSE +21 -0
- package/README.md +95 -0
- package/collection/NOTICE.md +36 -0
- package/collection/agents/code-reviewer.md +103 -0
- package/collection/agents/docs-manager.md +127 -0
- package/collection/bundles/kit-adopt/README.md +36 -0
- package/collection/bundles/kit-adopt/conventions/recommended-companions.md +43 -0
- package/collection/bundles/kit-adopt/pipelines/kit-adopt.md +52 -0
- package/collection/bundles/kit-adopt/skills/kit-adopt/SKILL.md +72 -0
- package/collection/bundles/sdd/README.md +50 -0
- package/collection/bundles/sdd/RECOMMENDS.md +21 -0
- package/collection/bundles/sdd/agents/sdd-gap-analyzer.md +79 -0
- package/collection/bundles/sdd/agents/sdd-spec-reviewer.md +75 -0
- package/collection/bundles/sdd/conventions/sdd-doc-set.md +136 -0
- package/collection/bundles/sdd/pipelines/sdd-adopt.md +60 -0
- package/collection/bundles/sdd/pipelines/sdd-bootstrap.md +60 -0
- package/collection/bundles/sdd/skills/sdd-doc-author/SKILL.md +69 -0
- package/collection/bundles/sdd/skills/sdd-feature-author/SKILL.md +71 -0
- package/collection/bundles/sdd/skills/sdd-index-sync/SKILL.md +61 -0
- package/collection/bundles/sdd/templates/docs/INDEX.md +35 -0
- package/collection/bundles/sdd/templates/docs/api.md +23 -0
- package/collection/bundles/sdd/templates/docs/architecture.md +42 -0
- package/collection/bundles/sdd/templates/docs/db.md +22 -0
- package/collection/bundles/sdd/templates/docs/decisions/ADR-template.md +24 -0
- package/collection/bundles/sdd/templates/docs/design.md +43 -0
- package/collection/bundles/sdd/templates/docs/idea.md +46 -0
- package/collection/bundles/sdd/templates/docs/operations.md +28 -0
- package/collection/bundles/sdd/templates/docs/roadmap.md +26 -0
- package/collection/bundles/sdd/templates/docs/security.md +24 -0
- package/collection/bundles/sdd/templates/docs/testing.md +34 -0
- package/collection/bundles/sdd/templates/features/F000_template/requirements.md +38 -0
- package/collection/bundles/sdd/templates/features/F000_template/scenarios.md +26 -0
- package/collection/bundles/sdd/templates/features/F000_template/tasks.md +11 -0
- package/collection/skills/brainstorm/SKILL.md +46 -0
- package/collection/skills/business-analyst/SKILL.md +58 -0
- package/collection/skills/documentation-maintenance/SKILL.md +60 -0
- package/collection/skills/explain-code/SKILL.md +81 -0
- package/collection/skills/frontend-audit/SKILL.md +135 -0
- package/collection/skills/frontend-impeccable-design/SKILL.md +135 -0
- package/collection/skills/frontend-impeccable-polish/SKILL.md +118 -0
- package/collection/skills/implement-feature/SKILL.md +99 -0
- package/collection/skills/memory-management/SKILL.md +75 -0
- package/collection/skills/meta-tags-optimizer/SKILL.md +73 -0
- package/collection/skills/pencil-design/SKILL.md +83 -0
- package/collection/skills/playwright-cli/SKILL.md +104 -0
- package/collection/skills/prepare-release-notes/SKILL.md +109 -0
- package/collection/skills/refactor-code/SKILL.md +104 -0
- package/collection/skills/review-code/SKILL.md +98 -0
- package/collection/skills/schema-markup-generator/SKILL.md +80 -0
- package/collection/skills/task-complete/SKILL.md +79 -0
- package/collection/skills/task-discovery/SKILL.md +69 -0
- package/collection/skills/task-validation/SKILL.md +71 -0
- package/collection/skills/test-review/SKILL.md +72 -0
- package/collection/skills/test-writer/SKILL.md +78 -0
- package/collection/skills/work-with-git/SKILL.md +154 -0
- package/dist/catalog.js +146 -0
- package/dist/cli.js +108 -0
- package/dist/commands/adopt.js +100 -0
- package/dist/commands/lint.js +26 -0
- package/dist/commands/list.js +30 -0
- package/dist/portability.js +41 -0
- package/dist/providers.js +37 -0
- package/package.json +49 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sdd-gap-analyzer
|
|
3
|
+
description: Inventories a project's existing documentation and code, maps them onto the SDD document set, and produces a tier recommendation and an ordered adopt/expand plan. Use when introducing SDD into a project that already has docs or code. Read-only.
|
|
4
|
+
tools: Read, Grep, Glob
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Scope
|
|
8
|
+
|
|
9
|
+
- Assess a project that already has some documentation, code, or both, and determine how to
|
|
10
|
+
introduce or expand the SDD doc set with the least rework.
|
|
11
|
+
- Map existing material onto the target documents, recommend a tier, and produce an ordered
|
|
12
|
+
adoption plan.
|
|
13
|
+
- This agent is read-only. It does not create or modify documents; it produces a plan.
|
|
14
|
+
|
|
15
|
+
## Required Environment
|
|
16
|
+
|
|
17
|
+
The `sdd-doc-set` convention (folder layout, document ownership, tiers, extension-doc
|
|
18
|
+
vocabulary, ID scheme) ships in the SDD bundle and defines the target structure. If it is
|
|
19
|
+
unavailable, report that as a blocker.
|
|
20
|
+
|
|
21
|
+
## Required Inputs and Context
|
|
22
|
+
|
|
23
|
+
- The repository root.
|
|
24
|
+
- The location(s) of any existing documentation, if known.
|
|
25
|
+
- Any tier preference or scope constraint from the user.
|
|
26
|
+
|
|
27
|
+
## Procedure
|
|
28
|
+
|
|
29
|
+
Apply the Stop Conditions throughout; halt and report when any is met.
|
|
30
|
+
|
|
31
|
+
1. Inventory existing documentation: list each doc and the concern it actually covers.
|
|
32
|
+
2. Inventory the code at a high level to infer architecture, integrations, data, and the
|
|
33
|
+
features that exist but may be undocumented. Mark inferences as assumptions.
|
|
34
|
+
3. Map existing material to each target document and to candidate feature folders.
|
|
35
|
+
4. Recommend a tier, justified by project size and the material found.
|
|
36
|
+
5. For each target document, classify the action: `reuse as-is`, `migrate content`,
|
|
37
|
+
`create new`, or `not needed` for the tier.
|
|
38
|
+
6. Identify features to extract into `features/F<NNN>_*` folders, with proposed short names.
|
|
39
|
+
7. Flag conflicts: duplicated concerns across existing docs, content that violates SDD
|
|
40
|
+
ownership boundaries, and stale or contradictory material.
|
|
41
|
+
8. Order the plan so foundational documents precede dependent ones.
|
|
42
|
+
|
|
43
|
+
## Stop Conditions
|
|
44
|
+
|
|
45
|
+
Stop and report a blocker when the repository root cannot be read, or when existing
|
|
46
|
+
documentation conflicts so fundamentally that mapping requires a user decision. Do not
|
|
47
|
+
fabricate project facts to fill gaps.
|
|
48
|
+
|
|
49
|
+
## Output Contract
|
|
50
|
+
|
|
51
|
+
Emit:
|
|
52
|
+
|
|
53
|
+
`Agent: sdd-gap-analyzer - output below`
|
|
54
|
+
|
|
55
|
+
Then include:
|
|
56
|
+
|
|
57
|
+
### Summary
|
|
58
|
+
|
|
59
|
+
Recommended tier and a one-paragraph assessment of the current state.
|
|
60
|
+
|
|
61
|
+
### Document Mapping
|
|
62
|
+
|
|
63
|
+
| Target doc | Existing source | Action | Notes |
|
|
64
|
+
| --- | --- | --- | --- |
|
|
65
|
+
|
|
66
|
+
Action: `reuse as-is`, `migrate content`, `create new`, `not needed`.
|
|
67
|
+
|
|
68
|
+
### Candidate Features
|
|
69
|
+
|
|
70
|
+
| Proposed ID | Short name | Evidence | Source |
|
|
71
|
+
| --- | --- | --- | --- |
|
|
72
|
+
|
|
73
|
+
### Conflicts & Assumptions
|
|
74
|
+
|
|
75
|
+
List ownership violations, duplications, contradictions, and inferences used, or `none`.
|
|
76
|
+
|
|
77
|
+
### Adoption Plan
|
|
78
|
+
|
|
79
|
+
An ordered list of steps to reach the recommended tier, foundational docs first.
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sdd-spec-reviewer
|
|
3
|
+
description: Reviews an SDD docs/ tree (or a subset) for completeness against its tier, document-ownership boundaries, testable acceptance criteria, and traceability integrity up and down the spine. Use to review specs before implementation or after a docs change. Read-only.
|
|
4
|
+
tools: Read, Grep, Glob
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Scope
|
|
8
|
+
|
|
9
|
+
- Review the SDD documents under a `docs/` tree, or a named subset, for quality and
|
|
10
|
+
internal consistency.
|
|
11
|
+
- Check completeness for the project's tier, document-ownership boundaries, the testability
|
|
12
|
+
of acceptance criteria, and traceability across the spine.
|
|
13
|
+
- This agent is read-only. It does not modify files; it reports findings.
|
|
14
|
+
|
|
15
|
+
## Required Environment
|
|
16
|
+
|
|
17
|
+
The `sdd-doc-set` convention (tiers, document ownership, ID scheme, traceability spine)
|
|
18
|
+
ships in the SDD bundle and is the authority for every check below. If it is unavailable,
|
|
19
|
+
report that as a blocker.
|
|
20
|
+
|
|
21
|
+
## Required Inputs and Context
|
|
22
|
+
|
|
23
|
+
- The `docs/` root, or the specific documents/features to review.
|
|
24
|
+
- The project tier (`Lean`, `Standard`, `Full`) when known; otherwise infer it from the
|
|
25
|
+
documents present and state the inference.
|
|
26
|
+
|
|
27
|
+
## Procedure
|
|
28
|
+
|
|
29
|
+
Apply the Stop Conditions throughout; halt and report when any is met.
|
|
30
|
+
|
|
31
|
+
1. Load the convention. Establish the tier and the documents it expects.
|
|
32
|
+
2. Completeness: confirm each expected document exists and its required sections are filled,
|
|
33
|
+
not left as template placeholders. Flag missing or empty documents.
|
|
34
|
+
3. Ownership: flag content that duplicates a concern owned by another document instead of
|
|
35
|
+
linking to it, and name the canonical owner.
|
|
36
|
+
4. Acceptance criteria: flag any criterion that is not observable or testable.
|
|
37
|
+
5. Traceability: confirm each requirement links up to an `idea`/`roadmap` item and down to
|
|
38
|
+
at least one task and one scenario; each scenario links to a requirement; each ADR has a
|
|
39
|
+
status. Flag every broken or missing link.
|
|
40
|
+
6. Index: flag mismatches between `INDEX.md` and the documents and features that exist.
|
|
41
|
+
7. Classify each finding by severity and state the smallest fix.
|
|
42
|
+
|
|
43
|
+
## Stop Conditions
|
|
44
|
+
|
|
45
|
+
Stop and report a blocker when the docs root cannot be located or is not a recognizable SDD
|
|
46
|
+
doc tree. Do not invent missing facts or rewrite documents to resolve a finding.
|
|
47
|
+
|
|
48
|
+
## Output Contract
|
|
49
|
+
|
|
50
|
+
Emit:
|
|
51
|
+
|
|
52
|
+
`Agent: sdd-spec-reviewer - output below`
|
|
53
|
+
|
|
54
|
+
Then include:
|
|
55
|
+
|
|
56
|
+
### Verdict
|
|
57
|
+
|
|
58
|
+
One of: `Pass`, `Pass with minor findings`, `Needs revision`, `Blocked`.
|
|
59
|
+
|
|
60
|
+
### Findings
|
|
61
|
+
|
|
62
|
+
| Document | Severity | Area | Finding | Suggested fix |
|
|
63
|
+
| --- | --- | --- | --- | --- |
|
|
64
|
+
|
|
65
|
+
Severity: `Blocking`, `Major`, `Minor`, `Info`. Area: `Completeness`, `Ownership`,
|
|
66
|
+
`Acceptance Criteria`, `Traceability`, `Index`.
|
|
67
|
+
|
|
68
|
+
### Traceability Gaps
|
|
69
|
+
|
|
70
|
+
List requirements without a task or scenario, scenarios without a requirement, and ADRs
|
|
71
|
+
without a status, or `none`.
|
|
72
|
+
|
|
73
|
+
### Final Recommendation
|
|
74
|
+
|
|
75
|
+
State the smallest safe next action.
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# SDD Doc Set
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Define the canonical Spec-Driven Development document set: the folder layout, what each
|
|
6
|
+
document owns, the feature-folder schema, the identifier scheme, the tiers, and the
|
|
7
|
+
traceability spine that links intent down to verification.
|
|
8
|
+
|
|
9
|
+
This convention is factual and structural. It defines what the doc set *is*, not how an
|
|
10
|
+
agent creates or reviews it. Creation lives in the SDD skills; sequencing lives in the SDD
|
|
11
|
+
pipelines.
|
|
12
|
+
|
|
13
|
+
## Folder Layout
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
docs/
|
|
17
|
+
INDEX.md
|
|
18
|
+
idea.md
|
|
19
|
+
architecture.md
|
|
20
|
+
design.md
|
|
21
|
+
testing.md
|
|
22
|
+
roadmap.md
|
|
23
|
+
<extension docs, optional: api.md, db.md, security.md, operations.md, ...>
|
|
24
|
+
decisions/ADR-NNN-<slug>.md
|
|
25
|
+
features/F<NNN>_<short-name>/{requirements.md,tasks.md,scenarios.md}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
The authoritative documentation root is `docs/`. If a project already keeps authoritative
|
|
29
|
+
docs elsewhere, preserve that root and record it in `INDEX.md` rather than relocating files.
|
|
30
|
+
|
|
31
|
+
## Document Ownership
|
|
32
|
+
|
|
33
|
+
Each document owns one concern. Do not duplicate a concern across documents; link instead.
|
|
34
|
+
|
|
35
|
+
| Document | Owns | Does not own |
|
|
36
|
+
| --- | --- | --- |
|
|
37
|
+
| `idea.md` | Problem, users/personas, value, in/out scope, non-goals, principles, success signals | Technical structure, UX detail |
|
|
38
|
+
| `architecture.md` | System context, components, data model, tech stack, integrations, constraints, cross-cutting concerns | Product/UX flows, decisions log |
|
|
39
|
+
| `design.md` | Product/UX design: user flows, key screens and states (empty/loading/error), interaction patterns, UX principles, accessibility | Technical components, code structure |
|
|
40
|
+
| `testing.md` | Test strategy: levels, tooling, environments, coverage expectations, quality gates, how feature `scenarios.md` and checklists are executed | Per-feature scenario content |
|
|
41
|
+
| `roadmap.md` | Phases, milestones, release stance, sequencing, dependencies, non-goals over time | Per-feature task breakdown |
|
|
42
|
+
| `decisions/` | One ADR per significant decision: context, decision, status, consequences, alternatives | Behavioral rules |
|
|
43
|
+
| `INDEX.md` | Live map of all docs + the feature registry with status and traceability links | Any authority or behavioral rule |
|
|
44
|
+
|
|
45
|
+
`INDEX.md` is a lookup aid only. It must not contain routing, gates, or behavioral rules.
|
|
46
|
+
|
|
47
|
+
## Optional Extension Docs
|
|
48
|
+
|
|
49
|
+
`architecture.md` is the always-present technical overview. When a topic would bloat it,
|
|
50
|
+
move the detail into an extension doc and leave a one-paragraph summary plus a link in
|
|
51
|
+
`architecture.md`. Extension docs are optional, tier-independent, and added only when
|
|
52
|
+
warranted.
|
|
53
|
+
|
|
54
|
+
Use this recognized vocabulary so names stay consistent across projects:
|
|
55
|
+
|
|
56
|
+
| Doc | Owns |
|
|
57
|
+
| --- | --- |
|
|
58
|
+
| `api.md` | API / interface contracts |
|
|
59
|
+
| `db.md` | Persistence: data model, schema, migrations |
|
|
60
|
+
| `security.md` | Threat model, authn/authz, secrets handling |
|
|
61
|
+
| `operations.md` | Deployment, runtime, observability, runbooks |
|
|
62
|
+
| `integrations.md` | External service contracts and dependencies |
|
|
63
|
+
| `glossary.md` | Domain vocabulary |
|
|
64
|
+
|
|
65
|
+
Add a doc outside this list only when none fits; record it in `INDEX.md` so it is discoverable.
|
|
66
|
+
|
|
67
|
+
### When to split
|
|
68
|
+
|
|
69
|
+
Split a section out of `architecture.md` when any of these hold:
|
|
70
|
+
|
|
71
|
+
- it is routinely consulted on its own,
|
|
72
|
+
- it has its own audience or lifecycle, or
|
|
73
|
+
- it has grown large enough to hurt selective loading (context pollution).
|
|
74
|
+
|
|
75
|
+
Splitting always leaves a summary + link behind in `architecture.md` and a registry row in
|
|
76
|
+
`INDEX.md`. The same rule applies to any main doc, e.g. `design.md`.
|
|
77
|
+
|
|
78
|
+
### Placement and escalation
|
|
79
|
+
|
|
80
|
+
Extension docs default to flat files at the `docs/` root (`docs/api.md`). When one topic
|
|
81
|
+
grows into a family — for example several API areas or subsystems — promote it to a
|
|
82
|
+
subfolder `docs/<domain>/` with its own mini-index, and link to that index from
|
|
83
|
+
`architecture.md` and `INDEX.md`. Do not create subfolders pre-emptively.
|
|
84
|
+
|
|
85
|
+
## Feature Folder Schema
|
|
86
|
+
|
|
87
|
+
Each feature is a folder `features/F<NNN>_<short-name>/` containing exactly:
|
|
88
|
+
|
|
89
|
+
- `requirements.md` — feature summary, links up to the `idea.md`/`roadmap.md` item it
|
|
90
|
+
serves, functional requirements (each with an ID), acceptance criteria, constraints,
|
|
91
|
+
explicit out-of-scope.
|
|
92
|
+
- `tasks.md` — task breakdown; each task has an ID, a status, dependencies, and a link to
|
|
93
|
+
the requirement ID(s) it implements.
|
|
94
|
+
- `scenarios.md` — behavior verification: Gherkin `Given/When/Then` scenarios plus a manual
|
|
95
|
+
verification checklist; each scenario links to the requirement ID(s) it covers.
|
|
96
|
+
|
|
97
|
+
## Identifier Scheme
|
|
98
|
+
|
|
99
|
+
- Feature: `F<NNN>` with a zero-padded sequential number, e.g. `F001`. Folder name is
|
|
100
|
+
`F<NNN>_<short-name>` where `<short-name>` is a kebab-case slug.
|
|
101
|
+
- Requirement: `F<NNN>-R<n>`, e.g. `F001-R1`.
|
|
102
|
+
- Task: `F<NNN>-T<n>`, e.g. `F001-T1`.
|
|
103
|
+
- Scenario: `F<NNN>-S<n>`, e.g. `F001-S1`.
|
|
104
|
+
- Decision: `ADR-<NNN>`, zero-padded sequential, e.g. `ADR-001`.
|
|
105
|
+
|
|
106
|
+
IDs are stable once assigned. Do not renumber existing IDs; mark superseded items instead.
|
|
107
|
+
|
|
108
|
+
## Tiers
|
|
109
|
+
|
|
110
|
+
A project adopts one tier; tiers are additive supersets.
|
|
111
|
+
|
|
112
|
+
- **Lean** — `idea.md`, `architecture.md`, `roadmap.md`, `INDEX.md`. No `features/`.
|
|
113
|
+
- **Standard** (default) — Lean + `design.md`, `testing.md`, `decisions/`, and `features/`.
|
|
114
|
+
- **Full** — Standard with full per-feature requirement IDs, scenarios for every
|
|
115
|
+
requirement, and an ADR for every significant decision.
|
|
116
|
+
|
|
117
|
+
Omit documents a tier does not include rather than shipping empty placeholders.
|
|
118
|
+
|
|
119
|
+
## Traceability Spine
|
|
120
|
+
|
|
121
|
+
Intent flows down and verification links back up:
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
idea.md
|
|
125
|
+
└─ roadmap.md (phase/milestone)
|
|
126
|
+
└─ features/F<NNN>/requirements.md (F<NNN>-R<n>)
|
|
127
|
+
├─ tasks.md (F<NNN>-T<n> → F<NNN>-R<n>)
|
|
128
|
+
└─ scenarios.md (F<NNN>-S<n> → F<NNN>-R<n>)
|
|
129
|
+
architecture.md / design.md constrain feature requirements
|
|
130
|
+
decisions/ADR-<NNN> records why a constraint or direction was chosen
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Every requirement should trace up to an `idea.md` scope item or `roadmap.md` entry, and
|
|
134
|
+
down to at least one task and one scenario. `INDEX.md` records the current state of these
|
|
135
|
+
links. A requirement with no scenario, or a scenario with no requirement, is a traceability
|
|
136
|
+
gap that review must flag.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Pipeline: SDD Adopt
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Pre-defined routing plan for introducing or expanding a Spec-Driven Development `docs/` tree
|
|
6
|
+
in a project that already has documentation, code, or both. It sequences the SDD bundle's
|
|
7
|
+
gap analysis, authoring skills, and review so existing material is reconciled rather than
|
|
8
|
+
discarded.
|
|
9
|
+
|
|
10
|
+
This pipeline is a routing artifact. It sequences existing capabilities. It does not
|
|
11
|
+
implement step logic and does not emit its own output artifact.
|
|
12
|
+
|
|
13
|
+
## When to Apply
|
|
14
|
+
|
|
15
|
+
- The project already has substantive documentation or code and the user wants to adopt or
|
|
16
|
+
expand the SDD doc set.
|
|
17
|
+
- Use the bootstrap pipeline instead when starting from no docs.
|
|
18
|
+
|
|
19
|
+
## Inputs
|
|
20
|
+
|
|
21
|
+
- The repository root.
|
|
22
|
+
- The location(s) of any existing documentation, if known.
|
|
23
|
+
- Any tier preference or scope constraint from the user.
|
|
24
|
+
|
|
25
|
+
## Stages
|
|
26
|
+
|
|
27
|
+
| Stage | Capability | Required Visible Artifact |
|
|
28
|
+
| --- | --- | --- |
|
|
29
|
+
| 1. Intake | direct — confirm repo root, existing docs, scope | none |
|
|
30
|
+
| 2. Gap analysis | `Agent: sdd-gap-analyzer` | `Agent: sdd-gap-analyzer - output below` |
|
|
31
|
+
| 3. Confirm plan | direct — accept the plan; when it has ambiguous choices, confirm with the user | none |
|
|
32
|
+
| 4. Reconcile docs | `Skill: sdd-doc-author` (once per doc marked migrate/create) | `Skill: sdd-doc-author - output below` |
|
|
33
|
+
| 5. Features | `Skill: sdd-feature-author` (once per extracted feature) | `Skill: sdd-feature-author - output below` |
|
|
34
|
+
| 6. Index | `Skill: sdd-index-sync` | `Skill: sdd-index-sync - output below` |
|
|
35
|
+
| 7. Review | `Agent: sdd-spec-reviewer` | `Agent: sdd-spec-reviewer - output below` |
|
|
36
|
+
| 8. Suggest companions | direct — present this bundle's `RECOMMENDS.md` companions; install any the user adopts via the kit-adopt path | a note of companions offered and which were adopted |
|
|
37
|
+
|
|
38
|
+
Author docs in the order the gap-analysis plan specifies (foundational docs first). Stage 8
|
|
39
|
+
is opt-in and may be declined. Do not advance past a stage whose expected visible artifact is
|
|
40
|
+
missing.
|
|
41
|
+
|
|
42
|
+
## Authority Sources
|
|
43
|
+
|
|
44
|
+
- the `sdd-doc-set` convention
|
|
45
|
+
- the bundle's templates under `templates/`
|
|
46
|
+
- the stage 2 gap-analysis output
|
|
47
|
+
|
|
48
|
+
## Stop Conditions
|
|
49
|
+
|
|
50
|
+
- The gap analysis reports a fundamental conflict requiring a user decision — resolve at
|
|
51
|
+
stage 3 before authoring.
|
|
52
|
+
- A doc-authoring or feature step blocks — resolve before advancing.
|
|
53
|
+
- `sdd-spec-reviewer` verdict is `Needs revision` — fix the cited findings, re-run the
|
|
54
|
+
affected stage and stage 6, then re-run stage 7.
|
|
55
|
+
- The convention or repository root cannot be read — stop and report the missing source.
|
|
56
|
+
|
|
57
|
+
## Output Contract
|
|
58
|
+
|
|
59
|
+
The pipeline emits no artifact of its own. Each stage emits its own contract artifact as
|
|
60
|
+
listed above.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Pipeline: SDD Bootstrap
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Pre-defined routing plan for establishing a Spec-Driven Development `docs/` tree in a
|
|
6
|
+
project from scratch. It sequences the SDD bundle's skills and agents so the result conforms
|
|
7
|
+
to the `sdd-doc-set` convention.
|
|
8
|
+
|
|
9
|
+
This pipeline is a routing artifact. It sequences existing capabilities. It does not
|
|
10
|
+
implement step logic and does not emit its own output artifact.
|
|
11
|
+
|
|
12
|
+
## When to Apply
|
|
13
|
+
|
|
14
|
+
- The project has no SDD docs, or only an empty/placeholder docs tree, and the user wants to
|
|
15
|
+
create the specification set from scratch.
|
|
16
|
+
- Use the adoption pipeline instead when the project already has substantive documentation
|
|
17
|
+
or code to reconcile.
|
|
18
|
+
|
|
19
|
+
## Inputs
|
|
20
|
+
|
|
21
|
+
- Source of project intent (user description, brief, or notes).
|
|
22
|
+
- Chosen tier: `Lean`, `Standard` (default), or `Full`.
|
|
23
|
+
- The `docs/` root (or the project's chosen authoritative docs root).
|
|
24
|
+
|
|
25
|
+
## Stages
|
|
26
|
+
|
|
27
|
+
| Stage | Capability | Required Visible Artifact |
|
|
28
|
+
| --- | --- | --- |
|
|
29
|
+
| 1. Intake | direct — confirm tier, docs root, and source of intent | none |
|
|
30
|
+
| 2. Idea | `Skill: sdd-doc-author` (idea.md) | `Skill: sdd-doc-author - output below` |
|
|
31
|
+
| 3. Architecture | `Skill: sdd-doc-author` (architecture.md, + extension docs if warranted) | `Skill: sdd-doc-author - output below` |
|
|
32
|
+
| 4. Design (Standard+) | `Skill: sdd-doc-author` (design.md) | `Skill: sdd-doc-author - output below` |
|
|
33
|
+
| 5. Testing (Standard+) | `Skill: sdd-doc-author` (testing.md) | `Skill: sdd-doc-author - output below` |
|
|
34
|
+
| 6. Roadmap | `Skill: sdd-doc-author` (roadmap.md) | `Skill: sdd-doc-author - output below` |
|
|
35
|
+
| 7. Features (Standard+) | `Skill: sdd-feature-author` (once per feature) | `Skill: sdd-feature-author - output below` |
|
|
36
|
+
| 8. Index | `Skill: sdd-index-sync` | `Skill: sdd-index-sync - output below` |
|
|
37
|
+
| 9. Review | `Agent: sdd-spec-reviewer` | `Agent: sdd-spec-reviewer - output below` |
|
|
38
|
+
| 10. Suggest companions | direct — present this bundle's `RECOMMENDS.md` companions; install any the user adopts via the kit-adopt path | a note of companions offered and which were adopted |
|
|
39
|
+
|
|
40
|
+
On the `Lean` tier, skip stages 4, 5, and 7. Stage 10 is opt-in and may be declined. Do not
|
|
41
|
+
advance past a stage whose expected visible artifact is missing.
|
|
42
|
+
|
|
43
|
+
## Authority Sources
|
|
44
|
+
|
|
45
|
+
- the `sdd-doc-set` convention
|
|
46
|
+
- the bundle's templates under `templates/`
|
|
47
|
+
|
|
48
|
+
## Stop Conditions
|
|
49
|
+
|
|
50
|
+
- Tier or docs root is ambiguous — return to stage 1.
|
|
51
|
+
- A doc-authoring step blocks (ownership conflict, unverifiable facts) — resolve before
|
|
52
|
+
advancing.
|
|
53
|
+
- `sdd-spec-reviewer` verdict is `Needs revision` — fix the cited findings, re-run the
|
|
54
|
+
affected authoring stage and stage 8, then re-run stage 9.
|
|
55
|
+
- The convention cannot be read — stop and report the missing source.
|
|
56
|
+
|
|
57
|
+
## Output Contract
|
|
58
|
+
|
|
59
|
+
The pipeline emits no artifact of its own. Each stage emits its own contract artifact as
|
|
60
|
+
listed above.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sdd-doc-author
|
|
3
|
+
description: Authors or updates a single main or extension document in a docs/ SDD tree from the matching template, keeping each document within its ownership boundary. Use when creating or revising idea, architecture, design, testing, roadmap, an ADR, or an extension doc (api, db, security, operations, integrations, glossary).
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Scope
|
|
7
|
+
|
|
8
|
+
- Create or revise exactly one document per run: a main doc (`idea`, `architecture`,
|
|
9
|
+
`design`, `testing`, `roadmap`), one ADR under `decisions/`, or one extension doc.
|
|
10
|
+
- Keep the document within the concern it owns per the doc-set convention; link to other
|
|
11
|
+
docs instead of duplicating their content.
|
|
12
|
+
- Do not create or edit feature folders, rebuild `INDEX.md`, or invent facts — those are
|
|
13
|
+
separate concerns handled outside this skill.
|
|
14
|
+
|
|
15
|
+
## Required Environment
|
|
16
|
+
|
|
17
|
+
This skill ships in the SDD bundle and depends on two files that travel with it:
|
|
18
|
+
- the `sdd-doc-set` convention (document ownership, tiers, extension-doc vocabulary,
|
|
19
|
+
split rule, ID scheme) — the authority for every decision below;
|
|
20
|
+
- the matching template under the bundle's `templates/docs/`.
|
|
21
|
+
|
|
22
|
+
If either is unavailable, report it as a blocker before writing.
|
|
23
|
+
|
|
24
|
+
## Inputs
|
|
25
|
+
|
|
26
|
+
- Target document and whether the run is `new` or `revise`.
|
|
27
|
+
- The project tier (`Lean`, `Standard`, `Full`) when relevant to whether the doc applies.
|
|
28
|
+
- Confirmed source content from the user, repository evidence, or existing docs.
|
|
29
|
+
|
|
30
|
+
## Procedure
|
|
31
|
+
|
|
32
|
+
Apply the Stop Conditions throughout; halt and report when any is met.
|
|
33
|
+
|
|
34
|
+
1. Identify the target document and the concern it owns per the convention. If the doc is
|
|
35
|
+
not part of the project's tier, stop and report it.
|
|
36
|
+
2. Load the matching template and, in `revise` mode, the existing document.
|
|
37
|
+
3. Gather the confirmed inputs. Mark anything inferred as an assumption.
|
|
38
|
+
4. Write or update the document section by section. Keep content inside the doc's ownership
|
|
39
|
+
boundary; when material belongs to another doc, place it there or leave a link, not a copy.
|
|
40
|
+
5. For `architecture.md`, apply the convention's split rule: when a section would bloat the
|
|
41
|
+
overview, move detail to the named extension doc and leave a summary plus link behind.
|
|
42
|
+
6. Note whether `INDEX.md` needs to be re-synced as a result of this change. Do not edit
|
|
43
|
+
`INDEX.md` here.
|
|
44
|
+
|
|
45
|
+
## Stop Conditions
|
|
46
|
+
|
|
47
|
+
Stop and report a blocker when:
|
|
48
|
+
- the document's owning concern is ambiguous or overlaps another doc with no clear owner;
|
|
49
|
+
- the requested content conflicts with content already owned by another doc;
|
|
50
|
+
- required facts cannot be verified from user input, repository evidence, or existing docs.
|
|
51
|
+
|
|
52
|
+
## Output Contract
|
|
53
|
+
|
|
54
|
+
Emit:
|
|
55
|
+
|
|
56
|
+
`Skill: sdd-doc-author - output below`
|
|
57
|
+
|
|
58
|
+
Then include:
|
|
59
|
+
|
|
60
|
+
| Field | Content |
|
|
61
|
+
| --- | --- |
|
|
62
|
+
| Status | `completed`, `blocked`, or `skipped` |
|
|
63
|
+
| Document | File written or updated |
|
|
64
|
+
| Mode | `new` or `revise` |
|
|
65
|
+
| Sections | Sections created or changed |
|
|
66
|
+
| Ownership & links | Content moved or linked to other docs, or `none` |
|
|
67
|
+
| INDEX sync needed | `yes` or `no` |
|
|
68
|
+
| Assumptions | Inferences used, or `none` |
|
|
69
|
+
| Blockers | Unresolved issues, or `none` |
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sdd-feature-author
|
|
3
|
+
description: Scaffolds or updates one feature folder (requirements, tasks, scenarios) as a unit in a docs/ SDD tree, with stable feature, requirement, task, and scenario IDs and traceability links. Use when adding or revising a feature.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Scope
|
|
7
|
+
|
|
8
|
+
- Create or revise exactly one feature folder per run at `features/F<NNN>_<short-name>/`,
|
|
9
|
+
producing or updating `requirements.md`, `tasks.md`, and `scenarios.md` together.
|
|
10
|
+
- Assign and preserve IDs per the doc-set convention: feature `F<NNN>`, requirement
|
|
11
|
+
`F<NNN>-R<n>`, task `F<NNN>-T<n>`, scenario `F<NNN>-S<n>`.
|
|
12
|
+
- Maintain traceability: each requirement links up to an `idea.md` scope item or
|
|
13
|
+
`roadmap.md` entry, and down to at least one task and one scenario.
|
|
14
|
+
- Do not edit main or extension docs, rebuild `INDEX.md`, or renumber existing IDs.
|
|
15
|
+
|
|
16
|
+
## Required Environment
|
|
17
|
+
|
|
18
|
+
This skill ships in the SDD bundle and depends on files that travel with it:
|
|
19
|
+
- the `sdd-doc-set` convention (feature-folder schema, ID scheme, traceability spine);
|
|
20
|
+
- the feature templates under the bundle's `templates/features/F000_template/`.
|
|
21
|
+
|
|
22
|
+
If either is unavailable, report it as a blocker before writing.
|
|
23
|
+
|
|
24
|
+
## Inputs
|
|
25
|
+
|
|
26
|
+
- Feature intent and short name.
|
|
27
|
+
- The `idea.md` scope item or `roadmap.md` entry the feature serves.
|
|
28
|
+
- Mode: `new` or `revise` (with the existing feature ID when revising).
|
|
29
|
+
|
|
30
|
+
## Procedure
|
|
31
|
+
|
|
32
|
+
Apply the Stop Conditions throughout; halt and report when any is met.
|
|
33
|
+
|
|
34
|
+
1. Determine the feature ID: in `new` mode use the next free sequential `F<NNN>`; in
|
|
35
|
+
`revise` mode use the existing folder. Build the slug `F<NNN>_<short-name>`.
|
|
36
|
+
2. Write `requirements.md`: summary, the served `idea`/`roadmap` link, requirements with
|
|
37
|
+
`F<NNN>-R<n>` IDs, acceptance criteria, constraints, and explicit out-of-scope.
|
|
38
|
+
3. Write `tasks.md`: tasks with `F<NNN>-T<n>` IDs, each linked to the requirement(s) it
|
|
39
|
+
implements, with status and dependencies.
|
|
40
|
+
4. Write `scenarios.md`: Gherkin scenarios with `F<NNN>-S<n>` IDs linked to requirements,
|
|
41
|
+
plus a manual verification checklist.
|
|
42
|
+
5. Verify each requirement has at least one task and one scenario. Flag any requirement,
|
|
43
|
+
task, or scenario that lacks a link as a traceability gap.
|
|
44
|
+
6. Note that `INDEX.md` needs re-syncing. Do not edit `INDEX.md` here.
|
|
45
|
+
|
|
46
|
+
## Stop Conditions
|
|
47
|
+
|
|
48
|
+
Stop and report a blocker when:
|
|
49
|
+
- a requirement cannot be traced up to an `idea.md` or `roadmap.md` item;
|
|
50
|
+
- two stated requirements directly conflict;
|
|
51
|
+
- the chosen feature ID or slug collides with an existing feature.
|
|
52
|
+
|
|
53
|
+
## Output Contract
|
|
54
|
+
|
|
55
|
+
Emit:
|
|
56
|
+
|
|
57
|
+
`Skill: sdd-feature-author - output below`
|
|
58
|
+
|
|
59
|
+
Then include:
|
|
60
|
+
|
|
61
|
+
| Field | Content |
|
|
62
|
+
| --- | --- |
|
|
63
|
+
| Status | `completed`, `blocked`, or `skipped` |
|
|
64
|
+
| Feature | `F<NNN>_<short-name>` |
|
|
65
|
+
| Mode | `new` or `revise` |
|
|
66
|
+
| Requirements | Count and IDs |
|
|
67
|
+
| Tasks | Count and IDs |
|
|
68
|
+
| Scenarios | Count and IDs |
|
|
69
|
+
| Traceability gaps | Requirements without a task or scenario, or `none` |
|
|
70
|
+
| INDEX sync needed | `yes` |
|
|
71
|
+
| Blockers | Unresolved issues, or `none` |
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sdd-index-sync
|
|
3
|
+
description: Rebuilds docs/INDEX.md (document map, feature registry, decision log) from the current docs tree so the index reflects the files that actually exist. Use after any doc, feature, or ADR change.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Scope
|
|
7
|
+
|
|
8
|
+
- Regenerate `docs/INDEX.md` only, from the present state of the docs tree.
|
|
9
|
+
- Register the main and extension docs that exist, the feature folders with their counts
|
|
10
|
+
and status, and the ADRs with their status.
|
|
11
|
+
- Do not edit any document other than `INDEX.md`, invent statuses, or add routing, gates,
|
|
12
|
+
or behavioral rules to the index.
|
|
13
|
+
|
|
14
|
+
## Required Environment
|
|
15
|
+
|
|
16
|
+
This skill ships in the SDD bundle and depends on files that travel with it:
|
|
17
|
+
- the `sdd-doc-set` convention (what belongs in the index and the ID scheme);
|
|
18
|
+
- the `INDEX.md` template under the bundle's `templates/docs/`.
|
|
19
|
+
|
|
20
|
+
If the docs root cannot be located, report it as a blocker.
|
|
21
|
+
|
|
22
|
+
## Inputs
|
|
23
|
+
|
|
24
|
+
- The `docs/` root (or the project's recorded authoritative docs root).
|
|
25
|
+
|
|
26
|
+
## Procedure
|
|
27
|
+
|
|
28
|
+
Apply the Stop Conditions throughout; halt and report when any is met.
|
|
29
|
+
|
|
30
|
+
1. Scan the docs root for present main docs and extension docs.
|
|
31
|
+
2. Scan `features/` for `F<NNN>_*` folders; for each, count requirements, tasks, and
|
|
32
|
+
scenarios by their IDs and read the feature status if recorded.
|
|
33
|
+
3. Scan `decisions/` for `ADR-*` files and read each status.
|
|
34
|
+
4. Render `INDEX.md` from the template: the document table (present docs only), the feature
|
|
35
|
+
registry, and the decision log.
|
|
36
|
+
5. Preserve human-curated "read when" descriptions and notes where they already exist;
|
|
37
|
+
replace only the generated registry rows.
|
|
38
|
+
6. Flag traceability gaps surfaced while counting (a feature with no scenarios, an ADR with
|
|
39
|
+
no status) without resolving them.
|
|
40
|
+
|
|
41
|
+
## Stop Conditions
|
|
42
|
+
|
|
43
|
+
Stop and report a blocker when the docs root cannot be located or is not a recognizable
|
|
44
|
+
SDD doc tree.
|
|
45
|
+
|
|
46
|
+
## Output Contract
|
|
47
|
+
|
|
48
|
+
Emit:
|
|
49
|
+
|
|
50
|
+
`Skill: sdd-index-sync - output below`
|
|
51
|
+
|
|
52
|
+
Then include:
|
|
53
|
+
|
|
54
|
+
| Field | Content |
|
|
55
|
+
| --- | --- |
|
|
56
|
+
| Status | `completed`, `blocked`, or `skipped` |
|
|
57
|
+
| Docs registered | Count and names |
|
|
58
|
+
| Features registered | Count and IDs |
|
|
59
|
+
| ADRs registered | Count and IDs |
|
|
60
|
+
| Gaps flagged | Traceability gaps found, or `none` |
|
|
61
|
+
| Blockers | Unresolved issues, or `none` |
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Documentation Index
|
|
2
|
+
|
|
3
|
+
<!-- Live map of the docs tree and feature registry. Lookup aid only:
|
|
4
|
+
no routing, gates, or behavioral rules. Keep in sync after any doc/feature change
|
|
5
|
+
(the sdd-index-sync skill rebuilds this file). -->
|
|
6
|
+
|
|
7
|
+
**Tier:** <Lean | Standard | Full>
|
|
8
|
+
**Docs root:** `docs/`
|
|
9
|
+
|
|
10
|
+
## Documents
|
|
11
|
+
|
|
12
|
+
| Document | Owns | Read when |
|
|
13
|
+
| --- | --- | --- |
|
|
14
|
+
| `idea.md` | Problem, users, scope, principles | You need project intent or scope boundaries |
|
|
15
|
+
| `architecture.md` | Technical structure | You need components, data, stack, constraints |
|
|
16
|
+
| `design.md` | Product/UX design | You need flows, screens, states |
|
|
17
|
+
| `testing.md` | Test strategy | You need how quality is verified |
|
|
18
|
+
| `roadmap.md` | Phases and sequencing | You need release plan or priorities |
|
|
19
|
+
| `decisions/` | Architectural decisions | You need the rationale behind a choice |
|
|
20
|
+
|
|
21
|
+
<!-- Add a row for each optional extension doc that exists, e.g.: -->
|
|
22
|
+
<!-- | `api.md` | API / interface contracts | You need request/response details | -->
|
|
23
|
+
<!-- | `db.md` | Data model and schema | You need entities or migrations | -->
|
|
24
|
+
|
|
25
|
+
## Feature Registry
|
|
26
|
+
|
|
27
|
+
| ID | Feature | Status | Requirements | Tasks | Scenarios | Serves |
|
|
28
|
+
| --- | --- | --- | --- | --- | --- | --- |
|
|
29
|
+
| F001 | <short-name> | <planned/in-progress/done> | <n> | <n> | <n> | <idea/roadmap item> |
|
|
30
|
+
|
|
31
|
+
## Decision Log
|
|
32
|
+
|
|
33
|
+
| ADR | Title | Status |
|
|
34
|
+
| --- | --- | --- |
|
|
35
|
+
| ADR-001 | <title> | <proposed/accepted/superseded> |
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# API
|
|
2
|
+
|
|
3
|
+
<!-- Optional extension doc. Owns API / interface contracts split out of architecture.md.
|
|
4
|
+
Leave a summary + link in architecture.md. Register this doc in INDEX.md.
|
|
5
|
+
When the API grows into several areas, promote to docs/api/ with a mini-index. -->
|
|
6
|
+
|
|
7
|
+
## Overview
|
|
8
|
+
|
|
9
|
+
<!-- Style (REST/GraphQL/RPC), base URL, versioning, auth requirement. -->
|
|
10
|
+
|
|
11
|
+
## Conventions
|
|
12
|
+
|
|
13
|
+
<!-- Shared rules: auth, pagination, errors, status codes, content types. -->
|
|
14
|
+
|
|
15
|
+
## Endpoints
|
|
16
|
+
|
|
17
|
+
### <METHOD> <path>
|
|
18
|
+
|
|
19
|
+
- **Purpose:** <what it does>
|
|
20
|
+
- **Auth:** <required scope/role, or none>
|
|
21
|
+
- **Request:** <params / body schema>
|
|
22
|
+
- **Response:** <status + body schema>
|
|
23
|
+
- **Errors:** <notable error cases>
|