agent-manifesto-kit 0.0.0-development → 1.1.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 (69) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +159 -95
  3. package/collection/NOTICE.md +36 -36
  4. package/collection/agents/code-reviewer.md +103 -103
  5. package/collection/agents/docs-manager.md +127 -127
  6. package/collection/bundles/kit-adopt/README.md +36 -36
  7. package/collection/bundles/kit-adopt/conventions/recommended-companions.md +43 -43
  8. package/collection/bundles/kit-adopt/pipelines/kit-adopt.md +52 -52
  9. package/collection/bundles/kit-adopt/skills/kit-adopt/SKILL.md +72 -72
  10. package/collection/bundles/qa-automation/README.md +48 -0
  11. package/collection/bundles/qa-automation/RECOMMENDS.md +19 -0
  12. package/collection/bundles/qa-automation/agents/qa-explorer.md +55 -0
  13. package/collection/bundles/qa-automation/agents/qa-test-reviewer.md +71 -0
  14. package/collection/bundles/qa-automation/conventions/qa-verification.md +50 -0
  15. package/collection/bundles/qa-automation/pipelines/qa-test-debug.md +66 -0
  16. package/collection/bundles/qa-automation/pipelines/qa-test-from-spec.md +65 -0
  17. package/collection/bundles/qa-automation/skills/qa-playwright-cli/SKILL.md +83 -0
  18. package/collection/bundles/qa-automation/skills/qa-test-debugger/SKILL.md +60 -0
  19. package/collection/bundles/qa-automation/skills/qa-test-writer/SKILL.md +60 -0
  20. package/collection/bundles/sdd/README.md +50 -50
  21. package/collection/bundles/sdd/RECOMMENDS.md +21 -21
  22. package/collection/bundles/sdd/agents/sdd-gap-analyzer.md +79 -79
  23. package/collection/bundles/sdd/agents/sdd-spec-reviewer.md +75 -75
  24. package/collection/bundles/sdd/conventions/sdd-doc-set.md +136 -136
  25. package/collection/bundles/sdd/pipelines/sdd-adopt.md +60 -60
  26. package/collection/bundles/sdd/pipelines/sdd-bootstrap.md +60 -60
  27. package/collection/bundles/sdd/skills/sdd-doc-author/SKILL.md +69 -69
  28. package/collection/bundles/sdd/skills/sdd-feature-author/SKILL.md +71 -71
  29. package/collection/bundles/sdd/skills/sdd-index-sync/SKILL.md +61 -61
  30. package/collection/bundles/sdd/templates/docs/INDEX.md +35 -35
  31. package/collection/bundles/sdd/templates/docs/api.md +23 -23
  32. package/collection/bundles/sdd/templates/docs/architecture.md +42 -42
  33. package/collection/bundles/sdd/templates/docs/db.md +22 -22
  34. package/collection/bundles/sdd/templates/docs/decisions/ADR-template.md +24 -24
  35. package/collection/bundles/sdd/templates/docs/design.md +43 -43
  36. package/collection/bundles/sdd/templates/docs/idea.md +46 -46
  37. package/collection/bundles/sdd/templates/docs/operations.md +28 -28
  38. package/collection/bundles/sdd/templates/docs/roadmap.md +26 -26
  39. package/collection/bundles/sdd/templates/docs/security.md +24 -24
  40. package/collection/bundles/sdd/templates/docs/testing.md +34 -34
  41. package/collection/bundles/sdd/templates/features/F000_template/requirements.md +38 -38
  42. package/collection/bundles/sdd/templates/features/F000_template/scenarios.md +26 -26
  43. package/collection/bundles/sdd/templates/features/F000_template/tasks.md +11 -11
  44. package/collection/skills/brainstorm/SKILL.md +46 -46
  45. package/collection/skills/business-analyst/SKILL.md +58 -58
  46. package/collection/skills/documentation-maintenance/SKILL.md +60 -60
  47. package/collection/skills/explain-code/SKILL.md +81 -81
  48. package/collection/skills/frontend-audit/SKILL.md +135 -135
  49. package/collection/skills/frontend-impeccable-design/SKILL.md +135 -135
  50. package/collection/skills/frontend-impeccable-polish/SKILL.md +118 -118
  51. package/collection/skills/implement-feature/SKILL.md +99 -99
  52. package/collection/skills/memory-management/SKILL.md +75 -75
  53. package/collection/skills/meta-tags-optimizer/SKILL.md +73 -73
  54. package/collection/skills/pencil-design/SKILL.md +83 -83
  55. package/collection/skills/playwright-cli/SKILL.md +104 -104
  56. package/collection/skills/prepare-release-notes/SKILL.md +109 -109
  57. package/collection/skills/refactor-code/SKILL.md +104 -104
  58. package/collection/skills/review-code/SKILL.md +98 -98
  59. package/collection/skills/schema-markup-generator/SKILL.md +80 -80
  60. package/collection/skills/task-complete/SKILL.md +79 -79
  61. package/collection/skills/task-discovery/SKILL.md +69 -69
  62. package/collection/skills/task-validation/SKILL.md +71 -71
  63. package/collection/skills/test-review/SKILL.md +72 -72
  64. package/collection/skills/test-writer/SKILL.md +78 -78
  65. package/collection/skills/work-with-git/SKILL.md +154 -154
  66. package/dist/cli.js +31 -22
  67. package/dist/commands/adopt.js +240 -40
  68. package/dist/providers.js +3 -6
  69. package/package.json +48 -49
@@ -1,136 +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.
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.
@@ -1,60 +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.
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.
@@ -1,60 +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.
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.
@@ -1,69 +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` |
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` |