@mrciphersmith/keryx 0.2.9
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/LICENSE +21 -0
- package/README.md +351 -0
- package/dist/cli.js +48427 -0
- package/dist/proxy-worker.js +381 -0
- package/package.json +63 -0
- package/src/gdgraph/affected.test.ts +100 -0
- package/src/gdgraph/affected.ts +135 -0
- package/src/gdgraph/build-integrity.test.ts +193 -0
- package/src/gdgraph/build-lang.test.ts +399 -0
- package/src/gdgraph/build.test.ts +120 -0
- package/src/gdgraph/build.ts +804 -0
- package/src/gdgraph/config.test.ts +47 -0
- package/src/gdgraph/config.ts +113 -0
- package/src/gdgraph/core-sources.test.ts +99 -0
- package/src/gdgraph/core-sources.ts +20 -0
- package/src/gdgraph/enrich.ts +79 -0
- package/src/gdgraph/fallback.test.ts +153 -0
- package/src/gdgraph/find.test.ts +78 -0
- package/src/gdgraph/find.ts +107 -0
- package/src/gdgraph/pagerank.ts +129 -0
- package/src/gdgraph/path.test.ts +56 -0
- package/src/gdgraph/path.ts +112 -0
- package/src/gdgraph/query.ts +133 -0
- package/src/gdgraph/repomap.test.ts +110 -0
- package/src/gdgraph/repomap.ts +193 -0
- package/src/gdgraph/service.test.ts +59 -0
- package/src/gdgraph/service.ts +51 -0
- package/src/gdgraph/staleness.ts +20 -0
- package/src/gdgraph/symbol.test.ts +89 -0
- package/src/gdgraph/symbol.ts +123 -0
- package/src/gdgraph/symbols-capability.test.ts +41 -0
- package/src/gdgraph/symbols-capability.ts +49 -0
- package/src/gdgraph/target.ts +56 -0
- package/src/gdgraph/treesitter/adapter.test.ts +249 -0
- package/src/gdgraph/treesitter/adapter.ts +213 -0
- package/src/gdgraph/treesitter/extract.test.ts +278 -0
- package/src/gdgraph/treesitter/extract.ts +389 -0
- package/src/gdgraph/treesitter/grammars.ts +110 -0
- package/src/gdgraph/treesitter/no-treesitter-import.test.ts +51 -0
- package/src/gdgraph/treesitter/resolve-calls.test.ts +38 -0
- package/src/gdgraph/types.ts +63 -0
- package/src/gdskills/bundled/rules/core/api-contracts.mdc +148 -0
- package/src/gdskills/bundled/rules/core/async-patterns.mdc +185 -0
- package/src/gdskills/bundled/rules/core/clean-architecture.mdc +163 -0
- package/src/gdskills/bundled/rules/core/code-review-ai-assistant.mdc +49 -0
- package/src/gdskills/bundled/rules/core/code-review-b091-profile.mdc +48 -0
- package/src/gdskills/bundled/rules/core/code-style-patterns.mdc +54 -0
- package/src/gdskills/bundled/rules/core/commit-message-formatting.mdc +25 -0
- package/src/gdskills/bundled/rules/core/database-patterns.mdc +162 -0
- package/src/gdskills/bundled/rules/core/documentation-management.mdc +106 -0
- package/src/gdskills/bundled/rules/core/error-handling.mdc +163 -0
- package/src/gdskills/bundled/rules/core/execution-metrics.md +99 -0
- package/src/gdskills/bundled/rules/core/frontend-assistant.mdc +40 -0
- package/src/gdskills/bundled/rules/core/git-rules.mdc +37 -0
- package/src/gdskills/bundled/rules/core/gproject-contracts.mdc +198 -0
- package/src/gdskills/bundled/rules/core/implementation-doc-mandate.mdc +149 -0
- package/src/gdskills/bundled/rules/core/implementation-plans.mdc +58 -0
- package/src/gdskills/bundled/rules/core/jobs-documentation.mdc +221 -0
- package/src/gdskills/bundled/rules/core/mobx-store-template.mdc +561 -0
- package/src/gdskills/bundled/rules/core/model-selection.mdc +53 -0
- package/src/gdskills/bundled/rules/core/nestjs-dto.mdc +50 -0
- package/src/gdskills/bundled/rules/core/playwright-testing.mdc +321 -0
- package/src/gdskills/bundled/rules/core/requirements-management.mdc +35 -0
- package/src/gdskills/bundled/rules/core/requirements-package-standard.mdc +103 -0
- package/src/gdskills/bundled/rules/core/review-agent-profile.mdc +49 -0
- package/src/gdskills/bundled/rules/core/review-strict-profile.mdc +44 -0
- package/src/gdskills/bundled/rules/core/rule-management-workflow.mdc +62 -0
- package/src/gdskills/bundled/rules/core/security-baseline.mdc +155 -0
- package/src/gdskills/bundled/rules/core/shared-definitions.mdc +79 -0
- package/src/gdskills/bundled/rules/core/skill-lifecycle.mdc +55 -0
- package/src/gdskills/bundled/rules/core/skills-storage-workflow.mdc +88 -0
- package/src/gdskills/bundled/rules/core/solid-principles.mdc +149 -0
- package/src/gdskills/bundled/rules/core/storybook-guidelines.mdc +36 -0
- package/src/gdskills/bundled/rules/core/subagent-context-construction.md +107 -0
- package/src/gdskills/bundled/rules/core/subagent-status-protocol.md +169 -0
- package/src/gdskills/bundled/rules/core/tdd-workflow.mdc +96 -0
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.codex.md +47 -0
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.cursor.md +55 -0
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.md +352 -0
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.opencode.md +39 -0
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.zed.md +29 -0
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.codex.md +567 -0
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.cursor.md +567 -0
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.md +655 -0
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.opencode.md +567 -0
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.zed.md +567 -0
- package/src/gdskills/bundled/skills/orchestration/context-collector/input-contract.schema.json +134 -0
- package/src/gdskills/bundled/skills/orchestration/context-collector/orchestrator-prompt.md +183 -0
- package/src/gdskills/bundled/skills/orchestration/context-collector/output-contract.schema.json +208 -0
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.codex.md +1412 -0
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.cursor.md +1412 -0
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.detail.md +735 -0
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.md +468 -0
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.opencode.md +1412 -0
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.zed.md +1412 -0
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/analysis-request.md +62 -0
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/analysis-request.template.md +79 -0
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/input-contract.schema.json +247 -0
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/orchestrator-prompt.md +362 -0
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/output-contract.schema.json +87 -0
- package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.codex.md +105 -0
- package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.cursor.md +105 -0
- package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.md +165 -0
- package/src/gdskills/bundled/skills/orchestration/flow-orchestrator/SKILL.md +379 -0
- package/src/gdskills/bundled/skills/orchestration/flow-orchestrator/input-contract.schema.json +33 -0
- package/src/gdskills/bundled/skills/orchestration/flow-orchestrator/output-contract.schema.json +41 -0
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.codex.md +307 -0
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.cursor.md +307 -0
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.md +373 -0
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.opencode.md +307 -0
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.zed.md +307 -0
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/input-contract.schema.json +130 -0
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/issue-request.template.md +50 -0
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/orchestrator-prompt.md +155 -0
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/output-contract.schema.json +61 -0
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.codex.md +365 -0
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.cursor.md +365 -0
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.md +373 -0
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.opencode.md +365 -0
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.zed.md +365 -0
- package/src/gdskills/bundled/skills/orchestration/job-documenter/input-contract.schema.json +55 -0
- package/src/gdskills/bundled/skills/orchestration/job-documenter/output-contract.schema.json +58 -0
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.codex.md +1701 -0
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.cursor.md +1701 -0
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.md +1734 -0
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.opencode.md +1701 -0
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.zed.md +1701 -0
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/input-contract.schema.json +188 -0
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/orchestrator-prompt.md +179 -0
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/output-contract.schema.json +103 -0
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/state.schema.json +164 -0
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.codex.md +395 -0
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.cursor.md +395 -0
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.md +556 -0
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.opencode.md +395 -0
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.zed.md +395 -0
- package/src/gdskills/bundled/skills/orchestration/task-implementer/input-contract.schema.json +204 -0
- package/src/gdskills/bundled/skills/orchestration/task-implementer/orchestrator-prompt.md +206 -0
- package/src/gdskills/bundled/skills/orchestration/task-implementer/output-contract.schema.json +51 -0
- package/src/gdskills/bundled/skills/orchestration/task-implementer/task-request.template.md +111 -0
- package/src/gdskills/bundled/skills/planning/autodoc-analyst/SKILL.md +163 -0
- package/src/gdskills/bundled/skills/planning/autodoc-architect/SKILL.md +161 -0
- package/src/gdskills/bundled/skills/planning/autodoc-assembler/SKILL.md +128 -0
- package/src/gdskills/bundled/skills/planning/autodoc-orchestrator/SKILL.md +321 -0
- package/src/gdskills/bundled/skills/planning/autodoc-scanner/SKILL.md +166 -0
- package/src/gdskills/bundled/skills/planning/autodoc-writer/SKILL.md +253 -0
- package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.claude.md +46 -0
- package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.codex.md +90 -0
- package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.cursor.md +90 -0
- package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.md +90 -0
- package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.codex.md +33 -0
- package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.cursor.md +33 -0
- package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.md +190 -0
- package/src/gdskills/bundled/skills/planning/docpack-orchestrator/SKILL.md +142 -0
- package/src/gdskills/bundled/skills/planning/docpack-orchestrator/input-contract.schema.json +31 -0
- package/src/gdskills/bundled/skills/planning/docpack-orchestrator/output-contract.schema.json +31 -0
- package/src/gdskills/bundled/skills/planning/docpack-review/SKILL.md +80 -0
- package/src/gdskills/bundled/skills/planning/docpack-review/input-contract.schema.json +20 -0
- package/src/gdskills/bundled/skills/planning/docpack-review/output-contract.schema.json +36 -0
- package/src/gdskills/bundled/skills/planning/interview/SKILL.codex.md +181 -0
- package/src/gdskills/bundled/skills/planning/interview/SKILL.cursor.md +181 -0
- package/src/gdskills/bundled/skills/planning/interview/SKILL.md +187 -0
- package/src/gdskills/bundled/skills/planning/interviewer/SKILL.claude.md +94 -0
- package/src/gdskills/bundled/skills/planning/interviewer/SKILL.codex.md +99 -0
- package/src/gdskills/bundled/skills/planning/interviewer/SKILL.cursor.md +99 -0
- package/src/gdskills/bundled/skills/planning/interviewer/SKILL.md +105 -0
- package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.codex.md +33 -0
- package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.cursor.md +33 -0
- package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.md +237 -0
- package/src/gdskills/bundled/skills/planning/planner/SKILL.codex.md +33 -0
- package/src/gdskills/bundled/skills/planning/planner/SKILL.cursor.md +33 -0
- package/src/gdskills/bundled/skills/planning/planner/SKILL.md +190 -0
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.codex.md +193 -0
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.cursor.md +193 -0
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.md +193 -0
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.opencode.md +193 -0
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.zed.md +193 -0
- package/src/gdskills/bundled/skills/planning/prd-creator/input-contract.schema.json +63 -0
- package/src/gdskills/bundled/skills/planning/prd-creator/output-contract.schema.json +175 -0
- package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.codex.md +31 -0
- package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.cursor.md +31 -0
- package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.md +153 -0
- package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.codex.md +32 -0
- package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.cursor.md +32 -0
- package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.md +166 -0
- package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.codex.md +44 -0
- package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.cursor.md +44 -0
- package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.md +243 -0
- package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.codex.md +43 -0
- package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.cursor.md +43 -0
- package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.md +193 -0
- package/src/gdskills/bundled/skills/platform/agent-entrypoint-distiller/SKILL.md +47 -0
- package/src/gdskills/bundled/skills/platform/claude-md-management/SKILL.codex.md +87 -0
- package/src/gdskills/bundled/skills/platform/claude-md-management/SKILL.cursor.md +87 -0
- package/src/gdskills/bundled/skills/platform/claude-md-management/SKILL.md +87 -0
- package/src/gdskills/bundled/skills/platform/hookify/SKILL.codex.md +100 -0
- package/src/gdskills/bundled/skills/platform/hookify/SKILL.cursor.md +100 -0
- package/src/gdskills/bundled/skills/platform/hookify/SKILL.md +100 -0
- package/src/gdskills/bundled/skills/quality/changelog/SKILL.claude.md +45 -0
- package/src/gdskills/bundled/skills/quality/changelog/SKILL.codex.md +84 -0
- package/src/gdskills/bundled/skills/quality/changelog/SKILL.cursor.md +84 -0
- package/src/gdskills/bundled/skills/quality/changelog/SKILL.md +84 -0
- package/src/gdskills/bundled/skills/quality/commit/SKILL.codex.md +66 -0
- package/src/gdskills/bundled/skills/quality/commit/SKILL.cursor.md +66 -0
- package/src/gdskills/bundled/skills/quality/commit/SKILL.md +66 -0
- package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.claude.md +40 -0
- package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.codex.md +66 -0
- package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.cursor.md +66 -0
- package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.md +66 -0
- package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.claude.md +45 -0
- package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.codex.md +81 -0
- package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.cursor.md +81 -0
- package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.md +81 -0
- package/src/gdskills/bundled/skills/quality/deploy/SKILL.claude.md +42 -0
- package/src/gdskills/bundled/skills/quality/deploy/SKILL.codex.md +70 -0
- package/src/gdskills/bundled/skills/quality/deploy/SKILL.cursor.md +70 -0
- package/src/gdskills/bundled/skills/quality/deploy/SKILL.md +70 -0
- package/src/gdskills/bundled/skills/quality/metaproject-security/SKILL.md +103 -0
- package/src/gdskills/bundled/skills/quality/perf-check/SKILL.claude.md +48 -0
- package/src/gdskills/bundled/skills/quality/perf-check/SKILL.codex.md +83 -0
- package/src/gdskills/bundled/skills/quality/perf-check/SKILL.cursor.md +83 -0
- package/src/gdskills/bundled/skills/quality/perf-check/SKILL.md +83 -0
- package/src/gdskills/bundled/skills/quality/pr/SKILL.codex.md +75 -0
- package/src/gdskills/bundled/skills/quality/pr/SKILL.cursor.md +75 -0
- package/src/gdskills/bundled/skills/quality/pr/SKILL.md +75 -0
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.codex.md +364 -0
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.cursor.md +295 -0
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.md +378 -0
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.opencode.md +364 -0
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.zed.md +38 -0
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/input-contract.schema.json +53 -0
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/output-contract.schema.json +46 -0
- package/src/gdskills/bundled/skills/quality/push/SKILL.codex.md +52 -0
- package/src/gdskills/bundled/skills/quality/push/SKILL.cursor.md +52 -0
- package/src/gdskills/bundled/skills/quality/push/SKILL.md +52 -0
- package/src/gdskills/bundled/skills/quality/security-audit/SKILL.claude.md +40 -0
- package/src/gdskills/bundled/skills/quality/security-audit/SKILL.codex.md +61 -0
- package/src/gdskills/bundled/skills/quality/security-audit/SKILL.cursor.md +61 -0
- package/src/gdskills/bundled/skills/quality/security-audit/SKILL.md +61 -0
- package/src/gdskills/bundled/skills/quality/test-gen/SKILL.claude.md +30 -0
- package/src/gdskills/bundled/skills/quality/test-gen/SKILL.codex.md +75 -0
- package/src/gdskills/bundled/skills/quality/test-gen/SKILL.cursor.md +75 -0
- package/src/gdskills/bundled/skills/quality/test-gen/SKILL.md +75 -0
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.codex.md +64 -0
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.cursor.md +74 -0
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.md +339 -0
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.opencode.md +48 -0
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.zed.md +44 -0
- package/src/gdskills/bundled/skills/quality/tests-creator/input-contract.schema.json +121 -0
- package/src/gdskills/bundled/skills/quality/tests-creator/output-contract.schema.json +127 -0
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.codex.md +204 -0
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.cursor.md +204 -0
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.md +203 -0
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.opencode.md +204 -0
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.zed.md +204 -0
- package/src/gdskills/bundled/skills/review/code-b091-review/SKILL.codex.md +209 -0
- package/src/gdskills/bundled/skills/review/code-b091-review/SKILL.cursor.md +209 -0
- package/src/gdskills/bundled/skills/review/code-b091-review/SKILL.md +208 -0
- package/src/gdskills/bundled/skills/review/code-b091-review/SKILL.opencode.md +209 -0
- package/src/gdskills/bundled/skills/review/code-b091-review/SKILL.zed.md +209 -0
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.codex.md +263 -0
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.cursor.md +263 -0
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.md +258 -0
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.opencode.md +263 -0
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.zed.md +263 -0
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.codex.md +175 -0
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.cursor.md +175 -0
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.md +168 -0
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.opencode.md +175 -0
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.zed.md +175 -0
- package/src/gdskills/bundled/skills/review/review-architecture/SKILL.md +360 -0
- package/src/gdskills/bundled/skills/review/review-backend/SKILL.md +337 -0
- package/src/gdskills/bundled/skills/review/review-clean-code/SKILL.md +477 -0
- package/src/gdskills/bundled/skills/review/review-core-boundaries/SKILL.md +93 -0
- package/src/gdskills/bundled/skills/review/review-flow-graph/SKILL.md +119 -0
- package/src/gdskills/bundled/skills/review/review-frontend/SKILL.md +595 -0
- package/src/gdskills/bundled/skills/review/review-frontend-conventions/SKILL.md +144 -0
- package/src/gdskills/bundled/skills/review/review-highload/SKILL.md +519 -0
- package/src/gdskills/bundled/skills/review/review-logic/SKILL.md +323 -0
- package/src/gdskills/bundled/skills/review/review-orchestrator/SKILL.md +927 -0
- package/src/gdskills/bundled/skills/review/review-orchestrator/input-contract.schema.json +153 -0
- package/src/gdskills/bundled/skills/review/review-orchestrator/output-contract.schema.json +77 -0
- package/src/gdskills/bundled/skills/review/review-orchestrator/review-context.schema.json +389 -0
- package/src/gdskills/bundled/skills/review/review-orchestrator/reviewer-finding.schema.json +189 -0
- package/src/gdskills/bundled/skills/review/review-orchestrator/reviewer-input.schema.json +241 -0
- package/src/gdskills/bundled/skills/review/review-performance/SKILL.md +344 -0
- package/src/gdskills/bundled/skills/review/review-pr-feedback/SKILL.md +327 -0
- package/src/gdskills/bundled/skills/review/review-security-code/SKILL.md +348 -0
- package/src/gdskills/bundled/skills/review/review-strict/SKILL.md +328 -0
- package/src/gdskills/bundled/skills/review/review-style/SKILL.md +343 -0
- package/src/gdskills/bundled/skills/review/review-testing-practices/SKILL.md +134 -0
- package/src/gdskills/bundled/skills/shared/git-merge-base.md +33 -0
- package/src/gdskills/contracts/agent-event.schema.json +32 -0
- package/src/gdskills/contracts/orchestrator-state.schema.json +58 -0
- package/src/gdskills/contracts/review-finding.schema.json +59 -0
- package/src/gdskills/contracts/subagent-dispatch.schema.json +123 -0
- package/src/gdskills/contracts/subagent-result.schema.json +136 -0
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: issue-analyzer
|
|
3
|
+
description: "Autonomous GitHub issue analysis and decomposition into atomic implementation tasks. Fetches issue data via gh CLI, analyzes codebase for affected areas, decomposes into Gherkin Scenarios with full context for implementer sub-agents. Use when: decomposing issues for AI implementation, planning task breakdown, preparing work for task-implementer agents."
|
|
4
|
+
triggers:
|
|
5
|
+
- "Analyze issue"
|
|
6
|
+
- "Decompose issue"
|
|
7
|
+
- "Break down issue"
|
|
8
|
+
- "Issue to tasks"
|
|
9
|
+
- "Plan issue implementation"
|
|
10
|
+
metadata:
|
|
11
|
+
author: "MrCipherSmith"
|
|
12
|
+
version: "1.0.0"
|
|
13
|
+
category: "analysis"
|
|
14
|
+
license: "MIT"
|
|
15
|
+
compatibility: "cursor,codex,zed,opencode"
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# Issue Analyzer
|
|
19
|
+
|
|
20
|
+
## Purpose
|
|
21
|
+
|
|
22
|
+
Analyzes a GitHub issue and decomposes it into atomic implementation tasks that can be dispatched to `task-implementer` sub-agents. Designed to run autonomously as a sub-agent — no user interaction required.
|
|
23
|
+
|
|
24
|
+
**Input:** GitHub issue URL (or repo + number) + codebase path(s)
|
|
25
|
+
**Output:** Gherkin Feature with one Scenario per task, each containing full context for implementation
|
|
26
|
+
|
|
27
|
+
## When to Use
|
|
28
|
+
|
|
29
|
+
- Orchestrator needs to break an issue into implementable tasks
|
|
30
|
+
- Planning AI-driven implementation of a GitHub issue
|
|
31
|
+
- Understanding scope and affected areas before coding
|
|
32
|
+
|
|
33
|
+
## Architecture: 4 Phases
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
Phase 1: COLLECT → Fetch all issue data from GitHub
|
|
37
|
+
Phase 2: ANALYZE → Extract intent, find affected code areas
|
|
38
|
+
Phase 3: DECOMPOSE → Break into atomic tasks with dependencies
|
|
39
|
+
Phase 4: FORMALIZE → Emit Gherkin Feature with Scenarios
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Workflow
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
Issue Analyzer Progress:
|
|
48
|
+
- [ ] Phase 1: Collect issue data from GitHub
|
|
49
|
+
- [ ] Phase 2: Analyze intent and search codebase
|
|
50
|
+
- [ ] Phase 3: Decompose into atomic tasks
|
|
51
|
+
- [ ] Phase 4: Formalize as Gherkin output
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Phase 1: COLLECT
|
|
55
|
+
|
|
56
|
+
Fetch all available data about the issue using `gh` CLI.
|
|
57
|
+
|
|
58
|
+
**1.1 Core issue data:**
|
|
59
|
+
```bash
|
|
60
|
+
gh issue view <NUMBER> --repo <OWNER/REPO> --json title,body,state,labels,assignees,milestone,comments,projectItems
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**1.2 Timeline events (cross-references, linked PRs, assignments):**
|
|
64
|
+
```bash
|
|
65
|
+
gh api repos/<OWNER>/<REPO>/issues/<NUMBER>/timeline --paginate
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**1.3 Comments (full thread):**
|
|
69
|
+
```bash
|
|
70
|
+
gh api repos/<OWNER>/<REPO>/issues/<NUMBER>/comments --paginate
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
**1.4 Sub-issues (if any, via GraphQL):**
|
|
74
|
+
```bash
|
|
75
|
+
gh api graphql -f query='
|
|
76
|
+
query {
|
|
77
|
+
repository(owner: "<OWNER>", name: "<REPO>") {
|
|
78
|
+
issue(number: <NUMBER>) {
|
|
79
|
+
subIssues(first: 50) {
|
|
80
|
+
nodes { number title state url }
|
|
81
|
+
}
|
|
82
|
+
parent { number title url }
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
'
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**1.5 Linked documents:**
|
|
90
|
+
- Extract URLs from issue body and comments
|
|
91
|
+
- If URLs point to GitHub files, fetch their content
|
|
92
|
+
- If URLs point to docs, fetch via WebFetch
|
|
93
|
+
|
|
94
|
+
**Output of Phase 1:** Structured issue context object:
|
|
95
|
+
```
|
|
96
|
+
ISSUE_CONTEXT:
|
|
97
|
+
number: <N>
|
|
98
|
+
title: <string>
|
|
99
|
+
body: <markdown>
|
|
100
|
+
labels: [<string>]
|
|
101
|
+
assignees: [<string>]
|
|
102
|
+
comments: [{author, body, created_at}]
|
|
103
|
+
cross_references: [{source, type}]
|
|
104
|
+
sub_issues: [{number, title, state}]
|
|
105
|
+
parent_issue: {number, title} | null
|
|
106
|
+
linked_urls: [<url>]
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Phase 2: ANALYZE
|
|
110
|
+
|
|
111
|
+
**2.1 Extract intent from issue body:**
|
|
112
|
+
- Issue type: `bug` | `feature` | `enhancement` | `refactoring` | `chore`
|
|
113
|
+
- Expected behavior (from "Expected" / "Should" sections)
|
|
114
|
+
- Steps to reproduce (from "Steps" / "How to reproduce" sections)
|
|
115
|
+
- Acceptance criteria (from "AC" / "Criteria" / "Definition of Done" sections)
|
|
116
|
+
- If no explicit AC — derive from description and expected behavior
|
|
117
|
+
|
|
118
|
+
**2.2 Search codebase for affected areas:**
|
|
119
|
+
|
|
120
|
+
Using the codebase path(s) from input, search for relevant files:
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
For each keyword extracted from issue title + body:
|
|
124
|
+
1. Use `find_by_name` (or similar file search tool) to find files matching names.
|
|
125
|
+
2. Use `grep_search` to find files containing matching patterns (avoid using standard bash `grep` if the IDE provides a native tool).
|
|
126
|
+
3. Track: file path, line numbers, relevance score
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
**Priority classification:**
|
|
130
|
+
- **P0** (must change): Files directly mentioned in issue, files containing the buggy behavior
|
|
131
|
+
- **P1** (likely change): Files in the same module/directory, related types/interfaces
|
|
132
|
+
- **P2** (may need update): Tests, stories, docs for P0/P1 files
|
|
133
|
+
|
|
134
|
+
**2.3 Analyze module structure:**
|
|
135
|
+
- Read P0 files:
|
|
136
|
+
- For small/medium files: read fully via `view_file`.
|
|
137
|
+
- For large files (> 500 lines): DO NOT read fully to avoid context exhaustion. Use `view_file_outline` or `grep_search` to locate specific relevant class/function signatures.
|
|
138
|
+
- Identify: imports, exports, types, class/function signatures
|
|
139
|
+
- Map dependencies between files
|
|
140
|
+
- Identify existing tests and stories for affected components
|
|
141
|
+
|
|
142
|
+
**Output of Phase 2:** Analysis summary:
|
|
143
|
+
```
|
|
144
|
+
ANALYSIS:
|
|
145
|
+
issue_type: <bug|feature|enhancement|refactoring|chore>
|
|
146
|
+
intent: <1-2 sentence summary>
|
|
147
|
+
acceptance_criteria: [<string>]
|
|
148
|
+
affected_files:
|
|
149
|
+
p0: [{path, reason, key_symbols}]
|
|
150
|
+
p1: [{path, reason}]
|
|
151
|
+
p2: [{path, reason}]
|
|
152
|
+
module_map: {module_name: [files]}
|
|
153
|
+
existing_tests: [<path>]
|
|
154
|
+
existing_stories: [<path>]
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### Phase 3: DECOMPOSE
|
|
158
|
+
|
|
159
|
+
Break the issue into atomic, implementable tasks.
|
|
160
|
+
|
|
161
|
+
**3.1 Decomposition rules:**
|
|
162
|
+
- Each task should be completable by a single agent in one session
|
|
163
|
+
- Each task should touch a minimal, cohesive set of files
|
|
164
|
+
- Tasks should follow the 3-layer architecture order when possible:
|
|
165
|
+
1. Service/API layer changes first
|
|
166
|
+
2. Store/logic layer changes second
|
|
167
|
+
3. Component/UI layer changes third
|
|
168
|
+
4. Tests and stories last (or inline with their layer)
|
|
169
|
+
- Maximum 7 tasks per issue (if more needed, the issue is too large)
|
|
170
|
+
|
|
171
|
+
**3.2 Determine task type for each task:**
|
|
172
|
+
|
|
173
|
+
| Task Type | Description | Required Outputs |
|
|
174
|
+
|-----------|-------------|-----------------|
|
|
175
|
+
| `ui_component` | New or modified React component | Code + Story + Screenshot test |
|
|
176
|
+
| `store_logic` | MobX store changes | Code + Unit test |
|
|
177
|
+
| `service_api` | API service / DTO changes | Code + Unit test |
|
|
178
|
+
| `refactoring` | Code restructuring | Code + Verify existing tests pass |
|
|
179
|
+
| `fix` | Bug fix | Code + Regression test |
|
|
180
|
+
| `mixed` | Crosses multiple layers | Code + Tests appropriate to each layer |
|
|
181
|
+
|
|
182
|
+
**3.3 Assign dependencies:**
|
|
183
|
+
- If task-2 imports types from task-1's new code → task-2 depends on task-1
|
|
184
|
+
- If task-3 tests code from task-2 → task-3 depends on task-2
|
|
185
|
+
- No circular dependencies allowed
|
|
186
|
+
|
|
187
|
+
**Output of Phase 3:** Task list:
|
|
188
|
+
```
|
|
189
|
+
TASKS:
|
|
190
|
+
- id: task-1
|
|
191
|
+
name: <descriptive name>
|
|
192
|
+
task_type: <enum>
|
|
193
|
+
description: <what to do>
|
|
194
|
+
target_files: [<path>]
|
|
195
|
+
acceptance_criteria: [<string>]
|
|
196
|
+
dependencies: []
|
|
197
|
+
estimated_complexity: low | medium | high
|
|
198
|
+
- id: task-2
|
|
199
|
+
...
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Phase 4: FORMALIZE
|
|
203
|
+
|
|
204
|
+
Convert the task list into Gherkin Feature format.
|
|
205
|
+
|
|
206
|
+
**Output structure:**
|
|
207
|
+
|
|
208
|
+
```gherkin
|
|
209
|
+
Feature: Issue #<N> — <Issue Title>
|
|
210
|
+
|
|
211
|
+
Background: Issue Context
|
|
212
|
+
Given GitHub issue #<N> "<title>"
|
|
213
|
+
And issue type is "<issue_type>"
|
|
214
|
+
And repository "<owner/repo>"
|
|
215
|
+
And target codebase at "<codebase_path>"
|
|
216
|
+
|
|
217
|
+
| Aspect | Detail |
|
|
218
|
+
| Intent | <1-2 sentence intent> |
|
|
219
|
+
| Labels | <comma-separated labels> |
|
|
220
|
+
| Assignees | <comma-separated assignees> |
|
|
221
|
+
| Total Tasks | <N> |
|
|
222
|
+
|
|
223
|
+
Scenario: task-1 — <Task Name>
|
|
224
|
+
Given task type is "<task_type>"
|
|
225
|
+
And estimated complexity is "<low|medium|high>"
|
|
226
|
+
And this task has no dependencies
|
|
227
|
+
|
|
228
|
+
| Aspect | Detail |
|
|
229
|
+
| Description | <full description of what to implement> |
|
|
230
|
+
| Target Files | <comma-separated file paths> |
|
|
231
|
+
| Acceptance Criteria | <criteria 1>; <criteria 2> |
|
|
232
|
+
| Context | <relevant code context, key types, function signatures> |
|
|
233
|
+
| Existing Tests | <paths to existing test files, or "none"> |
|
|
234
|
+
| Existing Stories | <paths to existing story files, or "none"> |
|
|
235
|
+
| Module Patterns | <brief note on how similar code is written in this module> |
|
|
236
|
+
|
|
237
|
+
Scenario: task-2 — <Task Name>
|
|
238
|
+
Given task type is "<task_type>"
|
|
239
|
+
And estimated complexity is "<low|medium|high>"
|
|
240
|
+
And this task depends on "task-1"
|
|
241
|
+
|
|
242
|
+
| Aspect | Detail |
|
|
243
|
+
| ... | ... |
|
|
244
|
+
|
|
245
|
+
Scenario: task-N — <Task Name>
|
|
246
|
+
...
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
---
|
|
250
|
+
|
|
251
|
+
## Automation Settings
|
|
252
|
+
|
|
253
|
+
This skill is designed to run fully autonomously. The following settings control behavior:
|
|
254
|
+
|
|
255
|
+
| Setting | Default | Options | Description |
|
|
256
|
+
|---------|---------|---------|-------------|
|
|
257
|
+
| `max_tasks` | `7` | 1-10 | Maximum number of tasks to decompose into |
|
|
258
|
+
| `search_depth` | `focused` | `shallow` / `focused` / `deep` | How deeply to search codebase |
|
|
259
|
+
| `include_context` | `true` | true/false | Include code context (types, signatures) in output |
|
|
260
|
+
| `timeout_strategy` | `partial` | `partial` / `abort` | What to do if analysis takes too long |
|
|
261
|
+
| `gh_cli_fallback` | `skip_enrichment` | `skip_enrichment` / `abort` | What to do if gh CLI is unavailable |
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
## Error Handling
|
|
266
|
+
|
|
267
|
+
| Error | Action |
|
|
268
|
+
|-------|--------|
|
|
269
|
+
| Issue not found (404) | ABORT with error message |
|
|
270
|
+
| Issue body is empty | Analyze from title + comments only. Add note in output. |
|
|
271
|
+
| No codebase match found | Return empty task list with note "No matching code found" |
|
|
272
|
+
| gh CLI not available | Use provided issue data from input (title, description fallback) |
|
|
273
|
+
| Too many affected files (>50) | Filter to P0 only, cap at max_tasks |
|
|
274
|
+
| Issue is too large (>7 tasks) | Split into top-level tasks, note "consider splitting issue" |
|
|
275
|
+
|
|
276
|
+
---
|
|
277
|
+
|
|
278
|
+
## Rules of Engagement
|
|
279
|
+
|
|
280
|
+
1. **DO NOT** ask the user any questions. All input comes from the input contract.
|
|
281
|
+
2. **DO NOT** modify any files. This is a read-only analysis skill.
|
|
282
|
+
3. **DO NOT** make assumptions about implementation approach — describe WHAT, not HOW.
|
|
283
|
+
4. **DO** include enough context in each Scenario for a task-implementer to start without asking questions.
|
|
284
|
+
5. **DO** respect the 3-layer architecture: Service → Store → Component ordering.
|
|
285
|
+
6. **DO** identify existing tests and stories so implementer knows what to update.
|
|
286
|
+
7. **DO** note module patterns (how similar code is written nearby) for consistency.
|
|
287
|
+
8. Return the Gherkin Feature as your **final message** to the orchestrator.
|
|
288
|
+
|
|
289
|
+
---
|
|
290
|
+
|
|
291
|
+
## Job Context Awareness
|
|
292
|
+
|
|
293
|
+
When dispatched by `job-orchestrator`, the prompt MAY include:
|
|
294
|
+
|
|
295
|
+
```
|
|
296
|
+
JOB_NAME: <job-name>
|
|
297
|
+
JOBS_ROOT: .metaproject/jobs
|
|
298
|
+
CONTEXT_PATH: .metaproject/jobs/<job-name>/ai/context.md
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
If `CONTEXT_PATH` is provided and the file exists, read it during Phase 2 (ANALYZE) to:
|
|
302
|
+
- Understand existing project conventions and patterns
|
|
303
|
+
- Identify relevant library documentation and best practices
|
|
304
|
+
- Avoid duplicating research already captured in the context document
|
|
305
|
+
- Use the context to improve the quality of task decomposition (e.g., better target_files, richer module_patterns)
|
|
306
|
+
|
|
307
|
+
If the file does not exist or is not provided, proceed normally — context is optional and non-blocking.
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: issue-analyzer
|
|
3
|
+
description: "Autonomous GitHub issue analysis and decomposition into atomic implementation tasks. Fetches issue data via gh CLI, analyzes codebase for affected areas, decomposes into Gherkin Scenarios with full context for implementer sub-agents. Use when: decomposing issues for AI implementation, planning task breakdown, preparing work for task-implementer agents."
|
|
4
|
+
triggers:
|
|
5
|
+
- "Analyze issue"
|
|
6
|
+
- "Decompose issue"
|
|
7
|
+
- "Break down issue"
|
|
8
|
+
- "Issue to tasks"
|
|
9
|
+
- "Plan issue implementation"
|
|
10
|
+
metadata:
|
|
11
|
+
author: "MrCipherSmith"
|
|
12
|
+
version: "1.0.0"
|
|
13
|
+
category: "analysis"
|
|
14
|
+
license: "MIT"
|
|
15
|
+
compatibility: "cursor,codex,zed,opencode"
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# Issue Analyzer
|
|
19
|
+
|
|
20
|
+
## Purpose
|
|
21
|
+
|
|
22
|
+
Analyzes a GitHub issue and decomposes it into atomic implementation tasks that can be dispatched to `task-implementer` sub-agents. Designed to run autonomously as a sub-agent — no user interaction required.
|
|
23
|
+
|
|
24
|
+
**Input:** GitHub issue URL (or repo + number) + codebase path(s)
|
|
25
|
+
**Output:** Gherkin Feature with one Scenario per task, each containing full context for implementation
|
|
26
|
+
|
|
27
|
+
## When to Use
|
|
28
|
+
|
|
29
|
+
- Orchestrator needs to break an issue into implementable tasks
|
|
30
|
+
- Planning AI-driven implementation of a GitHub issue
|
|
31
|
+
- Understanding scope and affected areas before coding
|
|
32
|
+
|
|
33
|
+
## Architecture: 4 Phases
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
Phase 1: COLLECT → Fetch all issue data from GitHub
|
|
37
|
+
Phase 2: ANALYZE → Extract intent, find affected code areas
|
|
38
|
+
Phase 3: DECOMPOSE → Break into atomic tasks with dependencies
|
|
39
|
+
Phase 4: FORMALIZE → Emit Gherkin Feature with Scenarios
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Workflow
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
Issue Analyzer Progress:
|
|
48
|
+
- [ ] Phase 1: Collect issue data from GitHub
|
|
49
|
+
- [ ] Phase 2: Analyze intent and search codebase
|
|
50
|
+
- [ ] Phase 3: Decompose into atomic tasks
|
|
51
|
+
- [ ] Phase 4: Formalize as Gherkin output
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Phase 1: COLLECT
|
|
55
|
+
|
|
56
|
+
Fetch all available data about the issue using `gh` CLI.
|
|
57
|
+
|
|
58
|
+
**1.1 Core issue data:**
|
|
59
|
+
```bash
|
|
60
|
+
gh issue view <NUMBER> --repo <OWNER/REPO> --json title,body,state,labels,assignees,milestone,comments,projectItems
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**1.2 Timeline events (cross-references, linked PRs, assignments):**
|
|
64
|
+
```bash
|
|
65
|
+
gh api repos/<OWNER>/<REPO>/issues/<NUMBER>/timeline --paginate
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**1.3 Comments (full thread):**
|
|
69
|
+
```bash
|
|
70
|
+
gh api repos/<OWNER>/<REPO>/issues/<NUMBER>/comments --paginate
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
**1.4 Sub-issues (if any, via GraphQL):**
|
|
74
|
+
```bash
|
|
75
|
+
gh api graphql -f query='
|
|
76
|
+
query {
|
|
77
|
+
repository(owner: "<OWNER>", name: "<REPO>") {
|
|
78
|
+
issue(number: <NUMBER>) {
|
|
79
|
+
subIssues(first: 50) {
|
|
80
|
+
nodes { number title state url }
|
|
81
|
+
}
|
|
82
|
+
parent { number title url }
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
'
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**1.5 Linked documents:**
|
|
90
|
+
- Extract URLs from issue body and comments
|
|
91
|
+
- If URLs point to GitHub files, fetch their content
|
|
92
|
+
- If URLs point to docs, fetch via WebFetch
|
|
93
|
+
|
|
94
|
+
**Output of Phase 1:** Structured issue context object:
|
|
95
|
+
```
|
|
96
|
+
ISSUE_CONTEXT:
|
|
97
|
+
number: <N>
|
|
98
|
+
title: <string>
|
|
99
|
+
body: <markdown>
|
|
100
|
+
labels: [<string>]
|
|
101
|
+
assignees: [<string>]
|
|
102
|
+
comments: [{author, body, created_at}]
|
|
103
|
+
cross_references: [{source, type}]
|
|
104
|
+
sub_issues: [{number, title, state}]
|
|
105
|
+
parent_issue: {number, title} | null
|
|
106
|
+
linked_urls: [<url>]
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Phase 2: ANALYZE
|
|
110
|
+
|
|
111
|
+
**2.1 Extract intent from issue body:**
|
|
112
|
+
- Issue type: `bug` | `feature` | `enhancement` | `refactoring` | `chore`
|
|
113
|
+
- Expected behavior (from "Expected" / "Should" sections)
|
|
114
|
+
- Steps to reproduce (from "Steps" / "How to reproduce" sections)
|
|
115
|
+
- Acceptance criteria (from "AC" / "Criteria" / "Definition of Done" sections)
|
|
116
|
+
- If no explicit AC — derive from description and expected behavior
|
|
117
|
+
|
|
118
|
+
**2.2 Search codebase for affected areas:**
|
|
119
|
+
|
|
120
|
+
Using the codebase path(s) from input, search for relevant files:
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
For each keyword extracted from issue title + body:
|
|
124
|
+
1. Use `find_by_name` (or similar file search tool) to find files matching names.
|
|
125
|
+
2. Use `grep_search` to find files containing matching patterns (avoid using standard bash `grep` if the IDE provides a native tool).
|
|
126
|
+
3. Track: file path, line numbers, relevance score
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
**Priority classification:**
|
|
130
|
+
- **P0** (must change): Files directly mentioned in issue, files containing the buggy behavior
|
|
131
|
+
- **P1** (likely change): Files in the same module/directory, related types/interfaces
|
|
132
|
+
- **P2** (may need update): Tests, stories, docs for P0/P1 files
|
|
133
|
+
|
|
134
|
+
**2.3 Analyze module structure:**
|
|
135
|
+
- Read P0 files:
|
|
136
|
+
- For small/medium files: read fully via `view_file`.
|
|
137
|
+
- For large files (> 500 lines): DO NOT read fully to avoid context exhaustion. Use `view_file_outline` or `grep_search` to locate specific relevant class/function signatures.
|
|
138
|
+
- Identify: imports, exports, types, class/function signatures
|
|
139
|
+
- Map dependencies between files
|
|
140
|
+
- Identify existing tests and stories for affected components
|
|
141
|
+
|
|
142
|
+
**Output of Phase 2:** Analysis summary:
|
|
143
|
+
```
|
|
144
|
+
ANALYSIS:
|
|
145
|
+
issue_type: <bug|feature|enhancement|refactoring|chore>
|
|
146
|
+
intent: <1-2 sentence summary>
|
|
147
|
+
acceptance_criteria: [<string>]
|
|
148
|
+
affected_files:
|
|
149
|
+
p0: [{path, reason, key_symbols}]
|
|
150
|
+
p1: [{path, reason}]
|
|
151
|
+
p2: [{path, reason}]
|
|
152
|
+
module_map: {module_name: [files]}
|
|
153
|
+
existing_tests: [<path>]
|
|
154
|
+
existing_stories: [<path>]
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### Phase 3: DECOMPOSE
|
|
158
|
+
|
|
159
|
+
Break the issue into atomic, implementable tasks.
|
|
160
|
+
|
|
161
|
+
**3.1 Decomposition rules:**
|
|
162
|
+
- Each task should be completable by a single agent in one session
|
|
163
|
+
- Each task should touch a minimal, cohesive set of files
|
|
164
|
+
- Tasks should follow the 3-layer architecture order when possible:
|
|
165
|
+
1. Service/API layer changes first
|
|
166
|
+
2. Store/logic layer changes second
|
|
167
|
+
3. Component/UI layer changes third
|
|
168
|
+
4. Tests and stories last (or inline with their layer)
|
|
169
|
+
- Maximum 7 tasks per issue (if more needed, the issue is too large)
|
|
170
|
+
|
|
171
|
+
**3.2 Determine task type for each task:**
|
|
172
|
+
|
|
173
|
+
| Task Type | Description | Required Outputs |
|
|
174
|
+
|-----------|-------------|-----------------|
|
|
175
|
+
| `ui_component` | New or modified React component | Code + Story + Screenshot test |
|
|
176
|
+
| `store_logic` | MobX store changes | Code + Unit test |
|
|
177
|
+
| `service_api` | API service / DTO changes | Code + Unit test |
|
|
178
|
+
| `refactoring` | Code restructuring | Code + Verify existing tests pass |
|
|
179
|
+
| `fix` | Bug fix | Code + Regression test |
|
|
180
|
+
| `mixed` | Crosses multiple layers | Code + Tests appropriate to each layer |
|
|
181
|
+
|
|
182
|
+
**3.3 Assign dependencies:**
|
|
183
|
+
- If task-2 imports types from task-1's new code → task-2 depends on task-1
|
|
184
|
+
- If task-3 tests code from task-2 → task-3 depends on task-2
|
|
185
|
+
- No circular dependencies allowed
|
|
186
|
+
|
|
187
|
+
**Output of Phase 3:** Task list:
|
|
188
|
+
```
|
|
189
|
+
TASKS:
|
|
190
|
+
- id: task-1
|
|
191
|
+
name: <descriptive name>
|
|
192
|
+
task_type: <enum>
|
|
193
|
+
description: <what to do>
|
|
194
|
+
target_files: [<path>]
|
|
195
|
+
acceptance_criteria: [<string>]
|
|
196
|
+
dependencies: []
|
|
197
|
+
estimated_complexity: low | medium | high
|
|
198
|
+
- id: task-2
|
|
199
|
+
...
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Phase 4: FORMALIZE
|
|
203
|
+
|
|
204
|
+
Convert the task list into Gherkin Feature format.
|
|
205
|
+
|
|
206
|
+
**Output structure:**
|
|
207
|
+
|
|
208
|
+
```gherkin
|
|
209
|
+
Feature: Issue #<N> — <Issue Title>
|
|
210
|
+
|
|
211
|
+
Background: Issue Context
|
|
212
|
+
Given GitHub issue #<N> "<title>"
|
|
213
|
+
And issue type is "<issue_type>"
|
|
214
|
+
And repository "<owner/repo>"
|
|
215
|
+
And target codebase at "<codebase_path>"
|
|
216
|
+
|
|
217
|
+
| Aspect | Detail |
|
|
218
|
+
| Intent | <1-2 sentence intent> |
|
|
219
|
+
| Labels | <comma-separated labels> |
|
|
220
|
+
| Assignees | <comma-separated assignees> |
|
|
221
|
+
| Total Tasks | <N> |
|
|
222
|
+
|
|
223
|
+
Scenario: task-1 — <Task Name>
|
|
224
|
+
Given task type is "<task_type>"
|
|
225
|
+
And estimated complexity is "<low|medium|high>"
|
|
226
|
+
And this task has no dependencies
|
|
227
|
+
|
|
228
|
+
| Aspect | Detail |
|
|
229
|
+
| Description | <full description of what to implement> |
|
|
230
|
+
| Target Files | <comma-separated file paths> |
|
|
231
|
+
| Acceptance Criteria | <criteria 1>; <criteria 2> |
|
|
232
|
+
| Context | <relevant code context, key types, function signatures> |
|
|
233
|
+
| Existing Tests | <paths to existing test files, or "none"> |
|
|
234
|
+
| Existing Stories | <paths to existing story files, or "none"> |
|
|
235
|
+
| Module Patterns | <brief note on how similar code is written in this module> |
|
|
236
|
+
|
|
237
|
+
Scenario: task-2 — <Task Name>
|
|
238
|
+
Given task type is "<task_type>"
|
|
239
|
+
And estimated complexity is "<low|medium|high>"
|
|
240
|
+
And this task depends on "task-1"
|
|
241
|
+
|
|
242
|
+
| Aspect | Detail |
|
|
243
|
+
| ... | ... |
|
|
244
|
+
|
|
245
|
+
Scenario: task-N — <Task Name>
|
|
246
|
+
...
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
---
|
|
250
|
+
|
|
251
|
+
## Automation Settings
|
|
252
|
+
|
|
253
|
+
This skill is designed to run fully autonomously. The following settings control behavior:
|
|
254
|
+
|
|
255
|
+
| Setting | Default | Options | Description |
|
|
256
|
+
|---------|---------|---------|-------------|
|
|
257
|
+
| `max_tasks` | `7` | 1-10 | Maximum number of tasks to decompose into |
|
|
258
|
+
| `search_depth` | `focused` | `shallow` / `focused` / `deep` | How deeply to search codebase |
|
|
259
|
+
| `include_context` | `true` | true/false | Include code context (types, signatures) in output |
|
|
260
|
+
| `timeout_strategy` | `partial` | `partial` / `abort` | What to do if analysis takes too long |
|
|
261
|
+
| `gh_cli_fallback` | `skip_enrichment` | `skip_enrichment` / `abort` | What to do if gh CLI is unavailable |
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
## Error Handling
|
|
266
|
+
|
|
267
|
+
| Error | Action |
|
|
268
|
+
|-------|--------|
|
|
269
|
+
| Issue not found (404) | ABORT with error message |
|
|
270
|
+
| Issue body is empty | Analyze from title + comments only. Add note in output. |
|
|
271
|
+
| No codebase match found | Return empty task list with note "No matching code found" |
|
|
272
|
+
| gh CLI not available | Use provided issue data from input (title, description fallback) |
|
|
273
|
+
| Too many affected files (>50) | Filter to P0 only, cap at max_tasks |
|
|
274
|
+
| Issue is too large (>7 tasks) | Split into top-level tasks, note "consider splitting issue" |
|
|
275
|
+
|
|
276
|
+
---
|
|
277
|
+
|
|
278
|
+
## Rules of Engagement
|
|
279
|
+
|
|
280
|
+
1. **DO NOT** ask the user any questions. All input comes from the input contract.
|
|
281
|
+
2. **DO NOT** modify any files. This is a read-only analysis skill.
|
|
282
|
+
3. **DO NOT** make assumptions about implementation approach — describe WHAT, not HOW.
|
|
283
|
+
4. **DO** include enough context in each Scenario for a task-implementer to start without asking questions.
|
|
284
|
+
5. **DO** respect the 3-layer architecture: Service → Store → Component ordering.
|
|
285
|
+
6. **DO** identify existing tests and stories so implementer knows what to update.
|
|
286
|
+
7. **DO** note module patterns (how similar code is written nearby) for consistency.
|
|
287
|
+
8. Return the Gherkin Feature as your **final message** to the orchestrator.
|
|
288
|
+
|
|
289
|
+
---
|
|
290
|
+
|
|
291
|
+
## Job Context Awareness
|
|
292
|
+
|
|
293
|
+
When dispatched by `job-orchestrator`, the prompt MAY include:
|
|
294
|
+
|
|
295
|
+
```
|
|
296
|
+
JOB_NAME: <job-name>
|
|
297
|
+
JOBS_ROOT: .metaproject/jobs
|
|
298
|
+
CONTEXT_PATH: .metaproject/jobs/<job-name>/ai/context.md
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
If `CONTEXT_PATH` is provided and the file exists, read it during Phase 2 (ANALYZE) to:
|
|
302
|
+
- Understand existing project conventions and patterns
|
|
303
|
+
- Identify relevant library documentation and best practices
|
|
304
|
+
- Avoid duplicating research already captured in the context document
|
|
305
|
+
- Use the context to improve the quality of task decomposition (e.g., better target_files, richer module_patterns)
|
|
306
|
+
|
|
307
|
+
If the file does not exist or is not provided, proceed normally — context is optional and non-blocking.
|