Recommendations to Backlog Plan (Gait)
Execute this workflow when the user asks to turn recommended items into a concrete backlog plan before implementation.
Scope
- Repository root:
/Users/tr/gait
- Recommendation source: user-provided recommended items for this run
- No dependency on
/Users/tr/gait/product/ideas.md
- Planning-only skill. Do not implement code in this workflow.
Input Contract (Mandatory)
recommended_items: structured list or raw text of recommended work to plan.
output_plan_path: absolute or repo-relative file path where the generated plan will be written.
Validation rules:
- Both arguments are required.
output_plan_path must resolve inside the repository and be writable.
- If either input is missing or invalid, stop and output a blocker report.
Workflow
- Parse
recommended_items and normalize each item to:
- recommendation
- why
- strategic direction
- expected moat/benefit
- Remove duplicates and out-of-scope items.
- Cluster recommendations into coherent epics.
- Prioritize with
P0/P1/P2 using contract risk, moat gain, adoption leverage, and dependency order.
- Sequence work in dependency-driven waves:
- Use
Wave 1 .. Wave N and corresponding epic IDs W1 .. WN, where N >= 1.
- Create only one wave when scope is small and a split adds no implementation value.
- Create multiple waves when dependency order, risk reduction, or reviewability benefits from staging.
- When both classes exist, contract/runtime correctness and architecture-boundary work must complete in earlier waves before docs, OSS hygiene, onboarding, or distribution UX waves.
- Create execution-ready stories with:
- tasks
- repo paths
- run commands
- test requirements
- matrix wiring
- acceptance criteria
- If a story affects public surfaces, include stable/internal boundary notes, migration expectations, and where users integrate Gait into their code or pipeline.
- Add plan-level
Test Matrix Wiring.
- Add
Recommendation Traceability mapping recommendations to epic/story IDs.
- Add
Minimum-Now Sequence, Exit Criteria, and Definition of Done, with the explicit wave order and rationale.
- Verify quality gates.
- Overwrite
output_plan_path with the final plan.
Command Contract (JSON Required)
Use gait commands with --json whenever the plan needs machine-readable evidence, for example:
gait doctor --json
gait regress bootstrap --from fixtures/run_demo/runpack.zip --json
Non-Negotiables
- Preserve Gait contracts:
- determinism
- offline-first defaults
- fail-closed policy enforcement
- schema stability
- exit code stability
- Respect architecture boundaries:
- Go core authoritative for enforcement/verification
- Python remains thin adoption layer
- Treat architecture as enforceable code boundaries, not doc-only intent.
- Prefer thin orchestration and focused packages for parsing, persistence, reporting, and policy logic.
- Make side effects explicit in names/signatures and avoid ambiguous
plan vs apply or read vs read+validate semantics.
- Public-surface stories must cover versioning/deprecation expectations, machine-readable error behavior, and install/version discoverability where relevant.
- Long-running workflow stories must include cancellation/timeout propagation expectations.
- Prefer extension points over enterprise forks when the recommendation implies customization pressure.
- No dashboard-first scope in core backlog.
- No minor polish as primary backlog.
- Every story must include tests and matrix wiring.
- Use dependency-driven wave sequencing instead of a fixed two-wave template.
- It may be 1 wave or many waves depending on complexity, dependencies, and implementation risk.
- When both contract/runtime and docs/onboarding/distribution classes exist, all contract/runtime waves must precede later docs/onboarding/distribution waves.
Test Requirements by Work Type (Mandatory)
- Schema/artifact changes:
- schema validation tests
- fixture/golden updates
- compatibility/migration tests
- CLI behavior changes:
- help/usage tests
--json stability tests
- exit-code contract tests
- Gate/policy/fail-closed changes:
- deterministic allow/block/require_approval fixtures
- fail-closed undecidable-path tests
- reason-code stability checks
- Determinism/hash/sign/packaging changes:
- byte-stability repeat-run tests
- canonicalization/digest checks
- verify/diff determinism tests
make test-packspec-tck when applicable
- Job runtime/state/concurrency changes:
- lifecycle tests
- crash-safe/atomic-write tests
- contention/concurrency tests
- chaos suites when applicable
- SDK/adapter boundary changes:
- wrapper error-mapping tests
- adapter parity/conformance tests
- Voice/context-proof changes:
- voice/context conformance acceptance suites as applicable
- Docs/examples changes:
- docs consistency checks
- storyline/smoke checks when user flow changes
- README/quickstart/integration coverage checks when public docs change
- install/version discoverability checks when onboarding changes
- docs source-of-truth sync tasks for
README.md, docs/, docs-site/public/llms.txt, and docs-site/public/llm/*.md
- OSS trust-baseline updates when public launch/support expectations change
Test Matrix Wiring Contract (Plan-Level)
The plan must include a Test Matrix Wiring section with:
- Fast lane
- Core CI lane
- Acceptance lane
- Cross-platform lane
- Risk lane
- Merge/release gating rule
Every story must declare its lane wiring.
Plan Format Contract
Required sections:
# PLAN <name>: <theme>
Date, Source of truth, Scope
Global Decisions (Locked)
Current Baseline (Observed)
Exit Criteria
Recommendation Traceability
Test Matrix Wiring
- Epic sections with objectives and stories
Minimum-Now Sequence
Explicit Non-Goals
Definition of Done
Epic and wave numbering contract:
- Use
## Epic W1: ..., ## Epic W2: ..., through ## Epic WN: ... as needed.
- Story IDs under each epic must follow the same wave prefix, for example
W3-S2.
- Do not invent extra waves unless they improve dependency ordering, risk control, or reviewability.
Story template:
### Story <ID>: <title>
Priority:
Tasks:
Repo paths:
Run commands:
Test requirements:
Matrix wiring:
Acceptance criteria:
- Optional:
Dependencies:, Risks:
Quality Gate
Before finalizing:
- Every recommendation maps to at least one epic/story.
- Every story is actionable without guesswork.
- Acceptance criteria are testable and deterministic.
- Paths are real and repo-relevant.
- Test requirements match story type.
- Matrix wiring exists for every story.
- Sequence is dependency-aware and implementation-ready.
- Wave numbering is explicit, sequential, and justified by dependency order.
- Earlier waves cover contract/runtime and architecture-boundary work before later docs/OSS/onboarding/distribution waves when both classes are present.
- Public/internal boundaries, integration hooks, and side effects are explicit where stories affect user-facing surfaces.
- Launch-facing plans include OSS trust-baseline and docs source-of-truth work when relevant.
Failure Mode
If inputs are missing or recommendations are not plan-ready, write only:
No backlog plan generated.
Reason: concise blocker summary.
Missing inputs: exact required fields.
Do not fabricate backlog content.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: adhoc-plan3description: Convert user-provided recommended work items into an execution-ready Gait backlog plan at a user-provided output path, with epics, stories, test requirements, and CI matrix wiring. Use when this capability is needed.4---56# Recommendations to Backlog Plan (Gait)78Execute this workflow when the user asks to turn recommended items into a concrete backlog plan before implementation.910## Scope1112- Repository root: `/Users/tr/gait`13- Recommendation source: user-provided recommended items for this run14- No dependency on `/Users/tr/gait/product/ideas.md`15- Planning-only skill. Do not implement code in this workflow.1617## Input Contract (Mandatory)1819- `recommended_items`: structured list or raw text of recommended work to plan.20- `output_plan_path`: absolute or repo-relative file path where the generated plan will be written.2122Validation rules:23- Both arguments are required.24- `output_plan_path` must resolve inside the repository and be writable.25- If either input is missing or invalid, stop and output a blocker report.2627## Workflow28291. Parse `recommended_items` and normalize each item to:30- recommendation31- why32- strategic direction33- expected moat/benefit342. Remove duplicates and out-of-scope items.353. Cluster recommendations into coherent epics.364. Prioritize with `P0/P1/P2` using contract risk, moat gain, adoption leverage, and dependency order.375. Sequence work in dependency-driven waves:38- Use `Wave 1 .. Wave N` and corresponding epic IDs `W1 .. WN`, where `N >= 1`.39- Create only one wave when scope is small and a split adds no implementation value.40- Create multiple waves when dependency order, risk reduction, or reviewability benefits from staging.41- When both classes exist, contract/runtime correctness and architecture-boundary work must complete in earlier waves before docs, OSS hygiene, onboarding, or distribution UX waves.426. Create execution-ready stories with:43- tasks44- repo paths45- run commands46- test requirements47- matrix wiring48- acceptance criteria49- If a story affects public surfaces, include stable/internal boundary notes, migration expectations, and where users integrate Gait into their code or pipeline.507. Add plan-level `Test Matrix Wiring`.518. Add `Recommendation Traceability` mapping recommendations to epic/story IDs.529. Add `Minimum-Now Sequence`, `Exit Criteria`, and `Definition of Done`, with the explicit wave order and rationale.5310. Verify quality gates.5411. Overwrite `output_plan_path` with the final plan.5556## Command Contract (JSON Required)5758Use `gait` commands with `--json` whenever the plan needs machine-readable evidence, for example:5960- `gait doctor --json`61- `gait regress bootstrap --from fixtures/run_demo/runpack.zip --json`6263## Non-Negotiables6465- Preserve Gait contracts:66- determinism67- offline-first defaults68- fail-closed policy enforcement69- schema stability70- exit code stability71- Respect architecture boundaries:72- Go core authoritative for enforcement/verification73- Python remains thin adoption layer74- Treat architecture as enforceable code boundaries, not doc-only intent.75- Prefer thin orchestration and focused packages for parsing, persistence, reporting, and policy logic.76- Make side effects explicit in names/signatures and avoid ambiguous `plan` vs `apply` or `read` vs `read+validate` semantics.77- Public-surface stories must cover versioning/deprecation expectations, machine-readable error behavior, and install/version discoverability where relevant.78- Long-running workflow stories must include cancellation/timeout propagation expectations.79- Prefer extension points over enterprise forks when the recommendation implies customization pressure.80- No dashboard-first scope in core backlog.81- No minor polish as primary backlog.82- Every story must include tests and matrix wiring.83- Use dependency-driven wave sequencing instead of a fixed two-wave template.84- It may be 1 wave or many waves depending on complexity, dependencies, and implementation risk.85- When both contract/runtime and docs/onboarding/distribution classes exist, all contract/runtime waves must precede later docs/onboarding/distribution waves.8687## Test Requirements by Work Type (Mandatory)88891. Schema/artifact changes:90- schema validation tests91- fixture/golden updates92- compatibility/migration tests93942. CLI behavior changes:95- help/usage tests96- `--json` stability tests97- exit-code contract tests98993. Gate/policy/fail-closed changes:100- deterministic allow/block/require_approval fixtures101- fail-closed undecidable-path tests102- reason-code stability checks1031044. Determinism/hash/sign/packaging changes:105- byte-stability repeat-run tests106- canonicalization/digest checks107- verify/diff determinism tests108- `make test-packspec-tck` when applicable1091105. Job runtime/state/concurrency changes:111- lifecycle tests112- crash-safe/atomic-write tests113- contention/concurrency tests114- chaos suites when applicable1151166. SDK/adapter boundary changes:117- wrapper error-mapping tests118- adapter parity/conformance tests1191207. Voice/context-proof changes:121- voice/context conformance acceptance suites as applicable1221238. Docs/examples changes:124- docs consistency checks125- storyline/smoke checks when user flow changes126- README/quickstart/integration coverage checks when public docs change127- install/version discoverability checks when onboarding changes128- docs source-of-truth sync tasks for `README.md`, `docs/`, `docs-site/public/llms.txt`, and `docs-site/public/llm/*.md`129- OSS trust-baseline updates when public launch/support expectations change130131## Test Matrix Wiring Contract (Plan-Level)132133The plan must include a `Test Matrix Wiring` section with:134135- Fast lane136- Core CI lane137- Acceptance lane138- Cross-platform lane139- Risk lane140- Merge/release gating rule141142Every story must declare its lane wiring.143144## Plan Format Contract145146Required sections:1471481. `# PLAN <name>: <theme>`1492. `Date`, `Source of truth`, `Scope`1503. `Global Decisions (Locked)`1514. `Current Baseline (Observed)`1525. `Exit Criteria`1536. `Recommendation Traceability`1547. `Test Matrix Wiring`1558. Epic sections with objectives and stories1569. `Minimum-Now Sequence`15710. `Explicit Non-Goals`15811. `Definition of Done`159160Epic and wave numbering contract:161162- Use `## Epic W1: ...`, `## Epic W2: ...`, through `## Epic WN: ...` as needed.163- Story IDs under each epic must follow the same wave prefix, for example `W3-S2`.164- Do not invent extra waves unless they improve dependency ordering, risk control, or reviewability.165166Story template:167168- `### Story <ID>: <title>`169- `Priority:`170- `Tasks:`171- `Repo paths:`172- `Run commands:`173- `Test requirements:`174- `Matrix wiring:`175- `Acceptance criteria:`176- Optional: `Dependencies:`, `Risks:`177178## Quality Gate179180Before finalizing:181182- Every recommendation maps to at least one epic/story.183- Every story is actionable without guesswork.184- Acceptance criteria are testable and deterministic.185- Paths are real and repo-relevant.186- Test requirements match story type.187- Matrix wiring exists for every story.188- Sequence is dependency-aware and implementation-ready.189- Wave numbering is explicit, sequential, and justified by dependency order.190- Earlier waves cover contract/runtime and architecture-boundary work before later docs/OSS/onboarding/distribution waves when both classes are present.191- Public/internal boundaries, integration hooks, and side effects are explicit where stories affect user-facing surfaces.192- Launch-facing plans include OSS trust-baseline and docs source-of-truth work when relevant.193194## Failure Mode195196If inputs are missing or recommendations are not plan-ready, write only:197198- `No backlog plan generated.`199- `Reason:` concise blocker summary.200- `Missing inputs:` exact required fields.201202Do not fabricate backlog content.203204---205> Converted and distributed by [TomeVault](https://tomevault.io/claim/clyra-ai) — claim your Tome and manage your conversions.206<!-- tomevault:4.0:skill_md:2026-04-11 -->