@yandy-r/ycc-opencode 0.0.0-stage → 6.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/AGENTS.md +39 -0
- package/LICENSE +21 -0
- package/README.md +50 -2
- package/agents/ansible-automation-expert.md +115 -0
- package/agents/api-docs-expert.md +146 -0
- package/agents/api-documenter.md +105 -0
- package/agents/architect.md +264 -0
- package/agents/architecture-analyst.md +99 -0
- package/agents/backport-conflict-resolver.md +476 -0
- package/agents/cloudflare-architect.md +85 -0
- package/agents/cloudflare-developer.md +196 -0
- package/agents/code-architect.md +101 -0
- package/agents/code-documenter.md +114 -0
- package/agents/code-explorer.md +99 -0
- package/agents/code-finder.md +83 -0
- package/agents/code-researcher.md +102 -0
- package/agents/code-reviewer.md +268 -0
- package/agents/code-simplifier.md +77 -0
- package/agents/codebase-advisor.md +130 -0
- package/agents/db-modifier.md +577 -0
- package/agents/docs-git-committer.md +220 -0
- package/agents/documentation-writer.md +92 -0
- package/agents/feature-researcher.md +121 -0
- package/agents/feature-writer.md +89 -0
- package/agents/frontend-ui-developer.md +98 -0
- package/agents/git-cleanup.md +174 -0
- package/agents/go-api-architect.md +172 -0
- package/agents/go-expert-architect.md +147 -0
- package/agents/implementor.md +167 -0
- package/agents/library-docs-writer.md +128 -0
- package/agents/nextjs-ux-ui-expert.md +127 -0
- package/agents/nodejs-backend-architect.md +112 -0
- package/agents/nodejs-backend-developer.md +184 -0
- package/agents/planner.md +257 -0
- package/agents/pr-comment-fixer.md +626 -0
- package/agents/practices-researcher.md +80 -0
- package/agents/project-file-cleaner.md +140 -0
- package/agents/prp-researcher.md +231 -0
- package/agents/python-developer.md +171 -0
- package/agents/python-expert-architect.md +188 -0
- package/agents/readme-generator.md +100 -0
- package/agents/release-fix-applier.md +558 -0
- package/agents/releaser.md +147 -0
- package/agents/research-specialist.md +106 -0
- package/agents/reverse-proxy-architect.md +131 -0
- package/agents/review-fixer.md +609 -0
- package/agents/root-cause-analyzer.md +105 -0
- package/agents/rust-build-resolver.md +183 -0
- package/agents/rust-expert-architect.md +149 -0
- package/agents/rust-reviewer.md +126 -0
- package/agents/sql-database-developer.md +195 -0
- package/agents/systems-engineering-expert.md +203 -0
- package/agents/terraform-architect.md +109 -0
- package/agents/terraform-developer.md +229 -0
- package/agents/test-strategy-planner.md +126 -0
- package/agents/turso-database-architect.md +139 -0
- package/agents/typescript-developer.md +170 -0
- package/agents/typescript-expert-architect.md +167 -0
- package/index.js +523 -0
- package/package.json +36 -4
- package/registration.json +7259 -0
- package/shared/references/agent-native-setup.md +121 -0
- package/shared/references/branch-prep.md +31 -0
- package/shared/references/branching-model.md +162 -0
- package/shared/references/ci-monitoring.md +455 -0
- package/shared/references/forge-detection.md +162 -0
- package/shared/references/goal-pairing.md +55 -0
- package/shared/references/pr-base-and-backport.md +143 -0
- package/shared/references/question-policy.md +99 -0
- package/shared/references/review-artifact-format.md +141 -0
- package/shared/references/review-checklist.md +161 -0
- package/shared/references/review-dispatch.md +73 -0
- package/shared/references/session-state.md +159 -0
- package/shared/references/standalone-dispatch.md +300 -0
- package/shared/references/target-capability-matrix.md +516 -0
- package/shared/references/visual-mode.md +155 -0
- package/shared/references/worktree-strategy.md +326 -0
- package/shared/scripts/backport-audit.sh +283 -0
- package/shared/scripts/ci-monitor.sh +637 -0
- package/shared/scripts/lib/backport-lib.sh +47 -0
- package/shared/scripts/lib/ci-classify.sh +103 -0
- package/shared/scripts/lib/forge.sh +264 -0
- package/shared/scripts/lib/release-state-lib.sh +300 -0
- package/shared/scripts/list-worktrees.sh +178 -0
- package/shared/scripts/merge-children.sh +82 -0
- package/shared/scripts/move-plan-to-worktree.sh +231 -0
- package/shared/scripts/pr-guard.sh +283 -0
- package/shared/scripts/prepare-feature-branch.sh +326 -0
- package/shared/scripts/release-ci-monitor.sh +671 -0
- package/shared/scripts/release-state-update.sh +216 -0
- package/shared/scripts/release-state.sh +178 -0
- package/shared/scripts/report-bundle-drift.sh +343 -0
- package/shared/scripts/require-python.sh +17 -0
- package/shared/scripts/resolve-plans-dir.sh +262 -0
- package/shared/scripts/rules-pointer.sh +20 -0
- package/shared/scripts/rules_pointer.py +267 -0
- package/shared/scripts/setup-worktree.sh +288 -0
- package/shared/scripts/validate-file-paths.sh +249 -0
- package/shared/scripts/visual-egress-guard.sh +303 -0
- package/shared/scripts/visual-recap-collect.sh +247 -0
- package/shared/scripts/worktree-paths.sh +91 -0
- package/skills/backport/SKILL.md +293 -0
- package/skills/backport/scripts/cherry-pick-pr.sh +232 -0
- package/skills/backport/scripts/find-pending.sh +199 -0
- package/skills/blueprint/SKILL.md +412 -0
- package/skills/blueprint/references/bootstrap-mapping.md +87 -0
- package/skills/bundle-author/SKILL.md +121 -0
- package/skills/bundle-author/references/surface-map.md +128 -0
- package/skills/bundle-author/references/templates/agent-template.md +21 -0
- package/skills/bundle-author/references/templates/skill-template.md +36 -0
- package/skills/bundle-author/references/when-not-to-scaffold.md +85 -0
- package/skills/bundle-author/scripts/scaffold-skill.sh +156 -0
- package/skills/bundle-release/SKILL.md +192 -0
- package/skills/bundle-release/references/release-checklist.md +196 -0
- package/skills/bundle-release/references/release-notes-template.md +48 -0
- package/skills/bundle-release/references/version-policy.md +156 -0
- package/skills/bundle-release/scripts/bump-version.sh +99 -0
- package/skills/bundle-release/scripts/draft-notes.sh +222 -0
- package/skills/bundle-release/scripts/preflight.sh +165 -0
- package/skills/bundle-release/scripts/release_versions.py +375 -0
- package/skills/clean/SKILL.md +109 -0
- package/skills/clean/references/agent-prompts.md +199 -0
- package/skills/clean/references/safety-config.md +125 -0
- package/skills/clean/scripts/detect-project-type.sh +423 -0
- package/skills/clean/scripts/generate-report.sh +245 -0
- package/skills/clean/scripts/validate-safety.sh +401 -0
- package/skills/code-report/SKILL.md +377 -0
- package/skills/code-report/scripts/check-prerequisites.sh +65 -0
- package/skills/code-report/templates/report-structure.md +202 -0
- package/skills/code-review/SKILL.md +155 -0
- package/skills/code-review/references/pr-procedure.md +311 -0
- package/skills/compatibility-audit/SKILL.md +229 -0
- package/skills/compatibility-audit/references/reading-the-report.md +162 -0
- package/skills/compatibility-audit/scripts/audit-install-assumptions.sh +431 -0
- package/skills/compatibility-audit/scripts/audit-target-features.sh +596 -0
- package/skills/deep-research/SKILL.md +251 -0
- package/skills/deep-research/references/analysis-prompts.md +702 -0
- package/skills/deep-research/references/completion-summary-template.md +66 -0
- package/skills/deep-research/references/persona-analogical.md +159 -0
- package/skills/deep-research/references/persona-archaeological.md +69 -0
- package/skills/deep-research/references/persona-contrarian.md +155 -0
- package/skills/deep-research/references/persona-futurist.md +70 -0
- package/skills/deep-research/references/persona-historical.md +142 -0
- package/skills/deep-research/references/persona-journalistic.md +69 -0
- package/skills/deep-research/references/persona-negative-space.md +70 -0
- package/skills/deep-research/references/persona-systems.md +69 -0
- package/skills/deep-research/references/synthesis-template.md +569 -0
- package/skills/deep-research/references/verification-log-template.md +32 -0
- package/skills/deep-research/scripts/check-prerequisites.sh +153 -0
- package/skills/deep-research/scripts/validate-research.sh +244 -0
- package/skills/feature-research/SKILL.md +294 -0
- package/skills/feature-research/scripts/validate-research.sh +159 -0
- package/skills/feature-research/scripts/validate-spec.sh +270 -0
- package/skills/feature-research/templates/research-agents.md +569 -0
- package/skills/feature-research/templates/spec-structure.md +437 -0
- package/skills/formatters/SKILL.md +209 -0
- package/skills/formatters/references/best-practices.md +78 -0
- package/skills/formatters/references/flag-reference.md +178 -0
- package/skills/formatters/references/stack-detection.md +119 -0
- package/skills/formatters/references/templates/husky-pre-commit.tmpl +13 -0
- package/skills/formatters/references/templates/justfile-snippet.just.tmpl +31 -0
- package/skills/formatters/references/templates/lefthook.yml.tmpl +22 -0
- package/skills/formatters/references/templates/lint-autofix.yml.tmpl +94 -0
- package/skills/formatters/references/templates/lint.yml.tmpl +85 -0
- package/skills/formatters/references/templates/makefile-snippet.mk.tmpl +34 -0
- package/skills/formatters/references/templates/package-json-scripts.json.tmpl +14 -0
- package/skills/formatters/references/templates/readme-section.md.tmpl +118 -0
- package/skills/formatters/scripts/apply-aliases.sh +245 -0
- package/skills/formatters/scripts/apply-ci.sh +136 -0
- package/skills/formatters/scripts/apply-docs.sh +187 -0
- package/skills/formatters/scripts/apply-hooks.sh +261 -0
- package/skills/formatters/scripts/bundle/format.sh +15 -0
- package/skills/formatters/scripts/bundle/go-tools.sh +119 -0
- package/skills/formatters/scripts/bundle/init-formatters.sh +517 -0
- package/skills/formatters/scripts/bundle/install-shellcheck.sh +85 -0
- package/skills/formatters/scripts/bundle/lib/excludes.sh +179 -0
- package/skills/formatters/scripts/bundle/lib/modified-files.sh +222 -0
- package/skills/formatters/scripts/bundle/lib/shellcheck-resolve.sh +81 -0
- package/skills/formatters/scripts/bundle/lib/shellcheck-version.sh +5 -0
- package/skills/formatters/scripts/bundle/lint.sh +15 -0
- package/skills/formatters/scripts/bundle/style.sh +1410 -0
- package/skills/formatters/scripts/bundle/templates/biome.json +81 -0
- package/skills/formatters/scripts/bundle/templates/clippy.toml +2 -0
- package/skills/formatters/scripts/bundle/templates/markdownlint.json +14 -0
- package/skills/formatters/scripts/bundle/templates/markdownlintignore +38 -0
- package/skills/formatters/scripts/bundle/templates/prettierignore +45 -0
- package/skills/formatters/scripts/bundle/templates/prettierrc.json +11 -0
- package/skills/formatters/scripts/bundle/templates/python-pyproject.toml +80 -0
- package/skills/formatters/scripts/bundle/templates/rustfmt.toml +41 -0
- package/skills/formatters/scripts/bundle/templates/tsconfig.json +21 -0
- package/skills/formatters/scripts/profile-style.sh +264 -0
- package/skills/frontend-design/SKILL.md +151 -0
- package/skills/frontend-patterns/SKILL.md +66 -0
- package/skills/frontend-patterns/references/animation.md +21 -0
- package/skills/frontend-patterns/references/components-and-state.md +40 -0
- package/skills/frontend-patterns/references/data-and-performance.md +34 -0
- package/skills/frontend-patterns/references/forms-errors-a11y.md +35 -0
- package/skills/git-cleanup/SKILL.md +300 -0
- package/skills/git-cleanup/references/active-code-rules.md +323 -0
- package/skills/git-cleanup/references/host-detection.md +217 -0
- package/skills/git-workflow/SKILL.md +132 -0
- package/skills/git-workflow/references/ci-monitoring-phase.md +130 -0
- package/skills/git-workflow/references/commit-phases.md +247 -0
- package/skills/git-workflow/references/examples-and-troubleshooting.md +47 -0
- package/skills/git-workflow/references/goal-pairing.md +23 -0
- package/skills/git-workflow/references/pr-creation.md +269 -0
- package/skills/git-workflow/scripts/analyze-changes.sh +266 -0
- package/skills/git-workflow/scripts/create-pr.sh +464 -0
- package/skills/git-workflow/scripts/validate-commit.sh +235 -0
- package/skills/git-workflow/templates/agent-prompts.md +518 -0
- package/skills/git-workflow/templates/commit-types.md +504 -0
- package/skills/git-workflow/templates/documentation-decision.md +509 -0
- package/skills/git-workflow/templates/pr-template.md +772 -0
- package/skills/go-patterns/SKILL.md +89 -0
- package/skills/go-patterns/references/design-and-tooling.md +336 -0
- package/skills/go-patterns/references/errors-and-concurrency.md +292 -0
- package/skills/go-testing/SKILL.md +133 -0
- package/skills/go-testing/references/advanced-testing.md +349 -0
- package/skills/go-testing/references/test-structure.md +277 -0
- package/skills/hooks-workflow/SKILL.md +232 -0
- package/skills/hooks-workflow/references/support-notes.md +134 -0
- package/skills/hooks-workflow/references/templates/claude-settings.json.tmpl +13 -0
- package/skills/hooks-workflow/references/templates/codex-config-fragment.toml.tmpl +9 -0
- package/skills/hooks-workflow/references/templates/cursor-rule-fragment.mdc.tmpl +16 -0
- package/skills/hooks-workflow/scripts/build-hook-config.sh +487 -0
- package/skills/hooks-workflow/scripts/verify-hooks.sh +257 -0
- package/skills/implement-plan/SKILL.md +223 -0
- package/skills/implement-plan/references/agent-task-prompt.md +214 -0
- package/skills/implement-plan/references/output-formats.md +150 -0
- package/skills/implement-plan/references/plan-inputs.md +126 -0
- package/skills/implement-plan/scripts/check-prerequisites.sh +78 -0
- package/skills/implement-plan/scripts/parse-dependencies.sh +206 -0
- package/skills/init/SKILL.md +274 -0
- package/skills/init/references/conventional-commits.md +114 -0
- package/skills/init/references/flag-reference.md +236 -0
- package/skills/init/references/label-taxonomy.md +115 -0
- package/skills/init/references/project-profile-heuristics.md +156 -0
- package/skills/init/references/template-library.md +129 -0
- package/skills/init/scripts/count-source-files.sh +60 -0
- package/skills/init/scripts/generate-agent-catalog.sh +193 -0
- package/skills/init/scripts/generate-mcp-catalog.sh +214 -0
- package/skills/init/scripts/migrate-rules.py +459 -0
- package/skills/init/scripts/migrate-rules.sh +26 -0
- package/skills/init/scripts/profile-project.sh +453 -0
- package/skills/init/scripts/render-template.py +226 -0
- package/skills/init/scripts/render-template.sh +25 -0
- package/skills/init/scripts/rules-report.sh +31 -0
- package/skills/init/scripts/rules_file_lib.py +41 -0
- package/skills/init/templates/AGENTS.md.tmpl +38 -0
- package/skills/init/templates/CLAUDE.md.tmpl +7 -0
- package/skills/init/templates/ai-rule.md.tmpl +3 -0
- package/skills/init/templates/cursor-rule.mdc.tmpl +7 -0
- package/skills/init/templates/git/commitlint.config.cjs.tmpl +40 -0
- package/skills/init/templates/git/gitignore.tmpl +121 -0
- package/skills/init/templates/git/gitmessage.tmpl +27 -0
- package/skills/init/templates/git/install-lefthook.sh.tmpl +131 -0
- package/skills/init/templates/git/lefthook-usage.md.tmpl +101 -0
- package/skills/init/templates/git/lefthook.yml.tmpl +64 -0
- package/skills/init/templates/github/bug_report.yml.tmpl +78 -0
- package/skills/init/templates/github/config.yml.tmpl +5 -0
- package/skills/init/templates/github/copilot-instructions.md.tmpl +24 -0
- package/skills/init/templates/github/docs_request.yml.tmpl +41 -0
- package/skills/init/templates/github/feature_request.yml.tmpl +59 -0
- package/skills/init/templates/github/labels.md.tmpl +75 -0
- package/skills/init/templates/github/pull_request_template.md.tmpl +66 -0
- package/skills/init/templates/github/workflows/pr-title-autofix.yml.tmpl +101 -0
- package/skills/init/templates/github/workflows/pr-title.yml.tmpl +55 -0
- package/skills/init/templates/workspace-report.md +83 -0
- package/skills/orchestrate/SKILL.md +165 -0
- package/skills/orchestrate/references/agent-catalog.md +601 -0
- package/skills/orchestrate/references/agent-prompts.md +495 -0
- package/skills/orchestrate/references/dispatch-playbook.md +333 -0
- package/skills/orchestrate/references/task-breakdown.md +410 -0
- package/skills/orchestrate/scripts/analyze-task.sh +139 -0
- package/skills/orchestrate/scripts/summarize-results.sh +160 -0
- package/skills/orchestrate/scripts/validate-agents.sh +92 -0
- package/skills/parallel-plan/SKILL.md +124 -0
- package/skills/plan/SKILL.md +136 -0
- package/skills/plan/references/enhanced-personas.md +131 -0
- package/skills/plan/references/personas-and-merge.md +77 -0
- package/skills/plan/references/plan-validation.md +65 -0
- package/skills/plan/references/planner-prompts.md +68 -0
- package/skills/plan/references/planning-tracks.md +73 -0
- package/skills/plan-workflow/SKILL.md +409 -0
- package/skills/plan-workflow/references/checkpoint-messages.md +370 -0
- package/skills/plan-workflow/references/plan-structure.md +238 -0
- package/skills/plan-workflow/references/planning-agents.md +511 -0
- package/skills/plan-workflow/references/research-agents-optimized.md +348 -0
- package/skills/plan-workflow/references/research-agents.md +436 -0
- package/skills/plan-workflow/references/shared-structure.md +152 -0
- package/skills/plan-workflow/references/validation-agents.md +363 -0
- package/skills/plan-workflow/scripts/check-prerequisites.sh +65 -0
- package/skills/plan-workflow/scripts/check-state.sh +190 -0
- package/skills/plan-workflow/scripts/persist-or-fail.sh +135 -0
- package/skills/plan-workflow/scripts/validate-analysis-artifacts.sh +216 -0
- package/skills/plan-workflow/scripts/validate-research-artifacts.sh +225 -0
- package/skills/plan-workflow/scripts/validate-shared.sh +229 -0
- package/skills/plan-workflow/scripts/validate-workflow-plan.sh +256 -0
- package/skills/pr-autofix/SKILL.md +309 -0
- package/skills/pr-autofix/references/ci-loop.md +64 -0
- package/skills/pr-autofix/references/comment-sources.md +197 -0
- package/skills/pr-autofix/references/data-shapes.md +87 -0
- package/skills/pr-autofix/references/goal-example.md +30 -0
- package/skills/pr-autofix/references/output-templates.md +162 -0
- package/skills/pr-autofix/references/prompt-injection-safety.md +165 -0
- package/skills/pr-autofix/references/related-skills.md +11 -0
- package/skills/pr-autofix/references/severity-mapping.md +146 -0
- package/skills/pr-autofix/scripts/fetch-pr-comments.sh +364 -0
- package/skills/pr-autofix/scripts/post-summary.sh +226 -0
- package/skills/pr-autofix/scripts/resolve-thread.sh +251 -0
- package/skills/prp-commit/SKILL.md +128 -0
- package/skills/prp-implement/SKILL.md +179 -0
- package/skills/prp-implement/references/agent-task-prompt.md +36 -0
- package/skills/prp-implement/references/detection.md +49 -0
- package/skills/prp-implement/references/dry-run.md +0 -0
- package/skills/prp-implement/references/report-output.md +204 -0
- package/skills/prp-implement/references/validation-and-failures.md +118 -0
- package/skills/prp-plan/SKILL.md +323 -0
- package/skills/prp-plan/references/enhanced-researchers.md +425 -0
- package/skills/prp-plan/references/parallel-additions.md +56 -0
- package/skills/prp-plan/references/plan-template.md +264 -0
- package/skills/prp-plan/references/synthesis-map.md +25 -0
- package/skills/prp-plan/scripts/validate-prp-plan.sh +368 -0
- package/skills/prp-pr/SKILL.md +404 -0
- package/skills/prp-prd/SKILL.md +444 -0
- package/skills/prp-spec/SKILL.md +276 -0
- package/skills/python-patterns/SKILL.md +103 -0
- package/skills/python-patterns/references/core-idioms.md +304 -0
- package/skills/python-patterns/references/design-and-tooling.md +407 -0
- package/skills/python-testing/SKILL.md +114 -0
- package/skills/python-testing/references/mocking-and-integration.md +395 -0
- package/skills/python-testing/references/pytest-core.md +366 -0
- package/skills/quick-fix/SKILL.md +246 -0
- package/skills/quick-review/SKILL.md +306 -0
- package/skills/release-model/SKILL.md +233 -0
- package/skills/release-model/references/pointer-and-labels.md +83 -0
- package/skills/release-model/references/signals-and-proposal.md +68 -0
- package/skills/release-model/references/template-placeholders.md +42 -0
- package/skills/release-model/references/upgrade-and-audit.md +131 -0
- package/skills/release-model/scripts/collect-signals.sh +459 -0
- package/skills/release-model/scripts/pointer-targets.sh +29 -0
- package/skills/release-model/templates/RELEASING.md.tmpl +151 -0
- package/skills/releaser/SKILL.md +253 -0
- package/skills/releaser/references/ci-optimization-checklist.md +149 -0
- package/skills/releaser/references/ci-templates/docker-release.yml +88 -0
- package/skills/releaser/references/ci-templates/generic-release.yml +69 -0
- package/skills/releaser/references/ci-templates/go-release.yml +50 -0
- package/skills/releaser/references/ci-templates/node-release.yml +126 -0
- package/skills/releaser/references/ci-templates/python-release.yml +95 -0
- package/skills/releaser/references/ci-templates/rust-release.yml +128 -0
- package/skills/releaser/references/ci-workflow-modes.md +42 -0
- package/skills/releaser/references/goal-pairing.md +37 -0
- package/skills/releaser/references/output-templates.md +143 -0
- package/skills/releaser/references/project-type-matrix.md +144 -0
- package/skills/releaser/references/release-branches.md +138 -0
- package/skills/releaser/references/release-ci-loop.md +249 -0
- package/skills/releaser/references/release-notes-template.md +42 -0
- package/skills/releaser/references/release-preparation.md +210 -0
- package/skills/releaser/scripts/check-release-branch.sh +235 -0
- package/skills/releaser/scripts/detect-project.sh +234 -0
- package/skills/releaser/scripts/draft-changelog.sh +387 -0
- package/skills/releaser/scripts/publish-release.sh +302 -0
- package/skills/research-to-issues/SKILL.md +287 -0
- package/skills/research-to-issues/references/label-taxonomy.md +48 -0
- package/skills/research-to-issues/references/parse-deep-research.md +86 -0
- package/skills/research-to-issues/references/parse-feature-spec.md +143 -0
- package/skills/research-to-issues/references/parse-parallel-plan.md +124 -0
- package/skills/research-to-issues/references/parse-prd.md +184 -0
- package/skills/research-to-issues/references/parse-prp-plan.md +237 -0
- package/skills/research-to-issues/references/plan-display-format.md +136 -0
- package/skills/research-to-issues/scripts/validate-prerequisites.sh +312 -0
- package/skills/research-to-issues/templates/feature-issue.md +131 -0
- package/skills/research-to-issues/templates/task-issue.md +104 -0
- package/skills/research-to-issues/templates/tracking-issue.md +126 -0
- package/skills/resume-session/SKILL.md +154 -0
- package/skills/review-fix/SKILL.md +231 -0
- package/skills/review-fix/references/fix-report.md +121 -0
- package/skills/review-fix/references/fixer-dispatch.md +79 -0
- package/skills/review-fix/references/plan.md +119 -0
- package/skills/rust-patterns/SKILL.md +85 -0
- package/skills/rust-patterns/references/concurrency-unsafe-modules.md +243 -0
- package/skills/rust-patterns/references/ownership-errors-types.md +262 -0
- package/skills/rust-testing/SKILL.md +99 -0
- package/skills/rust-testing/references/advanced-testing.md +247 -0
- package/skills/rust-testing/references/unit-and-integration.md +193 -0
- package/skills/save-session/SKILL.md +161 -0
- package/skills/shared-context/SKILL.md +101 -0
- package/skills/ts-patterns/SKILL.md +159 -0
- package/skills/ts-patterns/references/async-runtimes-tooling.md +375 -0
- package/skills/ts-patterns/references/types-errors-modules.md +336 -0
- package/skills/ts-testing/SKILL.md +151 -0
- package/skills/ts-testing/references/advanced-testing.md +350 -0
- package/skills/ts-testing/references/vitest-core.md +318 -0
- package/skills/visual-plan/SKILL.md +221 -0
- package/skills/visual-plan/references/canvas.md +132 -0
- package/skills/visual-plan/references/document-quality.md +178 -0
- package/skills/visual-plan/references/exemplar.md +120 -0
- package/skills/visual-plan/references/wireframe.md +212 -0
- package/skills/visual-plan/scripts/derive-visual-dir.sh +77 -0
- package/skills/visual-recap/SKILL.md +238 -0
- package/skills/visual-recap/references/wireframe.md +237 -0
- package/skills/write-docs/SKILL.md +354 -0
- package/skills/write-docs/scripts/audit-documentation.sh +190 -0
- package/skills/write-docs/scripts/generate-doc-index.sh +125 -0
- package/skills/write-docs/scripts/verify-links.sh +81 -0
- package/skills/write-docs/templates/docs-readme.md +34 -0
- package/skills/write-docs/templates/documentation-strategy.md +91 -0
- package/ycc-sensitive-guard/index.js +621 -0
- package/ycc-sensitive-guard/package.json +7 -0
- package/ycc-sensitive-guard/policy.json +40 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
# PRP Report and Output Formats
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Implementation report
|
|
6
|
+
- PRD update and archive
|
|
7
|
+
- Worktree Summary
|
|
8
|
+
- User output and Goal Signals
|
|
9
|
+
- Goal pairing
|
|
10
|
+
- Next Steps
|
|
11
|
+
|
|
12
|
+
## Implementation report
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
mkdir -p docs/prps/reports
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Write report to `docs/prps/reports/{plan-name}-report.md`:
|
|
19
|
+
|
|
20
|
+
```markdown
|
|
21
|
+
# Implementation Report: [Feature Name]
|
|
22
|
+
|
|
23
|
+
## Summary
|
|
24
|
+
|
|
25
|
+
[What was implemented]
|
|
26
|
+
|
|
27
|
+
## Assessment vs Reality
|
|
28
|
+
|
|
29
|
+
| Metric | Predicted (Plan) | Actual |
|
|
30
|
+
| ------------- | ---------------- | -------------- |
|
|
31
|
+
| Complexity | [from plan] | [actual] |
|
|
32
|
+
| Confidence | [from plan] | [actual] |
|
|
33
|
+
| Files Changed | [from plan] | [actual count] |
|
|
34
|
+
|
|
35
|
+
## Tasks Completed
|
|
36
|
+
|
|
37
|
+
| # | Task | Status | Notes |
|
|
38
|
+
| --- | ----------- | --------------- | ------------------- |
|
|
39
|
+
| 1 | [task name] | [done] Complete | |
|
|
40
|
+
| 2 | [task name] | [done] Complete | Deviated — [reason] |
|
|
41
|
+
|
|
42
|
+
## Validation Results
|
|
43
|
+
|
|
44
|
+
| Level | Status | Notes |
|
|
45
|
+
| --------------- | ----------- | --------------- |
|
|
46
|
+
| Static Analysis | [done] Pass | |
|
|
47
|
+
| Unit Tests | [done] Pass | N tests written |
|
|
48
|
+
| Build | [done] Pass | |
|
|
49
|
+
| Integration | [done] Pass | or N/A |
|
|
50
|
+
| Edge Cases | [done] Pass | |
|
|
51
|
+
|
|
52
|
+
## Files Changed
|
|
53
|
+
|
|
54
|
+
| File | Action | Lines |
|
|
55
|
+
| -------------- | ------- | ------- |
|
|
56
|
+
| `path/to/file` | CREATED | +N |
|
|
57
|
+
| `path/to/file` | UPDATED | +N / -M |
|
|
58
|
+
|
|
59
|
+
## Deviations from Plan
|
|
60
|
+
|
|
61
|
+
[List any deviations with WHAT and WHY, or "None"]
|
|
62
|
+
|
|
63
|
+
## Issues Encountered
|
|
64
|
+
|
|
65
|
+
[List any problems and how they were resolved, or "None"]
|
|
66
|
+
|
|
67
|
+
## Tests Written
|
|
68
|
+
|
|
69
|
+
| Test File | Tests | Coverage |
|
|
70
|
+
| -------------- | ------- | -------------- |
|
|
71
|
+
| `path/to/test` | N tests | [area covered] |
|
|
72
|
+
|
|
73
|
+
## Next Steps
|
|
74
|
+
|
|
75
|
+
- [ ] Code review via `/ycc:code-review`
|
|
76
|
+
- [ ] Create PR via `/ycc:prp-pr`
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## PRD update and archive
|
|
80
|
+
|
|
81
|
+
### Update PRD (if applicable)
|
|
82
|
+
|
|
83
|
+
If this implementation was for a PRD phase:
|
|
84
|
+
|
|
85
|
+
1. Update the phase status from `in-progress` to `complete`
|
|
86
|
+
2. Add report path as reference
|
|
87
|
+
|
|
88
|
+
### Archive Plan
|
|
89
|
+
|
|
90
|
+
Run inside `$WT_PARENT_PATH` (when `WORKTREE_ACTIVE=true`) so the archive lives next to the implementation report, not back in main. `$PLAN_PATH` is the relocated plan path set in Phase 2; if the run was `--no-worktree` it falls back to `$ARGUMENTS`.
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
PLAN_PATH="${PLAN_PATH:-$ARGUMENTS}"
|
|
94
|
+
mkdir -p "$(dirname -- "$PLAN_PATH")/completed"
|
|
95
|
+
mv "$PLAN_PATH" "$(dirname -- "$PLAN_PATH")/completed/"
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Worktree Summary (when `WORKTREE_ACTIVE=true`)
|
|
99
|
+
|
|
100
|
+
After archiving the plan, run:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
bash {{package-root}}/shared/scripts/list-worktrees.sh \
|
|
104
|
+
"${WT_REPO_NAME}" "${WT_FEATURE_SLUG}"
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Include the full output (markdown table + cleanup commands) in the implementation report under a `## Worktree Summary` section. This shows the surviving parent worktree path, its branch, and the `git worktree remove` command for manual cleanup.
|
|
108
|
+
|
|
109
|
+
**CHECKPOINT**: Report created. PRD updated. Plan archived. Worktree summary captured (if applicable).
|
|
110
|
+
|
|
111
|
+
## User output and Goal Signals
|
|
112
|
+
|
|
113
|
+
Report to user:
|
|
114
|
+
|
|
115
|
+
```
|
|
116
|
+
## Implementation Complete
|
|
117
|
+
|
|
118
|
+
- **Plan**: [plan file path] → archived to completed/
|
|
119
|
+
- **Branch**: [current branch name]
|
|
120
|
+
- **Mode**: [Sequential | Parallel sub-agents (N batches, max width X)]
|
|
121
|
+
- **Status**: [done] All tasks complete
|
|
122
|
+
|
|
123
|
+
### Validation Summary
|
|
124
|
+
|
|
125
|
+
| Check | Status |
|
|
126
|
+
| ----------- | -------------------- |
|
|
127
|
+
| Type Check | [done] |
|
|
128
|
+
| Lint | [done] |
|
|
129
|
+
| Tests | [done] (N written) |
|
|
130
|
+
| Build | [done] |
|
|
131
|
+
| Integration | [done] or N/A |
|
|
132
|
+
|
|
133
|
+
### Files Changed
|
|
134
|
+
|
|
135
|
+
- [N] files created, [M] files updated
|
|
136
|
+
|
|
137
|
+
### Deviations
|
|
138
|
+
|
|
139
|
+
[Summary or "None — implemented exactly as planned"]
|
|
140
|
+
|
|
141
|
+
### Artifacts
|
|
142
|
+
|
|
143
|
+
- Report: `docs/prps/reports/{name}-report.md`
|
|
144
|
+
- Archived Plan: `docs/prps/plans/completed/{name}.plan.md`
|
|
145
|
+
|
|
146
|
+
### PRD Progress (if applicable)
|
|
147
|
+
|
|
148
|
+
| Phase | Status |
|
|
149
|
+
| ------- | -------------- |
|
|
150
|
+
| Phase 1 | [done] Complete |
|
|
151
|
+
| Phase 2 | [next] |
|
|
152
|
+
| ... | ... |
|
|
153
|
+
|
|
154
|
+
### Worktree Summary (if worktree mode was active)
|
|
155
|
+
|
|
156
|
+
[Output of `list-worktrees.sh <repo> <feature>` — surviving parent worktree path, branch, and cleanup commands]
|
|
157
|
+
|
|
158
|
+
> Run `git worktree remove <repo-root>/.opencode/worktrees/<repo>-<feature>/` after merging and pushing to clean up the parent worktree.
|
|
159
|
+
|
|
160
|
+
> Next step: Run `/ycc:prp-pr` to create a pull request, or `/ycc:code-review` to review changes first.
|
|
161
|
+
|
|
162
|
+
Print every signal verbatim. Use `PASS` only when the criterion in `## Success Criteria` is met; otherwise `FAIL`.
|
|
163
|
+
|
|
164
|
+
### Goal Signals (machine-readable — printed verbatim for /goal)
|
|
165
|
+
|
|
166
|
+
TASKS_COMPLETE: PASS
|
|
167
|
+
TYPES_PASS: PASS
|
|
168
|
+
LINT_PASS: PASS
|
|
169
|
+
TESTS_PASS: PASS
|
|
170
|
+
BUILD_PASS: PASS
|
|
171
|
+
REPORT_CREATED: PASS
|
|
172
|
+
PLAN_ARCHIVED: PASS
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
## Goal pairing
|
|
176
|
+
|
|
177
|
+
Pair this skill with the `/goal` session directive for autonomous plan execution across phase CHECKPOINTs. Supply an explicit done condition that references the Phase 6 Goal Signals block rather than file paths.
|
|
178
|
+
|
|
179
|
+
Recommended condition template:
|
|
180
|
+
|
|
181
|
+
```
|
|
182
|
+
/goal Implement the plan at docs/prps/plans/<name>.plan.md using the prp-implement
|
|
183
|
+
workflow, continuing through every phase CHECKPOINT without returning control to me.
|
|
184
|
+
Done when the transcript shows the Phase 6 "## Implementation Complete" output followed
|
|
185
|
+
by all seven Goal Signals printed verbatim — TASKS_COMPLETE: PASS, TYPES_PASS: PASS,
|
|
186
|
+
LINT_PASS: PASS, TESTS_PASS: PASS, BUILD_PASS: PASS, REPORT_CREATED: PASS,
|
|
187
|
+
PLAN_ARCHIVED: PASS. If any signal prints FAIL, keep fixing and re-running validation
|
|
188
|
+
until all seven are PASS. Stop after 25 turns if not achieved.
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
The transcript-output contract and shared caveats (worktree cwd, interactive failure
|
|
192
|
+
prompts, platform availability) live in the shared reference — read it before relying on a
|
|
193
|
+
`/goal` loop:
|
|
194
|
+
|
|
195
|
+
```
|
|
196
|
+
{{package-root}}/shared/references/goal-pairing.md
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
## Next Steps
|
|
200
|
+
|
|
201
|
+
- Run `/ycc:code-review` to review changes before committing
|
|
202
|
+
- Run `/ycc:prp-commit` to commit with a descriptive message
|
|
203
|
+
- Run `/ycc:prp-pr` to create a pull request
|
|
204
|
+
- Run `/ycc:prp-plan <next-phase>` if the PRD has more phases
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# PRP Validation and Failures
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Levels 1–5
|
|
6
|
+
- Handling Failures
|
|
7
|
+
|
|
8
|
+
## Levels 1–5
|
|
9
|
+
|
|
10
|
+
Run all validation levels from the plan. Fix issues at each level before proceeding.
|
|
11
|
+
|
|
12
|
+
### Level 1: Static Analysis
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
# Type checking — zero errors required
|
|
16
|
+
[project type-check command]
|
|
17
|
+
|
|
18
|
+
# Linting — fix automatically where possible
|
|
19
|
+
[project lint command]
|
|
20
|
+
[project lint-fix command]
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
If lint errors remain after auto-fix, fix manually.
|
|
24
|
+
|
|
25
|
+
### Level 2: Unit Tests
|
|
26
|
+
|
|
27
|
+
Write tests for every new function (as specified in the plan's Testing Strategy).
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
[project test command for affected area]
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
- Every function needs at least one test
|
|
34
|
+
- Cover edge cases listed in the plan
|
|
35
|
+
- If a test fails → fix the implementation (not the test, unless the test is wrong)
|
|
36
|
+
|
|
37
|
+
### Level 3: Build Check
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
[project build command]
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Build must succeed with zero errors.
|
|
44
|
+
|
|
45
|
+
### Level 4: Integration Testing (if applicable)
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
# Start server, run tests, stop server
|
|
49
|
+
[project dev server command] &
|
|
50
|
+
SERVER_PID=$!
|
|
51
|
+
|
|
52
|
+
# Wait for server to be ready (adjust port as needed)
|
|
53
|
+
SERVER_READY=0
|
|
54
|
+
for i in $(seq 1 30); do
|
|
55
|
+
if curl -sf http://localhost:PORT/health >/dev/null 2>&1; then
|
|
56
|
+
SERVER_READY=1
|
|
57
|
+
break
|
|
58
|
+
fi
|
|
59
|
+
sleep 1
|
|
60
|
+
done
|
|
61
|
+
|
|
62
|
+
if [ "$SERVER_READY" -ne 1 ]; then
|
|
63
|
+
kill "$SERVER_PID" 2>/dev/null || true
|
|
64
|
+
echo "ERROR: Server failed to start within 30s" >&2
|
|
65
|
+
exit 1
|
|
66
|
+
fi
|
|
67
|
+
|
|
68
|
+
[integration test command]
|
|
69
|
+
TEST_EXIT=$?
|
|
70
|
+
|
|
71
|
+
kill "$SERVER_PID" 2>/dev/null || true
|
|
72
|
+
wait "$SERVER_PID" 2>/dev/null || true
|
|
73
|
+
|
|
74
|
+
exit "$TEST_EXIT"
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Level 5: Edge Case Testing
|
|
78
|
+
|
|
79
|
+
Run through edge cases from the plan's Testing Strategy checklist.
|
|
80
|
+
|
|
81
|
+
**CHECKPOINT**: All 5 validation levels pass. Zero errors.
|
|
82
|
+
|
|
83
|
+
## Handling Failures
|
|
84
|
+
|
|
85
|
+
### Type Check Fails
|
|
86
|
+
|
|
87
|
+
1. Read the error message carefully
|
|
88
|
+
2. Fix the type error in the source file
|
|
89
|
+
3. Re-run type-check
|
|
90
|
+
4. Continue only when clean
|
|
91
|
+
|
|
92
|
+
### Tests Fail
|
|
93
|
+
|
|
94
|
+
1. Identify whether the bug is in the implementation or the test
|
|
95
|
+
2. Fix the root cause (usually the implementation)
|
|
96
|
+
3. Re-run tests
|
|
97
|
+
4. Continue only when green
|
|
98
|
+
|
|
99
|
+
### Lint Fails
|
|
100
|
+
|
|
101
|
+
1. Run auto-fix first
|
|
102
|
+
2. If errors remain, fix manually
|
|
103
|
+
3. Re-run lint
|
|
104
|
+
4. Continue only when clean
|
|
105
|
+
|
|
106
|
+
### Build Fails
|
|
107
|
+
|
|
108
|
+
1. Usually a type or import issue — check error message
|
|
109
|
+
2. Fix the offending file
|
|
110
|
+
3. Re-run build
|
|
111
|
+
4. Continue only when successful
|
|
112
|
+
|
|
113
|
+
### Integration Test Fails
|
|
114
|
+
|
|
115
|
+
1. Check server started correctly
|
|
116
|
+
2. Verify endpoint/route exists
|
|
117
|
+
3. Check request format matches expected
|
|
118
|
+
4. Fix and re-run
|
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: prp-plan
|
|
3
|
+
description: Creates self-contained PRP plans with codebase patterns. Use when planning
|
|
4
|
+
from a PRD, writing a .plan.md artifact, or capturing patterns for prp-implement.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# PRP Plan
|
|
8
|
+
|
|
9
|
+
> **OpenCode V2 compatibility:** `--team` is unsupported. If it is supplied, abort before setup or dispatch and ask the caller to rerun without it. This target uses native standalone `subagent` calls only.
|
|
10
|
+
|
|
11
|
+
Create a detailed, self-contained implementation plan that captures all codebase patterns, conventions, and context needed to implement a feature in a single pass.
|
|
12
|
+
|
|
13
|
+
**Operational context:** Detect PRD versus free-form input, discover codebase patterns through prp-researcher with optional external research, and write docs/prps/plans/{name}.plan.md for /prp-implement.
|
|
14
|
+
|
|
15
|
+
> Adapted from PRPs-agentic-eng by Wirasm. Part of the PRP workflow series.
|
|
16
|
+
|
|
17
|
+
**Core Philosophy**: A great plan contains everything needed to implement without asking further questions.
|
|
18
|
+
|
|
19
|
+
**Golden Rule**: If you would need to search the codebase during implementation, capture that knowledge NOW.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Phase 0 — DETECT
|
|
24
|
+
|
|
25
|
+
### Flag Parsing
|
|
26
|
+
|
|
27
|
+
Extract flags from `$ARGUMENTS`:
|
|
28
|
+
|
|
29
|
+
| Flag | Effect |
|
|
30
|
+
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
31
|
+
| `--parallel` | Fan out research into 3 **standalone sub-agent** researchers; emit tasks with batch/dependency annotations. Works in opencode, Cursor, and Codex. |
|
|
32
|
+
| `--worktree` | (legacy — now default; safe to omit) Worktree annotations are emitted by default. Accepted as a silent no-op so existing pipelines continue to work. |
|
|
33
|
+
| `--no-worktree` | Opt out of worktree annotations. The plan will not contain a `## Worktree Setup` section or per-task `**Worktree**:` annotations. |
|
|
34
|
+
| `--enhanced` | Enhanced research mode: grow the research fan-out from 3 to 7 specialized researchers (api/business/tech/ux/security/practices/recommendations — same coverage as feature-research). Output is still a single PRP-compliant plan file. Composes with --parallel (default) (Claude Code only), and --no-worktree. |
|
|
35
|
+
| `--visual` | Render the finished plan as an Agent-Native visual artifact (MDX) via `visual-plan`; local-files by default, hosted shareable link requires `--share`. |
|
|
36
|
+
|
|
37
|
+
Strip the flags. Set `PARALLEL_MODE=true|false`, ``, `DRY_RUN=true|false`. Default `WORKTREE_MODE=true`; set `WORKTREE_MODE=false` if `--no-worktree` is present. `--worktree` is accepted as a legacy no-op (matches the default). Remaining text is the feature description or PRD path.
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
# Default ON; pass --no-worktree to opt out. --worktree accepted as legacy no-op.
|
|
41
|
+
WORKTREE_MODE=true
|
|
42
|
+
case " $ARGUMENTS " in
|
|
43
|
+
*" --no-worktree "*) WORKTREE_MODE=false ;;
|
|
44
|
+
esac
|
|
45
|
+
ARGUMENTS="${ARGUMENTS//--no-worktree/}"
|
|
46
|
+
ARGUMENTS="${ARGUMENTS//--worktree/}" # legacy no-op
|
|
47
|
+
|
|
48
|
+
ENHANCED_MODE=false
|
|
49
|
+
case " $ARGUMENTS " in
|
|
50
|
+
*" --enhanced "*) ENHANCED_MODE=true ;;
|
|
51
|
+
esac
|
|
52
|
+
ARGUMENTS="${ARGUMENTS//--enhanced/}"
|
|
53
|
+
|
|
54
|
+
VISUAL_MODE=false
|
|
55
|
+
case " $ARGUMENTS " in
|
|
56
|
+
*" --visual "*) VISUAL_MODE=true ;;
|
|
57
|
+
esac
|
|
58
|
+
ARGUMENTS="${ARGUMENTS//--visual/}"
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**Validation**:
|
|
62
|
+
|
|
63
|
+
- `--no-worktree` is **orthogonal** to `--parallel` — it may be combined freely with either flag or used alone to suppress annotations.
|
|
64
|
+
- `--visual` is orthogonal — it composes with `--parallel`/`--enhanced`/`--no-worktree` and runs after the plan is written and validated. `--dry-run` short-circuits it (prints intent only).
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
**Questions:** class `clarify` (Ambiguity Gate): headless (no question tool or chat turn), print the open questions and stop; a team retry offer prints the `--parallel` rerun and stops. See `{{package-root}}/shared/references/question-policy.md`.
|
|
68
|
+
|
|
69
|
+
### Input Detection
|
|
70
|
+
|
|
71
|
+
| Input Pattern | Action |
|
|
72
|
+
| ------------------------- | ----------------------------------------------------------------- |
|
|
73
|
+
| Path ending in `.prd.md` | Parse PRD, find next pending phase |
|
|
74
|
+
| Path ending in `.spec.md` | Read spec, extract requirements and technical approach as context |
|
|
75
|
+
| Path to `.md` with phases | Parse phases, find next pending |
|
|
76
|
+
| Path to other file | Read for context, treat as free-form |
|
|
77
|
+
| Free-form text | Proceed to Phase 1 |
|
|
78
|
+
| Empty | Ask user what feature to plan |
|
|
79
|
+
|
|
80
|
+
### PRD Parsing (when input is a PRD)
|
|
81
|
+
|
|
82
|
+
1. Read the PRD, parse **Implementation Phases**
|
|
83
|
+
2. Find next eligible `pending` phase (check dependency chains)
|
|
84
|
+
3. Extract phase name, description, acceptance criteria, dependencies
|
|
85
|
+
4. Use the phase description as the feature to plan
|
|
86
|
+
|
|
87
|
+
If no pending phases remain, report all phases complete.
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## Phase 1 — PARSE
|
|
92
|
+
|
|
93
|
+
Extract from the input:
|
|
94
|
+
|
|
95
|
+
- **What** is being built, **Why** it matters, **Who** uses it, **Where** it fits
|
|
96
|
+
|
|
97
|
+
Format a user story: `As a [user], I want [capability], so that [benefit].`
|
|
98
|
+
|
|
99
|
+
Assess complexity: Small (1-3 files) | Medium (3-10 files) | Large (10+ files) | XL (20+ files, consider splitting)
|
|
100
|
+
|
|
101
|
+
### Ambiguity Gate
|
|
102
|
+
|
|
103
|
+
If the core deliverable is vague, success criteria undefined, multiple valid interpretations exist, or there are major technical unknowns — **STOP and ask the user**. Do NOT guess.
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## Phase 2 — EXPLORE
|
|
108
|
+
|
|
109
|
+
Gather codebase intelligence across 8 categories and 5 traces.
|
|
110
|
+
|
|
111
|
+
**8 categories**: Similar Implementations, Naming Conventions, Error Handling, Logging Patterns, Type Definitions, Test Patterns, Configuration, Dependencies
|
|
112
|
+
|
|
113
|
+
**5 traces**: Entry Points, Data Flow, State Changes, Contracts, Patterns
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### Path A — Sequential (default)
|
|
117
|
+
|
|
118
|
+
Dispatch a single `prp-researcher` agent via the `subagent` tool, in codebase mode, to cover all 8 categories and 5 traces. Use the discovery table for the plan's Patterns to Mirror section.
|
|
119
|
+
|
|
120
|
+
**IMPORTANT — Researcher prompt constraints**: Tell the researcher to keep code snippets to **5 lines max** per finding and limit the total response to the discovery table format only — no prose summaries.
|
|
121
|
+
|
|
122
|
+
By default (`WORKTREE_MODE=true`), append the following directive to the researcher prompt. Omit when `--no-worktree` was passed (`WORKTREE_MODE=false`):
|
|
123
|
+
|
|
124
|
+
> **WORKTREE MODE:** The plan you are helping to build will include worktree annotations. In the emitted plan, include a `## Worktree Setup` section with a single `**Parent**:` line naming the feature worktree; no `**Children**:` list; no per-task `**Worktree**:` annotations. All tasks (parallel and sequential) share this one feature worktree path. Follow `{{package-root}}/shared/references/worktree-strategy.md` for the naming scheme and annotation format.
|
|
125
|
+
|
|
126
|
+
### Path B — Three standalone researchers (`PARALLEL_MODE=true`)
|
|
127
|
+
|
|
128
|
+
Dispatch `patterns-research`, `quality-research`, and `infra-research` in one parallel foreground batch. Each call uses `agent="prp-researcher"`, the role name in `description`, a complete role prompt, and `background=false`. Validate every candidate report against its declared backstop artifact and apply the canonical contentless-result policy before synthesis.
|
|
129
|
+
|
|
130
|
+
#### Path B (enhanced) — when `ENHANCED_MODE=true`
|
|
131
|
+
|
|
132
|
+
- Replace the 3-row researcher table above with the 7-row roster from `{{package-root}}/skills/prp-plan/references/enhanced-researchers.md`.
|
|
133
|
+
- Dispatch in a **SINGLE message** with **SEVEN native `subagent` calls**, each with `background=false`; validate every candidate report against its backstop artifact.
|
|
134
|
+
- Each call uses `@prp-researcher` with `description` set to the role name (`api-researcher`, `business-analyzer`, `tech-designer`, `ux-researcher`, `security-researcher`, `practices-researcher`, `recommendations-agent`) and the role-specific prompt copied verbatim from `enhanced-researchers.md`. Per `enhanced-researchers.md`, each role-specific prompt also instructs the researcher to write a backstop file at `docs/prps/plans/.prp-research/<feature-slug>/<role-name>.md` (`api-researcher.md`, `business-analyzer.md`, `tech-designer.md`, `ux-researcher.md`, `security-researcher.md`, `practices-researcher.md`, `recommendations-agent.md`) in addition to returning the same content inline.
|
|
135
|
+
- The 5-line snippet cap and discovery-table-only constraints used in the 3-researcher path apply unchanged.
|
|
136
|
+
|
|
137
|
+
## Phase 3 — RESEARCH
|
|
138
|
+
|
|
139
|
+
If the feature involves external libraries/APIs, dispatch `prp-researcher` in external mode. Keep findings to KEY_INSIGHT / APPLIES_TO / GOTCHA / SOURCE format.
|
|
140
|
+
|
|
141
|
+
If only internal patterns are used, skip: "No external research needed."
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## Phase 4 — DESIGN
|
|
146
|
+
|
|
147
|
+
If the feature has UX changes, document before/after user experience and interaction changes.
|
|
148
|
+
|
|
149
|
+
If purely backend/internal: "Internal change — no user-facing UX transformation."
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## Phase 5 — ARCHITECT
|
|
154
|
+
|
|
155
|
+
Define:
|
|
156
|
+
|
|
157
|
+
- **Approach**: High-level strategy
|
|
158
|
+
- **Alternatives Considered**: What was rejected and why
|
|
159
|
+
- **Scope**: What WILL be built
|
|
160
|
+
- **NOT Building**: What is OUT OF SCOPE
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## Phase 6 — GENERATE
|
|
165
|
+
|
|
166
|
+
**CRITICAL: Write the plan progressively in chunks to avoid timeouts.**
|
|
167
|
+
|
|
168
|
+
Save to `docs/prps/plans/{kebab-case-feature-name}.plan.md`. Create directory first:
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
mkdir -p docs/prps/plans
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
### Step 1: Read the template
|
|
175
|
+
|
|
176
|
+
Read the plan template from `{{package-root}}/skills/prp-plan/references/plan-template.md`.
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
For parallel or enhanced research, verify every expected backstop file. If a report is empty, record its `sessionID`, inspect the artifact, preserve valid work, retry at most once, and still report the child response incomplete; an artifact preserves work but does not prove a response.
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
If `ENHANCED_MODE=true`, also read `{{package-root}}/skills/prp-plan/references/synthesis-map.md` and use it to route each researcher's findings into the correct plan section. The plan template is unchanged. Enhanced mode produces a richer plan because each section gets dedicated researcher input, not because new sections are added. Avoid section bloat — if a researcher returns no findings for a section, leave the existing N/A language in place or omit fully optional sections.
|
|
183
|
+
|
|
184
|
+
### Step 2: Write the plan in chunks
|
|
185
|
+
|
|
186
|
+
**Do NOT generate the entire plan in a single Write call.** Instead:
|
|
187
|
+
|
|
188
|
+
1. **Write** the initial file with: header through Metadata (+ Batches section if parallel), UX Design, and Mandatory Reading sections
|
|
189
|
+
- By default (`WORKTREE_MODE=true`), include the `## Worktree Setup` section immediately after the Metadata / Batches block and before the first implementation section (see worktree annotation rules below). The section contains a single `**Parent**:` line only. When `--no-worktree` was passed (`WORKTREE_MODE=false`), omit this section.
|
|
190
|
+
2. **Edit/append** the Patterns to Mirror section (populated from researcher discovery tables)
|
|
191
|
+
3. **Edit/append** the Files to Change + NOT Building sections
|
|
192
|
+
4. **Edit/append** the Step-by-Step Tasks section (this is usually the largest — keep each task description concise)
|
|
193
|
+
- All tasks (parallel and sequential) share the single feature worktree. Do NOT add per-task `- **Worktree**: ...` annotation lines.
|
|
194
|
+
5. **Edit/append** the Testing Strategy, Validation Commands, Acceptance Criteria, Completion Checklist, Risks, and Notes sections
|
|
195
|
+
|
|
196
|
+
Each chunk should be a separate Write or Edit call. This prevents any single generation from being too large.
|
|
197
|
+
|
|
198
|
+
### Worktree annotations (default — `WORKTREE_MODE=true`; skipped when `--no-worktree`)
|
|
199
|
+
|
|
200
|
+
Derive `<feature-slug>` from the kebab-case plan file name (same value used for `{kebab-case-feature-name}.plan.md`). Derive `<repo>` from `git rev-parse --show-toplevel` basename.
|
|
201
|
+
|
|
202
|
+
**`## Worktree Setup` section** (top-level, before Batches/implementation):
|
|
203
|
+
|
|
204
|
+
```markdown
|
|
205
|
+
## Worktree Setup
|
|
206
|
+
|
|
207
|
+
- **Parent**: <repo-root>/.opencode/worktrees/<repo>-<feature-slug>/ (branch: feat/<feature-slug>)
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
All tasks — parallel and sequential — share this one feature worktree path. No `**Children**:` list and no per-task `**Worktree**:` annotation lines are emitted.
|
|
211
|
+
|
|
212
|
+
> **Plan-file handoff**: leave the emitted plan file in `docs/prps/plans/<name>.plan.md` (in the main checkout). The implementor (`prp-implement`) will **move** it into the feature worktree once the worktree is created — do not pre-write the plan to a worktree path, and do not copy it. See `worktree-strategy.md` §7.
|
|
213
|
+
|
|
214
|
+
Follow `{{package-root}}/shared/references/worktree-strategy.md` for the full naming scheme and annotation contract.
|
|
215
|
+
|
|
216
|
+
### Writing guidelines
|
|
217
|
+
|
|
218
|
+
- **Keep task descriptions concise** — ACTION and VALIDATE are required; IMPLEMENT should be 2-3 sentences max, not full code blocks
|
|
219
|
+
- **Patterns to Mirror snippets**: Use the researcher's snippets directly, max 5 lines each
|
|
220
|
+
- **Omit sections that don't apply** rather than writing "N/A" for every sub-field
|
|
221
|
+
- **Validation commands**: Use actual project commands discovered during exploration
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## Phase 6.5 — VALIDATE
|
|
226
|
+
|
|
227
|
+
After writing the plan file, run the structural validator:
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
{{package-root}}/skills/prp-plan/scripts/validate-prp-plan.sh "docs/prps/plans/{name}.plan.md"
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
### On errors (exit 1)
|
|
234
|
+
|
|
235
|
+
Review the error output. For each error:
|
|
236
|
+
|
|
237
|
+
- **Missing section**: Edit the plan file to add the section with appropriate content from the research phases
|
|
238
|
+
- **Missing task fields**: Edit affected tasks to add ACTION and VALIDATE at minimum
|
|
239
|
+
- **Invalid file paths**: Verify the path using Glob, then fix the path in the plan
|
|
240
|
+
- **Placeholder text**: Replace with actual content from codebase exploration
|
|
241
|
+
|
|
242
|
+
Re-run the validator **once** after fixes. If it still fails, include the validation output in the report to the user so they are aware of remaining issues.
|
|
243
|
+
|
|
244
|
+
### On warnings only (exit 0)
|
|
245
|
+
|
|
246
|
+
Include a brief note in the report: "Plan validated with N warning(s) — see validator output for details."
|
|
247
|
+
|
|
248
|
+
**Do NOT loop more than once.** One fix pass maximum.
|
|
249
|
+
|
|
250
|
+
---
|
|
251
|
+
|
|
252
|
+
## Phase 7 — VISUALIZE (optional)
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
- If `VISUAL_MODE=true` and `--dry-run` is NOT set, invoke `visual-plan <plan-path>` — passing the absolute path of the just-written `docs/prps/plans/{name}.plan.md` — and capture its printed link.
|
|
256
|
+
- If `--dry-run` is set, print `visual generation would run` and skip the invocation.
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
## Visual mode
|
|
261
|
+
|
|
262
|
+
This skill exposes the shared `--visual` decorator. The canonical contract lives at `{{package-root}}/shared/references/visual-mode.md` — follow it for composition, timing, and hand-off rules.
|
|
263
|
+
|
|
264
|
+
When `VISUAL_MODE` is set and `--dry-run` is NOT, the skill invokes `visual-plan <absolute-plan-path>` AFTER Phase 6, passing the just-written `.plan.md` path (the file written in Phase 6 and validated in Phase 6.5). `visual-plan` derives its own `visual/` output directory from that path and prints the resulting link; the skill surfaces that link in the Report block. When `--dry-run` is set, print `visual generation would run` and skip — no visual artifacts, directories, or links are produced.
|
|
265
|
+
|
|
266
|
+
---
|
|
267
|
+
|
|
268
|
+
## Output
|
|
269
|
+
|
|
270
|
+
### Update PRD (if input was a PRD)
|
|
271
|
+
|
|
272
|
+
Update the phase status from `pending` to `in-progress` and add the plan file path.
|
|
273
|
+
|
|
274
|
+
### Report to User
|
|
275
|
+
|
|
276
|
+
```
|
|
277
|
+
## Plan Created
|
|
278
|
+
|
|
279
|
+
- **File**: docs/prps/plans/{name}.plan.md
|
|
280
|
+
- **Source PRD**: [path or "N/A"]
|
|
281
|
+
- **Phase**: [phase name or "standalone"]
|
|
282
|
+
- **Complexity**: [level]
|
|
283
|
+
- **Scope**: [N files, M tasks]
|
|
284
|
+
- **Key Patterns**: [top 3 discovered patterns]
|
|
285
|
+
- **External Research**: [topics or "none needed"]
|
|
286
|
+
- **Risks**: [top risk or "none identified"]
|
|
287
|
+
- **Confidence Score**: [1-10]
|
|
288
|
+
- **Research Dispatch**: [Sequential | Parallel sub-agents| Enhanced (7 researchers)]
|
|
289
|
+
- **Execution Mode**: [Sequential | Parallel (N batches, max width X)]
|
|
290
|
+
- **Worktree Mode**: [Enabled (default) — plan includes ## Worktree Setup (single feature worktree — **Parent**: line only) | Disabled via --no-worktree]
|
|
291
|
+
- **Visual Artifact**: [Generated via visual-plan | n/a (--visual not set)]
|
|
292
|
+
- **Visual Link**: [hosted URL | http://127.0.0.1:PORT/... | local files only | n/a (--visual not set)]
|
|
293
|
+
|
|
294
|
+
> Next step: Run `/ycc:prp-implement docs/prps/plans/{name}.plan.md` to execute this plan.
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
## Verification
|
|
300
|
+
|
|
301
|
+
Structural validation is enforced by `validate-prp-plan.sh` in Phase 6.5. The validator operates on the written plan file; standalone dispatch details do not change the plan format.
|
|
302
|
+
|
|
303
|
+
The `validate-prp-plan.sh` script checks:
|
|
304
|
+
|
|
305
|
+
- Required and recommended sections from the PRP plan template
|
|
306
|
+
- Task field completeness (ACTION, VALIDATE required; MIRROR, IMPLEMENT recommended)
|
|
307
|
+
- File path existence for Files to Change and Mandatory Reading
|
|
308
|
+
- Parallel-mode integrity (if Batches section present)
|
|
309
|
+
- Placeholder text detection
|
|
310
|
+
- Self-containment heuristic (percentage of tasks with all 4 core fields)
|
|
311
|
+
|
|
312
|
+
---
|
|
313
|
+
|
|
314
|
+
## Next Steps
|
|
315
|
+
|
|
316
|
+
- Run `/ycc:prp-implement <plan-path>` to execute this plan
|
|
317
|
+
- Run `/ycc:plan` for quick conversational planning without artifacts
|
|
318
|
+
- Run `/ycc:plan-workflow` for the heavyweight parallel-agent planning track
|
|
319
|
+
|
|
320
|
+
**Entry points into this skill** — `prp-spec` and `prp-prd` are parallel paths, not sequential:
|
|
321
|
+
|
|
322
|
+
- Run `/ycc:prp-spec` for a lightweight single-pass spec when the problem is clear
|
|
323
|
+
- Run `/ycc:prp-prd` for interactive hypothesis-driven discovery when the problem is unclear
|