@yandy-r/ycc-opencode 0.0.0-stage → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +39 -0
- package/LICENSE +21 -0
- package/README.md +50 -2
- package/agents/ansible-automation-expert.md +115 -0
- package/agents/api-docs-expert.md +146 -0
- package/agents/api-documenter.md +105 -0
- package/agents/architect.md +264 -0
- package/agents/architecture-analyst.md +99 -0
- package/agents/backport-conflict-resolver.md +476 -0
- package/agents/cloudflare-architect.md +85 -0
- package/agents/cloudflare-developer.md +196 -0
- package/agents/code-architect.md +101 -0
- package/agents/code-documenter.md +114 -0
- package/agents/code-explorer.md +99 -0
- package/agents/code-finder.md +83 -0
- package/agents/code-researcher.md +102 -0
- package/agents/code-reviewer.md +268 -0
- package/agents/code-simplifier.md +77 -0
- package/agents/codebase-advisor.md +130 -0
- package/agents/db-modifier.md +577 -0
- package/agents/docs-git-committer.md +220 -0
- package/agents/documentation-writer.md +92 -0
- package/agents/feature-researcher.md +121 -0
- package/agents/feature-writer.md +89 -0
- package/agents/frontend-ui-developer.md +98 -0
- package/agents/git-cleanup.md +174 -0
- package/agents/go-api-architect.md +172 -0
- package/agents/go-expert-architect.md +147 -0
- package/agents/implementor.md +167 -0
- package/agents/library-docs-writer.md +128 -0
- package/agents/nextjs-ux-ui-expert.md +127 -0
- package/agents/nodejs-backend-architect.md +112 -0
- package/agents/nodejs-backend-developer.md +184 -0
- package/agents/planner.md +257 -0
- package/agents/pr-comment-fixer.md +626 -0
- package/agents/practices-researcher.md +80 -0
- package/agents/project-file-cleaner.md +140 -0
- package/agents/prp-researcher.md +231 -0
- package/agents/python-developer.md +171 -0
- package/agents/python-expert-architect.md +188 -0
- package/agents/readme-generator.md +100 -0
- package/agents/release-fix-applier.md +558 -0
- package/agents/releaser.md +147 -0
- package/agents/research-specialist.md +106 -0
- package/agents/reverse-proxy-architect.md +131 -0
- package/agents/review-fixer.md +609 -0
- package/agents/root-cause-analyzer.md +105 -0
- package/agents/rust-build-resolver.md +183 -0
- package/agents/rust-expert-architect.md +149 -0
- package/agents/rust-reviewer.md +126 -0
- package/agents/sql-database-developer.md +195 -0
- package/agents/systems-engineering-expert.md +203 -0
- package/agents/terraform-architect.md +109 -0
- package/agents/terraform-developer.md +229 -0
- package/agents/test-strategy-planner.md +126 -0
- package/agents/turso-database-architect.md +139 -0
- package/agents/typescript-developer.md +170 -0
- package/agents/typescript-expert-architect.md +167 -0
- package/index.js +523 -0
- package/package.json +36 -4
- package/registration.json +7259 -0
- package/shared/references/agent-native-setup.md +121 -0
- package/shared/references/branch-prep.md +31 -0
- package/shared/references/branching-model.md +162 -0
- package/shared/references/ci-monitoring.md +455 -0
- package/shared/references/forge-detection.md +162 -0
- package/shared/references/goal-pairing.md +55 -0
- package/shared/references/pr-base-and-backport.md +143 -0
- package/shared/references/question-policy.md +99 -0
- package/shared/references/review-artifact-format.md +141 -0
- package/shared/references/review-checklist.md +161 -0
- package/shared/references/review-dispatch.md +73 -0
- package/shared/references/session-state.md +159 -0
- package/shared/references/standalone-dispatch.md +300 -0
- package/shared/references/target-capability-matrix.md +516 -0
- package/shared/references/visual-mode.md +155 -0
- package/shared/references/worktree-strategy.md +326 -0
- package/shared/scripts/backport-audit.sh +283 -0
- package/shared/scripts/ci-monitor.sh +637 -0
- package/shared/scripts/lib/backport-lib.sh +47 -0
- package/shared/scripts/lib/ci-classify.sh +103 -0
- package/shared/scripts/lib/forge.sh +264 -0
- package/shared/scripts/lib/release-state-lib.sh +300 -0
- package/shared/scripts/list-worktrees.sh +178 -0
- package/shared/scripts/merge-children.sh +82 -0
- package/shared/scripts/move-plan-to-worktree.sh +231 -0
- package/shared/scripts/pr-guard.sh +283 -0
- package/shared/scripts/prepare-feature-branch.sh +326 -0
- package/shared/scripts/release-ci-monitor.sh +671 -0
- package/shared/scripts/release-state-update.sh +216 -0
- package/shared/scripts/release-state.sh +178 -0
- package/shared/scripts/report-bundle-drift.sh +343 -0
- package/shared/scripts/require-python.sh +17 -0
- package/shared/scripts/resolve-plans-dir.sh +262 -0
- package/shared/scripts/rules-pointer.sh +20 -0
- package/shared/scripts/rules_pointer.py +267 -0
- package/shared/scripts/setup-worktree.sh +288 -0
- package/shared/scripts/validate-file-paths.sh +249 -0
- package/shared/scripts/visual-egress-guard.sh +303 -0
- package/shared/scripts/visual-recap-collect.sh +247 -0
- package/shared/scripts/worktree-paths.sh +91 -0
- package/skills/backport/SKILL.md +293 -0
- package/skills/backport/scripts/cherry-pick-pr.sh +232 -0
- package/skills/backport/scripts/find-pending.sh +199 -0
- package/skills/blueprint/SKILL.md +412 -0
- package/skills/blueprint/references/bootstrap-mapping.md +87 -0
- package/skills/bundle-author/SKILL.md +121 -0
- package/skills/bundle-author/references/surface-map.md +128 -0
- package/skills/bundle-author/references/templates/agent-template.md +21 -0
- package/skills/bundle-author/references/templates/skill-template.md +36 -0
- package/skills/bundle-author/references/when-not-to-scaffold.md +85 -0
- package/skills/bundle-author/scripts/scaffold-skill.sh +156 -0
- package/skills/bundle-release/SKILL.md +192 -0
- package/skills/bundle-release/references/release-checklist.md +196 -0
- package/skills/bundle-release/references/release-notes-template.md +48 -0
- package/skills/bundle-release/references/version-policy.md +156 -0
- package/skills/bundle-release/scripts/bump-version.sh +99 -0
- package/skills/bundle-release/scripts/draft-notes.sh +222 -0
- package/skills/bundle-release/scripts/preflight.sh +165 -0
- package/skills/bundle-release/scripts/release_versions.py +375 -0
- package/skills/clean/SKILL.md +109 -0
- package/skills/clean/references/agent-prompts.md +199 -0
- package/skills/clean/references/safety-config.md +125 -0
- package/skills/clean/scripts/detect-project-type.sh +423 -0
- package/skills/clean/scripts/generate-report.sh +245 -0
- package/skills/clean/scripts/validate-safety.sh +401 -0
- package/skills/code-report/SKILL.md +377 -0
- package/skills/code-report/scripts/check-prerequisites.sh +65 -0
- package/skills/code-report/templates/report-structure.md +202 -0
- package/skills/code-review/SKILL.md +155 -0
- package/skills/code-review/references/pr-procedure.md +311 -0
- package/skills/compatibility-audit/SKILL.md +229 -0
- package/skills/compatibility-audit/references/reading-the-report.md +162 -0
- package/skills/compatibility-audit/scripts/audit-install-assumptions.sh +431 -0
- package/skills/compatibility-audit/scripts/audit-target-features.sh +596 -0
- package/skills/deep-research/SKILL.md +251 -0
- package/skills/deep-research/references/analysis-prompts.md +702 -0
- package/skills/deep-research/references/completion-summary-template.md +66 -0
- package/skills/deep-research/references/persona-analogical.md +159 -0
- package/skills/deep-research/references/persona-archaeological.md +69 -0
- package/skills/deep-research/references/persona-contrarian.md +155 -0
- package/skills/deep-research/references/persona-futurist.md +70 -0
- package/skills/deep-research/references/persona-historical.md +142 -0
- package/skills/deep-research/references/persona-journalistic.md +69 -0
- package/skills/deep-research/references/persona-negative-space.md +70 -0
- package/skills/deep-research/references/persona-systems.md +69 -0
- package/skills/deep-research/references/synthesis-template.md +569 -0
- package/skills/deep-research/references/verification-log-template.md +32 -0
- package/skills/deep-research/scripts/check-prerequisites.sh +153 -0
- package/skills/deep-research/scripts/validate-research.sh +244 -0
- package/skills/feature-research/SKILL.md +294 -0
- package/skills/feature-research/scripts/validate-research.sh +159 -0
- package/skills/feature-research/scripts/validate-spec.sh +270 -0
- package/skills/feature-research/templates/research-agents.md +569 -0
- package/skills/feature-research/templates/spec-structure.md +437 -0
- package/skills/formatters/SKILL.md +209 -0
- package/skills/formatters/references/best-practices.md +78 -0
- package/skills/formatters/references/flag-reference.md +178 -0
- package/skills/formatters/references/stack-detection.md +119 -0
- package/skills/formatters/references/templates/husky-pre-commit.tmpl +13 -0
- package/skills/formatters/references/templates/justfile-snippet.just.tmpl +31 -0
- package/skills/formatters/references/templates/lefthook.yml.tmpl +22 -0
- package/skills/formatters/references/templates/lint-autofix.yml.tmpl +94 -0
- package/skills/formatters/references/templates/lint.yml.tmpl +85 -0
- package/skills/formatters/references/templates/makefile-snippet.mk.tmpl +34 -0
- package/skills/formatters/references/templates/package-json-scripts.json.tmpl +14 -0
- package/skills/formatters/references/templates/readme-section.md.tmpl +118 -0
- package/skills/formatters/scripts/apply-aliases.sh +245 -0
- package/skills/formatters/scripts/apply-ci.sh +136 -0
- package/skills/formatters/scripts/apply-docs.sh +187 -0
- package/skills/formatters/scripts/apply-hooks.sh +261 -0
- package/skills/formatters/scripts/bundle/format.sh +15 -0
- package/skills/formatters/scripts/bundle/go-tools.sh +119 -0
- package/skills/formatters/scripts/bundle/init-formatters.sh +517 -0
- package/skills/formatters/scripts/bundle/install-shellcheck.sh +85 -0
- package/skills/formatters/scripts/bundle/lib/excludes.sh +179 -0
- package/skills/formatters/scripts/bundle/lib/modified-files.sh +222 -0
- package/skills/formatters/scripts/bundle/lib/shellcheck-resolve.sh +81 -0
- package/skills/formatters/scripts/bundle/lib/shellcheck-version.sh +5 -0
- package/skills/formatters/scripts/bundle/lint.sh +15 -0
- package/skills/formatters/scripts/bundle/style.sh +1410 -0
- package/skills/formatters/scripts/bundle/templates/biome.json +81 -0
- package/skills/formatters/scripts/bundle/templates/clippy.toml +2 -0
- package/skills/formatters/scripts/bundle/templates/markdownlint.json +14 -0
- package/skills/formatters/scripts/bundle/templates/markdownlintignore +38 -0
- package/skills/formatters/scripts/bundle/templates/prettierignore +45 -0
- package/skills/formatters/scripts/bundle/templates/prettierrc.json +11 -0
- package/skills/formatters/scripts/bundle/templates/python-pyproject.toml +80 -0
- package/skills/formatters/scripts/bundle/templates/rustfmt.toml +41 -0
- package/skills/formatters/scripts/bundle/templates/tsconfig.json +21 -0
- package/skills/formatters/scripts/profile-style.sh +264 -0
- package/skills/frontend-design/SKILL.md +151 -0
- package/skills/frontend-patterns/SKILL.md +66 -0
- package/skills/frontend-patterns/references/animation.md +21 -0
- package/skills/frontend-patterns/references/components-and-state.md +40 -0
- package/skills/frontend-patterns/references/data-and-performance.md +34 -0
- package/skills/frontend-patterns/references/forms-errors-a11y.md +35 -0
- package/skills/git-cleanup/SKILL.md +300 -0
- package/skills/git-cleanup/references/active-code-rules.md +323 -0
- package/skills/git-cleanup/references/host-detection.md +217 -0
- package/skills/git-workflow/SKILL.md +132 -0
- package/skills/git-workflow/references/ci-monitoring-phase.md +130 -0
- package/skills/git-workflow/references/commit-phases.md +247 -0
- package/skills/git-workflow/references/examples-and-troubleshooting.md +47 -0
- package/skills/git-workflow/references/goal-pairing.md +23 -0
- package/skills/git-workflow/references/pr-creation.md +269 -0
- package/skills/git-workflow/scripts/analyze-changes.sh +266 -0
- package/skills/git-workflow/scripts/create-pr.sh +464 -0
- package/skills/git-workflow/scripts/validate-commit.sh +235 -0
- package/skills/git-workflow/templates/agent-prompts.md +518 -0
- package/skills/git-workflow/templates/commit-types.md +504 -0
- package/skills/git-workflow/templates/documentation-decision.md +509 -0
- package/skills/git-workflow/templates/pr-template.md +772 -0
- package/skills/go-patterns/SKILL.md +89 -0
- package/skills/go-patterns/references/design-and-tooling.md +336 -0
- package/skills/go-patterns/references/errors-and-concurrency.md +292 -0
- package/skills/go-testing/SKILL.md +133 -0
- package/skills/go-testing/references/advanced-testing.md +349 -0
- package/skills/go-testing/references/test-structure.md +277 -0
- package/skills/hooks-workflow/SKILL.md +232 -0
- package/skills/hooks-workflow/references/support-notes.md +134 -0
- package/skills/hooks-workflow/references/templates/claude-settings.json.tmpl +13 -0
- package/skills/hooks-workflow/references/templates/codex-config-fragment.toml.tmpl +9 -0
- package/skills/hooks-workflow/references/templates/cursor-rule-fragment.mdc.tmpl +16 -0
- package/skills/hooks-workflow/scripts/build-hook-config.sh +487 -0
- package/skills/hooks-workflow/scripts/verify-hooks.sh +257 -0
- package/skills/implement-plan/SKILL.md +223 -0
- package/skills/implement-plan/references/agent-task-prompt.md +214 -0
- package/skills/implement-plan/references/output-formats.md +150 -0
- package/skills/implement-plan/references/plan-inputs.md +126 -0
- package/skills/implement-plan/scripts/check-prerequisites.sh +78 -0
- package/skills/implement-plan/scripts/parse-dependencies.sh +206 -0
- package/skills/init/SKILL.md +274 -0
- package/skills/init/references/conventional-commits.md +114 -0
- package/skills/init/references/flag-reference.md +236 -0
- package/skills/init/references/label-taxonomy.md +115 -0
- package/skills/init/references/project-profile-heuristics.md +156 -0
- package/skills/init/references/template-library.md +129 -0
- package/skills/init/scripts/count-source-files.sh +60 -0
- package/skills/init/scripts/generate-agent-catalog.sh +193 -0
- package/skills/init/scripts/generate-mcp-catalog.sh +214 -0
- package/skills/init/scripts/migrate-rules.py +459 -0
- package/skills/init/scripts/migrate-rules.sh +26 -0
- package/skills/init/scripts/profile-project.sh +453 -0
- package/skills/init/scripts/render-template.py +226 -0
- package/skills/init/scripts/render-template.sh +25 -0
- package/skills/init/scripts/rules-report.sh +31 -0
- package/skills/init/scripts/rules_file_lib.py +41 -0
- package/skills/init/templates/AGENTS.md.tmpl +38 -0
- package/skills/init/templates/CLAUDE.md.tmpl +7 -0
- package/skills/init/templates/ai-rule.md.tmpl +3 -0
- package/skills/init/templates/cursor-rule.mdc.tmpl +7 -0
- package/skills/init/templates/git/commitlint.config.cjs.tmpl +40 -0
- package/skills/init/templates/git/gitignore.tmpl +121 -0
- package/skills/init/templates/git/gitmessage.tmpl +27 -0
- package/skills/init/templates/git/install-lefthook.sh.tmpl +131 -0
- package/skills/init/templates/git/lefthook-usage.md.tmpl +101 -0
- package/skills/init/templates/git/lefthook.yml.tmpl +64 -0
- package/skills/init/templates/github/bug_report.yml.tmpl +78 -0
- package/skills/init/templates/github/config.yml.tmpl +5 -0
- package/skills/init/templates/github/copilot-instructions.md.tmpl +24 -0
- package/skills/init/templates/github/docs_request.yml.tmpl +41 -0
- package/skills/init/templates/github/feature_request.yml.tmpl +59 -0
- package/skills/init/templates/github/labels.md.tmpl +75 -0
- package/skills/init/templates/github/pull_request_template.md.tmpl +66 -0
- package/skills/init/templates/github/workflows/pr-title-autofix.yml.tmpl +101 -0
- package/skills/init/templates/github/workflows/pr-title.yml.tmpl +55 -0
- package/skills/init/templates/workspace-report.md +83 -0
- package/skills/orchestrate/SKILL.md +165 -0
- package/skills/orchestrate/references/agent-catalog.md +601 -0
- package/skills/orchestrate/references/agent-prompts.md +495 -0
- package/skills/orchestrate/references/dispatch-playbook.md +333 -0
- package/skills/orchestrate/references/task-breakdown.md +410 -0
- package/skills/orchestrate/scripts/analyze-task.sh +139 -0
- package/skills/orchestrate/scripts/summarize-results.sh +160 -0
- package/skills/orchestrate/scripts/validate-agents.sh +92 -0
- package/skills/parallel-plan/SKILL.md +124 -0
- package/skills/plan/SKILL.md +136 -0
- package/skills/plan/references/enhanced-personas.md +131 -0
- package/skills/plan/references/personas-and-merge.md +77 -0
- package/skills/plan/references/plan-validation.md +65 -0
- package/skills/plan/references/planner-prompts.md +68 -0
- package/skills/plan/references/planning-tracks.md +73 -0
- package/skills/plan-workflow/SKILL.md +409 -0
- package/skills/plan-workflow/references/checkpoint-messages.md +370 -0
- package/skills/plan-workflow/references/plan-structure.md +238 -0
- package/skills/plan-workflow/references/planning-agents.md +511 -0
- package/skills/plan-workflow/references/research-agents-optimized.md +348 -0
- package/skills/plan-workflow/references/research-agents.md +436 -0
- package/skills/plan-workflow/references/shared-structure.md +152 -0
- package/skills/plan-workflow/references/validation-agents.md +363 -0
- package/skills/plan-workflow/scripts/check-prerequisites.sh +65 -0
- package/skills/plan-workflow/scripts/check-state.sh +190 -0
- package/skills/plan-workflow/scripts/persist-or-fail.sh +135 -0
- package/skills/plan-workflow/scripts/validate-analysis-artifacts.sh +216 -0
- package/skills/plan-workflow/scripts/validate-research-artifacts.sh +225 -0
- package/skills/plan-workflow/scripts/validate-shared.sh +229 -0
- package/skills/plan-workflow/scripts/validate-workflow-plan.sh +256 -0
- package/skills/pr-autofix/SKILL.md +309 -0
- package/skills/pr-autofix/references/ci-loop.md +64 -0
- package/skills/pr-autofix/references/comment-sources.md +197 -0
- package/skills/pr-autofix/references/data-shapes.md +87 -0
- package/skills/pr-autofix/references/goal-example.md +30 -0
- package/skills/pr-autofix/references/output-templates.md +162 -0
- package/skills/pr-autofix/references/prompt-injection-safety.md +165 -0
- package/skills/pr-autofix/references/related-skills.md +11 -0
- package/skills/pr-autofix/references/severity-mapping.md +146 -0
- package/skills/pr-autofix/scripts/fetch-pr-comments.sh +364 -0
- package/skills/pr-autofix/scripts/post-summary.sh +226 -0
- package/skills/pr-autofix/scripts/resolve-thread.sh +251 -0
- package/skills/prp-commit/SKILL.md +128 -0
- package/skills/prp-implement/SKILL.md +179 -0
- package/skills/prp-implement/references/agent-task-prompt.md +36 -0
- package/skills/prp-implement/references/detection.md +49 -0
- package/skills/prp-implement/references/dry-run.md +0 -0
- package/skills/prp-implement/references/report-output.md +204 -0
- package/skills/prp-implement/references/validation-and-failures.md +118 -0
- package/skills/prp-plan/SKILL.md +323 -0
- package/skills/prp-plan/references/enhanced-researchers.md +425 -0
- package/skills/prp-plan/references/parallel-additions.md +56 -0
- package/skills/prp-plan/references/plan-template.md +264 -0
- package/skills/prp-plan/references/synthesis-map.md +25 -0
- package/skills/prp-plan/scripts/validate-prp-plan.sh +368 -0
- package/skills/prp-pr/SKILL.md +404 -0
- package/skills/prp-prd/SKILL.md +444 -0
- package/skills/prp-spec/SKILL.md +276 -0
- package/skills/python-patterns/SKILL.md +103 -0
- package/skills/python-patterns/references/core-idioms.md +304 -0
- package/skills/python-patterns/references/design-and-tooling.md +407 -0
- package/skills/python-testing/SKILL.md +114 -0
- package/skills/python-testing/references/mocking-and-integration.md +395 -0
- package/skills/python-testing/references/pytest-core.md +366 -0
- package/skills/quick-fix/SKILL.md +246 -0
- package/skills/quick-review/SKILL.md +306 -0
- package/skills/release-model/SKILL.md +233 -0
- package/skills/release-model/references/pointer-and-labels.md +83 -0
- package/skills/release-model/references/signals-and-proposal.md +68 -0
- package/skills/release-model/references/template-placeholders.md +42 -0
- package/skills/release-model/references/upgrade-and-audit.md +131 -0
- package/skills/release-model/scripts/collect-signals.sh +459 -0
- package/skills/release-model/scripts/pointer-targets.sh +29 -0
- package/skills/release-model/templates/RELEASING.md.tmpl +151 -0
- package/skills/releaser/SKILL.md +253 -0
- package/skills/releaser/references/ci-optimization-checklist.md +149 -0
- package/skills/releaser/references/ci-templates/docker-release.yml +88 -0
- package/skills/releaser/references/ci-templates/generic-release.yml +69 -0
- package/skills/releaser/references/ci-templates/go-release.yml +50 -0
- package/skills/releaser/references/ci-templates/node-release.yml +126 -0
- package/skills/releaser/references/ci-templates/python-release.yml +95 -0
- package/skills/releaser/references/ci-templates/rust-release.yml +128 -0
- package/skills/releaser/references/ci-workflow-modes.md +42 -0
- package/skills/releaser/references/goal-pairing.md +37 -0
- package/skills/releaser/references/output-templates.md +143 -0
- package/skills/releaser/references/project-type-matrix.md +144 -0
- package/skills/releaser/references/release-branches.md +138 -0
- package/skills/releaser/references/release-ci-loop.md +249 -0
- package/skills/releaser/references/release-notes-template.md +42 -0
- package/skills/releaser/references/release-preparation.md +210 -0
- package/skills/releaser/scripts/check-release-branch.sh +235 -0
- package/skills/releaser/scripts/detect-project.sh +234 -0
- package/skills/releaser/scripts/draft-changelog.sh +387 -0
- package/skills/releaser/scripts/publish-release.sh +302 -0
- package/skills/research-to-issues/SKILL.md +287 -0
- package/skills/research-to-issues/references/label-taxonomy.md +48 -0
- package/skills/research-to-issues/references/parse-deep-research.md +86 -0
- package/skills/research-to-issues/references/parse-feature-spec.md +143 -0
- package/skills/research-to-issues/references/parse-parallel-plan.md +124 -0
- package/skills/research-to-issues/references/parse-prd.md +184 -0
- package/skills/research-to-issues/references/parse-prp-plan.md +237 -0
- package/skills/research-to-issues/references/plan-display-format.md +136 -0
- package/skills/research-to-issues/scripts/validate-prerequisites.sh +312 -0
- package/skills/research-to-issues/templates/feature-issue.md +131 -0
- package/skills/research-to-issues/templates/task-issue.md +104 -0
- package/skills/research-to-issues/templates/tracking-issue.md +126 -0
- package/skills/resume-session/SKILL.md +154 -0
- package/skills/review-fix/SKILL.md +231 -0
- package/skills/review-fix/references/fix-report.md +121 -0
- package/skills/review-fix/references/fixer-dispatch.md +79 -0
- package/skills/review-fix/references/plan.md +119 -0
- package/skills/rust-patterns/SKILL.md +85 -0
- package/skills/rust-patterns/references/concurrency-unsafe-modules.md +243 -0
- package/skills/rust-patterns/references/ownership-errors-types.md +262 -0
- package/skills/rust-testing/SKILL.md +99 -0
- package/skills/rust-testing/references/advanced-testing.md +247 -0
- package/skills/rust-testing/references/unit-and-integration.md +193 -0
- package/skills/save-session/SKILL.md +161 -0
- package/skills/shared-context/SKILL.md +101 -0
- package/skills/ts-patterns/SKILL.md +159 -0
- package/skills/ts-patterns/references/async-runtimes-tooling.md +375 -0
- package/skills/ts-patterns/references/types-errors-modules.md +336 -0
- package/skills/ts-testing/SKILL.md +151 -0
- package/skills/ts-testing/references/advanced-testing.md +350 -0
- package/skills/ts-testing/references/vitest-core.md +318 -0
- package/skills/visual-plan/SKILL.md +221 -0
- package/skills/visual-plan/references/canvas.md +132 -0
- package/skills/visual-plan/references/document-quality.md +178 -0
- package/skills/visual-plan/references/exemplar.md +120 -0
- package/skills/visual-plan/references/wireframe.md +212 -0
- package/skills/visual-plan/scripts/derive-visual-dir.sh +77 -0
- package/skills/visual-recap/SKILL.md +238 -0
- package/skills/visual-recap/references/wireframe.md +237 -0
- package/skills/write-docs/SKILL.md +354 -0
- package/skills/write-docs/scripts/audit-documentation.sh +190 -0
- package/skills/write-docs/scripts/generate-doc-index.sh +125 -0
- package/skills/write-docs/scripts/verify-links.sh +81 -0
- package/skills/write-docs/templates/docs-readme.md +34 -0
- package/skills/write-docs/templates/documentation-strategy.md +91 -0
- package/ycc-sensitive-guard/index.js +621 -0
- package/ycc-sensitive-guard/package.json +7 -0
- package/ycc-sensitive-guard/policy.json +40 -0
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
# Task Breakdown Template
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Decomposition Principles
|
|
6
|
+
- Decomposition Strategies
|
|
7
|
+
- Decomposition Workflow
|
|
8
|
+
- Common Decomposition Patterns
|
|
9
|
+
- Decomposition Checklist
|
|
10
|
+
- Example: Full Decomposition
|
|
11
|
+
- Tips & Best Practices
|
|
12
|
+
|
|
13
|
+
Guide for decomposing complex tasks into parallelizable subtasks for agent orchestration.
|
|
14
|
+
|
|
15
|
+
## Decomposition Principles
|
|
16
|
+
|
|
17
|
+
### 1. Single Responsibility
|
|
18
|
+
|
|
19
|
+
Each subtask should have ONE clear purpose. Avoid combining multiple concerns.
|
|
20
|
+
|
|
21
|
+
**Good**: "Create user authentication service"
|
|
22
|
+
**Bad**: "Create user service, add tests, and write documentation"
|
|
23
|
+
|
|
24
|
+
### 2. Appropriate Granularity
|
|
25
|
+
|
|
26
|
+
Subtasks should be completable in one focused session (typically 1-3 files modified).
|
|
27
|
+
|
|
28
|
+
**Too Large**: "Implement entire payment system"
|
|
29
|
+
**Too Small**: "Add import statement to file.ts"
|
|
30
|
+
**Just Right**: "Create payment processing service with Stripe integration"
|
|
31
|
+
|
|
32
|
+
### 3. Clear Dependencies
|
|
33
|
+
|
|
34
|
+
Explicitly state what must be completed before each subtask.
|
|
35
|
+
|
|
36
|
+
**Good**: "Depends on: user-model (Task 1.1), auth-service (Task 1.2)"
|
|
37
|
+
**Bad**: "Depends on some other stuff"
|
|
38
|
+
|
|
39
|
+
### 4. Maximize Parallelism
|
|
40
|
+
|
|
41
|
+
Organize subtasks to maximize independent work that can run in parallel.
|
|
42
|
+
|
|
43
|
+
**Good Structure**:
|
|
44
|
+
|
|
45
|
+
- Batch 1: 4 independent foundation tasks
|
|
46
|
+
- Batch 2: 2 tasks depending on batch 1
|
|
47
|
+
- Batch 3: 1 integration task
|
|
48
|
+
|
|
49
|
+
**Bad Structure**:
|
|
50
|
+
|
|
51
|
+
- Task 1 → Task 2 → Task 3 → Task 4 → Task 5 (serial chain)
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Decomposition Strategies
|
|
56
|
+
|
|
57
|
+
### Strategy 1: By Feature Area
|
|
58
|
+
|
|
59
|
+
Break down by functional components of the feature.
|
|
60
|
+
|
|
61
|
+
**Example**: "Implement user authentication"
|
|
62
|
+
|
|
63
|
+
Subtasks:
|
|
64
|
+
|
|
65
|
+
1. Create user model and database schema
|
|
66
|
+
2. Implement password hashing and validation
|
|
67
|
+
3. Create JWT token generation and verification
|
|
68
|
+
4. Build login/logout endpoints
|
|
69
|
+
5. Add authentication middleware
|
|
70
|
+
6. Create password reset flow
|
|
71
|
+
|
|
72
|
+
**When to Use**: Clear functional boundaries, multiple components
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
### Strategy 2: By Technical Layer
|
|
77
|
+
|
|
78
|
+
Break down by application layers (frontend, backend, database, etc.).
|
|
79
|
+
|
|
80
|
+
**Example**: "Add favorites feature"
|
|
81
|
+
|
|
82
|
+
Subtasks:
|
|
83
|
+
|
|
84
|
+
1. **Database**: Create favorites table and migrations
|
|
85
|
+
2. **Backend**: Implement favorites API endpoints
|
|
86
|
+
3. **Frontend**: Create favorites UI component
|
|
87
|
+
4. **Testing**: Add integration tests for favorites
|
|
88
|
+
5. **Documentation**: Document favorites API
|
|
89
|
+
|
|
90
|
+
**When to Use**: Full-stack features, clear layer separation
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
### Strategy 3: By Cross-Cutting Concern
|
|
95
|
+
|
|
96
|
+
Break down by aspect (implementation, testing, docs, etc.).
|
|
97
|
+
|
|
98
|
+
**Example**: "Refactor authentication system"
|
|
99
|
+
|
|
100
|
+
Subtasks:
|
|
101
|
+
|
|
102
|
+
1. **Analysis**: Research current auth implementation and issues
|
|
103
|
+
2. **Refactor**: Update auth service with new patterns
|
|
104
|
+
3. **Migration**: Update all components using auth
|
|
105
|
+
4. **Testing**: Update test suite for new auth flow
|
|
106
|
+
5. **Documentation**: Update auth documentation
|
|
107
|
+
|
|
108
|
+
**When to Use**: Updates affecting multiple areas, refactoring work
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
### Strategy 4: By Data Flow
|
|
113
|
+
|
|
114
|
+
Break down following data/request flow through system.
|
|
115
|
+
|
|
116
|
+
**Example**: "Implement payment processing"
|
|
117
|
+
|
|
118
|
+
Subtasks:
|
|
119
|
+
|
|
120
|
+
1. Create payment intent on frontend
|
|
121
|
+
2. Send payment data to backend API
|
|
122
|
+
3. Process payment with Stripe service
|
|
123
|
+
4. Update order status in database
|
|
124
|
+
5. Send confirmation email
|
|
125
|
+
6. Return success to frontend
|
|
126
|
+
|
|
127
|
+
**When to Use**: Process-oriented features, API integrations
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
### Strategy 5: By Risk/Complexity
|
|
132
|
+
|
|
133
|
+
Tackle high-risk or complex items first, simple items in parallel.
|
|
134
|
+
|
|
135
|
+
**Example**: "Migrate to new database"
|
|
136
|
+
|
|
137
|
+
Subtasks:
|
|
138
|
+
|
|
139
|
+
1. **Critical**: Design new database schema (must be right)
|
|
140
|
+
2. **Parallel**: Write migration scripts for each table
|
|
141
|
+
3. **Parallel**: Update repository layer for new schema
|
|
142
|
+
4. **Integration**: Test migration with staging data
|
|
143
|
+
5. **Deployment**: Execute migration on production
|
|
144
|
+
|
|
145
|
+
**When to Use**: Risky changes, migrations, major refactors
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Decomposition Workflow
|
|
150
|
+
|
|
151
|
+
### Step 1: Understand the Task
|
|
152
|
+
|
|
153
|
+
Ask clarifying questions:
|
|
154
|
+
|
|
155
|
+
- What is the end goal?
|
|
156
|
+
- What components are involved?
|
|
157
|
+
- What already exists?
|
|
158
|
+
- What are the constraints?
|
|
159
|
+
- What's the priority?
|
|
160
|
+
|
|
161
|
+
### Step 2: Identify Major Components
|
|
162
|
+
|
|
163
|
+
List the major pieces needed:
|
|
164
|
+
|
|
165
|
+
- Frontend components
|
|
166
|
+
- Backend services
|
|
167
|
+
- Database changes
|
|
168
|
+
- API endpoints
|
|
169
|
+
- Tests
|
|
170
|
+
- Documentation
|
|
171
|
+
|
|
172
|
+
### Step 3: Map Dependencies
|
|
173
|
+
|
|
174
|
+
Create a dependency graph:
|
|
175
|
+
|
|
176
|
+
```
|
|
177
|
+
Task 1 (no deps) → Task 3 (depends on 1, 2)
|
|
178
|
+
Task 2 (no deps) ↗
|
|
179
|
+
Task 4 (no deps) → Task 5 (depends on 4)
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### Step 4: Organize into Batches
|
|
183
|
+
|
|
184
|
+
Group by execution order:
|
|
185
|
+
|
|
186
|
+
**Batch 1** (no dependencies): Tasks 1, 2, 4
|
|
187
|
+
**Batch 2** (depends on batch 1): Tasks 3, 5
|
|
188
|
+
|
|
189
|
+
### Step 5: Assign Agents
|
|
190
|
+
|
|
191
|
+
Match each subtask to optimal agent type:
|
|
192
|
+
|
|
193
|
+
- Frontend work → frontend-ui-developer
|
|
194
|
+
- Backend API → nodejs-backend-architect
|
|
195
|
+
- Database → db-modifier
|
|
196
|
+
- Tests → test-strategy-planner
|
|
197
|
+
- Docs → documentation-writer
|
|
198
|
+
|
|
199
|
+
### Step 6: Validate
|
|
200
|
+
|
|
201
|
+
Check each subtask:
|
|
202
|
+
|
|
203
|
+
- [ ] Clear, specific scope
|
|
204
|
+
- [ ] Single responsibility
|
|
205
|
+
- [ ] Dependencies explicit
|
|
206
|
+
- [ ] Agent type assigned
|
|
207
|
+
- [ ] Success criteria clear
|
|
208
|
+
- [ ] Non-overlapping with others
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## Common Decomposition Patterns
|
|
213
|
+
|
|
214
|
+
### Pattern: CRUD Feature
|
|
215
|
+
|
|
216
|
+
**Template**:
|
|
217
|
+
|
|
218
|
+
1. Database schema/migrations (independent)
|
|
219
|
+
2. Backend API endpoints (depends on 1)
|
|
220
|
+
3. Frontend UI components (depends on 2)
|
|
221
|
+
4. Form validation (depends on 2)
|
|
222
|
+
5. Integration tests (depends on 2, 3)
|
|
223
|
+
6. API documentation (depends on 2)
|
|
224
|
+
|
|
225
|
+
### Pattern: Bug Fix
|
|
226
|
+
|
|
227
|
+
**Template**:
|
|
228
|
+
|
|
229
|
+
1. Root cause analysis (independent)
|
|
230
|
+
2. Implement fix (depends on 1)
|
|
231
|
+
3. Add regression tests (depends on 2)
|
|
232
|
+
4. Update documentation (depends on 2)
|
|
233
|
+
|
|
234
|
+
### Pattern: Refactoring
|
|
235
|
+
|
|
236
|
+
**Template**:
|
|
237
|
+
|
|
238
|
+
1. Analyze current implementation (independent)
|
|
239
|
+
2. Design new structure (depends on 1)
|
|
240
|
+
3. Refactor module A (depends on 2)
|
|
241
|
+
4. Refactor module B (depends on 2)
|
|
242
|
+
5. Refactor module C (depends on 2)
|
|
243
|
+
6. Update tests (depends on 3, 4, 5)
|
|
244
|
+
7. Update documentation (depends on 6)
|
|
245
|
+
|
|
246
|
+
### Pattern: API Integration
|
|
247
|
+
|
|
248
|
+
**Template**:
|
|
249
|
+
|
|
250
|
+
1. Research API documentation (independent)
|
|
251
|
+
2. Create API client/wrapper (depends on 1)
|
|
252
|
+
3. Implement service layer (depends on 2)
|
|
253
|
+
4. Add error handling (depends on 3)
|
|
254
|
+
5. Create integration tests (depends on 3)
|
|
255
|
+
6. Document API usage (depends on 2, 3)
|
|
256
|
+
|
|
257
|
+
### Pattern: Documentation Update
|
|
258
|
+
|
|
259
|
+
**Template**:
|
|
260
|
+
|
|
261
|
+
1. Audit existing documentation (independent)
|
|
262
|
+
2. Update API documentation (independent)
|
|
263
|
+
3. Update architecture docs (independent)
|
|
264
|
+
4. Update user guides (independent)
|
|
265
|
+
5. Create cross-links (depends on 2, 3, 4)
|
|
266
|
+
|
|
267
|
+
---
|
|
268
|
+
|
|
269
|
+
## Decomposition Checklist
|
|
270
|
+
|
|
271
|
+
Before finalizing task breakdown, verify:
|
|
272
|
+
|
|
273
|
+
### Scope Clarity
|
|
274
|
+
|
|
275
|
+
- [ ] Each subtask has clear, specific scope
|
|
276
|
+
- [ ] Boundaries between subtasks are well-defined
|
|
277
|
+
- [ ] No vague or ambiguous descriptions
|
|
278
|
+
|
|
279
|
+
### Independence & Dependencies
|
|
280
|
+
|
|
281
|
+
- [ ] Independent subtasks identified (can run in parallel)
|
|
282
|
+
- [ ] Dependencies explicitly stated for dependent tasks
|
|
283
|
+
- [ ] No circular dependencies
|
|
284
|
+
- [ ] Dependency chains are reasonable (prefer wide over deep)
|
|
285
|
+
|
|
286
|
+
### Agent Assignment
|
|
287
|
+
|
|
288
|
+
- [ ] Each subtask has appropriate agent type
|
|
289
|
+
- [ ] No duplicate work between agents
|
|
290
|
+
- [ ] Agent capabilities match subtask needs
|
|
291
|
+
- [ ] Context files identified for each agent
|
|
292
|
+
|
|
293
|
+
### Completeness
|
|
294
|
+
|
|
295
|
+
- [ ] All aspects of main task covered
|
|
296
|
+
- [ ] Nothing important missing
|
|
297
|
+
- [ ] Testing considerations included
|
|
298
|
+
- [ ] Documentation considerations included
|
|
299
|
+
|
|
300
|
+
### Feasibility
|
|
301
|
+
|
|
302
|
+
- [ ] Each subtask is appropriately sized
|
|
303
|
+
- [ ] Success criteria are achievable
|
|
304
|
+
- [ ] Technical approach is sound
|
|
305
|
+
- [ ] Resources/tools are available
|
|
306
|
+
|
|
307
|
+
---
|
|
308
|
+
|
|
309
|
+
## Example: Full Decomposition
|
|
310
|
+
|
|
311
|
+
**Task**: "Implement user favorites feature with persistence and sync"
|
|
312
|
+
|
|
313
|
+
### Analysis
|
|
314
|
+
|
|
315
|
+
- **Scope**: Full-stack feature (DB, backend, frontend)
|
|
316
|
+
- **Complexity**: Medium
|
|
317
|
+
- **Components**: Database, API, UI, sync logic
|
|
318
|
+
- **Strategy**: By technical layer
|
|
319
|
+
|
|
320
|
+
### Subtask Breakdown
|
|
321
|
+
|
|
322
|
+
#### Batch 1: Foundation (Independent)
|
|
323
|
+
|
|
324
|
+
**Task 1.1: Create Favorites Database Schema**
|
|
325
|
+
|
|
326
|
+
- Agent: db-modifier
|
|
327
|
+
- Dependencies: none
|
|
328
|
+
- Scope: Create favorites table, add user_id foreign key, indexes
|
|
329
|
+
- Files: migrations/001_create_favorites.sql
|
|
330
|
+
- Success: Table created with proper constraints
|
|
331
|
+
|
|
332
|
+
**Task 1.2: Design Favorites UI Component**
|
|
333
|
+
|
|
334
|
+
- Agent: frontend-ui-developer
|
|
335
|
+
- Dependencies: none
|
|
336
|
+
- Scope: Create favorites button, favorites list component
|
|
337
|
+
- Files: components/Favorites.tsx, components/FavoriteButton.tsx
|
|
338
|
+
- Success: UI components created (no API integration yet)
|
|
339
|
+
|
|
340
|
+
#### Batch 2: Core Implementation (Depends on Batch 1)
|
|
341
|
+
|
|
342
|
+
**Task 2.1: Implement Favorites API Endpoints**
|
|
343
|
+
|
|
344
|
+
- Agent: nodejs-backend-architect
|
|
345
|
+
- Dependencies: Task 1.1
|
|
346
|
+
- Scope: POST /favorites, DELETE /favorites/:id, GET /favorites
|
|
347
|
+
- Files: routes/favorites.ts, controllers/favorites.ts, services/favorites.ts
|
|
348
|
+
- Success: API endpoints functional with database
|
|
349
|
+
|
|
350
|
+
**Task 2.2: Add Sync Logic for Favorites**
|
|
351
|
+
|
|
352
|
+
- Agent: nodejs-backend-architect
|
|
353
|
+
- Dependencies: Task 1.1
|
|
354
|
+
- Scope: Real-time sync when user favorites across devices
|
|
355
|
+
- Files: services/sync.ts, websocket/favorites-sync.ts
|
|
356
|
+
- Success: Changes broadcast to connected clients
|
|
357
|
+
|
|
358
|
+
#### Batch 3: Integration (Depends on Batch 2)
|
|
359
|
+
|
|
360
|
+
**Task 3.1: Connect UI to API**
|
|
361
|
+
|
|
362
|
+
- Agent: frontend-ui-developer
|
|
363
|
+
- Dependencies: Task 1.2, Task 2.1
|
|
364
|
+
- Scope: Wire up favorites button/list to API calls
|
|
365
|
+
- Files: components/Favorites.tsx, components/FavoriteButton.tsx, hooks/useFavorites.ts
|
|
366
|
+
- Success: UI fully functional with persistence
|
|
367
|
+
|
|
368
|
+
**Task 3.2: Create Test Strategy**
|
|
369
|
+
|
|
370
|
+
- Agent: test-strategy-planner
|
|
371
|
+
- Dependencies: Task 2.1, Task 3.1
|
|
372
|
+
- Scope: Plan unit tests for API, integration tests for sync, e2e tests for UI
|
|
373
|
+
- Files: docs/test-plans/favorites-testing.md
|
|
374
|
+
- Success: Comprehensive test plan created
|
|
375
|
+
|
|
376
|
+
#### Batch 4: Polish (Depends on Batch 3)
|
|
377
|
+
|
|
378
|
+
**Task 4.1: Document Favorites API**
|
|
379
|
+
|
|
380
|
+
- Agent: api-docs-expert
|
|
381
|
+
- Dependencies: Task 2.1
|
|
382
|
+
- Scope: Document API endpoints with examples
|
|
383
|
+
- Files: docs/api/favorites.md
|
|
384
|
+
- Success: Complete API documentation
|
|
385
|
+
|
|
386
|
+
### Summary
|
|
387
|
+
|
|
388
|
+
- **Total Subtasks**: 7
|
|
389
|
+
- **Batches**: 4
|
|
390
|
+
- **Max Parallelism**: 2 (Batch 1)
|
|
391
|
+
- **Agents Used**: 4 different types
|
|
392
|
+
|
|
393
|
+
---
|
|
394
|
+
|
|
395
|
+
## Tips & Best Practices
|
|
396
|
+
|
|
397
|
+
1. **Start with the end goal**: What does success look like?
|
|
398
|
+
2. **Identify the critical path**: What must happen in order?
|
|
399
|
+
3. **Maximize parallel work**: Look for independent subtasks
|
|
400
|
+
4. **Consider the whole system**: Don't forget tests, docs, migrations
|
|
401
|
+
5. **Be specific**: "Update auth service" → "Add JWT token refresh logic to auth service"
|
|
402
|
+
6. **Think about handoffs**: What does the next agent need from this one?
|
|
403
|
+
7. **Plan for failure**: What happens if a subtask fails?
|
|
404
|
+
8. **Keep it balanced**: Avoid one huge subtask and many tiny ones
|
|
405
|
+
9. **Use existing patterns**: Follow decomposition patterns from similar past work
|
|
406
|
+
10. **Validate early**: Check subtask breakdown before deploying agents
|
|
407
|
+
|
|
408
|
+
---
|
|
409
|
+
|
|
410
|
+
_This template should be adapted based on the specific task, codebase, and constraints._
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Analyze task description and suggest orchestration approach
|
|
3
|
+
# Usage: analyze-task.sh "task description"
|
|
4
|
+
|
|
5
|
+
set -euo pipefail
|
|
6
|
+
|
|
7
|
+
TASK_DESCRIPTION="${1:-}"
|
|
8
|
+
|
|
9
|
+
if [[ -z "$TASK_DESCRIPTION" ]]; then
|
|
10
|
+
echo "ERROR: Task description required"
|
|
11
|
+
echo "Usage: analyze-task.sh \"task description\""
|
|
12
|
+
exit 1
|
|
13
|
+
fi
|
|
14
|
+
|
|
15
|
+
echo "# Task Analysis"
|
|
16
|
+
echo ""
|
|
17
|
+
echo "Task: $TASK_DESCRIPTION"
|
|
18
|
+
echo ""
|
|
19
|
+
|
|
20
|
+
# Convert to lowercase for keyword matching
|
|
21
|
+
TASK_LOWER=$(echo "$TASK_DESCRIPTION" | tr '[:upper:]' '[:lower:]')
|
|
22
|
+
|
|
23
|
+
# Complexity estimation
|
|
24
|
+
COMPLEXITY="Simple"
|
|
25
|
+
AGENT_COUNT=1
|
|
26
|
+
|
|
27
|
+
# Check for multiple concerns
|
|
28
|
+
if [[ "$TASK_LOWER" =~ (implement|create|build).*(test|doc|documentation) ]] || \
|
|
29
|
+
[[ "$TASK_LOWER" =~ (frontend|backend|database) ]] || \
|
|
30
|
+
[[ "$TASK_LOWER" =~ (and|with|including) ]]; then
|
|
31
|
+
COMPLEXITY="Medium"
|
|
32
|
+
AGENT_COUNT=3
|
|
33
|
+
fi
|
|
34
|
+
|
|
35
|
+
if [[ "$TASK_LOWER" =~ (across|all|multiple|entire|system-wide) ]] || \
|
|
36
|
+
[[ "$TASK_LOWER" =~ (refactor|migrate|upgrade) ]]; then
|
|
37
|
+
COMPLEXITY="Complex"
|
|
38
|
+
AGENT_COUNT=5
|
|
39
|
+
fi
|
|
40
|
+
|
|
41
|
+
echo "## Complexity: $COMPLEXITY"
|
|
42
|
+
echo "Estimated agents needed: $AGENT_COUNT"
|
|
43
|
+
echo ""
|
|
44
|
+
|
|
45
|
+
# Suggest agent types based on keywords
|
|
46
|
+
echo "## Suggested Agent Types"
|
|
47
|
+
echo ""
|
|
48
|
+
|
|
49
|
+
if [[ "$TASK_LOWER" =~ (implement|create|build|add|develop) ]]; then
|
|
50
|
+
echo "- Implementation agents needed"
|
|
51
|
+
if [[ "$TASK_LOWER" =~ (ui|frontend|component|page) ]]; then
|
|
52
|
+
echo " - frontend-ui-developer or nextjs-ux-ui-expert"
|
|
53
|
+
fi
|
|
54
|
+
if [[ "$TASK_LOWER" =~ (api|backend|server|service) ]]; then
|
|
55
|
+
echo " - nodejs-backend-architect or go-api-architect"
|
|
56
|
+
fi
|
|
57
|
+
if [[ "$TASK_LOWER" =~ (database|db|schema|migration) ]]; then
|
|
58
|
+
echo " - db-modifier or sql-database-architect"
|
|
59
|
+
fi
|
|
60
|
+
fi
|
|
61
|
+
|
|
62
|
+
if [[ "$TASK_LOWER" =~ (test|testing|spec) ]]; then
|
|
63
|
+
echo "- test-strategy-planner for test planning"
|
|
64
|
+
fi
|
|
65
|
+
|
|
66
|
+
if [[ "$TASK_LOWER" =~ (doc|documentation|readme|guide) ]]; then
|
|
67
|
+
echo "- documentation-writer or api-docs-expert"
|
|
68
|
+
fi
|
|
69
|
+
|
|
70
|
+
if [[ "$TASK_LOWER" =~ (bug|issue|fix|debug|investigate|error|failing) ]]; then
|
|
71
|
+
echo "- root-cause-analyzer for diagnosis"
|
|
72
|
+
fi
|
|
73
|
+
|
|
74
|
+
if [[ "$TASK_LOWER" =~ (refactor|restructure|reorganize) ]]; then
|
|
75
|
+
echo "- codebase-research-analyst for analysis"
|
|
76
|
+
echo "- Multiple implementation agents for refactoring"
|
|
77
|
+
fi
|
|
78
|
+
|
|
79
|
+
if [[ "$TASK_LOWER" =~ (infrastructure|terraform|cloud|deploy) ]]; then
|
|
80
|
+
echo "- terraform-architect or cloudflare-architect"
|
|
81
|
+
fi
|
|
82
|
+
|
|
83
|
+
if [[ "$TASK_LOWER" =~ (ansible|automation|provision) ]]; then
|
|
84
|
+
echo "- ansible-automation-expert"
|
|
85
|
+
fi
|
|
86
|
+
|
|
87
|
+
echo ""
|
|
88
|
+
|
|
89
|
+
# Execution mode recommendation
|
|
90
|
+
echo "## Recommended Execution Mode"
|
|
91
|
+
echo ""
|
|
92
|
+
|
|
93
|
+
if [[ "$TASK_LOWER" =~ (sequential|step.*step|order) ]]; then
|
|
94
|
+
echo "Sequential (use --sequential flag)"
|
|
95
|
+
echo "Reason: Task suggests ordered execution"
|
|
96
|
+
elif [[ "$TASK_LOWER" =~ (debug|investigate|diagnose|analyze) ]]; then
|
|
97
|
+
echo "Sequential (use --sequential flag)"
|
|
98
|
+
echo "Reason: Investigative work benefits from sequential analysis"
|
|
99
|
+
else
|
|
100
|
+
echo "Parallel (default)"
|
|
101
|
+
echo "Reason: Multiple independent concerns detected"
|
|
102
|
+
fi
|
|
103
|
+
|
|
104
|
+
echo ""
|
|
105
|
+
|
|
106
|
+
# Decomposition suggestions
|
|
107
|
+
echo "## Suggested Decomposition Approach"
|
|
108
|
+
echo ""
|
|
109
|
+
|
|
110
|
+
if [[ "$TASK_LOWER" =~ (implement|create|build) ]]; then
|
|
111
|
+
echo "Decompose by:"
|
|
112
|
+
echo "1. Core implementation"
|
|
113
|
+
echo "2. Testing strategy"
|
|
114
|
+
echo "3. Documentation"
|
|
115
|
+
fi
|
|
116
|
+
|
|
117
|
+
if [[ "$TASK_LOWER" =~ (refactor|migrate|upgrade) ]]; then
|
|
118
|
+
echo "Decompose by:"
|
|
119
|
+
echo "1. Analysis and planning"
|
|
120
|
+
echo "2. Individual components/modules"
|
|
121
|
+
echo "3. Integration and validation"
|
|
122
|
+
fi
|
|
123
|
+
|
|
124
|
+
if [[ "$TASK_LOWER" =~ (bug|fix|debug) ]]; then
|
|
125
|
+
echo "Decompose by:"
|
|
126
|
+
echo "1. Root cause analysis"
|
|
127
|
+
echo "2. Fix implementation"
|
|
128
|
+
echo "3. Test verification"
|
|
129
|
+
echo "4. Documentation update"
|
|
130
|
+
fi
|
|
131
|
+
|
|
132
|
+
if [[ "$TASK_LOWER" =~ (doc|documentation) ]]; then
|
|
133
|
+
echo "Decompose by:"
|
|
134
|
+
echo "1. API documentation"
|
|
135
|
+
echo "2. Feature guides"
|
|
136
|
+
echo "3. Architecture documentation"
|
|
137
|
+
fi
|
|
138
|
+
|
|
139
|
+
exit 0
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Consolidate and summarize orchestration results
|
|
3
|
+
# Usage: summarize-results.sh
|
|
4
|
+
|
|
5
|
+
set -euo pipefail
|
|
6
|
+
|
|
7
|
+
echo "# Orchestration Results Summary"
|
|
8
|
+
echo ""
|
|
9
|
+
echo "Generated: $(date '+%Y-%m-%d %H:%M:%S')"
|
|
10
|
+
echo ""
|
|
11
|
+
|
|
12
|
+
echo "## Summary Template"
|
|
13
|
+
echo ""
|
|
14
|
+
echo "Use this template to organize agent outputs:"
|
|
15
|
+
echo ""
|
|
16
|
+
|
|
17
|
+
cat <<'EOF'
|
|
18
|
+
# Orchestration Complete: [Task Name]
|
|
19
|
+
|
|
20
|
+
## Execution Summary
|
|
21
|
+
|
|
22
|
+
- **Total Subtasks**: [count]
|
|
23
|
+
- **Completed**: [count]
|
|
24
|
+
- **Failed**: [count]
|
|
25
|
+
- **Execution Batches**: [count]
|
|
26
|
+
- **Total Agents Deployed**: [count]
|
|
27
|
+
- **Total Duration**: [time estimate]
|
|
28
|
+
|
|
29
|
+
## Results by Agent
|
|
30
|
+
|
|
31
|
+
### Batch 1: Independent Tasks
|
|
32
|
+
|
|
33
|
+
#### [Agent Type 1] - [Subtask 1]
|
|
34
|
+
**Status**: ✓ Success / ✗ Failed / ⚠ Partial
|
|
35
|
+
|
|
36
|
+
**Outputs**:
|
|
37
|
+
- Files Created: [list]
|
|
38
|
+
- Files Modified: [list]
|
|
39
|
+
- Key Changes: [summary]
|
|
40
|
+
|
|
41
|
+
**Notes**: [observations, warnings, recommendations]
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
#### [Agent Type 2] - [Subtask 2]
|
|
46
|
+
**Status**: ✓ Success / ✗ Failed / ⚠ Partial
|
|
47
|
+
|
|
48
|
+
**Outputs**:
|
|
49
|
+
- Files Created: [list]
|
|
50
|
+
- Files Modified: [list]
|
|
51
|
+
- Key Changes: [summary]
|
|
52
|
+
|
|
53
|
+
**Notes**: [observations, warnings, recommendations]
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
### Batch 2: Dependent Tasks
|
|
58
|
+
|
|
59
|
+
#### [Agent Type 3] - [Subtask 3]
|
|
60
|
+
**Status**: ✓ Success / ✗ Failed / ⚠ Partial
|
|
61
|
+
|
|
62
|
+
**Dependencies**: [list of completed subtasks]
|
|
63
|
+
|
|
64
|
+
**Outputs**:
|
|
65
|
+
- Files Created: [list]
|
|
66
|
+
- Files Modified: [list]
|
|
67
|
+
- Key Changes: [summary]
|
|
68
|
+
|
|
69
|
+
**Notes**: [observations, warnings, recommendations]
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Consolidated File Changes
|
|
74
|
+
|
|
75
|
+
### Files Created
|
|
76
|
+
- `/path/to/new/file1.ext` - [brief description]
|
|
77
|
+
- `/path/to/new/file2.ext` - [brief description]
|
|
78
|
+
- `/path/to/new/file3.ext` - [brief description]
|
|
79
|
+
|
|
80
|
+
### Files Modified
|
|
81
|
+
- `/path/to/modified/file1.ext` - [what changed]
|
|
82
|
+
- `/path/to/modified/file2.ext` - [what changed]
|
|
83
|
+
- `/path/to/modified/file3.ext` - [what changed]
|
|
84
|
+
|
|
85
|
+
### Files Deleted
|
|
86
|
+
- `/path/to/deleted/file1.ext` - [reason]
|
|
87
|
+
|
|
88
|
+
## Integration Status
|
|
89
|
+
|
|
90
|
+
Check these integration points:
|
|
91
|
+
|
|
92
|
+
- [ ] No conflicting changes between agents
|
|
93
|
+
- [ ] All cross-references valid
|
|
94
|
+
- [ ] Consistent patterns and conventions used
|
|
95
|
+
- [ ] Dependencies properly integrated
|
|
96
|
+
- [ ] Documentation reflects code changes
|
|
97
|
+
- [ ] Tests cover new functionality
|
|
98
|
+
|
|
99
|
+
**Integration Issues Found**: [list or "None"]
|
|
100
|
+
|
|
101
|
+
## Failed Subtasks
|
|
102
|
+
|
|
103
|
+
If any subtasks failed, document them:
|
|
104
|
+
|
|
105
|
+
### [Subtask Name]
|
|
106
|
+
- **Agent**: [agent type]
|
|
107
|
+
- **Reason**: [why it failed]
|
|
108
|
+
- **Impact**: [what couldn't be completed]
|
|
109
|
+
- **Resolution**: [how to fix or next steps]
|
|
110
|
+
|
|
111
|
+
## Quality Checks
|
|
112
|
+
|
|
113
|
+
- [ ] Linting errors checked on modified files
|
|
114
|
+
- [ ] Build/compilation verified (if applicable)
|
|
115
|
+
- [ ] Tests run (if applicable)
|
|
116
|
+
- [ ] Documentation updated to match code
|
|
117
|
+
- [ ] Security considerations addressed
|
|
118
|
+
- [ ] Performance implications considered
|
|
119
|
+
|
|
120
|
+
## Recommendations
|
|
121
|
+
|
|
122
|
+
Based on the orchestration results:
|
|
123
|
+
|
|
124
|
+
1. [Recommendation 1]
|
|
125
|
+
2. [Recommendation 2]
|
|
126
|
+
3. [Recommendation 3]
|
|
127
|
+
|
|
128
|
+
## Next Steps
|
|
129
|
+
|
|
130
|
+
1. Review all changed files in your editor
|
|
131
|
+
2. Test the integrated functionality
|
|
132
|
+
3. Address any failed subtasks:
|
|
133
|
+
- [Specific action 1]
|
|
134
|
+
- [Specific action 2]
|
|
135
|
+
4. Run full test suite to verify
|
|
136
|
+
5. Commit changes when satisfied
|
|
137
|
+
6. Update project documentation if needed
|
|
138
|
+
|
|
139
|
+
## Additional Notes
|
|
140
|
+
|
|
141
|
+
[Any other observations, learnings, or important context]
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
**Orchestration Pattern Used**: [Feature Implementation / Bug Investigation / Refactoring / Documentation / Other]
|
|
146
|
+
|
|
147
|
+
**Success Rate**: [X/Y tasks completed successfully] ([percentage]%)
|
|
148
|
+
EOF
|
|
149
|
+
|
|
150
|
+
echo ""
|
|
151
|
+
echo "## Usage"
|
|
152
|
+
echo ""
|
|
153
|
+
echo "The orchestrator should:"
|
|
154
|
+
echo "1. Collect outputs from each agent as they complete"
|
|
155
|
+
echo "2. Fill in this template with actual results"
|
|
156
|
+
echo "3. Verify integration between agent outputs"
|
|
157
|
+
echo "4. Provide actionable next steps"
|
|
158
|
+
echo ""
|
|
159
|
+
|
|
160
|
+
exit 0
|