@yandy-r/ycc-opencode 0.0.0-bootstrap.0 → 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 +42 -0
- 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 +33 -7
- 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,366 @@
|
|
|
1
|
+
# Python Testing Patterns: pytest Core
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- TDD Workflow for Python
|
|
6
|
+
- pytest Fundamentals
|
|
7
|
+
- Fixtures
|
|
8
|
+
- Parametrization
|
|
9
|
+
- Markers and Test Selection
|
|
10
|
+
|
|
11
|
+
## TDD Workflow for Python
|
|
12
|
+
|
|
13
|
+
### The RED-GREEN-REFACTOR Cycle
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
RED → Write a failing test for the desired behavior
|
|
17
|
+
GREEN → Write minimal code to make the test pass
|
|
18
|
+
REFACTOR → Improve code while keeping tests green
|
|
19
|
+
REPEAT → Continue with the next requirement
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### Step-by-Step TDD in Python
|
|
23
|
+
|
|
24
|
+
```python
|
|
25
|
+
# Step 1: Write failing test (RED)
|
|
26
|
+
# test_calculator.py
|
|
27
|
+
def test_add_numbers():
|
|
28
|
+
result = add(2, 3)
|
|
29
|
+
assert result == 5
|
|
30
|
+
|
|
31
|
+
# Step 2: Run test - verify FAIL
|
|
32
|
+
# $ pytest
|
|
33
|
+
# NameError: name 'add' is not defined
|
|
34
|
+
|
|
35
|
+
# Step 3: Write minimal implementation (GREEN)
|
|
36
|
+
# calculator.py
|
|
37
|
+
def add(a: int, b: int) -> int:
|
|
38
|
+
return a + b
|
|
39
|
+
|
|
40
|
+
# Step 4: Run test - verify PASS
|
|
41
|
+
# $ pytest
|
|
42
|
+
# 1 passed
|
|
43
|
+
|
|
44
|
+
# Step 5: Refactor if needed, verify tests still pass
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Coverage Targets
|
|
48
|
+
|
|
49
|
+
| Code Type | Target |
|
|
50
|
+
| ----------------------- | ------- |
|
|
51
|
+
| Critical business logic | 100% |
|
|
52
|
+
| Public APIs | 90%+ |
|
|
53
|
+
| General code | 80%+ |
|
|
54
|
+
| Generated/boilerplate | Exclude |
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pytest --cov=mypackage --cov-report=term-missing --cov-report=html
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## pytest Fundamentals
|
|
61
|
+
|
|
62
|
+
### Basic Test Structure
|
|
63
|
+
|
|
64
|
+
```python
|
|
65
|
+
import pytest
|
|
66
|
+
|
|
67
|
+
def test_addition():
|
|
68
|
+
"""Test basic addition."""
|
|
69
|
+
assert 2 + 2 == 4
|
|
70
|
+
|
|
71
|
+
def test_string_uppercase():
|
|
72
|
+
"""Test string uppercasing."""
|
|
73
|
+
text = "hello"
|
|
74
|
+
assert text.upper() == "HELLO"
|
|
75
|
+
|
|
76
|
+
def test_list_append():
|
|
77
|
+
"""Test list append."""
|
|
78
|
+
items = [1, 2, 3]
|
|
79
|
+
items.append(4)
|
|
80
|
+
assert 4 in items
|
|
81
|
+
assert len(items) == 4
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Assertions
|
|
85
|
+
|
|
86
|
+
```python
|
|
87
|
+
# Equality
|
|
88
|
+
assert result == expected
|
|
89
|
+
|
|
90
|
+
# Inequality
|
|
91
|
+
assert result != unexpected
|
|
92
|
+
|
|
93
|
+
# Truthiness / identity
|
|
94
|
+
assert result # truthy
|
|
95
|
+
assert not result # falsy
|
|
96
|
+
assert result is True
|
|
97
|
+
assert result is None
|
|
98
|
+
|
|
99
|
+
# Membership
|
|
100
|
+
assert item in collection
|
|
101
|
+
assert item not in collection
|
|
102
|
+
|
|
103
|
+
# Comparisons
|
|
104
|
+
assert result > 0
|
|
105
|
+
assert 0 <= result <= 100
|
|
106
|
+
|
|
107
|
+
# Type checking
|
|
108
|
+
assert isinstance(result, str)
|
|
109
|
+
|
|
110
|
+
# Exception testing
|
|
111
|
+
with pytest.raises(ValueError):
|
|
112
|
+
raise ValueError("error message")
|
|
113
|
+
|
|
114
|
+
# Match exception message (regex)
|
|
115
|
+
with pytest.raises(ValueError, match="invalid input"):
|
|
116
|
+
raise ValueError("invalid input provided")
|
|
117
|
+
|
|
118
|
+
# Inspect exception attributes
|
|
119
|
+
with pytest.raises(ValueError) as exc_info:
|
|
120
|
+
raise ValueError("error message")
|
|
121
|
+
assert str(exc_info.value) == "error message"
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Fixtures
|
|
125
|
+
|
|
126
|
+
### Basic Fixture Usage
|
|
127
|
+
|
|
128
|
+
```python
|
|
129
|
+
import pytest
|
|
130
|
+
|
|
131
|
+
@pytest.fixture
|
|
132
|
+
def sample_data():
|
|
133
|
+
"""Fixture providing sample data."""
|
|
134
|
+
return {"name": "Alice", "age": 30}
|
|
135
|
+
|
|
136
|
+
def test_sample_data(sample_data):
|
|
137
|
+
"""Test using the fixture."""
|
|
138
|
+
assert sample_data["name"] == "Alice"
|
|
139
|
+
assert sample_data["age"] == 30
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Fixture with Setup/Teardown
|
|
143
|
+
|
|
144
|
+
```python
|
|
145
|
+
@pytest.fixture
|
|
146
|
+
def database():
|
|
147
|
+
"""Fixture with setup and teardown."""
|
|
148
|
+
# Setup
|
|
149
|
+
db = Database(":memory:")
|
|
150
|
+
db.create_tables()
|
|
151
|
+
db.insert_test_data()
|
|
152
|
+
|
|
153
|
+
yield db # Provide to test
|
|
154
|
+
|
|
155
|
+
# Teardown
|
|
156
|
+
db.close()
|
|
157
|
+
|
|
158
|
+
def test_database_query(database):
|
|
159
|
+
"""Test database operations."""
|
|
160
|
+
result = database.query("SELECT * FROM users")
|
|
161
|
+
assert len(result) > 0
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### Fixture Scopes
|
|
165
|
+
|
|
166
|
+
```python
|
|
167
|
+
# Function scope (default) - runs for each test
|
|
168
|
+
@pytest.fixture
|
|
169
|
+
def temp_file(tmp_path):
|
|
170
|
+
f = tmp_path / "temp.txt"
|
|
171
|
+
f.write_text("hello")
|
|
172
|
+
return f
|
|
173
|
+
|
|
174
|
+
# Module scope - runs once per module
|
|
175
|
+
@pytest.fixture(scope="module")
|
|
176
|
+
def module_db():
|
|
177
|
+
db = Database(":memory:")
|
|
178
|
+
db.create_tables()
|
|
179
|
+
yield db
|
|
180
|
+
db.close()
|
|
181
|
+
|
|
182
|
+
# Session scope - runs once per test session
|
|
183
|
+
@pytest.fixture(scope="session")
|
|
184
|
+
def shared_resource():
|
|
185
|
+
resource = ExpensiveResource()
|
|
186
|
+
yield resource
|
|
187
|
+
resource.cleanup()
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
### Parameterized Fixtures
|
|
191
|
+
|
|
192
|
+
```python
|
|
193
|
+
@pytest.fixture(params=[1, 2, 3])
|
|
194
|
+
def number(request):
|
|
195
|
+
"""Parameterized fixture - test runs once per param."""
|
|
196
|
+
return request.param
|
|
197
|
+
|
|
198
|
+
def test_numbers(number):
|
|
199
|
+
"""Test runs 3 times, once for each parameter."""
|
|
200
|
+
assert number > 0
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Composing Multiple Fixtures
|
|
204
|
+
|
|
205
|
+
```python
|
|
206
|
+
@pytest.fixture
|
|
207
|
+
def user():
|
|
208
|
+
return User(id=1, name="Alice")
|
|
209
|
+
|
|
210
|
+
@pytest.fixture
|
|
211
|
+
def admin():
|
|
212
|
+
return User(id=2, name="Admin", role="admin")
|
|
213
|
+
|
|
214
|
+
def test_user_admin_interaction(user, admin):
|
|
215
|
+
"""Test using multiple fixtures."""
|
|
216
|
+
assert admin.can_manage(user)
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
### Autouse Fixtures
|
|
220
|
+
|
|
221
|
+
```python
|
|
222
|
+
@pytest.fixture(autouse=True)
|
|
223
|
+
def reset_config():
|
|
224
|
+
"""Automatically runs before every test in this module."""
|
|
225
|
+
Config.reset()
|
|
226
|
+
yield
|
|
227
|
+
Config.cleanup()
|
|
228
|
+
|
|
229
|
+
def test_without_fixture_call():
|
|
230
|
+
# reset_config runs automatically
|
|
231
|
+
assert Config.get_setting("debug") is False
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
### conftest.py for Shared Fixtures
|
|
235
|
+
|
|
236
|
+
```python
|
|
237
|
+
# tests/conftest.py
|
|
238
|
+
import pytest
|
|
239
|
+
|
|
240
|
+
@pytest.fixture
|
|
241
|
+
def client():
|
|
242
|
+
"""Shared fixture for all tests."""
|
|
243
|
+
app = create_app(testing=True)
|
|
244
|
+
with app.test_client() as client:
|
|
245
|
+
yield client
|
|
246
|
+
|
|
247
|
+
@pytest.fixture
|
|
248
|
+
def auth_headers(client):
|
|
249
|
+
"""Generate auth headers for API testing."""
|
|
250
|
+
response = client.post("/api/login", json={
|
|
251
|
+
"username": "test",
|
|
252
|
+
"password": "test",
|
|
253
|
+
})
|
|
254
|
+
token = response.json["token"]
|
|
255
|
+
return {"Authorization": f"Bearer {token}"}
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
## Parametrization
|
|
259
|
+
|
|
260
|
+
### Basic Parametrization
|
|
261
|
+
|
|
262
|
+
```python
|
|
263
|
+
@pytest.mark.parametrize("text,expected", [
|
|
264
|
+
("hello", "HELLO"),
|
|
265
|
+
("world", "WORLD"),
|
|
266
|
+
("PyThOn", "PYTHON"),
|
|
267
|
+
])
|
|
268
|
+
def test_uppercase(text, expected):
|
|
269
|
+
"""Test runs 3 times with different inputs."""
|
|
270
|
+
assert text.upper() == expected
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
### Multiple Parameters
|
|
274
|
+
|
|
275
|
+
```python
|
|
276
|
+
@pytest.mark.parametrize("a,b,expected", [
|
|
277
|
+
(2, 3, 5),
|
|
278
|
+
(0, 0, 0),
|
|
279
|
+
(-1, 1, 0),
|
|
280
|
+
(100, 200, 300),
|
|
281
|
+
])
|
|
282
|
+
def test_add(a, b, expected):
|
|
283
|
+
"""Test addition with multiple inputs."""
|
|
284
|
+
assert add(a, b) == expected
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
### Parametrize with IDs
|
|
288
|
+
|
|
289
|
+
```python
|
|
290
|
+
@pytest.mark.parametrize("email,expected", [
|
|
291
|
+
("valid@email.com", True),
|
|
292
|
+
("invalid", False),
|
|
293
|
+
("@no-domain.com", False),
|
|
294
|
+
], ids=["valid-email", "missing-at", "missing-domain"])
|
|
295
|
+
def test_email_validation(email, expected):
|
|
296
|
+
"""Test email validation with readable test IDs."""
|
|
297
|
+
assert is_valid_email(email) is expected
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
### Parametrized Fixtures
|
|
301
|
+
|
|
302
|
+
```python
|
|
303
|
+
@pytest.fixture(params=["sqlite", "postgresql", "mysql"])
|
|
304
|
+
def db(request):
|
|
305
|
+
"""Test against multiple database backends."""
|
|
306
|
+
if request.param == "sqlite":
|
|
307
|
+
return Database(":memory:")
|
|
308
|
+
elif request.param == "postgresql":
|
|
309
|
+
return Database("postgresql://localhost/test")
|
|
310
|
+
elif request.param == "mysql":
|
|
311
|
+
return Database("mysql://localhost/test")
|
|
312
|
+
|
|
313
|
+
def test_database_operations(db):
|
|
314
|
+
"""Test runs 3 times, once for each database."""
|
|
315
|
+
result = db.query("SELECT 1")
|
|
316
|
+
assert result is not None
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
## Markers and Test Selection
|
|
320
|
+
|
|
321
|
+
### Custom Markers
|
|
322
|
+
|
|
323
|
+
```python
|
|
324
|
+
# Mark slow tests
|
|
325
|
+
@pytest.mark.slow
|
|
326
|
+
def test_slow_operation():
|
|
327
|
+
time.sleep(5)
|
|
328
|
+
|
|
329
|
+
# Mark integration tests
|
|
330
|
+
@pytest.mark.integration
|
|
331
|
+
def test_api_integration():
|
|
332
|
+
response = requests.get("https://api.example.com")
|
|
333
|
+
assert response.status_code == 200
|
|
334
|
+
|
|
335
|
+
# Mark unit tests
|
|
336
|
+
@pytest.mark.unit
|
|
337
|
+
def test_unit_logic():
|
|
338
|
+
assert calculate(2, 3) == 5
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
### Run Specific Tests
|
|
342
|
+
|
|
343
|
+
```bash
|
|
344
|
+
# Run only fast tests
|
|
345
|
+
pytest -m "not slow"
|
|
346
|
+
|
|
347
|
+
# Run only integration tests
|
|
348
|
+
pytest -m integration
|
|
349
|
+
|
|
350
|
+
# Run integration or slow tests
|
|
351
|
+
pytest -m "integration or slow"
|
|
352
|
+
|
|
353
|
+
# Run tests marked as unit but not slow
|
|
354
|
+
pytest -m "unit and not slow"
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
### Configure Markers in pyproject.toml
|
|
358
|
+
|
|
359
|
+
```toml
|
|
360
|
+
[tool.pytest.ini_options]
|
|
361
|
+
markers = [
|
|
362
|
+
"slow: marks tests as slow",
|
|
363
|
+
"integration: marks tests as integration tests",
|
|
364
|
+
"unit: marks tests as unit tests",
|
|
365
|
+
]
|
|
366
|
+
```
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: quick-fix
|
|
3
|
+
description: Applies inline Quick Review findings without review artifacts. Use when
|
|
4
|
+
choosing Apply fixes after quick-review, fixing pasted Quick Review findings, or
|
|
5
|
+
making artifact-free review fixes.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Quick Fix
|
|
9
|
+
|
|
10
|
+
Apply fixes from an inline Quick Review findings block without writing or
|
|
11
|
+
updating a review artifact.
|
|
12
|
+
|
|
13
|
+
**Core rule**: This skill is artifact-free. It MUST NOT create files under
|
|
14
|
+
`docs/prps/reviews/` — that would lose the audit contract — and it MUST NOT
|
|
15
|
+
update any review markdown file. If the
|
|
16
|
+
user wants an auditable artifact, route them to `/ycc:review-fix` with a saved
|
|
17
|
+
review file instead.
|
|
18
|
+
|
|
19
|
+
**Input**: `$ARGUMENTS`
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Phase 0 — Parse flags
|
|
24
|
+
|
|
25
|
+
Extract flags from `$ARGUMENTS`:
|
|
26
|
+
|
|
27
|
+
| Flag | Effect |
|
|
28
|
+
| -------------------- | ------------------------------------------------------------------------------------- |
|
|
29
|
+
| `--parallel` | Dispatch independent same-file groups to `review-fixer` in parallel. |
|
|
30
|
+
| `--severity <level>` | Minimum severity to fix. Valid: `CRITICAL`, `HIGH`, `MEDIUM`, `LOW`. Default: `HIGH`. |
|
|
31
|
+
|
|
32
|
+
Strip these flags and set `PARALLEL_MODE` and `MIN_SEVERITY` (default `HIGH`).
|
|
33
|
+
The remaining text is the inline review payload.
|
|
34
|
+
|
|
35
|
+
**Validation**:
|
|
36
|
+
|
|
37
|
+
- `--severity` value not one of `CRITICAL|HIGH|MEDIUM|LOW` -> abort with:
|
|
38
|
+
`Invalid --severity value. Use CRITICAL, HIGH, MEDIUM, or LOW.`
|
|
39
|
+
- Remaining payload is empty -> abort with:
|
|
40
|
+
`Error: /ycc:quick-fix requires an inline Quick Review findings block.`
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Phase 1 — Parse findings
|
|
45
|
+
|
|
46
|
+
Parse the inline payload — the quick-review findings subset of the shared
|
|
47
|
+
Review Artifact Format:
|
|
48
|
+
|
|
49
|
+
`{{package-root}}/shared/references/review-artifact-format.md`
|
|
50
|
+
|
|
51
|
+
Build an in-memory list of `Finding` objects:
|
|
52
|
+
|
|
53
|
+
- `id`
|
|
54
|
+
- `severity`
|
|
55
|
+
- `file`
|
|
56
|
+
- `line`
|
|
57
|
+
- `description`
|
|
58
|
+
- `status`
|
|
59
|
+
- `category`
|
|
60
|
+
- `suggested_fix`
|
|
61
|
+
|
|
62
|
+
If no parseable findings exist, stop with:
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
Error: No parseable quick-review findings found.
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
If every parsed finding is already `Fixed` or `Failed`, stop with:
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
All findings in this quick review have already been processed.
|
|
72
|
+
Nothing to do.
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Phase 2 — Filter
|
|
78
|
+
|
|
79
|
+
Apply filters in this order:
|
|
80
|
+
|
|
81
|
+
1. Keep only findings with `Status: Open`.
|
|
82
|
+
2. Keep only findings at or above `MIN_SEVERITY`, using
|
|
83
|
+
`CRITICAL > HIGH > MEDIUM > LOW`.
|
|
84
|
+
3. Drop findings without a non-empty `Suggested fix`.
|
|
85
|
+
4. Drop findings whose target file no longer exists (`test -f "$FILE"`).
|
|
86
|
+
|
|
87
|
+
Print a compact filter summary:
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
Quick Fix Filter Results:
|
|
91
|
+
Total findings: N
|
|
92
|
+
Already processed: A
|
|
93
|
+
Below severity threshold: B (threshold: HIGH)
|
|
94
|
+
No suggested fix: C
|
|
95
|
+
Missing files: D
|
|
96
|
+
Eligible for fixing: M
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
If `M == 0`, stop with `No eligible findings to fix.`
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Phase 3 — Detect validation command
|
|
104
|
+
|
|
105
|
+
Detect one project-level type-check command to pass to `review-fixer`.
|
|
106
|
+
Use the first matching rule:
|
|
107
|
+
|
|
108
|
+
| File Exists | Command |
|
|
109
|
+
| ------------------- | ------------------ |
|
|
110
|
+
| `bun.lockb` | `bun test` |
|
|
111
|
+
| `pnpm-lock.yaml` | `pnpm typecheck` |
|
|
112
|
+
| `yarn.lock` | `yarn typecheck` |
|
|
113
|
+
| `package-lock.json` | `npx tsc --noEmit` |
|
|
114
|
+
| `Cargo.toml` | `cargo check` |
|
|
115
|
+
| `go.mod` | `go vet ./...` |
|
|
116
|
+
| `pyproject.toml` | `pytest` |
|
|
117
|
+
|
|
118
|
+
If no command is detected, set:
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
PROJECT TYPE-CHECK COMMAND: SKIP (no supported project validation command detected)
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
`review-fixer` is allowed to skip verification only for this explicit
|
|
125
|
+
`SKIP (...)` value.
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## Phase 4 — Plan batches
|
|
130
|
+
|
|
131
|
+
Group eligible findings by file. Same-file findings MUST be processed by the
|
|
132
|
+
same `review-fixer` agent and sorted by line number descending.
|
|
133
|
+
|
|
134
|
+
Sort groups by highest severity in the group (`CRITICAL`, `HIGH`, `MEDIUM`,
|
|
135
|
+
`LOW`), then by file path.
|
|
136
|
+
|
|
137
|
+
Print:
|
|
138
|
+
|
|
139
|
+
```
|
|
140
|
+
Quick Fix Plan:
|
|
141
|
+
Eligible findings: M
|
|
142
|
+
Same-file groups: G
|
|
143
|
+
Mode: sequential | parallel
|
|
144
|
+
|
|
145
|
+
Group 1: src/file.ts (2 findings)
|
|
146
|
+
- F003 HIGH line 80
|
|
147
|
+
- F001 HIGH line 42
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## Phase 5 — Execute
|
|
153
|
+
|
|
154
|
+
Every `review-fixer` prompt must include:
|
|
155
|
+
|
|
156
|
+
```
|
|
157
|
+
SOURCE REVIEW FILE: (quick-fix ephemeral handoff)
|
|
158
|
+
PROJECT TYPE-CHECK COMMAND: <detected command or SKIP (...)>
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
This tells the fixer not to expect or edit a review artifact.
|
|
162
|
+
|
|
163
|
+
### Sequential mode
|
|
164
|
+
|
|
165
|
+
Process groups one at a time.
|
|
166
|
+
|
|
167
|
+
For a one-finding group, dispatch a single `review-fixer` agent with Shape A:
|
|
168
|
+
|
|
169
|
+
```text
|
|
170
|
+
FINDING:
|
|
171
|
+
ID: F001
|
|
172
|
+
Severity: HIGH
|
|
173
|
+
File: src/file.ts
|
|
174
|
+
Line: 42
|
|
175
|
+
Category: Correctness
|
|
176
|
+
Description: Description
|
|
177
|
+
Suggested fix: Concrete fix
|
|
178
|
+
|
|
179
|
+
SOURCE REVIEW FILE: (quick-fix ephemeral handoff)
|
|
180
|
+
PROJECT TYPE-CHECK COMMAND: pnpm typecheck
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
For a same-file group, dispatch one `review-fixer` agent with Shape B:
|
|
184
|
+
|
|
185
|
+
```text
|
|
186
|
+
FINDINGS (same file, sorted by line descending):
|
|
187
|
+
1. F003 — HIGH — src/file.ts:80 — Description — Suggested fix: Concrete fix
|
|
188
|
+
2. F001 — HIGH — src/file.ts:42 — Description — Suggested fix: Concrete fix
|
|
189
|
+
|
|
190
|
+
SOURCE REVIEW FILE: (quick-fix ephemeral handoff)
|
|
191
|
+
PROJECT TYPE-CHECK COMMAND: pnpm typecheck
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Collect each agent's `STATUS: Fixed` or `STATUS: Failed` result. Do NOT edit any
|
|
195
|
+
artifact status lines.
|
|
196
|
+
|
|
197
|
+
### Parallel mode
|
|
198
|
+
|
|
199
|
+
Process one batch containing all same-file groups. Dispatch all groups in a
|
|
200
|
+
single message with multiple native `subagent` calls, one call per file group:
|
|
201
|
+
|
|
202
|
+
- `agent`: `review-fixer`
|
|
203
|
+
- `description`: `Quick-fix <ids> in <file>`
|
|
204
|
+
- `prompt`: Shape A or Shape B as above
|
|
205
|
+
|
|
206
|
+
Wait for all agents to return, then collect statuses.
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
## Phase 6 — Report
|
|
211
|
+
|
|
212
|
+
Print an inline result summary:
|
|
213
|
+
|
|
214
|
+
```markdown
|
|
215
|
+
# Quick Fix Results
|
|
216
|
+
|
|
217
|
+
Fixed: N
|
|
218
|
+
Failed: M
|
|
219
|
+
Skipped: K
|
|
220
|
+
|
|
221
|
+
## Fixed
|
|
222
|
+
|
|
223
|
+
- F001 `src/file.ts:42` — <brief agent-reported change>
|
|
224
|
+
|
|
225
|
+
## Failed
|
|
226
|
+
|
|
227
|
+
- F004 `src/other.ts:10` — <blocker and recommendation>
|
|
228
|
+
|
|
229
|
+
## Notes
|
|
230
|
+
|
|
231
|
+
No review artifact was written. Re-run `/ycc:quick-review` if you need a fresh
|
|
232
|
+
post-fix review.
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
If any finding failed, include the fixer agent's `BLOCKER` and `RECOMMENDATION`
|
|
236
|
+
so the user can decide whether to save a formal review artifact or fix manually.
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
## Relationship to review-fix
|
|
241
|
+
|
|
242
|
+
- `/ycc:quick-fix` is for ephemeral, inline quick-review findings.
|
|
243
|
+
- `/ycc:review-fix` is for artifacts under `docs/prps/reviews/`.
|
|
244
|
+
- Do not teach `/ycc:review-fix` to parse inline quick-review payloads; keeping
|
|
245
|
+
the workflows separate preserves the audit trail contract for artifact-backed
|
|
246
|
+
reviews.
|