@yandy-r/ycc-opencode 0.0.0-stage → 6.0.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 +38 -0
- package/LICENSE +21 -0
- package/README.md +41 -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 +134 -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 +235 -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 +173 -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 +284 -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 +194 -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 +264 -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 +260 -0
- package/package.json +35 -4
- package/registration.json +4384 -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 +445 -0
- package/shared/references/forge-detection.md +162 -0
- package/shared/references/goal-pairing.md +53 -0
- package/shared/references/pr-base-and-backport.md +143 -0
- package/shared/references/review-artifact-format.md +141 -0
- package/shared/references/review-checklist.md +161 -0
- package/shared/references/review-dispatch.md +71 -0
- package/shared/references/session-state.md +159 -0
- package/shared/references/standalone-dispatch.md +298 -0
- package/shared/references/target-capability-matrix.md +325 -0
- package/shared/references/visual-mode.md +155 -0
- package/shared/references/worktree-strategy.md +310 -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 +86 -0
- package/skills/backport/SKILL.md +291 -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 +410 -0
- package/skills/blueprint/references/bootstrap-mapping.md +87 -0
- package/skills/bundle-author/SKILL.md +119 -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 +188 -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 +150 -0
- package/skills/bundle-release/scripts/bump-version.sh +97 -0
- package/skills/bundle-release/scripts/draft-notes.sh +222 -0
- package/skills/bundle-release/scripts/preflight.sh +164 -0
- package/skills/bundle-release/scripts/release_versions.py +361 -0
- package/skills/clean/SKILL.md +107 -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 +375 -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 +153 -0
- package/skills/code-review/references/pr-procedure.md +311 -0
- package/skills/compatibility-audit/SKILL.md +226 -0
- package/skills/compatibility-audit/references/reading-the-report.md +159 -0
- package/skills/compatibility-audit/scripts/audit-install-assumptions.sh +372 -0
- package/skills/compatibility-audit/scripts/audit-target-features.sh +558 -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 +292 -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 +207 -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 +286 -0
- package/skills/git-cleanup/references/active-code-rules.md +318 -0
- package/skills/git-cleanup/references/host-detection.md +217 -0
- package/skills/git-workflow/SKILL.md +130 -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 +221 -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 +272 -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 +120 -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 +134 -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 +406 -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 +307 -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 +177 -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/preflight-enhanced-agents.sh +111 -0
- package/skills/prp-plan/scripts/validate-prp-plan.sh +368 -0
- package/skills/prp-pr/SKILL.md +402 -0
- package/skills/prp-prd/SKILL.md +442 -0
- package/skills/prp-spec/SKILL.md +274 -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 +304 -0
- package/skills/release-model/SKILL.md +231 -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 +251 -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 +285 -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 +152 -0
- package/skills/review-fix/SKILL.md +229 -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 +159 -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
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Validate agent assignments and subtask structure
|
|
3
|
+
# Usage: validate-agents.sh
|
|
4
|
+
|
|
5
|
+
set -euo pipefail
|
|
6
|
+
|
|
7
|
+
echo "# Agent Assignment Validation"
|
|
8
|
+
echo ""
|
|
9
|
+
|
|
10
|
+
# List of all valid agent types from native `subagent` tool
|
|
11
|
+
VALID_AGENTS=(
|
|
12
|
+
"generalPurpose"
|
|
13
|
+
"explore"
|
|
14
|
+
"shell"
|
|
15
|
+
"ansible-automation-expert"
|
|
16
|
+
"api-docs-expert"
|
|
17
|
+
"cloudflare-architect"
|
|
18
|
+
"code-finder"
|
|
19
|
+
"codebase-research-analyst"
|
|
20
|
+
"db-modifier"
|
|
21
|
+
"docs-git-committer"
|
|
22
|
+
"documentation-writer"
|
|
23
|
+
"frontend-ui-developer"
|
|
24
|
+
"go-api-architect"
|
|
25
|
+
"go-expert-architect"
|
|
26
|
+
"implementor"
|
|
27
|
+
"library-docs-writer"
|
|
28
|
+
"nextjs-ux-ui-expert"
|
|
29
|
+
"nodejs-backend-architect"
|
|
30
|
+
"project-file-cleaner"
|
|
31
|
+
"research-specialist"
|
|
32
|
+
"reverse-proxy-architect"
|
|
33
|
+
"root-cause-analyzer"
|
|
34
|
+
"systems-engineering-expert"
|
|
35
|
+
"terraform-architect"
|
|
36
|
+
"test-strategy-planner"
|
|
37
|
+
"sql-database-architect"
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
echo "## Valid Agent Types"
|
|
41
|
+
echo ""
|
|
42
|
+
echo "Total available agents: ${#VALID_AGENTS[@]}"
|
|
43
|
+
echo ""
|
|
44
|
+
echo "Categories:"
|
|
45
|
+
echo "- Code Discovery: explore, code-finder, codebase-research-analyst"
|
|
46
|
+
echo "- Frontend: frontend-ui-developer, nextjs-ux-ui-expert"
|
|
47
|
+
echo "- Backend: nodejs-backend-architect, go-api-architect, go-expert-architect"
|
|
48
|
+
echo "- Database: db-modifier, sql-database-architect"
|
|
49
|
+
echo "- Infrastructure: terraform-architect, cloudflare-architect, reverse-proxy-architect"
|
|
50
|
+
echo "- Documentation: documentation-writer, api-docs-expert, library-docs-writer"
|
|
51
|
+
echo "- Testing: test-strategy-planner, root-cause-analyzer"
|
|
52
|
+
echo "- DevOps: ansible-automation-expert, systems-engineering-expert"
|
|
53
|
+
echo "- General: generalPurpose, shell, implementor, research-specialist"
|
|
54
|
+
echo ""
|
|
55
|
+
|
|
56
|
+
# Function to check if agent type is valid
|
|
57
|
+
validate_agent_type() {
|
|
58
|
+
local agent_type="$1"
|
|
59
|
+
for valid_agent in "${VALID_AGENTS[@]}"; do
|
|
60
|
+
if [[ "$agent_type" == "$valid_agent" ]]; then
|
|
61
|
+
return 0
|
|
62
|
+
fi
|
|
63
|
+
done
|
|
64
|
+
return 1
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
# If provided with agent types as arguments, validate them
|
|
68
|
+
if [[ $# -gt 0 ]]; then
|
|
69
|
+
echo "## Validating Provided Agents"
|
|
70
|
+
echo ""
|
|
71
|
+
|
|
72
|
+
for agent in "$@"; do
|
|
73
|
+
if validate_agent_type "$agent"; then
|
|
74
|
+
echo "✓ $agent - Valid"
|
|
75
|
+
else
|
|
76
|
+
echo "✗ $agent - INVALID (not in agent catalog)"
|
|
77
|
+
fi
|
|
78
|
+
done
|
|
79
|
+
echo ""
|
|
80
|
+
fi
|
|
81
|
+
|
|
82
|
+
echo "## Validation Guidelines"
|
|
83
|
+
echo ""
|
|
84
|
+
echo "Each subtask should have:"
|
|
85
|
+
echo "- Clear agent type assignment"
|
|
86
|
+
echo "- Non-overlapping scope with other subtasks"
|
|
87
|
+
echo "- Explicit dependencies (or 'none')"
|
|
88
|
+
echo "- Context files identified"
|
|
89
|
+
echo "- Expected outputs specified"
|
|
90
|
+
echo ""
|
|
91
|
+
|
|
92
|
+
exit 0
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: parallel-plan
|
|
3
|
+
description: Creates parallel-plan.md from existing shared.md through plan-workflow.
|
|
4
|
+
Use when planning from shared context, organizing dependency batches, or validating
|
|
5
|
+
parallel implementation tasks.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## MANDATORY FORCED MODE - READ FIRST
|
|
9
|
+
|
|
10
|
+
This skill is a thin alias. It ALWAYS runs canonical `plan-workflow` with
|
|
11
|
+
`--plan-only --no-checkpoint` (use existing `shared.md`, no interactive
|
|
12
|
+
checkpoint), regardless of `$ARGUMENTS`.
|
|
13
|
+
|
|
14
|
+
**Flag policy (unambiguous):**
|
|
15
|
+
|
|
16
|
+
- Supported: the feature name, `--dry-run`, `--no-worktree`, `--visual`.
|
|
17
|
+
- Silent no-op (legacy): `--worktree`.
|
|
18
|
+
- Redundant — silently ignored because already forced: `--plan-only`, `--no-checkpoint`.
|
|
19
|
+
- Every other flag (including `--research-only`, `--optimized`, and any unknown `-`/`--` token) → abort with the usage error below. Do not read the canonical skill or write anything.
|
|
20
|
+
|
|
21
|
+
## SCOPE LIMITATION - READ FIRST
|
|
22
|
+
|
|
23
|
+
**THIS SKILL ONLY CREATES PLANNING ARTIFACTS. IT NEVER IMPLEMENTS.**
|
|
24
|
+
|
|
25
|
+
- DO NOT execute any implementation tasks
|
|
26
|
+
- DO NOT modify application code
|
|
27
|
+
- DO NOT run the implement-plan skill
|
|
28
|
+
- DO NOT proceed beyond creating planning artifacts
|
|
29
|
+
|
|
30
|
+
**Outputs**:
|
|
31
|
+
|
|
32
|
+
- `${PLANS_DIR}/[feature-name]/analysis-context.md`
|
|
33
|
+
- `${PLANS_DIR}/[feature-name]/analysis-code.md`
|
|
34
|
+
- `${PLANS_DIR}/[feature-name]/analysis-tasks.md`
|
|
35
|
+
- `${PLANS_DIR}/[feature-name]/parallel-plan.md`
|
|
36
|
+
|
|
37
|
+
After creating planning artifacts and displaying the summary, **STOP COMPLETELY**.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
# Parallel Plan (alias)
|
|
42
|
+
|
|
43
|
+
> **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.
|
|
44
|
+
|
|
45
|
+
## Workflow Integration
|
|
46
|
+
|
|
47
|
+
```text
|
|
48
|
+
shared-context (step 1) -> parallel-plan (this skill) -> implement-plan (step 3)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
This skill requires `${feature_dir}/shared.md` and ends after producing
|
|
52
|
+
analysis artifacts and `parallel-plan.md`. The user manually runs
|
|
53
|
+
`/ycc:implement-plan` when ready.
|
|
54
|
+
|
|
55
|
+
**If shared.md doesn't exist**: canonical `plan-workflow/scripts/check-prerequisites.sh`
|
|
56
|
+
fails fast in plan-only mode. Stop and tell the user to run
|
|
57
|
+
`/ycc:shared-context [feature-name]` first. Do NOT fall back to research.
|
|
58
|
+
|
|
59
|
+
## Arguments
|
|
60
|
+
|
|
61
|
+
**Target**: `$ARGUMENTS`
|
|
62
|
+
|
|
63
|
+
- **--worktree**: Optional. (legacy — now default; safe to omit) Worktree annotations are emitted by default. Accepted as a silent no-op.
|
|
64
|
+
- **--no-worktree**: Optional. Opt out of worktree annotations. The plan will not contain a `## Worktree Setup` section.
|
|
65
|
+
- **--visual**: Optional. Render the finished plan as an Agent-Native visual artifact (MDX) via `visual-plan`; local-files by default, hosted link requires `--share`.
|
|
66
|
+
- **--dry-run**: Show what would be created without making changes. Writes nothing.
|
|
67
|
+
- **feature-name**: Required. Matches directory name in `${PLANS_DIR}`.
|
|
68
|
+
|
|
69
|
+
If any unsupported flag is present (see Flag policy above), abort with a usage error and STOP:
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
Usage: /ycc:parallel-plan [--no-worktree] [--visual] [feature-name] [--dry-run]
|
|
73
|
+
This alias always runs plan-workflow --plan-only --no-checkpoint.
|
|
74
|
+
Unsupported flag: <flag>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
If no feature name provided, abort with the same usage plus examples:
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
/ycc:parallel-plan user-authentication
|
|
81
|
+
/ycc:parallel-plan payment-integration --dry-run
|
|
82
|
+
/ycc:parallel-plan --no-worktree user-authentication
|
|
83
|
+
/ycc:parallel-plan --visual user-authentication
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Execution
|
|
87
|
+
|
|
88
|
+
Build the **effective `$ARGUMENTS`** for canonical `plan-workflow`:
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
<feature-name> --plan-only --no-checkpoint [--dry-run] [--no-worktree] [--visual]
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
(optional flags only if the user passed them; `--worktree` maps to nothing —
|
|
95
|
+
it is a legacy no-op; user-supplied redundant `--plan-only` / `--no-checkpoint`
|
|
96
|
+
are dropped, not duplicated.)
|
|
97
|
+
|
|
98
|
+
1. Read `{{package-root}}/skills/plan-workflow/SKILL.md`.
|
|
99
|
+
2. Execute as orchestrator with the effective `$ARGUMENTS` above substituted for `$ARGUMENTS`, so the canonical parser itself sets `PLAN_ONLY=true` and `NO_CHECKPOINT=true` (those variables are explanatory only — never invocation syntax).
|
|
100
|
+
3. On completion print the plan summary and STOP. Never implement.
|
|
101
|
+
|
|
102
|
+
## Summary
|
|
103
|
+
|
|
104
|
+
```markdown
|
|
105
|
+
# Parallel Plan Created
|
|
106
|
+
|
|
107
|
+
## Location
|
|
108
|
+
|
|
109
|
+
${feature_dir}/parallel-plan.md
|
|
110
|
+
|
|
111
|
+
## Analysis Files Generated
|
|
112
|
+
|
|
113
|
+
- ${feature_dir}/analysis-context.md
|
|
114
|
+
- ${feature_dir}/analysis-code.md
|
|
115
|
+
- ${feature_dir}/analysis-tasks.md
|
|
116
|
+
|
|
117
|
+
## Next Steps (FOR USER - NOT FOR THIS SKILL)
|
|
118
|
+
|
|
119
|
+
**THIS SKILL IS NOW COMPLETE. DO NOT PROCEED.**
|
|
120
|
+
|
|
121
|
+
/ycc:implement-plan [feature-name]
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
**STOP**: Do not execute implement-plan. Do not write any more files. Do not modify any code. This skill is complete.
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan
|
|
3
|
+
description: Use when comparing two implementation options or walking through tradeoffs
|
|
4
|
+
before committing to one, breaking a change into steps, or planning conversationally
|
|
5
|
+
for approval.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Plan Skill
|
|
9
|
+
|
|
10
|
+
> **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.
|
|
11
|
+
|
|
12
|
+
Create conversational implementation plan before code. Default output stays in chat; heavier artifact-producing tracks documented in references/planning-tracks.md.
|
|
13
|
+
|
|
14
|
+
**Core gate: WAIT for explicit confirmation before any code is written.** Accept "yes", "proceed", "approved", or similar affirmative. Until then, read-only analysis only; do not touch code. Unclear draft: ask focused question and re-dispatch rather than guess.
|
|
15
|
+
|
|
16
|
+
## What This Skill Does
|
|
17
|
+
|
|
18
|
+
1. Parse `--parallel`, `--enhanced`, `--dry-run`, `--no-worktree`, `--worktree`,
|
|
19
|
+
and `--visual`, then read the request and referenced files.
|
|
20
|
+
2. Dispatch one planner by default, three standalone planning perspectives when
|
|
21
|
+
the user explicitly asks for a multi-perspective plan, or five perspectives
|
|
22
|
+
when `--enhanced` is present.
|
|
23
|
+
3. Validate and merge every returned perspective into one plan.
|
|
24
|
+
4. Wait for explicit user confirmation before any implementation.
|
|
25
|
+
|
|
26
|
+
## Flags
|
|
27
|
+
|
|
28
|
+
| Flag | Effect |
|
|
29
|
+
| --- | --- |
|
|
30
|
+
| `--parallel` | Shape the plan for dependency-batched parallel implementation. |
|
|
31
|
+
| `--enhanced` | Use five standalone perspectives: architecture, risk, testing, security, and UX. |
|
|
32
|
+
| `--dry-run` | Print the selected multi-perspective roster and stop without dispatching. |
|
|
33
|
+
| `--worktree` | Legacy no-op; shared worktree annotations are enabled by default. |
|
|
34
|
+
| `--no-worktree` | Omit shared worktree annotations. |
|
|
35
|
+
| `--visual` | Force-write the confirmed plan and render it with `visual-plan`. |
|
|
36
|
+
|
|
37
|
+
`--parallel` changes the output shape, independently of whether one, three, or
|
|
38
|
+
five planning perspectives are dispatched. `--enhanced` selects five
|
|
39
|
+
perspectives. An explicit natural-language request for a multi-perspective plan
|
|
40
|
+
selects three perspectives when `--enhanced` is absent.
|
|
41
|
+
|
|
42
|
+
## When to Use
|
|
43
|
+
|
|
44
|
+
- Starting a new feature
|
|
45
|
+
- Making significant architectural changes
|
|
46
|
+
- Working on complex refactoring
|
|
47
|
+
- Multiple files/components will be affected
|
|
48
|
+
- Requirements are unclear or ambiguous
|
|
49
|
+
|
|
50
|
+
### Step 1 — Parse flags and the user's request
|
|
51
|
+
|
|
52
|
+
Strip the supported flags from `$ARGUMENTS`. Set `PARALLEL_MODE`,
|
|
53
|
+
`ENHANCED_MODE`, `DRY_RUN`, `VISUAL_MODE`, and `WORKTREE_MODE` explicitly.
|
|
54
|
+
Default `WORKTREE_MODE=true`; `--no-worktree` sets it false and `--worktree` is
|
|
55
|
+
a legacy no-op. Set `PERSPECTIVE_COUNT=5` when `ENHANCED_MODE=true`, otherwise
|
|
56
|
+
set it to `3` only when the remaining request explicitly asks for a
|
|
57
|
+
multi-perspective plan; default it to `1`.
|
|
58
|
+
|
|
59
|
+
Read the stripped request and any referenced files. Ask one focused question
|
|
60
|
+
before dispatch if the request is ambiguous. `--dry-run` with
|
|
61
|
+
`PERSPECTIVE_COUNT=1` aborts because the single-agent path has no roster to
|
|
62
|
+
preview.
|
|
63
|
+
|
|
64
|
+
### Step 2 — Dispatch
|
|
65
|
+
|
|
66
|
+
- `PERSPECTIVE_COUNT=1`: one foreground `planner` call.
|
|
67
|
+
- `PERSPECTIVE_COUNT=3`: `architect` (`planner`), `risk-analyst`
|
|
68
|
+
(`codebase-research-analyst`), and `test-strategist`
|
|
69
|
+
(`test-strategy-planner`) in one parallel foreground batch.
|
|
70
|
+
- `PERSPECTIVE_COUNT=5`: the same three plus `security-reviewer` and
|
|
71
|
+
`ux-reviewer` (both `research-specialist`) in one parallel foreground batch.
|
|
72
|
+
|
|
73
|
+
Every call uses the native shape below, with a complete role-specific prompt and
|
|
74
|
+
no `sessionID` for a new child:
|
|
75
|
+
|
|
76
|
+
```text
|
|
77
|
+
subagent(agent="<configured-agent>", description="<perspective>",
|
|
78
|
+
prompt="<complete planning prompt>", background=false)
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Do not set `model`; each configured agent supplies or inherits its model. Include
|
|
82
|
+
the original request, referenced context, role focus, confirmation instruction,
|
|
83
|
+
and the parallel/worktree directives selected by the flags.
|
|
84
|
+
|
|
85
|
+
When `DRY_RUN=true`, print the selected three- or five-persona roster and stop
|
|
86
|
+
without calling `subagent`.
|
|
87
|
+
|
|
88
|
+
For a single planner, relay the validated report. For three or five perspectives,
|
|
89
|
+
merge architecture, risks, testing, and optional security/UX slices without
|
|
90
|
+
dropping a role. A terminal lifecycle state alone is insufficient: require each
|
|
91
|
+
candidate report and validate any declared artifact. For contentless completion,
|
|
92
|
+
record `sessionID`, inspect edits/artifacts, preserve work, retry at most once,
|
|
93
|
+
then report the missing perspective. Follow
|
|
94
|
+
`{{package-root}}/shared/references/standalone-dispatch.md`.
|
|
95
|
+
|
|
96
|
+
### Step 2.5 — Validate the plan before relaying
|
|
97
|
+
|
|
98
|
+
Read `{{package-root}}/skills/plan/references/plan-validation.md` after planner return/merge; run all four checks. Missing required structure or parallel annotations: re-dispatch with missing-section directive. Missing expected sections/paths/perspectives: append visible validation notes.
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
## Step 3 — Relay
|
|
103
|
+
|
|
104
|
+
Present plan verbatim, including validation notes. Do not shorten or add commentary above it.
|
|
105
|
+
|
|
106
|
+
## Step 4 — Stop and confirm
|
|
107
|
+
|
|
108
|
+
Wait; do not touch code until user responds:
|
|
109
|
+
|
|
110
|
+
- yes/proceed/approved: approved implementation may begin.
|
|
111
|
+
- modify/different approach/reorder: re-dispatch with requested change and previous plan as context; discard prior approach when requested.
|
|
112
|
+
- no: stop, no implementation.
|
|
113
|
+
|
|
114
|
+
For standalone enhanced re-dispatch, use a fresh batch of five parallel calls per `references/personas-and-merge.md` (Re-dispatch).
|
|
115
|
+
That fresh batch is five parallel native `subagent` calls with no `description` plus the role-specific `prompt`, which is reserved for sub-agent dispatch.
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
Unclear response: ask focused clarification.
|
|
119
|
+
|
|
120
|
+
## Step 5 — Visual rendering (VISUAL_MODE=true only)
|
|
121
|
+
|
|
122
|
+
Runs only after Step 4 confirmation, last; never substitutes for earlier phases.
|
|
123
|
+
|
|
124
|
+
- Dry-run: print `visual generation would run`; no writes/invocation.
|
|
125
|
+
- Otherwise write confirmed plan verbatim to `docs/prps/plans/<slug>.plan.md`; create directory, resolve absolute path. Slug: lowercase, replace non-[a-z0-9-] with hyphen, collapse/trim, cap 20, fallback untitled.
|
|
126
|
+
- Invoke `visual-plan <absolute-plan-path>`; surface its URL, localhost preview or `local files only`; do not derive output directory yourself.
|
|
127
|
+
|
|
128
|
+
Read `{{package-root}}/shared/references/visual-mode.md` only when visual requested, for force-write-first terminal decorator contract.
|
|
129
|
+
|
|
130
|
+
## After approval
|
|
131
|
+
|
|
132
|
+
Read `{{package-root}}/skills/plan/references/planning-tracks.md` when choosing execution/report/commit handoff or comparing planning tracks. Small parallel features can execute in conversation; rigorous report/validation/archive needs PRP-format file and `/ycc:prp-implement --parallel`. `implement-plan` consumes parallel-plan.md. Review via code-review; commit via git-workflow --commit or prp-commit.
|
|
133
|
+
|
|
134
|
+
Use plan for new features, architecture changes, complex refactors, multi-file work or ambiguous requirements. Internal-only changes can skip enhanced security/UX roster; exposure or user touchpoints justify it.
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# Enhanced Personas (5-persona roster for plan --enhanced)
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Security-reviewer
|
|
6
|
+
- UX-reviewer
|
|
7
|
+
|
|
8
|
+
> **Contract**: When `ENHANCED_MODE=true`, the `plan` skill spawns the 3 baseline personas (`architect`, `risk-analyst`, `test-strategist` — prompts inline in `SKILL.md` §B.5 / §C.3) plus the 2 enhanced personas defined here. The roster is identical regardless of dispatch path:
|
|
9
|
+
>
|
|
10
|
+
> - **Path C** (`--enhanced` alone) — 5 standalone parallel sub-agents, no sub-agent dispatch.
|
|
11
|
+
>
|
|
12
|
+
> Both enhanced personas use `@research-specialist` distinguished by `description` and the role-specific prompt in standalone mode; only team mode sets `name`. They contribute slices that the synthesizer folds into the merged plan per `SKILL.md` (Merge outputs; Re-dispatch). They do NOT write any files — they return findings inline.
|
|
13
|
+
|
|
14
|
+
## Roster
|
|
15
|
+
|
|
16
|
+
| name | agent | Plan section(s) it owns |
|
|
17
|
+
| ------------------- | ------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
|
|
18
|
+
| `security-reviewer` | `research-specialist` | `## Security Considerations` (top-level) and per-step `> **Security**:` callouts; risk rows folded into `## Risks & Mitigations` |
|
|
19
|
+
| `ux-reviewer` | `research-specialist` | `## UX Impact` (Before / After / Interaction Changes); omitted entirely if internal-only |
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Prompt: security-reviewer
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
You are joining the `plan` planning team as the security perspective. You do NOT
|
|
27
|
+
write any files. Return findings inline as Markdown sections that the synthesizer
|
|
28
|
+
will fold into the merged plan.
|
|
29
|
+
|
|
30
|
+
Target plan sections:
|
|
31
|
+
- ## Security Considerations (top-level — omit entirely if no significant risk found)
|
|
32
|
+
- Per-step `> **Security**:` callouts when a specific implementation step needs guarding
|
|
33
|
+
- Optional rows for `## Risks & Mitigations` (cross-cutting threats not tied to one step)
|
|
34
|
+
|
|
35
|
+
Your task: Identify the top security risks this change introduces and call out the
|
|
36
|
+
codebase patterns the implementor must follow to mitigate them. Stay concise — one
|
|
37
|
+
to three findings is plenty for a conversational plan.
|
|
38
|
+
|
|
39
|
+
Search scope:
|
|
40
|
+
1. Authentication / authorization: does the change expose a new endpoint, action,
|
|
41
|
+
or capability that requires auth? Privilege escalation risk?
|
|
42
|
+
2. Input validation: any user-supplied data flowing into DB, filesystem, shell,
|
|
43
|
+
template renderer, or downstream service?
|
|
44
|
+
3. Sensitive data: does the change log, return, or persist PII, secrets, or tokens?
|
|
45
|
+
4. Dependencies: if new libraries are involved, flag known CVEs or stale maintenance.
|
|
46
|
+
5. Existing patterns: find the codebase's input-validation, error-handling, and
|
|
47
|
+
secret-redaction patterns the implementor must mirror. Cite file:line.
|
|
48
|
+
|
|
49
|
+
Output format (Markdown — return only what applies):
|
|
50
|
+
|
|
51
|
+
## Security Considerations
|
|
52
|
+
|
|
53
|
+
| Risk | Likelihood | Impact | Mitigation |
|
|
54
|
+
| ---- | ---------- | ------ | ---------- |
|
|
55
|
+
| [threat — concrete, not "general security"] | Low/Med/High | Low/Med/High | [specific action; reference file:line for any mirror pattern] |
|
|
56
|
+
|
|
57
|
+
Per-step callouts (optional — emit only if a specific step in the architect's plan
|
|
58
|
+
needs guarding; reference the step by ID or short title):
|
|
59
|
+
|
|
60
|
+
> **Security** (step 2.1 — "create webhook endpoint"): validate the X-Signature
|
|
61
|
+
> header before any DB write. Mirror the HMAC check in `lib/webhook/auth.ts:24-38`.
|
|
62
|
+
|
|
63
|
+
If no significant security risk exists, return ONLY this single line and nothing
|
|
64
|
+
else (the synthesizer will omit the section):
|
|
65
|
+
|
|
66
|
+
Security-reviewer: no significant security risks identified for this change.
|
|
67
|
+
|
|
68
|
+
Constraints:
|
|
69
|
+
- Code snippets: 5 lines max per finding; cite file:line for any mirror pattern
|
|
70
|
+
- Focus on what the implementor must DO differently — not generic security advice
|
|
71
|
+
- Do NOT write any files
|
|
72
|
+
- Do NOT duplicate findings the risk-analyst will already cover (operational risk,
|
|
73
|
+
rollback, migration). Stay in the security lane.
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Prompt: ux-reviewer
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
You are joining the `plan` planning team as the UX perspective. You do NOT
|
|
82
|
+
write any files. Return findings inline as Markdown sections that the synthesizer
|
|
83
|
+
will fold into the merged plan.
|
|
84
|
+
|
|
85
|
+
Target plan sections:
|
|
86
|
+
- ## UX Impact (top-level — Before / After / Interaction Changes)
|
|
87
|
+
- Optional per-step notes on user-visible touchpoints
|
|
88
|
+
|
|
89
|
+
Your task: First decide whether this change has user-facing impact at all. "User-facing"
|
|
90
|
+
includes: UI components, CLI output / flags, API response shapes, error messages,
|
|
91
|
+
loading / empty / failure states, and any other observable behavior. Internal refactors
|
|
92
|
+
that change no observable behavior are NOT user-facing.
|
|
93
|
+
|
|
94
|
+
If NOT user-facing, return ONLY this single line and nothing else (the synthesizer
|
|
95
|
+
will omit the section):
|
|
96
|
+
|
|
97
|
+
Internal change — no user-facing UX impact.
|
|
98
|
+
|
|
99
|
+
If user-facing, search scope:
|
|
100
|
+
1. Codebase: find the UI components, CLI handlers, response serializers, or error
|
|
101
|
+
classes this change touches. Cite file:line.
|
|
102
|
+
2. Identify the "Before" state — what does the user see / do today?
|
|
103
|
+
3. Identify the "After" state — what will they see / do after the change ships?
|
|
104
|
+
4. List every touchpoint that changes (form fields, buttons, API fields, CLI flags,
|
|
105
|
+
error messages, loading states, empty states).
|
|
106
|
+
|
|
107
|
+
Output format (Markdown):
|
|
108
|
+
|
|
109
|
+
## UX Impact
|
|
110
|
+
|
|
111
|
+
### Before
|
|
112
|
+
|
|
113
|
+
[ASCII diagram or bullet list of current user experience — ≤10 lines total;
|
|
114
|
+
cite file:line for any codebase evidence]
|
|
115
|
+
|
|
116
|
+
### After
|
|
117
|
+
|
|
118
|
+
[ASCII diagram or bullet list of target user experience — ≤10 lines total]
|
|
119
|
+
|
|
120
|
+
### Interaction Changes
|
|
121
|
+
|
|
122
|
+
| Touchpoint | Before | After | Notes |
|
|
123
|
+
| ---------- | ------ | ----- | ----- |
|
|
124
|
+
| [component / endpoint / CLI flag / error class] | [current behavior] | [new behavior] | [accessibility, copy, edge case] |
|
|
125
|
+
|
|
126
|
+
Constraints:
|
|
127
|
+
- Code snippets: 5 lines max per finding
|
|
128
|
+
- Stay in the UX lane — do NOT duplicate the architect's structural plan or the
|
|
129
|
+
test-strategist's acceptance criteria. Focus on what the user perceives.
|
|
130
|
+
- Do NOT write any files
|
|
131
|
+
```
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Planning Personas, Dry Run and Merge
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Standalone Dry-Run (Path C)
|
|
6
|
+
- Agent-Team Dry-Run (Path B)
|
|
7
|
+
- Persona prompt contract
|
|
8
|
+
- Failure policy
|
|
9
|
+
- Re-dispatch
|
|
10
|
+
- Merge outputs (B.7)
|
|
11
|
+
|
|
12
|
+
| Sub-agent name | `agent` | Role focus |
|
|
13
|
+
| ------------------- | ------------------------------- | ---------------------------------------------------------------------------------- |
|
|
14
|
+
| `architect` | `planner` | Structural plan, phases, file layout, dependencies |
|
|
15
|
+
| `risk-analyst` | `codebase-research-analyst` | Risks, edge cases, rollback, migration concerns |
|
|
16
|
+
| `test-strategist` | `test-strategy-planner` | Testing strategy, validation commands, acceptance criteria |
|
|
17
|
+
| `security-reviewer` | `research-specialist` | Threat model, input validation, authn/authz, secrets handling, dependency risk |
|
|
18
|
+
| `ux-reviewer` | `research-specialist` | User-facing impact (UI, CLI, API responses, error messages); skip if internal-only |
|
|
19
|
+
|
|
20
|
+
## Standalone Dry-Run (Path C)
|
|
21
|
+
|
|
22
|
+
When `DRY_RUN=true`:
|
|
23
|
+
|
|
24
|
+
Print:
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
Dispatch: standalone parallel sub-agents (no team)
|
|
28
|
+
Sub-agents: 5
|
|
29
|
+
- architect agent=planner task=Structural plan, phases, file layout, dependencies
|
|
30
|
+
- risk-analyst agent=codebase-research-analyst task=Risks, edge cases, rollback, migration concerns
|
|
31
|
+
- test-strategist agent=test-strategy-planner task=Testing strategy, validation commands, acceptance criteria
|
|
32
|
+
- security-reviewer agent=research-specialist task=Threat model, input validation, authn/authz, secrets, dependency risk
|
|
33
|
+
- ux-reviewer agent=research-specialist task=User-facing impact (UI, CLI, API responses, error messages); skip if internal-only
|
|
34
|
+
Batches: 1 (single message, 5 parallel Agent calls)
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Do **not** spawn any agents. Exit the skill.
|
|
38
|
+
|
|
39
|
+
## Persona prompt contract
|
|
40
|
+
|
|
41
|
+
Each baseline prompt must include:
|
|
42
|
+
|
|
43
|
+
- Original request verbatim; referenced files/context; role focus from the roster (which slice of the plan this persona owns); standard confirmation instruction to follow Plan Format and end with `**WAITING FOR CONFIRMATION**: Proceed with this plan? (yes / no / modify)`.
|
|
44
|
+
- Team only: instruction to coordinate via `re-dispatch the affected sub-agent with the needed guidance` with the roster for overlapping scope; standalone omits that line and standalone calls omit the team-only parameters.
|
|
45
|
+
- Append parallel output directives when PARALLEL_MODE=true and worktree annotation directive when WORKTREE_MODE=true (omit for --no-worktree).
|
|
46
|
+
|
|
47
|
+
For security-reviewer and ux-reviewer use enhanced-personas prompts verbatim and append same output directives.
|
|
48
|
+
|
|
49
|
+
## Failure policy
|
|
50
|
+
|
|
51
|
+
- Architect failure: critical, abort with clear error.
|
|
52
|
+
- Risk-analyst/test-strategist failure: record "partial plan — {role} did not complete", proceed with reduced merge and visible gap.
|
|
53
|
+
- Security-reviewer/ux-reviewer failure: non-critical, record "partial plan — {role} did not complete; security/UX coverage may be incomplete", proceed.
|
|
54
|
+
|
|
55
|
+
## Re-dispatch
|
|
56
|
+
|
|
57
|
+
Standalone enhanced (Path C) re-dispatch fires a fresh batch of 5 parallel standalone sub-agent calls; the team-only parameters belong exclusively to the team dispatch primitive and are never set here. Path C created no team, so there is nothing to tear down.
|
|
58
|
+
|
|
59
|
+
Team (Path B) re-dispatch spawns fresh sub-agents after prior sub-agents have shut down; never message sub-agents from the prior run.
|
|
60
|
+
|
|
61
|
+
## Merge outputs (B.7)
|
|
62
|
+
|
|
63
|
+
Synthesize the sub-agent outputs (3 or 5) into a single unified plan following the standard
|
|
64
|
+
`planner` Plan Format. Merging rules:
|
|
65
|
+
|
|
66
|
+
- **Overview / Summary**: use `architect`'s framing.
|
|
67
|
+
- **Architecture Changes / Implementation Steps**: primarily `architect`; fold in
|
|
68
|
+
`risk-analyst`'s findings as per-step risk callouts or a dedicated `## Risks &
|
|
69
|
+
Mitigations` section.
|
|
70
|
+
- **Testing Strategy / Success Criteria**: use `test-strategist`'s content verbatim.
|
|
71
|
+
- **Batches section** (if `PARALLEL_MODE=true`): use `architect`'s numbering; re-index
|
|
72
|
+
if `risk-analyst` or `test-strategist` added follow-on steps.
|
|
73
|
+
- When `ENHANCED_MODE=true`, also fold in:
|
|
74
|
+
- **`security-reviewer`** → add a top-level `## Security Considerations` section listing the threat-model findings and validation requirements. If specific steps need callouts (e.g., "input must be validated against …"), also annotate the matching `architect` step with `> **Security**: …`. If `security-reviewer` returned no significant findings, omit the section entirely (do not write "N/A").
|
|
75
|
+
- **`ux-reviewer`** → add a top-level `## UX Impact` section with Before / After / Interaction Changes. If `ux-reviewer` returned "Internal change — no user-facing UX impact", omit the section entirely.
|
|
76
|
+
- End with the standard confirmation prompt: `**WAITING FOR CONFIRMATION**: Proceed
|
|
77
|
+
with this plan? (yes / no / modify)`
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Plan Validation
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Check 1: Structure completeness
|
|
6
|
+
- Check 2: File path spot-check
|
|
7
|
+
- Check 3: Parallel mode integrity (`PARALLEL_MODE=true` only)
|
|
8
|
+
- Check 4: Multi-agent merge integrity (Path B and Path C)
|
|
9
|
+
|
|
10
|
+
After the `planner` agent returns its plan, perform these quick checks before presenting it to the user. Use only the tools already available to this skill.
|
|
11
|
+
|
|
12
|
+
### Check 1: Structure completeness
|
|
13
|
+
|
|
14
|
+
Scan the agent's response for these sections. If any **required** section is missing, re-dispatch the planner with a note to include the missing section(s).
|
|
15
|
+
|
|
16
|
+
**Required** (re-dispatch if missing):
|
|
17
|
+
|
|
18
|
+
- `## Overview` or `## Summary`
|
|
19
|
+
- `## Implementation Steps` or `## Step-by-Step Tasks`
|
|
20
|
+
- `## Testing Strategy`
|
|
21
|
+
- `**WAITING FOR CONFIRMATION**`
|
|
22
|
+
|
|
23
|
+
**Expected** (append a note to the plan if missing, but do NOT re-dispatch):
|
|
24
|
+
|
|
25
|
+
- `## Architecture Changes` or `## Requirements`
|
|
26
|
+
- `## Risks` or `## Risks & Mitigations`
|
|
27
|
+
- `## Success Criteria`
|
|
28
|
+
|
|
29
|
+
### Check 2: File path spot-check
|
|
30
|
+
|
|
31
|
+
Extract up to 10 file paths from the plan (backtick-quoted paths or paths after `File:` annotations). For each, use Glob or `Bash: test -f "<path>"` to check existence.
|
|
32
|
+
|
|
33
|
+
- If **all paths exist**: clean pass, append nothing.
|
|
34
|
+
- If **>30% of checked paths are missing**: append a validation note before relaying:
|
|
35
|
+
|
|
36
|
+
> **Validation Note**: {N} of {M} file paths in this plan could not be found in the current codebase. This may indicate renamed files, planned new files, or stale references. Review the paths in the Implementation Steps before confirming.
|
|
37
|
+
|
|
38
|
+
- If **a few paths are missing** (≤30%): append a lighter note listing only the missing paths.
|
|
39
|
+
|
|
40
|
+
### Check 3: Parallel mode integrity (`PARALLEL_MODE=true` only)
|
|
41
|
+
|
|
42
|
+
If the plan was requested with `--parallel`, verify:
|
|
43
|
+
|
|
44
|
+
- A `## Batches` section exists in the response
|
|
45
|
+
- At least one `Depends on` annotation exists
|
|
46
|
+
- Step IDs use hierarchical format (N.N)
|
|
47
|
+
|
|
48
|
+
If any are missing, re-dispatch the planner with a directive to add the missing parallel annotations.
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Check 4: Multi-agent merge integrity (Path B and Path C)
|
|
53
|
+
|
|
54
|
+
After a Path B or Path C merge — that is, whenever multiple sub-agents contributed to the plan — verify the unified plan reflects every spawned perspective:
|
|
55
|
+
|
|
56
|
+
- `architect` slice: `## Implementation Steps` (or equivalent) is present and non-empty
|
|
57
|
+
- `risk-analyst` slice: a `## Risks` / `## Risks & Mitigations` section OR per-step risk callouts are present
|
|
58
|
+
- `test-strategist` slice: `## Testing Strategy` is present and non-empty
|
|
59
|
+
- When `ENHANCED_MODE=true`, also verify:
|
|
60
|
+
- `security-reviewer` slice: `## Security Considerations` is present **OR** the merged plan documents that no significant security risks were found (e.g., a one-line note in `## Risks` such as "Security-reviewer: no significant risks identified"). Per-step `> **Security**:` callouts also satisfy this check.
|
|
61
|
+
- `ux-reviewer` slice: `## UX Impact` is present **OR** the merged plan documents "Internal change — no user-facing UX impact". Both forms count as covered.
|
|
62
|
+
|
|
63
|
+
If the merge dropped a slice (e.g., because a sub-agent errored), append a visible note:
|
|
64
|
+
|
|
65
|
+
> **Validation Note**: The {role} perspective could not be included in this plan (sub-agent error). Review the plan for gaps in {area} before confirming.
|