@punks/cli 3.1.3 → 3.1.4
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/dist/BASELINE_CHANGELOG.md +21 -0
- package/dist/CHANGELOG.md +40 -0
- package/dist/baseline/scaffold-baseline/baseline.json +4 -4
- package/dist/baseline/scaffold-baseline/data/catalog/packs.json +23 -3
- package/dist/baseline/scaffold-baseline/data/catalog/skills.json +26 -2
- package/dist/baseline/scaffold-baseline/data/subagents/manifest.mjs +3 -1
- package/dist/baseline/scaffold-baseline/data/subagents/manifest.test.ts +20 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/SKILL.md +4 -3
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/agents/openai.yaml +1 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +3 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-for-agents/LICENSE +21 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-for-agents/SKILL-MECHANICS.md +22 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-for-agents/SKILL.md +81 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-for-agents/UPSTREAM.md +9 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/SKILL.md +27 -15
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/backlog-sync.md +19 -32
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/plan-schema.md +14 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/planner-task-graph.md +5 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/stop-conditions.md +2 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/SKILL.md +51 -105
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +26 -57
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/folder-naming.md +6 -3
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/readiness.md +41 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +15 -6
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/wiki-bookkeeping.md +3 -3
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/SKILL.md +21 -54
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +0 -4
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/lifecycle.md +13 -15
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +7 -4
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +4 -2
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel.md +9 -35
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/wayfinder/SKILL.md +11 -8
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/requirements-grill/SKILL.md +3 -3
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/EXAMPLES.md +25 -73
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/REFERENCE.md +54 -305
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/SKILL.md +46 -55
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +33 -119
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +24 -14
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +53 -11
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +48 -26
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +53 -12
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +49 -33
- package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/DURABLE-REPORT.md +20 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/SKILL.md +14 -2
- package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/LICENSE +21 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/LOGIC.md +57 -21
- package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/SKILL.md +17 -15
- package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/UI.md +12 -5
- package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/UPSTREAM.md +11 -0
- package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect/SKILL.md +5 -12
- package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect/references/CONFIG.md +10 -19
- package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect/references/SERVICES_LAYERS.md +3 -63
- package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect/references/TESTING.md +2 -72
- package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-backend-structure/SKILL.md +12 -29
- package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-backend-structure/agents/openai.yaml +1 -1
- package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-backend-structure/references/layout.md +9 -9
- package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-service-design/LICENSE +21 -0
- package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-service-design/SKILL.md +124 -0
- package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-service-design/references/AUDIT.md +98 -0
- package/dist/baseline/scaffold-baseline/skills/misc/wait-what/LICENSE +21 -0
- package/dist/baseline/scaffold-baseline/skills/misc/wait-what/SKILL.md +7 -0
- package/dist/baseline/scaffold-baseline/skills/misc/wait-what/UPSTREAM.md +9 -0
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/SKILL.md +4 -3
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/backlog.md +31 -0
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/implement.md +5 -4
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/plan.md +6 -4
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +16 -14
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/spec.md +9 -5
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/artifact-state.md +9 -2
- package/dist/baseline/scaffold-baseline/skills/phases/design-phase/phases/backlog.md +4 -4
- package/dist/baseline/scaffold-baseline/skills/phases/design-phase/phases/prototype.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/phases/docs-ingest-phase/phases/private-internal.md +3 -1
- package/dist/baseline/scaffold-baseline/skills/phases/docs-ingest-phase/references/learning-artifacts.md +8 -1
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/SKILL.md +24 -24
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/agents/openai.yaml +1 -1
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/convergence.md +39 -0
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/frontier-lifecycle.md +22 -16
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/root-routing.md +3 -2
- package/dist/baseline/scaffold-baseline/skills/phases/prototype-phase/SKILL.md +34 -0
- package/dist/baseline/scaffold-baseline/skills/phases/prototype-phase/VERDICT-TEMPLATE.md +16 -0
- package/dist/baseline/scaffold-baseline/skills/phases/prototype-phase/agents/openai.yaml +2 -0
- package/dist/baseline/scaffold-baseline/skills/phases/requirements-phase/SKILL.md +14 -57
- package/dist/baseline/scaffold-baseline.json +4 -4
- package/dist/baseline/scaffold-baseline.tgz +0 -0
- package/dist/data/subagents/manifest.mjs +3 -1
- package/dist/index.js +148 -185
- package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +4 -3
- package/dist/skills/agnostic/docs/docs-onboarding/agents/openai.yaml +1 -1
- package/dist/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +3 -1
- package/dist/skills/agnostic/docs/writing-for-agents/LICENSE +21 -0
- package/dist/skills/agnostic/docs/writing-for-agents/SKILL-MECHANICS.md +22 -0
- package/dist/skills/agnostic/docs/writing-for-agents/SKILL.md +81 -0
- package/dist/skills/agnostic/docs/writing-for-agents/UPSTREAM.md +9 -0
- package/dist/skills/agnostic/planning/create-plan/SKILL.md +27 -15
- package/dist/skills/agnostic/planning/create-plan/references/backlog-sync.md +19 -32
- package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +14 -0
- package/dist/skills/agnostic/planning/create-plan/references/planner-task-graph.md +5 -1
- package/dist/skills/agnostic/planning/create-plan/references/stop-conditions.md +2 -1
- package/dist/skills/agnostic/planning/create-spec/SKILL.md +51 -105
- package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +26 -57
- package/dist/skills/agnostic/planning/create-spec/references/folder-naming.md +6 -3
- package/dist/skills/agnostic/planning/create-spec/references/readiness.md +41 -0
- package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +15 -6
- package/dist/skills/agnostic/planning/create-spec/references/wiki-bookkeeping.md +3 -3
- package/dist/skills/agnostic/planning/implement-spec/SKILL.md +21 -54
- package/dist/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +0 -4
- package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +13 -15
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +7 -4
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +4 -2
- package/dist/skills/agnostic/planning/implement-spec/references/parallel.md +9 -35
- package/dist/skills/agnostic/planning/wayfinder/SKILL.md +11 -8
- package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +3 -3
- package/dist/skills/agnostic/requirements/write-backlog/EXAMPLES.md +25 -73
- package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +54 -305
- package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +46 -55
- package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +33 -119
- package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +24 -14
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +53 -11
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +48 -26
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +53 -12
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +49 -33
- package/dist/skills/agnostic/research/parallel-research/DURABLE-REPORT.md +20 -0
- package/dist/skills/agnostic/research/parallel-research/SKILL.md +14 -2
- package/dist/skills/agnostic/research/prototype/LICENSE +21 -0
- package/dist/skills/agnostic/research/prototype/LOGIC.md +57 -21
- package/dist/skills/agnostic/research/prototype/SKILL.md +17 -15
- package/dist/skills/agnostic/research/prototype/UI.md +12 -5
- package/dist/skills/agnostic/research/prototype/UPSTREAM.md +11 -0
- package/dist/skills/frameworks/effect/effect/SKILL.md +5 -12
- package/dist/skills/frameworks/effect/effect/references/CONFIG.md +10 -19
- package/dist/skills/frameworks/effect/effect/references/SERVICES_LAYERS.md +3 -63
- package/dist/skills/frameworks/effect/effect/references/TESTING.md +2 -72
- package/dist/skills/frameworks/effect/effect-backend-structure/SKILL.md +12 -29
- package/dist/skills/frameworks/effect/effect-backend-structure/agents/openai.yaml +1 -1
- package/dist/skills/frameworks/effect/effect-backend-structure/references/layout.md +9 -9
- package/dist/skills/frameworks/effect/effect-service-design/LICENSE +21 -0
- package/dist/skills/frameworks/effect/effect-service-design/SKILL.md +124 -0
- package/dist/skills/frameworks/effect/effect-service-design/references/AUDIT.md +98 -0
- package/dist/skills/misc/wait-what/LICENSE +21 -0
- package/dist/skills/misc/wait-what/SKILL.md +7 -0
- package/dist/skills/misc/wait-what/UPSTREAM.md +9 -0
- package/dist/skills/phases/delivery-phase/SKILL.md +4 -3
- package/dist/skills/phases/delivery-phase/phases/backlog.md +31 -0
- package/dist/skills/phases/delivery-phase/phases/implement.md +5 -4
- package/dist/skills/phases/delivery-phase/phases/plan.md +6 -4
- package/dist/skills/phases/delivery-phase/phases/router.md +16 -14
- package/dist/skills/phases/delivery-phase/phases/spec.md +9 -5
- package/dist/skills/phases/delivery-phase/references/artifact-state.md +9 -2
- package/dist/skills/phases/design-phase/phases/backlog.md +4 -4
- package/dist/skills/phases/design-phase/phases/prototype.md +1 -1
- package/dist/skills/phases/docs-ingest-phase/phases/private-internal.md +3 -1
- package/dist/skills/phases/docs-ingest-phase/references/learning-artifacts.md +8 -1
- package/dist/skills/phases/finder-phase/SKILL.md +24 -24
- package/dist/skills/phases/finder-phase/agents/openai.yaml +1 -1
- package/dist/skills/phases/finder-phase/references/convergence.md +39 -0
- package/dist/skills/phases/finder-phase/references/frontier-lifecycle.md +22 -16
- package/dist/skills/phases/finder-phase/references/root-routing.md +3 -2
- package/dist/skills/phases/prototype-phase/SKILL.md +34 -0
- package/dist/skills/phases/prototype-phase/VERDICT-TEMPLATE.md +16 -0
- package/dist/skills/phases/prototype-phase/agents/openai.yaml +2 -0
- package/dist/skills/phases/requirements-phase/SKILL.md +14 -57
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-great-skills/GLOSSARY.md +0 -69
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-great-skills/SKILL.md +0 -61
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/backlog-sync.md +0 -49
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/discovery.md +0 -54
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/grill-phase.md +0 -42
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/questioning.md +0 -51
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/sequential.md +0 -48
- package/dist/skills/agnostic/docs/writing-great-skills/GLOSSARY.md +0 -69
- package/dist/skills/agnostic/docs/writing-great-skills/SKILL.md +0 -61
- package/dist/skills/agnostic/planning/create-spec/references/backlog-sync.md +0 -49
- package/dist/skills/agnostic/planning/create-spec/references/discovery.md +0 -54
- package/dist/skills/agnostic/planning/create-spec/references/grill-phase.md +0 -42
- package/dist/skills/agnostic/planning/create-spec/references/questioning.md +0 -51
- package/dist/skills/agnostic/planning/implement-spec/references/sequential.md +0 -48
package/package.json
CHANGED
package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-great-skills/GLOSSARY.md
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
# Glossary - Writing Great Skills
|
|
2
|
-
|
|
3
|
-
## Predictability
|
|
4
|
-
|
|
5
|
-
The degree to which a skill makes the agent follow the same process on every run. The output may vary; the behavior should not.
|
|
6
|
-
|
|
7
|
-
## Model-Invoked
|
|
8
|
-
|
|
9
|
-
A skill with a `description`, visible to the agent for autonomous use. It pays context load.
|
|
10
|
-
|
|
11
|
-
## User-Invoked
|
|
12
|
-
|
|
13
|
-
A skill with `disable-model-invocation: true`. It is reached by the human, not by autonomous discovery. It pays cognitive load.
|
|
14
|
-
|
|
15
|
-
## Description
|
|
16
|
-
|
|
17
|
-
The model-facing trigger for a model-invoked skill. It should describe branches that should cause invocation.
|
|
18
|
-
|
|
19
|
-
## Context Load
|
|
20
|
-
|
|
21
|
-
The permanent attention and token cost a model-invoked skill imposes through its description.
|
|
22
|
-
|
|
23
|
-
## Cognitive Load
|
|
24
|
-
|
|
25
|
-
The cost the human pays to remember and invoke user-invoked skills.
|
|
26
|
-
|
|
27
|
-
## Branch
|
|
28
|
-
|
|
29
|
-
A distinct way a skill can be used.
|
|
30
|
-
|
|
31
|
-
## Information Hierarchy
|
|
32
|
-
|
|
33
|
-
The ordering of skill material by how immediately the agent needs it: steps, inline reference, disclosed reference.
|
|
34
|
-
|
|
35
|
-
## Steps
|
|
36
|
-
|
|
37
|
-
Ordered actions the agent performs. Each step needs a completion criterion.
|
|
38
|
-
|
|
39
|
-
## Completion Criterion
|
|
40
|
-
|
|
41
|
-
The checkable condition that says a step is done.
|
|
42
|
-
|
|
43
|
-
## Reference
|
|
44
|
-
|
|
45
|
-
Definitions, rules, caveats, and examples the agent consults while running a skill.
|
|
46
|
-
|
|
47
|
-
## Progressive Disclosure
|
|
48
|
-
|
|
49
|
-
Moving branch-specific reference out of `SKILL.md` behind a clear pointer.
|
|
50
|
-
|
|
51
|
-
## Leading Word
|
|
52
|
-
|
|
53
|
-
A compact, pretrained concept that anchors behavior and invocation.
|
|
54
|
-
|
|
55
|
-
## Single Source of Truth
|
|
56
|
-
|
|
57
|
-
One authoritative home for one behavior or meaning.
|
|
58
|
-
|
|
59
|
-
## Duplication
|
|
60
|
-
|
|
61
|
-
The same behavior or meaning repeated in multiple places.
|
|
62
|
-
|
|
63
|
-
## No-op
|
|
64
|
-
|
|
65
|
-
An instruction that does not change behavior versus the agent default.
|
|
66
|
-
|
|
67
|
-
## Sediment
|
|
68
|
-
|
|
69
|
-
Stale layers that remain because adding feels safer than removing.
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: writing-great-skills
|
|
3
|
-
description: Reference for writing and editing skills well: predictable invocation, steps, references, disclosure, and pruning.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Writing Great Skills
|
|
8
|
-
|
|
9
|
-
A skill wrangles predictability out of a stochastic system. Predictability means the agent follows the same process every run, not that it produces the same output.
|
|
10
|
-
|
|
11
|
-
Bold terms are defined in [GLOSSARY.md](GLOSSARY.md).
|
|
12
|
-
|
|
13
|
-
## Invocation
|
|
14
|
-
|
|
15
|
-
Two invocation modes trade different costs:
|
|
16
|
-
|
|
17
|
-
- **Model-invoked**: keep a `description` so the agent can discover and use the skill. This spends **context load** every turn.
|
|
18
|
-
- **User-invoked**: set `disable-model-invocation: true`; the human must remember and request it. This spends **cognitive load**, not context.
|
|
19
|
-
|
|
20
|
-
Use model invocation only when the agent or another skill must reach the skill on its own. Use user invocation when human judgement should be the router.
|
|
21
|
-
|
|
22
|
-
## Description
|
|
23
|
-
|
|
24
|
-
A model-invoked **description** must state what triggers the skill.
|
|
25
|
-
|
|
26
|
-
- Front-load the leading word users and other skills will actually use.
|
|
27
|
-
- Keep one trigger per branch.
|
|
28
|
-
- Remove identity prose already obvious from the skill body.
|
|
29
|
-
- Prune synonyms that describe the same branch.
|
|
30
|
-
|
|
31
|
-
## Information Hierarchy
|
|
32
|
-
|
|
33
|
-
Put material where the agent needs it:
|
|
34
|
-
|
|
35
|
-
1. **Steps** in `SKILL.md`: ordered actions with checkable completion criteria.
|
|
36
|
-
2. **Reference** in `SKILL.md`: rules or definitions every branch needs.
|
|
37
|
-
3. Disclosed **reference**: linked files loaded only when a branch needs them.
|
|
38
|
-
|
|
39
|
-
Inline what every branch needs. Disclose what only some branches need. If a required pointer is missed in practice, sharpen the pointer before inlining the whole reference.
|
|
40
|
-
|
|
41
|
-
## Splitting
|
|
42
|
-
|
|
43
|
-
Split skills only when the split earns its cost:
|
|
44
|
-
|
|
45
|
-
- By invocation: create a model-invoked skill when a distinct leading word should trigger it independently.
|
|
46
|
-
- By sequence: split steps when visible later steps cause premature completion of the current step.
|
|
47
|
-
|
|
48
|
-
Do not split merely for tidiness. Do not merge separate invocation branches just to reduce file count.
|
|
49
|
-
|
|
50
|
-
## Pruning
|
|
51
|
-
|
|
52
|
-
Keep each behavior in one source of truth.
|
|
53
|
-
|
|
54
|
-
Check each sentence:
|
|
55
|
-
|
|
56
|
-
- Does it change agent behavior?
|
|
57
|
-
- Is it still relevant?
|
|
58
|
-
- Is it duplicated elsewhere?
|
|
59
|
-
- Is a stronger leading word enough?
|
|
60
|
-
|
|
61
|
-
Delete no-ops instead of polishing them.
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# Backlog Sync
|
|
2
|
-
|
|
3
|
-
Use before final spec drafting when backlog context exists and the accepted spec direction changes the assigned epic or stories.
|
|
4
|
-
|
|
5
|
-
## Trigger
|
|
6
|
-
|
|
7
|
-
Run `$write-backlog` automatically when the user's objective, discovery, or grill outcomes change:
|
|
8
|
-
|
|
9
|
-
- the epic/capability boundary
|
|
10
|
-
- the parent epic title, problem statement, outcome, non-goals, or acceptance posture
|
|
11
|
-
- child-story acceptance signals, scope, or canonical terms
|
|
12
|
-
- missing, parked, moved, or future-scope stories
|
|
13
|
-
- story descriptions that now conflict with the spec objective
|
|
14
|
-
- story ordering, blockers, or parent/child relationships
|
|
15
|
-
|
|
16
|
-
Skip only for wording clarifications that do not change backlog scope, story meaning, or ordering.
|
|
17
|
-
|
|
18
|
-
## Load
|
|
19
|
-
|
|
20
|
-
Follow:
|
|
21
|
-
|
|
22
|
-
- `../../../requirements/write-backlog/SKILL.md`
|
|
23
|
-
- `../../../requirements/write-backlog/REFERENCE.md`
|
|
24
|
-
- `../../../requirements/write-backlog/assets/concepts/backlog-model.md`
|
|
25
|
-
|
|
26
|
-
If grill artifacts exist, read:
|
|
27
|
-
|
|
28
|
-
1. `<wiki-root>/content/docs/project/grilling/<topic>-grill-status.md`
|
|
29
|
-
2. `<wiki-root>/content/docs/project/grilling/<topic>-grill-log.md`
|
|
30
|
-
|
|
31
|
-
## Rules
|
|
32
|
-
|
|
33
|
-
- The parent epic remains the spec anchor.
|
|
34
|
-
- Child stories remain product-facing slices beneath that epic.
|
|
35
|
-
- The assigned epic or story may be refactored when it no longer matches the accepted spec objective.
|
|
36
|
-
- Derive backlog changes only from accepted decisions and locked direction.
|
|
37
|
-
- Preserve parked branches as deferred scope, follow-up epic/story candidates, or backlog notes.
|
|
38
|
-
- Keep unresolved still-open items out of committed story scope unless explicitly marked.
|
|
39
|
-
- Use native parent/child and `blockedBy` / `blocks` relations when the provider supports them.
|
|
40
|
-
- Do not add implementation details, file paths, TDD targets, validation commands, or worker handoffs to backlog bodies.
|
|
41
|
-
|
|
42
|
-
## Handoff
|
|
43
|
-
|
|
44
|
-
- reread the updated epic and child stories before drafting
|
|
45
|
-
- incorporate all child-story requirements into the spec
|
|
46
|
-
- add backlog item ids/URLs to spec links when available
|
|
47
|
-
- mention deferred backlog items only as non-goals, future scope, or `Open Questions`
|
|
48
|
-
|
|
49
|
-
Do not finalize a backlog-backed spec from stale pre-grill story text.
|
package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/discovery.md
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# Discovery
|
|
2
|
-
|
|
3
|
-
Use this reference before asking clarifying questions.
|
|
4
|
-
|
|
5
|
-
## Required order
|
|
6
|
-
|
|
7
|
-
1. Resolve the planning surface. Prefer the first existing layout:
|
|
8
|
-
- routed project wiki: `apps/wiki/content/docs/project/specs`
|
|
9
|
-
- legacy source wiki: `apps/wiki/specs`
|
|
10
|
-
- docs fallback: `docs/specs`
|
|
11
|
-
2. Read local guidance for the resolved surface when present:
|
|
12
|
-
- routed project wiki: `apps/wiki/AGENTS.md`, `apps/wiki/content/docs/project/index.mdx`, `apps/wiki/content/docs/project/meta.json`
|
|
13
|
-
- legacy source wiki: `apps/wiki/AGENTS.md`, `apps/wiki/index.md`
|
|
14
|
-
- docs fallback: `docs/README.md`, `docs/specs/index.md`
|
|
15
|
-
3. If none of those roots exists, create `docs/specs/<domain>/<folder>/SPEC.md` rather than blocking on scaffold setup.
|
|
16
|
-
- Mention that the repo lacks a routed wiki planning surface in the handoff.
|
|
17
|
-
- Do not create or scaffold `apps/wiki` from this skill.
|
|
18
|
-
4. Identify the primary spec domain or project area.
|
|
19
|
-
- Prefer an existing `<resolved-specs-root>/<domain>/` directory when one clearly owns the request.
|
|
20
|
-
- Otherwise infer a concise domain slug from backlog context or the user's request.
|
|
21
|
-
- If multiple domains are involved, pick the primary owner and note cross-domain scope in the spec.
|
|
22
|
-
- Do not create `apps/wiki/domains/` just to make discovery work.
|
|
23
|
-
5. Read existing context for that area when present:
|
|
24
|
-
- `<resolved-specs-root>/<domain>/<domain>-specs.md`
|
|
25
|
-
- routed project pages under `apps/wiki/content/docs/project/**` that match the area
|
|
26
|
-
- docs pages under `docs/**` that match the area
|
|
27
|
-
6. Optionally read related routed project pages when they are obviously relevant.
|
|
28
|
-
7. Check for existing overlapping specs in:
|
|
29
|
-
- `<resolved-specs-root>/<domain>/<domain>-specs.md`
|
|
30
|
-
8. If backlog context exists, inspect the parent epic/capability and every child story beneath it.
|
|
31
|
-
Use [../../write-backlog/assets/concepts/backlog-model.md](../../write-backlog/assets/concepts/backlog-model.md) as the source of truth for how to interpret module -> epic -> story shape.
|
|
32
|
-
Harvest:
|
|
33
|
-
- epic outcome and constraints
|
|
34
|
-
- each child story title
|
|
35
|
-
- each child story body and acceptance signals
|
|
36
|
-
- cross-story blockers or sequencing assumptions that affect the problem statement
|
|
37
|
-
9. Check existing DB schema when a matching domain schema file exists:
|
|
38
|
-
- `packages/db/src/schema/<domain>.ts`
|
|
39
|
-
Use it to:
|
|
40
|
-
- avoid speccing duplicates
|
|
41
|
-
- catch contradictions with the implemented model
|
|
42
|
-
- surface open questions when a required field is absent
|
|
43
|
-
10. Glance at the top-level repo structure only if needed for terminology or context.
|
|
44
|
-
|
|
45
|
-
## Exploration rule
|
|
46
|
-
|
|
47
|
-
This is orientation, not deep implementation research.
|
|
48
|
-
|
|
49
|
-
- Keep it read-only
|
|
50
|
-
- Keep it fast
|
|
51
|
-
- Prefer enough context to ask better questions
|
|
52
|
-
- Do not drift into solution design
|
|
53
|
-
|
|
54
|
-
If the Agent tool is available, use the `planning-discovery` subagent for this pass so the main thread stays clean. Its output should be evidence, contradictions, overlapping work, and open questions only; keep synthesis and spec decisions in the parent thread.
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# Grill Phase
|
|
2
|
-
|
|
3
|
-
Use after discovery/questioning when unresolved spec questions would affect review trust.
|
|
4
|
-
|
|
5
|
-
## Trigger
|
|
6
|
-
|
|
7
|
-
Run bounded `$requirements-grill` when:
|
|
8
|
-
|
|
9
|
-
- multiple child stories conflict or leave cross-story behavior unclear
|
|
10
|
-
- the target actor, outcome, boundary, non-goal, or acceptance signal is ambiguous
|
|
11
|
-
- candidate `Open Questions` would materially change scope, trust, or acceptance criteria
|
|
12
|
-
|
|
13
|
-
Use lightweight direct clarification instead when only one small naming or wording detail is missing.
|
|
14
|
-
|
|
15
|
-
## Load
|
|
16
|
-
|
|
17
|
-
Follow:
|
|
18
|
-
|
|
19
|
-
- `../../../requirements/requirements-grill/references/grilling-flow.md`
|
|
20
|
-
- `../../../requirements/requirements-grill/references/artifact-output.md` for serious grilling sessions
|
|
21
|
-
|
|
22
|
-
## Rules
|
|
23
|
-
|
|
24
|
-
- Follow `$grilling` through `$requirements-grill`; do not define a local interview cadence.
|
|
25
|
-
|
|
26
|
-
## Artifacts
|
|
27
|
-
|
|
28
|
-
For serious sessions, create or reuse:
|
|
29
|
-
|
|
30
|
-
- `<wiki-root>/content/docs/project/grilling/<topic>-grill-log.md`
|
|
31
|
-
- `<wiki-root>/content/docs/project/grilling/<topic>-grill-status.md`
|
|
32
|
-
|
|
33
|
-
Tiny clarification-only runs do not need durable grill artifacts.
|
|
34
|
-
|
|
35
|
-
## Handoff
|
|
36
|
-
|
|
37
|
-
- accepted answers become requirements, constraints, non-goals, acceptance criteria, or decisions
|
|
38
|
-
- parked branches outside the epic become non-goals or future scope
|
|
39
|
-
- explicitly deferred branches become `Open Questions`
|
|
40
|
-
- external-validation branches become `Open Questions` with owner/status
|
|
41
|
-
- accepted scope changes must flow through `backlog-sync.md` before final spec drafting
|
|
42
|
-
- after `$requirements-grill` completes, proceed to backlog sync or spec drafting
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# Questioning
|
|
2
|
-
|
|
3
|
-
Use this reference after discovery and before writing.
|
|
4
|
-
|
|
5
|
-
## Goal
|
|
6
|
-
|
|
7
|
-
Ask only enough to decide whether the spec is ready to draft or needs a bounded `$requirements-grill` phase. A vague spec creates false confidence.
|
|
8
|
-
|
|
9
|
-
Before writing `Open Questions`, route meaningful spec-affecting unknowns through `grill-phase.md`. Do not silently invent an open-question table as a substitute for requirements work.
|
|
10
|
-
|
|
11
|
-
## Priority topics
|
|
12
|
-
|
|
13
|
-
Surface these as needed:
|
|
14
|
-
|
|
15
|
-
- which epic/capability is in scope
|
|
16
|
-
- which child stories under that epic are in scope
|
|
17
|
-
- who this is for
|
|
18
|
-
- why it needs to exist
|
|
19
|
-
- what "done" looks like
|
|
20
|
-
- what is out of scope
|
|
21
|
-
- what constraints exist
|
|
22
|
-
- what is still unknown
|
|
23
|
-
- whether a ticket or project id should influence naming
|
|
24
|
-
|
|
25
|
-
## Asking strategy
|
|
26
|
-
|
|
27
|
-
- Group questions naturally instead of dumping a long questionnaire.
|
|
28
|
-
- Skip questions already answered by repo context or by the user.
|
|
29
|
-
- If a fact is ambiguous and matters to the spec, ask directly.
|
|
30
|
-
- Prefer concrete examples over abstract wording.
|
|
31
|
-
- When backlog context exists, ask about cross-story interactions only after reading all child stories first.
|
|
32
|
-
- If multiple or material unknowns remain, stop lightweight questioning and run the grill phase.
|
|
33
|
-
- If a tiny unknown would become an `Open Question`, ask whether the user can resolve it now or wants to defer it.
|
|
34
|
-
|
|
35
|
-
## Stop asking when
|
|
36
|
-
|
|
37
|
-
- the core problem is clear
|
|
38
|
-
- the epic boundary is clear
|
|
39
|
-
- every child story in scope has been harvested into the spec
|
|
40
|
-
- affected actors or stakeholders are clear
|
|
41
|
-
- success is concrete and observable
|
|
42
|
-
- major functional requirements are identifiable
|
|
43
|
-
- key non-goals are explicit
|
|
44
|
-
|
|
45
|
-
Only leave `Open Questions` in the spec when one of these is true:
|
|
46
|
-
|
|
47
|
-
- the user explicitly chose to defer the question
|
|
48
|
-
- the answer requires external validation outside the current spec session
|
|
49
|
-
- the question is non-blocking and the spec can still be reviewed honestly
|
|
50
|
-
|
|
51
|
-
If a branch remains open after the grill phase or lightweight prompt, capture it as an open question or assumption inside the spec rather than pretending certainty. Include the prompt/grill outcome so reviewers know why it remains unresolved.
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# Sequential Execution
|
|
2
|
-
|
|
3
|
-
Use this approach when execution should stay serial while avoiding main-context implementation churn.
|
|
4
|
-
|
|
5
|
-
## Sequential contract
|
|
6
|
-
|
|
7
|
-
- **Mode:** `sequential`
|
|
8
|
-
- **Worker policy:** spawn exactly one implementation worker
|
|
9
|
-
- **Execution board:** completed, in progress, next, blocked
|
|
10
|
-
|
|
11
|
-
Hard gate: sequential implementation never runs in the parent main thread. If the worker cannot be spawned or routed, stop and repair the worker guard or report the blocker.
|
|
12
|
-
|
|
13
|
-
## Quick start
|
|
14
|
-
|
|
15
|
-
1. Load the shared lifecycle from `lifecycle.md`.
|
|
16
|
-
2. Record `sequential` under **Execution mode** in `IMPLEMENTATION-NOTES.md`.
|
|
17
|
-
3. Read `.agents/subagents/manifest.mjs` when present and choose the best specialist for the whole sequential implementation.
|
|
18
|
-
4. Spawn one worker with the full spec folder, plan, lifecycle rules, required skills, task order, update obligations, and each task's `runtime_validation`, `runtime_target`, `runtime_evidence`, and `runtime_cleanup` fields.
|
|
19
|
-
5. If any assigned task changes UI, include the screenshot evidence contract from [ui-screenshot-evidence.md](ui-screenshot-evidence.md) in the worker brief.
|
|
20
|
-
6. If any assigned task requires runtime validation, include [runtime-product-validation.md](runtime-product-validation.md) in the worker brief.
|
|
21
|
-
7. Require the worker to execute one task at a time in dependency order.
|
|
22
|
-
8. After worker handoff, review the diff, plan updates, notes, and validation evidence before finalization.
|
|
23
|
-
9. Run any parent-level acceptance or smoke checks needed to trust the worker output.
|
|
24
|
-
|
|
25
|
-
## Task loop
|
|
26
|
-
|
|
27
|
-
The worker owns this loop for every task:
|
|
28
|
-
|
|
29
|
-
1. start from `tdd_target`
|
|
30
|
-
2. read `codebase_design_notes` and preserve the intended interface, seam, adapter, and test surface unless implementation proves the plan wrong
|
|
31
|
-
3. classify `tdd_status` and honor the task's RED/GREEN contract
|
|
32
|
-
4. for behavior-changing work, run `red_command`, verify `expected_red_failure`, and record `red_evidence` before production edits
|
|
33
|
-
5. patch only enough production code to pass the public behavior
|
|
34
|
-
6. run `green_command`, record `green_evidence`, and only then mark the task done
|
|
35
|
-
7. for non-testable or non-applicable tasks, record `reason_not_testable` plus the exact alternative verification
|
|
36
|
-
8. for UI implementation changes, capture and link durable before/after screenshot evidence
|
|
37
|
-
9. for `runtime_validation: required`, follow the disclosed runtime validation reference and record conclusive evidence before completion; an exact blocker leaves the task blocked
|
|
38
|
-
10. update the execution board before advancing
|
|
39
|
-
|
|
40
|
-
The parent owns:
|
|
41
|
-
|
|
42
|
-
- worker brief quality
|
|
43
|
-
- post-handoff review
|
|
44
|
-
- acceptance-criteria audit
|
|
45
|
-
- manual review checklist
|
|
46
|
-
- final spec-folder status
|
|
47
|
-
|
|
48
|
-
Stop only when all reachable tasks are complete or a real blocker remains.
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
# Glossary - Writing Great Skills
|
|
2
|
-
|
|
3
|
-
## Predictability
|
|
4
|
-
|
|
5
|
-
The degree to which a skill makes the agent follow the same process on every run. The output may vary; the behavior should not.
|
|
6
|
-
|
|
7
|
-
## Model-Invoked
|
|
8
|
-
|
|
9
|
-
A skill with a `description`, visible to the agent for autonomous use. It pays context load.
|
|
10
|
-
|
|
11
|
-
## User-Invoked
|
|
12
|
-
|
|
13
|
-
A skill with `disable-model-invocation: true`. It is reached by the human, not by autonomous discovery. It pays cognitive load.
|
|
14
|
-
|
|
15
|
-
## Description
|
|
16
|
-
|
|
17
|
-
The model-facing trigger for a model-invoked skill. It should describe branches that should cause invocation.
|
|
18
|
-
|
|
19
|
-
## Context Load
|
|
20
|
-
|
|
21
|
-
The permanent attention and token cost a model-invoked skill imposes through its description.
|
|
22
|
-
|
|
23
|
-
## Cognitive Load
|
|
24
|
-
|
|
25
|
-
The cost the human pays to remember and invoke user-invoked skills.
|
|
26
|
-
|
|
27
|
-
## Branch
|
|
28
|
-
|
|
29
|
-
A distinct way a skill can be used.
|
|
30
|
-
|
|
31
|
-
## Information Hierarchy
|
|
32
|
-
|
|
33
|
-
The ordering of skill material by how immediately the agent needs it: steps, inline reference, disclosed reference.
|
|
34
|
-
|
|
35
|
-
## Steps
|
|
36
|
-
|
|
37
|
-
Ordered actions the agent performs. Each step needs a completion criterion.
|
|
38
|
-
|
|
39
|
-
## Completion Criterion
|
|
40
|
-
|
|
41
|
-
The checkable condition that says a step is done.
|
|
42
|
-
|
|
43
|
-
## Reference
|
|
44
|
-
|
|
45
|
-
Definitions, rules, caveats, and examples the agent consults while running a skill.
|
|
46
|
-
|
|
47
|
-
## Progressive Disclosure
|
|
48
|
-
|
|
49
|
-
Moving branch-specific reference out of `SKILL.md` behind a clear pointer.
|
|
50
|
-
|
|
51
|
-
## Leading Word
|
|
52
|
-
|
|
53
|
-
A compact, pretrained concept that anchors behavior and invocation.
|
|
54
|
-
|
|
55
|
-
## Single Source of Truth
|
|
56
|
-
|
|
57
|
-
One authoritative home for one behavior or meaning.
|
|
58
|
-
|
|
59
|
-
## Duplication
|
|
60
|
-
|
|
61
|
-
The same behavior or meaning repeated in multiple places.
|
|
62
|
-
|
|
63
|
-
## No-op
|
|
64
|
-
|
|
65
|
-
An instruction that does not change behavior versus the agent default.
|
|
66
|
-
|
|
67
|
-
## Sediment
|
|
68
|
-
|
|
69
|
-
Stale layers that remain because adding feels safer than removing.
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: writing-great-skills
|
|
3
|
-
description: Reference for writing and editing skills well: predictable invocation, steps, references, disclosure, and pruning.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Writing Great Skills
|
|
8
|
-
|
|
9
|
-
A skill wrangles predictability out of a stochastic system. Predictability means the agent follows the same process every run, not that it produces the same output.
|
|
10
|
-
|
|
11
|
-
Bold terms are defined in [GLOSSARY.md](GLOSSARY.md).
|
|
12
|
-
|
|
13
|
-
## Invocation
|
|
14
|
-
|
|
15
|
-
Two invocation modes trade different costs:
|
|
16
|
-
|
|
17
|
-
- **Model-invoked**: keep a `description` so the agent can discover and use the skill. This spends **context load** every turn.
|
|
18
|
-
- **User-invoked**: set `disable-model-invocation: true`; the human must remember and request it. This spends **cognitive load**, not context.
|
|
19
|
-
|
|
20
|
-
Use model invocation only when the agent or another skill must reach the skill on its own. Use user invocation when human judgement should be the router.
|
|
21
|
-
|
|
22
|
-
## Description
|
|
23
|
-
|
|
24
|
-
A model-invoked **description** must state what triggers the skill.
|
|
25
|
-
|
|
26
|
-
- Front-load the leading word users and other skills will actually use.
|
|
27
|
-
- Keep one trigger per branch.
|
|
28
|
-
- Remove identity prose already obvious from the skill body.
|
|
29
|
-
- Prune synonyms that describe the same branch.
|
|
30
|
-
|
|
31
|
-
## Information Hierarchy
|
|
32
|
-
|
|
33
|
-
Put material where the agent needs it:
|
|
34
|
-
|
|
35
|
-
1. **Steps** in `SKILL.md`: ordered actions with checkable completion criteria.
|
|
36
|
-
2. **Reference** in `SKILL.md`: rules or definitions every branch needs.
|
|
37
|
-
3. Disclosed **reference**: linked files loaded only when a branch needs them.
|
|
38
|
-
|
|
39
|
-
Inline what every branch needs. Disclose what only some branches need. If a required pointer is missed in practice, sharpen the pointer before inlining the whole reference.
|
|
40
|
-
|
|
41
|
-
## Splitting
|
|
42
|
-
|
|
43
|
-
Split skills only when the split earns its cost:
|
|
44
|
-
|
|
45
|
-
- By invocation: create a model-invoked skill when a distinct leading word should trigger it independently.
|
|
46
|
-
- By sequence: split steps when visible later steps cause premature completion of the current step.
|
|
47
|
-
|
|
48
|
-
Do not split merely for tidiness. Do not merge separate invocation branches just to reduce file count.
|
|
49
|
-
|
|
50
|
-
## Pruning
|
|
51
|
-
|
|
52
|
-
Keep each behavior in one source of truth.
|
|
53
|
-
|
|
54
|
-
Check each sentence:
|
|
55
|
-
|
|
56
|
-
- Does it change agent behavior?
|
|
57
|
-
- Is it still relevant?
|
|
58
|
-
- Is it duplicated elsewhere?
|
|
59
|
-
- Is a stronger leading word enough?
|
|
60
|
-
|
|
61
|
-
Delete no-ops instead of polishing them.
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# Backlog Sync
|
|
2
|
-
|
|
3
|
-
Use before final spec drafting when backlog context exists and the accepted spec direction changes the assigned epic or stories.
|
|
4
|
-
|
|
5
|
-
## Trigger
|
|
6
|
-
|
|
7
|
-
Run `$write-backlog` automatically when the user's objective, discovery, or grill outcomes change:
|
|
8
|
-
|
|
9
|
-
- the epic/capability boundary
|
|
10
|
-
- the parent epic title, problem statement, outcome, non-goals, or acceptance posture
|
|
11
|
-
- child-story acceptance signals, scope, or canonical terms
|
|
12
|
-
- missing, parked, moved, or future-scope stories
|
|
13
|
-
- story descriptions that now conflict with the spec objective
|
|
14
|
-
- story ordering, blockers, or parent/child relationships
|
|
15
|
-
|
|
16
|
-
Skip only for wording clarifications that do not change backlog scope, story meaning, or ordering.
|
|
17
|
-
|
|
18
|
-
## Load
|
|
19
|
-
|
|
20
|
-
Follow:
|
|
21
|
-
|
|
22
|
-
- `../../../requirements/write-backlog/SKILL.md`
|
|
23
|
-
- `../../../requirements/write-backlog/REFERENCE.md`
|
|
24
|
-
- `../../../requirements/write-backlog/assets/concepts/backlog-model.md`
|
|
25
|
-
|
|
26
|
-
If grill artifacts exist, read:
|
|
27
|
-
|
|
28
|
-
1. `<wiki-root>/content/docs/project/grilling/<topic>-grill-status.md`
|
|
29
|
-
2. `<wiki-root>/content/docs/project/grilling/<topic>-grill-log.md`
|
|
30
|
-
|
|
31
|
-
## Rules
|
|
32
|
-
|
|
33
|
-
- The parent epic remains the spec anchor.
|
|
34
|
-
- Child stories remain product-facing slices beneath that epic.
|
|
35
|
-
- The assigned epic or story may be refactored when it no longer matches the accepted spec objective.
|
|
36
|
-
- Derive backlog changes only from accepted decisions and locked direction.
|
|
37
|
-
- Preserve parked branches as deferred scope, follow-up epic/story candidates, or backlog notes.
|
|
38
|
-
- Keep unresolved still-open items out of committed story scope unless explicitly marked.
|
|
39
|
-
- Use native parent/child and `blockedBy` / `blocks` relations when the provider supports them.
|
|
40
|
-
- Do not add implementation details, file paths, TDD targets, validation commands, or worker handoffs to backlog bodies.
|
|
41
|
-
|
|
42
|
-
## Handoff
|
|
43
|
-
|
|
44
|
-
- reread the updated epic and child stories before drafting
|
|
45
|
-
- incorporate all child-story requirements into the spec
|
|
46
|
-
- add backlog item ids/URLs to spec links when available
|
|
47
|
-
- mention deferred backlog items only as non-goals, future scope, or `Open Questions`
|
|
48
|
-
|
|
49
|
-
Do not finalize a backlog-backed spec from stale pre-grill story text.
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# Discovery
|
|
2
|
-
|
|
3
|
-
Use this reference before asking clarifying questions.
|
|
4
|
-
|
|
5
|
-
## Required order
|
|
6
|
-
|
|
7
|
-
1. Resolve the planning surface. Prefer the first existing layout:
|
|
8
|
-
- routed project wiki: `apps/wiki/content/docs/project/specs`
|
|
9
|
-
- legacy source wiki: `apps/wiki/specs`
|
|
10
|
-
- docs fallback: `docs/specs`
|
|
11
|
-
2. Read local guidance for the resolved surface when present:
|
|
12
|
-
- routed project wiki: `apps/wiki/AGENTS.md`, `apps/wiki/content/docs/project/index.mdx`, `apps/wiki/content/docs/project/meta.json`
|
|
13
|
-
- legacy source wiki: `apps/wiki/AGENTS.md`, `apps/wiki/index.md`
|
|
14
|
-
- docs fallback: `docs/README.md`, `docs/specs/index.md`
|
|
15
|
-
3. If none of those roots exists, create `docs/specs/<domain>/<folder>/SPEC.md` rather than blocking on scaffold setup.
|
|
16
|
-
- Mention that the repo lacks a routed wiki planning surface in the handoff.
|
|
17
|
-
- Do not create or scaffold `apps/wiki` from this skill.
|
|
18
|
-
4. Identify the primary spec domain or project area.
|
|
19
|
-
- Prefer an existing `<resolved-specs-root>/<domain>/` directory when one clearly owns the request.
|
|
20
|
-
- Otherwise infer a concise domain slug from backlog context or the user's request.
|
|
21
|
-
- If multiple domains are involved, pick the primary owner and note cross-domain scope in the spec.
|
|
22
|
-
- Do not create `apps/wiki/domains/` just to make discovery work.
|
|
23
|
-
5. Read existing context for that area when present:
|
|
24
|
-
- `<resolved-specs-root>/<domain>/<domain>-specs.md`
|
|
25
|
-
- routed project pages under `apps/wiki/content/docs/project/**` that match the area
|
|
26
|
-
- docs pages under `docs/**` that match the area
|
|
27
|
-
6. Optionally read related routed project pages when they are obviously relevant.
|
|
28
|
-
7. Check for existing overlapping specs in:
|
|
29
|
-
- `<resolved-specs-root>/<domain>/<domain>-specs.md`
|
|
30
|
-
8. If backlog context exists, inspect the parent epic/capability and every child story beneath it.
|
|
31
|
-
Use [../../write-backlog/assets/concepts/backlog-model.md](../../write-backlog/assets/concepts/backlog-model.md) as the source of truth for how to interpret module -> epic -> story shape.
|
|
32
|
-
Harvest:
|
|
33
|
-
- epic outcome and constraints
|
|
34
|
-
- each child story title
|
|
35
|
-
- each child story body and acceptance signals
|
|
36
|
-
- cross-story blockers or sequencing assumptions that affect the problem statement
|
|
37
|
-
9. Check existing DB schema when a matching domain schema file exists:
|
|
38
|
-
- `packages/db/src/schema/<domain>.ts`
|
|
39
|
-
Use it to:
|
|
40
|
-
- avoid speccing duplicates
|
|
41
|
-
- catch contradictions with the implemented model
|
|
42
|
-
- surface open questions when a required field is absent
|
|
43
|
-
10. Glance at the top-level repo structure only if needed for terminology or context.
|
|
44
|
-
|
|
45
|
-
## Exploration rule
|
|
46
|
-
|
|
47
|
-
This is orientation, not deep implementation research.
|
|
48
|
-
|
|
49
|
-
- Keep it read-only
|
|
50
|
-
- Keep it fast
|
|
51
|
-
- Prefer enough context to ask better questions
|
|
52
|
-
- Do not drift into solution design
|
|
53
|
-
|
|
54
|
-
If the Agent tool is available, use the `planning-discovery` subagent for this pass so the main thread stays clean. Its output should be evidence, contradictions, overlapping work, and open questions only; keep synthesis and spec decisions in the parent thread.
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# Grill Phase
|
|
2
|
-
|
|
3
|
-
Use after discovery/questioning when unresolved spec questions would affect review trust.
|
|
4
|
-
|
|
5
|
-
## Trigger
|
|
6
|
-
|
|
7
|
-
Run bounded `$requirements-grill` when:
|
|
8
|
-
|
|
9
|
-
- multiple child stories conflict or leave cross-story behavior unclear
|
|
10
|
-
- the target actor, outcome, boundary, non-goal, or acceptance signal is ambiguous
|
|
11
|
-
- candidate `Open Questions` would materially change scope, trust, or acceptance criteria
|
|
12
|
-
|
|
13
|
-
Use lightweight direct clarification instead when only one small naming or wording detail is missing.
|
|
14
|
-
|
|
15
|
-
## Load
|
|
16
|
-
|
|
17
|
-
Follow:
|
|
18
|
-
|
|
19
|
-
- `../../../requirements/requirements-grill/references/grilling-flow.md`
|
|
20
|
-
- `../../../requirements/requirements-grill/references/artifact-output.md` for serious grilling sessions
|
|
21
|
-
|
|
22
|
-
## Rules
|
|
23
|
-
|
|
24
|
-
- Follow `$grilling` through `$requirements-grill`; do not define a local interview cadence.
|
|
25
|
-
|
|
26
|
-
## Artifacts
|
|
27
|
-
|
|
28
|
-
For serious sessions, create or reuse:
|
|
29
|
-
|
|
30
|
-
- `<wiki-root>/content/docs/project/grilling/<topic>-grill-log.md`
|
|
31
|
-
- `<wiki-root>/content/docs/project/grilling/<topic>-grill-status.md`
|
|
32
|
-
|
|
33
|
-
Tiny clarification-only runs do not need durable grill artifacts.
|
|
34
|
-
|
|
35
|
-
## Handoff
|
|
36
|
-
|
|
37
|
-
- accepted answers become requirements, constraints, non-goals, acceptance criteria, or decisions
|
|
38
|
-
- parked branches outside the epic become non-goals or future scope
|
|
39
|
-
- explicitly deferred branches become `Open Questions`
|
|
40
|
-
- external-validation branches become `Open Questions` with owner/status
|
|
41
|
-
- accepted scope changes must flow through `backlog-sync.md` before final spec drafting
|
|
42
|
-
- after `$requirements-grill` completes, proceed to backlog sync or spec drafting
|