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.
- package/LICENSE +21 -21
- package/README.md +159 -95
- package/collection/NOTICE.md +36 -36
- package/collection/agents/code-reviewer.md +103 -103
- package/collection/agents/docs-manager.md +127 -127
- package/collection/bundles/kit-adopt/README.md +36 -36
- package/collection/bundles/kit-adopt/conventions/recommended-companions.md +43 -43
- package/collection/bundles/kit-adopt/pipelines/kit-adopt.md +52 -52
- package/collection/bundles/kit-adopt/skills/kit-adopt/SKILL.md +72 -72
- package/collection/bundles/qa-automation/README.md +48 -0
- package/collection/bundles/qa-automation/RECOMMENDS.md +19 -0
- package/collection/bundles/qa-automation/agents/qa-explorer.md +55 -0
- package/collection/bundles/qa-automation/agents/qa-test-reviewer.md +71 -0
- package/collection/bundles/qa-automation/conventions/qa-verification.md +50 -0
- package/collection/bundles/qa-automation/pipelines/qa-test-debug.md +66 -0
- package/collection/bundles/qa-automation/pipelines/qa-test-from-spec.md +65 -0
- package/collection/bundles/qa-automation/skills/qa-playwright-cli/SKILL.md +83 -0
- package/collection/bundles/qa-automation/skills/qa-test-debugger/SKILL.md +60 -0
- package/collection/bundles/qa-automation/skills/qa-test-writer/SKILL.md +60 -0
- package/collection/bundles/sdd/README.md +50 -50
- package/collection/bundles/sdd/RECOMMENDS.md +21 -21
- package/collection/bundles/sdd/agents/sdd-gap-analyzer.md +79 -79
- package/collection/bundles/sdd/agents/sdd-spec-reviewer.md +75 -75
- package/collection/bundles/sdd/conventions/sdd-doc-set.md +136 -136
- package/collection/bundles/sdd/pipelines/sdd-adopt.md +60 -60
- package/collection/bundles/sdd/pipelines/sdd-bootstrap.md +60 -60
- package/collection/bundles/sdd/skills/sdd-doc-author/SKILL.md +69 -69
- package/collection/bundles/sdd/skills/sdd-feature-author/SKILL.md +71 -71
- package/collection/bundles/sdd/skills/sdd-index-sync/SKILL.md +61 -61
- package/collection/bundles/sdd/templates/docs/INDEX.md +35 -35
- package/collection/bundles/sdd/templates/docs/api.md +23 -23
- package/collection/bundles/sdd/templates/docs/architecture.md +42 -42
- package/collection/bundles/sdd/templates/docs/db.md +22 -22
- package/collection/bundles/sdd/templates/docs/decisions/ADR-template.md +24 -24
- package/collection/bundles/sdd/templates/docs/design.md +43 -43
- package/collection/bundles/sdd/templates/docs/idea.md +46 -46
- package/collection/bundles/sdd/templates/docs/operations.md +28 -28
- package/collection/bundles/sdd/templates/docs/roadmap.md +26 -26
- package/collection/bundles/sdd/templates/docs/security.md +24 -24
- package/collection/bundles/sdd/templates/docs/testing.md +34 -34
- package/collection/bundles/sdd/templates/features/F000_template/requirements.md +38 -38
- package/collection/bundles/sdd/templates/features/F000_template/scenarios.md +26 -26
- package/collection/bundles/sdd/templates/features/F000_template/tasks.md +11 -11
- package/collection/skills/brainstorm/SKILL.md +46 -46
- package/collection/skills/business-analyst/SKILL.md +58 -58
- package/collection/skills/documentation-maintenance/SKILL.md +60 -60
- package/collection/skills/explain-code/SKILL.md +81 -81
- package/collection/skills/frontend-audit/SKILL.md +135 -135
- package/collection/skills/frontend-impeccable-design/SKILL.md +135 -135
- package/collection/skills/frontend-impeccable-polish/SKILL.md +118 -118
- package/collection/skills/implement-feature/SKILL.md +99 -99
- package/collection/skills/memory-management/SKILL.md +75 -75
- package/collection/skills/meta-tags-optimizer/SKILL.md +73 -73
- package/collection/skills/pencil-design/SKILL.md +83 -83
- package/collection/skills/playwright-cli/SKILL.md +104 -104
- package/collection/skills/prepare-release-notes/SKILL.md +109 -109
- package/collection/skills/refactor-code/SKILL.md +104 -104
- package/collection/skills/review-code/SKILL.md +98 -98
- package/collection/skills/schema-markup-generator/SKILL.md +80 -80
- package/collection/skills/task-complete/SKILL.md +79 -79
- package/collection/skills/task-discovery/SKILL.md +69 -69
- package/collection/skills/task-validation/SKILL.md +71 -71
- package/collection/skills/test-review/SKILL.md +72 -72
- package/collection/skills/test-writer/SKILL.md +78 -78
- package/collection/skills/work-with-git/SKILL.md +154 -154
- package/dist/cli.js +31 -22
- package/dist/commands/adopt.js +240 -40
- package/dist/providers.js +3 -6
- package/package.json +48 -49
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: qa-test-writer
|
|
3
|
+
description: Creates or updates automated tests from an approved specification, bug reproduction, acceptance criterion, or exploration handoff without changing product behavior.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Scope
|
|
7
|
+
|
|
8
|
+
- Add or update automated tests for existing or requested behavior.
|
|
9
|
+
- Use when the test target and expected observable behavior are clear enough to assert.
|
|
10
|
+
|
|
11
|
+
## Boundaries
|
|
12
|
+
|
|
13
|
+
- Do not change production code.
|
|
14
|
+
- Do not invent requirements, edge cases, permissions, defaults, or user-facing behavior.
|
|
15
|
+
- Do not rewrite unrelated tests, snapshots, fixtures, or helpers.
|
|
16
|
+
- Do not use sleeps, arbitrary timeouts, brittle selectors, or broad assertions when deterministic alternatives exist.
|
|
17
|
+
|
|
18
|
+
## Stop Conditions
|
|
19
|
+
|
|
20
|
+
Stop and report blocked when:
|
|
21
|
+
|
|
22
|
+
- expected behavior cannot be expressed as observable assertions
|
|
23
|
+
- the relevant test framework, command, fixture, or code under test cannot be identified
|
|
24
|
+
- adding the test requires a product decision or production-code change
|
|
25
|
+
- the test runner cannot execute because of missing dependencies, credentials, or environment setup
|
|
26
|
+
|
|
27
|
+
## Procedure
|
|
28
|
+
|
|
29
|
+
If any stop condition applies, halt the procedure and report the blocker under the output
|
|
30
|
+
contract.
|
|
31
|
+
|
|
32
|
+
Apply Boundaries throughout; if the requested test requires violating one, stop and report
|
|
33
|
+
`blocked`.
|
|
34
|
+
|
|
35
|
+
1. Read the test specification, bug reproduction, acceptance criterion, or exploration handoff.
|
|
36
|
+
2. Inspect nearby tests, helpers, fixtures, and project test conventions.
|
|
37
|
+
3. Choose the smallest test scope that protects the behavior.
|
|
38
|
+
4. Write or update tests using existing patterns before introducing new helpers.
|
|
39
|
+
5. Run the narrowest meaningful test command when the environment supports it.
|
|
40
|
+
6. Report verification per the project's QA verification convention.
|
|
41
|
+
|
|
42
|
+
## Output Contract
|
|
43
|
+
|
|
44
|
+
Emit:
|
|
45
|
+
|
|
46
|
+
`Skill: qa-test-writer - output below`
|
|
47
|
+
|
|
48
|
+
Then include:
|
|
49
|
+
|
|
50
|
+
| Field | Content |
|
|
51
|
+
| --- | --- |
|
|
52
|
+
| Status | `completed`, `skipped`, or `blocked` |
|
|
53
|
+
| Scope | Behavior, scenario, or bug reproduction covered |
|
|
54
|
+
| Test Files | Created or modified test files, or `none` |
|
|
55
|
+
| Sources Read | Specs, tests, code, docs, fixtures, or commands inspected |
|
|
56
|
+
| Assertions Added | Behaviors asserted by the tests |
|
|
57
|
+
| Verification | Commands run and pass/fail/skipped/blocked status |
|
|
58
|
+
| Assumptions | Inferences used, or `none` |
|
|
59
|
+
| Coverage Gaps | Known missing cases, or `none` |
|
|
60
|
+
| Blockers | Missing context, unavailable runner, or environment issue, or `none` |
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
# SDD Bundle
|
|
2
|
-
|
|
3
|
-
Spec-Driven Development kit: a cohesive, project-agnostic set of capabilities for
|
|
4
|
-
creating and maintaining a `docs/` specification tree that drives implementation,
|
|
5
|
-
plus reviewing and adopting one into an existing project.
|
|
6
|
-
|
|
7
|
-
This bundle is product output. It is meant to be copied into a consumer project and
|
|
8
|
-
adapted with minimal effort. The bundle is independently copyable as a unit; each
|
|
9
|
-
item below is also copyable on its own, subject to the dependencies listed.
|
|
10
|
-
|
|
11
|
-
## Contents
|
|
12
|
-
|
|
13
|
-
| Item | Type | Path | Depends on |
|
|
14
|
-
| --- | --- | --- | --- |
|
|
15
|
-
| `sdd-doc-set` | convention | `conventions/sdd-doc-set.md` | — |
|
|
16
|
-
| Doc + feature templates | templates | `templates/` | `sdd-doc-set` |
|
|
17
|
-
| `sdd-doc-author` | skill | `skills/sdd-doc-author/` | `sdd-doc-set`, templates |
|
|
18
|
-
| `sdd-feature-author` | skill | `skills/sdd-feature-author/` | `sdd-doc-set`, templates |
|
|
19
|
-
| `sdd-index-sync` | skill | `skills/sdd-index-sync/` | `sdd-doc-set` |
|
|
20
|
-
| `sdd-spec-reviewer` | agent | `agents/sdd-spec-reviewer.md` | `sdd-doc-set` |
|
|
21
|
-
| `sdd-gap-analyzer` | agent | `agents/sdd-gap-analyzer.md` | `sdd-doc-set` |
|
|
22
|
-
| `sdd-bootstrap` | pipeline | `pipelines/sdd-bootstrap.md` | skills + `sdd-spec-reviewer` |
|
|
23
|
-
| `sdd-adopt` | pipeline | `pipelines/sdd-adopt.md` | `sdd-gap-analyzer` + skills + reviewer |
|
|
24
|
-
| Recommended companions | manifest | `RECOMMENDS.md` | — (optional companions only) |
|
|
25
|
-
|
|
26
|
-
> The SDD bundle is complete: convention, templates, three skills, two agents, and two
|
|
27
|
-
> pipelines. The Part 2 `kit-adopt` installer (which copies and wires any bundle into a
|
|
28
|
-
> target project) is tracked separately from this bundle.
|
|
29
|
-
|
|
30
|
-
## The document set it produces
|
|
31
|
-
|
|
32
|
-
This bundle produces and maintains a `docs/` specification tree (main docs, optional
|
|
33
|
-
extension docs, ADRs, and per-feature folders). The structure, document ownership, tiers,
|
|
34
|
-
ID scheme, and traceability spine are defined once in `conventions/sdd-doc-set.md` — that
|
|
35
|
-
convention is the single source of truth. This README does not restate it.
|
|
36
|
-
|
|
37
|
-
## Recommended companions
|
|
38
|
-
|
|
39
|
-
`RECOMMENDS.md` lists optional capabilities from the general collection that complement the
|
|
40
|
-
spec-to-build-to-verify loop (brainstorm, business-analyst, implement-feature, test-writer,
|
|
41
|
-
code-reviewer, and so on). None are required — the bundle works on its own. `kit-adopt` and
|
|
42
|
-
the SDD pipelines surface them as opt-in suggestions at install time and after the spec docs
|
|
43
|
-
are created.
|
|
44
|
-
|
|
45
|
-
## How to copy
|
|
46
|
-
|
|
47
|
-
- Whole bundle: copy `collection/bundles/sdd/` into your project's capability area.
|
|
48
|
-
- A single item: copy its file/folder plus anything in its "Depends on" column.
|
|
49
|
-
- Every template under `templates/` is plain Markdown and can be copied directly
|
|
50
|
-
into a project's `docs/` and edited by hand if you are not using the skills.
|
|
1
|
+
# SDD Bundle
|
|
2
|
+
|
|
3
|
+
Spec-Driven Development kit: a cohesive, project-agnostic set of capabilities for
|
|
4
|
+
creating and maintaining a `docs/` specification tree that drives implementation,
|
|
5
|
+
plus reviewing and adopting one into an existing project.
|
|
6
|
+
|
|
7
|
+
This bundle is product output. It is meant to be copied into a consumer project and
|
|
8
|
+
adapted with minimal effort. The bundle is independently copyable as a unit; each
|
|
9
|
+
item below is also copyable on its own, subject to the dependencies listed.
|
|
10
|
+
|
|
11
|
+
## Contents
|
|
12
|
+
|
|
13
|
+
| Item | Type | Path | Depends on |
|
|
14
|
+
| --- | --- | --- | --- |
|
|
15
|
+
| `sdd-doc-set` | convention | `conventions/sdd-doc-set.md` | — |
|
|
16
|
+
| Doc + feature templates | templates | `templates/` | `sdd-doc-set` |
|
|
17
|
+
| `sdd-doc-author` | skill | `skills/sdd-doc-author/` | `sdd-doc-set`, templates |
|
|
18
|
+
| `sdd-feature-author` | skill | `skills/sdd-feature-author/` | `sdd-doc-set`, templates |
|
|
19
|
+
| `sdd-index-sync` | skill | `skills/sdd-index-sync/` | `sdd-doc-set` |
|
|
20
|
+
| `sdd-spec-reviewer` | agent | `agents/sdd-spec-reviewer.md` | `sdd-doc-set` |
|
|
21
|
+
| `sdd-gap-analyzer` | agent | `agents/sdd-gap-analyzer.md` | `sdd-doc-set` |
|
|
22
|
+
| `sdd-bootstrap` | pipeline | `pipelines/sdd-bootstrap.md` | skills + `sdd-spec-reviewer` |
|
|
23
|
+
| `sdd-adopt` | pipeline | `pipelines/sdd-adopt.md` | `sdd-gap-analyzer` + skills + reviewer |
|
|
24
|
+
| Recommended companions | manifest | `RECOMMENDS.md` | — (optional companions only) |
|
|
25
|
+
|
|
26
|
+
> The SDD bundle is complete: convention, templates, three skills, two agents, and two
|
|
27
|
+
> pipelines. The Part 2 `kit-adopt` installer (which copies and wires any bundle into a
|
|
28
|
+
> target project) is tracked separately from this bundle.
|
|
29
|
+
|
|
30
|
+
## The document set it produces
|
|
31
|
+
|
|
32
|
+
This bundle produces and maintains a `docs/` specification tree (main docs, optional
|
|
33
|
+
extension docs, ADRs, and per-feature folders). The structure, document ownership, tiers,
|
|
34
|
+
ID scheme, and traceability spine are defined once in `conventions/sdd-doc-set.md` — that
|
|
35
|
+
convention is the single source of truth. This README does not restate it.
|
|
36
|
+
|
|
37
|
+
## Recommended companions
|
|
38
|
+
|
|
39
|
+
`RECOMMENDS.md` lists optional capabilities from the general collection that complement the
|
|
40
|
+
spec-to-build-to-verify loop (brainstorm, business-analyst, implement-feature, test-writer,
|
|
41
|
+
code-reviewer, and so on). None are required — the bundle works on its own. `kit-adopt` and
|
|
42
|
+
the SDD pipelines surface them as opt-in suggestions at install time and after the spec docs
|
|
43
|
+
are created.
|
|
44
|
+
|
|
45
|
+
## How to copy
|
|
46
|
+
|
|
47
|
+
- Whole bundle: copy `collection/bundles/sdd/` into your project's capability area.
|
|
48
|
+
- A single item: copy its file/folder plus anything in its "Depends on" column.
|
|
49
|
+
- Every template under `templates/` is plain Markdown and can be copied directly
|
|
50
|
+
into a project's `docs/` and edited by hand if you are not using the skills.
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
# Recommended Companions
|
|
2
|
-
|
|
3
|
-
Optional capabilities from the general collection that complement the SDD bundle across the
|
|
4
|
-
spec-to-build-to-verify loop. None are required: the SDD bundle works fully on its own. These
|
|
5
|
-
are surfaced as opt-in suggestions by `kit-adopt` and by the SDD pipelines. If a companion is
|
|
6
|
-
absent or renamed in the kit, skip it.
|
|
7
|
-
|
|
8
|
-
See `../kit-adopt/conventions/recommended-companions.md` for the declaration format.
|
|
9
|
-
|
|
10
|
-
| Companion | Kind | Suggested source | Touchpoint |
|
|
11
|
-
| --- | --- | --- | --- |
|
|
12
|
-
| `brainstorm` | skill | `collection/skills/brainstorm/` | Shaping `idea.md` and scope before authoring |
|
|
13
|
-
| `business-analyst` | skill | `collection/skills/business-analyst/` | Clarifying `features/*/requirements.md` and acceptance criteria |
|
|
14
|
-
| `task-discovery` | skill | `collection/skills/task-discovery/` | Breaking work into `tasks.md` |
|
|
15
|
-
| `task-validation` | skill | `collection/skills/task-validation/` | Validating `tasks.md` before implementation |
|
|
16
|
-
| `implement-feature` | skill | `collection/skills/implement-feature/` | Executing a feature's tasks (the build step) |
|
|
17
|
-
| `test-writer` | skill | `collection/skills/test-writer/` | Turning `scenarios.md` into automated tests |
|
|
18
|
-
| `test-review` | skill | `collection/skills/test-review/` | Reviewing tests against the scenarios |
|
|
19
|
-
| `code-reviewer` | agent | `collection/agents/code-reviewer.md` | Reviewing implementation against the spec |
|
|
20
|
-
| `documentation-maintenance` | skill | `collection/skills/documentation-maintenance/` | Keeping docs in sync after the build |
|
|
21
|
-
| `prepare-release-notes` | skill | `collection/skills/prepare-release-notes/` | Closing a `roadmap.md` milestone |
|
|
1
|
+
# Recommended Companions
|
|
2
|
+
|
|
3
|
+
Optional capabilities from the general collection that complement the SDD bundle across the
|
|
4
|
+
spec-to-build-to-verify loop. None are required: the SDD bundle works fully on its own. These
|
|
5
|
+
are surfaced as opt-in suggestions by `kit-adopt` and by the SDD pipelines. If a companion is
|
|
6
|
+
absent or renamed in the kit, skip it.
|
|
7
|
+
|
|
8
|
+
See `../kit-adopt/conventions/recommended-companions.md` for the declaration format.
|
|
9
|
+
|
|
10
|
+
| Companion | Kind | Suggested source | Touchpoint |
|
|
11
|
+
| --- | --- | --- | --- |
|
|
12
|
+
| `brainstorm` | skill | `collection/skills/brainstorm/` | Shaping `idea.md` and scope before authoring |
|
|
13
|
+
| `business-analyst` | skill | `collection/skills/business-analyst/` | Clarifying `features/*/requirements.md` and acceptance criteria |
|
|
14
|
+
| `task-discovery` | skill | `collection/skills/task-discovery/` | Breaking work into `tasks.md` |
|
|
15
|
+
| `task-validation` | skill | `collection/skills/task-validation/` | Validating `tasks.md` before implementation |
|
|
16
|
+
| `implement-feature` | skill | `collection/skills/implement-feature/` | Executing a feature's tasks (the build step) |
|
|
17
|
+
| `test-writer` | skill | `collection/skills/test-writer/` | Turning `scenarios.md` into automated tests |
|
|
18
|
+
| `test-review` | skill | `collection/skills/test-review/` | Reviewing tests against the scenarios |
|
|
19
|
+
| `code-reviewer` | agent | `collection/agents/code-reviewer.md` | Reviewing implementation against the spec |
|
|
20
|
+
| `documentation-maintenance` | skill | `collection/skills/documentation-maintenance/` | Keeping docs in sync after the build |
|
|
21
|
+
| `prepare-release-notes` | skill | `collection/skills/prepare-release-notes/` | Closing a `roadmap.md` milestone |
|
|
@@ -1,79 +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.
|
|
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.
|
|
@@ -1,75 +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.
|
|
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.
|