@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,468 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: feature-analyzer
|
|
3
|
+
description: "Use when analyzing feature branch changes across repos, planning implementation, or understanding backend→frontend contracts. NEVER start without explicit user confirmation of source, target, and branch."
|
|
4
|
+
triggers:
|
|
5
|
+
- "Analyze branch"
|
|
6
|
+
- "Analyze changes"
|
|
7
|
+
- "Analyze commit"
|
|
8
|
+
- "Study changes"
|
|
9
|
+
- "Cross-repo analysis"
|
|
10
|
+
- "Backend to frontend analysis"
|
|
11
|
+
- "Feature analyzer"
|
|
12
|
+
metadata:
|
|
13
|
+
author: "MrCipherSmith"
|
|
14
|
+
version: "2.4.0"
|
|
15
|
+
category: "analysis"
|
|
16
|
+
license: "MIT"
|
|
17
|
+
compatibility: "cursor,codex,zed,opencode"
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
<SUBAGENT-STOP>
|
|
21
|
+
If you were dispatched as a subagent to execute a specific task, skip this skill entirely.
|
|
22
|
+
This skill is for orchestrators and interactive session-level routing only.
|
|
23
|
+
Proceed directly with your assigned task.
|
|
24
|
+
</SUBAGENT-STOP>
|
|
25
|
+
|
|
26
|
+
# Feature Analyzer
|
|
27
|
+
|
|
28
|
+
## ⚠️ MANDATORY: DO NOT PROCEED WITHOUT CONTEXT
|
|
29
|
+
|
|
30
|
+
**CRITICAL RULE: You CANNOT start analysis until user explicitly provides:**
|
|
31
|
+
1. ✅ Source repository (local path)
|
|
32
|
+
2. ✅ Target repository (local path)
|
|
33
|
+
3. ✅ Branch to analyze
|
|
34
|
+
4. ✅ Confirmation of analysis scope
|
|
35
|
+
|
|
36
|
+
**DO NOT assume defaults. DO NOT use current directory. DO NOT proceed without asking.**
|
|
37
|
+
|
|
38
|
+
**If user says:** "Analyze everything related to variables in pipelines"
|
|
39
|
+
|
|
40
|
+
**You MUST respond:**
|
|
41
|
+
```
|
|
42
|
+
I'll help you analyze variables in pipelines. First, I need to clarify the context:
|
|
43
|
+
|
|
44
|
+
**SOURCE Repository** (where the changes exist):
|
|
45
|
+
- Local path: [user must provide, e.g., /Users/.../<PROJECT>]
|
|
46
|
+
- GitHub repo: [owner/repo]
|
|
47
|
+
- Branch to analyze: [branch-name]
|
|
48
|
+
|
|
49
|
+
**TARGET Repository** (where implementation will happen):
|
|
50
|
+
- Local path: [user must provide, e.g., /Users/.../<PROJECT>]
|
|
51
|
+
- GitHub repo: [owner/repo]
|
|
52
|
+
- Current branch: [branch-name]
|
|
53
|
+
|
|
54
|
+
**FOCUS** (from your request): "variables in pipelines"
|
|
55
|
+
- Keywords: variable, pipeline, param
|
|
56
|
+
|
|
57
|
+
Once you provide these details, I'll begin the focused analysis.
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
**If user doesn't provide all required info → STOP and ask again.**
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Purpose
|
|
65
|
+
|
|
66
|
+
Performs deep cross-repository analysis to understand business logic, architecture, API contracts, and implementation requirements. Generates structured documentation for both human developers and AI agents.
|
|
67
|
+
|
|
68
|
+
**Two Analysis Modes:**
|
|
69
|
+
|
|
70
|
+
**Mode A — Changes Analysis** (when base-branch provided):
|
|
71
|
+
- Analyze what changed FROM base-branch TO current branch
|
|
72
|
+
- Shows: additions, modifications, deletions
|
|
73
|
+
- Use for: reviewing PRs, understanding feature implementation
|
|
74
|
+
|
|
75
|
+
**Mode B — Current State Analysis** (when NO base-branch provided):
|
|
76
|
+
- Analyze ENTIRE codebase as it exists NOW
|
|
77
|
+
- Shows: existing functionality, architecture, patterns
|
|
78
|
+
- Use for: understanding system, formalizing features, exploring codebase
|
|
79
|
+
|
|
80
|
+
## Input
|
|
81
|
+
|
|
82
|
+
**Required context (ask before starting):**
|
|
83
|
+
- Source repository path + GitHub repo + branch to analyze
|
|
84
|
+
- Target repository path + current branch
|
|
85
|
+
- Analysis mode (A: changes from base-branch, or B: current state)
|
|
86
|
+
- Optional: GitHub Issue/PR URL, analysis focus keyword
|
|
87
|
+
|
|
88
|
+
**Prepared input:** Use `.metaproject/skills/gdskills/orchestration/feature-analyzer/analysis-request.template.md` to prepare structured input.
|
|
89
|
+
**Example:** See `.metaproject/skills/gdskills/orchestration/feature-analyzer/analysis-request.md` for a filled example.
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## When to Use
|
|
94
|
+
|
|
95
|
+
**Mode A — Changes Analysis:**
|
|
96
|
+
- "Analyze feature branch changes from main"
|
|
97
|
+
- "Review what changed in this PR"
|
|
98
|
+
- "Compare feature-x with develop branch"
|
|
99
|
+
|
|
100
|
+
**Mode B — Current State Analysis:**
|
|
101
|
+
- "Analyze everything related to variables in pipelines"
|
|
102
|
+
- "How does authentication work in this codebase?"
|
|
103
|
+
- "Document the pipeline execution flow"
|
|
104
|
+
- "Formalize the user management feature"
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## User-Specified Analysis Focus
|
|
109
|
+
|
|
110
|
+
When user specifies a focus area (e.g., "variables in pipelines"):
|
|
111
|
+
|
|
112
|
+
**Priority Boost Rules:**
|
|
113
|
+
- Files matching focus keywords → **Boost to P0** (even if normally P1/P2)
|
|
114
|
+
- Files referencing focus entities → **+1 priority level**
|
|
115
|
+
- Files in relevant directories → **+1 priority level**
|
|
116
|
+
|
|
117
|
+
**Keyword extraction:** parse main concept ("variables") + context ("pipelines") from user request.
|
|
118
|
+
|
|
119
|
+
> For detailed focus algorithm, bash search commands, and relationship mapping examples, see `SKILL.detail.md`.
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
## Workflow
|
|
124
|
+
|
|
125
|
+
Copy this checklist and track progress based on your Analysis Mode:
|
|
126
|
+
|
|
127
|
+
### Mode A: Changes Analysis (with base-branch)
|
|
128
|
+
|
|
129
|
+
```
|
|
130
|
+
Analysis Progress - Mode A (Changes):
|
|
131
|
+
🚫 PRE-STEP: VALIDATE CONTEXT
|
|
132
|
+
□ Source repository path: _____________
|
|
133
|
+
□ Target repository path: _____________
|
|
134
|
+
□ Branch to analyze: _____________
|
|
135
|
+
□ Base branch provided: _____________ (e.g., "main")
|
|
136
|
+
□ Analysis Mode: A (Changes)
|
|
137
|
+
□ User explicitly confirmed: _____________
|
|
138
|
+
□ Step 0.1: Check for existing analysis (cache lookup)
|
|
139
|
+
□ Step 0: Gather context (source, target, branch, base-branch, focus)
|
|
140
|
+
□ Step 1: GitHub MCP availability check
|
|
141
|
+
□ Step 2: Analyze GitHub issue/PR (if provided)
|
|
142
|
+
□ Step 3: Calculate BASE_SHA from merge-base (last branching point)
|
|
143
|
+
□ Step 4: Collect git changes (git diff BASE_SHA..HEAD)
|
|
144
|
+
□ Step 5: Categorize changed files: P0/P1/P2; apply focus boost
|
|
145
|
+
□ Step 6: Select 3-7 key files; Deep Dive — read selected files
|
|
146
|
+
□ Step 7: Analyze related tests
|
|
147
|
+
□ Step 8: Cross-repo dependency analysis
|
|
148
|
+
□ Step 9: Intermediate review (show user, wait for confirmation)
|
|
149
|
+
□ Step 10: Generate documentation
|
|
150
|
+
□ Step 11: Final validation and delivery
|
|
151
|
+
□ Step 12: Post-analysis (update doc registry)
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Mode B: Current State Analysis (without base-branch)
|
|
155
|
+
|
|
156
|
+
```
|
|
157
|
+
Analysis Progress - Mode B (Current State):
|
|
158
|
+
🚫 PRE-STEP: VALIDATE CONTEXT
|
|
159
|
+
□ Source repository path: _____________
|
|
160
|
+
□ Target repository path: _____________
|
|
161
|
+
□ Branch to analyze: _____________
|
|
162
|
+
□ Base branch: NOT PROVIDED (Mode B)
|
|
163
|
+
□ Analysis Mode: B (Current State)
|
|
164
|
+
□ User explicitly confirmed: _____________
|
|
165
|
+
□ Step 0.1: Check for existing analysis (cache lookup)
|
|
166
|
+
□ Step 0: Gather context (source, target, branch, focus)
|
|
167
|
+
□ Step 1: GitHub MCP availability check
|
|
168
|
+
□ Step 2: Analyze GitHub issue/PR (if provided)
|
|
169
|
+
□ Step 3: SKIP (no base-branch comparison)
|
|
170
|
+
□ Step 4: Search ENTIRE codebase for focus-related files
|
|
171
|
+
□ Step 5: Discover and categorize ALL relevant files: P0/P1/P2; apply focus boost
|
|
172
|
+
□ Step 6: Select 3-10 key files; Deep Dive — read to understand functionality
|
|
173
|
+
□ Step 6.5: FORMALIZE functionality (business logic, API contracts, state, data flow)
|
|
174
|
+
□ Step 7: Analyze tests (understand coverage)
|
|
175
|
+
□ Step 8: Cross-repo dependency analysis (find usages)
|
|
176
|
+
□ Step 9: Intermediate review with formalization
|
|
177
|
+
□ Step 10: Generate documentation (Feature Specification)
|
|
178
|
+
□ Step 11: Final validation and delivery
|
|
179
|
+
□ Step 12: Post-analysis
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Step 0: Context Gathering (MANDATORY)
|
|
185
|
+
|
|
186
|
+
**CRITICAL**: User MUST specify both Source and Target repositories.
|
|
187
|
+
|
|
188
|
+
**Ask all questions in one message:**
|
|
189
|
+
|
|
190
|
+
```
|
|
191
|
+
For cross-repository analysis, I need:
|
|
192
|
+
|
|
193
|
+
1. **SOURCE Repository** (where to analyze):
|
|
194
|
+
- Local path: ?
|
|
195
|
+
- GitHub repo (owner/repo): ?
|
|
196
|
+
- Branch to analyze: ?
|
|
197
|
+
|
|
198
|
+
2. **TARGET Repository** (where implementation will happen, if applicable):
|
|
199
|
+
- Local path: ?
|
|
200
|
+
- GitHub repo (owner/repo): ?
|
|
201
|
+
- Current branch: ?
|
|
202
|
+
- (Can be same as source for single-repo analysis)
|
|
203
|
+
|
|
204
|
+
3. **Analysis Mode**:
|
|
205
|
+
A. Changes Analysis — compare against base-branch (what changed)
|
|
206
|
+
- Base branch: ? (e.g., "main", "develop")
|
|
207
|
+
B. Current State Analysis — analyze codebase as-is (no base branch needed)
|
|
208
|
+
|
|
209
|
+
4. **Ticket/Reference** (GitHub Issue/PR URL, optional): ?
|
|
210
|
+
|
|
211
|
+
5. **Analysis Focus** (optional): specific area, e.g., "variables in pipelines", "auth changes"
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
**No default paths** — user must provide all locations explicitly.
|
|
215
|
+
|
|
216
|
+
**Before Step 1, verify context is complete:**
|
|
217
|
+
|
|
218
|
+
```
|
|
219
|
+
CONTEXT VALIDATION:
|
|
220
|
+
IF Source, Target, or Branch is missing → STOP, ask for missing info
|
|
221
|
+
IF Analysis mode not specified → ASK: Mode A (changes from base) or Mode B (current state)?
|
|
222
|
+
IF Mode A and no base branch → ASK: "What is the base branch?"
|
|
223
|
+
IF user says "just use current directory" → EXPLICITLY CONFIRM the path before proceeding
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
> For detailed decision tree and conversation example, see `SKILL.detail.md`.
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
## Step 1: GitHub MCP Availability Check
|
|
231
|
+
|
|
232
|
+
Before starting analysis:
|
|
233
|
+
- Try to fetch simple repo info via GitHub MCP
|
|
234
|
+
- If unavailable: notify user, offer Option A (restart MCP) or Option B (git-only, limited context)
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
## Step 2: GitHub Issue/PR Analysis (if provided)
|
|
239
|
+
|
|
240
|
+
- Fetch Issue/PR and all comments via GitHub MCP
|
|
241
|
+
- Understand business goal — what problem does the feature solve?
|
|
242
|
+
- Extract acceptance criteria and requirements
|
|
243
|
+
|
|
244
|
+
---
|
|
245
|
+
|
|
246
|
+
## Step 3: Git Changes Collection
|
|
247
|
+
|
|
248
|
+
**CRITICAL**: Find the last branching point (merge-base), NOT the current HEAD of the parent branch.
|
|
249
|
+
This ensures you analyze only feature branch changes, not unrelated changes from other merged PRs.
|
|
250
|
+
|
|
251
|
+
```bash
|
|
252
|
+
# Find branching point
|
|
253
|
+
BASE_SHA="$(git merge-base HEAD <parent_branch>)"
|
|
254
|
+
|
|
255
|
+
# Collect changes
|
|
256
|
+
git log --oneline "${BASE_SHA}..HEAD"
|
|
257
|
+
git diff --stat "${BASE_SHA}..HEAD"
|
|
258
|
+
git diff --name-status "${BASE_SHA}..HEAD"
|
|
259
|
+
git diff "${BASE_SHA}..HEAD"
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
> For the full BASE_SHA detection algorithm (with fallback logic for main/master/upstream), see `SKILL.detail.md`.
|
|
263
|
+
|
|
264
|
+
---
|
|
265
|
+
|
|
266
|
+
## Step 4: File Categorization and Prioritization
|
|
267
|
+
|
|
268
|
+
### Priority Levels
|
|
269
|
+
|
|
270
|
+
**P0 — MUST ANALYZE (Critical)**:
|
|
271
|
+
- API contracts: DTOs, interfaces, type definitions
|
|
272
|
+
- Public API endpoints (controllers, routes)
|
|
273
|
+
- Database schema changes, auth changes, config changes
|
|
274
|
+
|
|
275
|
+
**P1 — SHOULD ANALYZE (Important)**:
|
|
276
|
+
- Business logic (services, use cases)
|
|
277
|
+
- State management (stores, contexts)
|
|
278
|
+
- Error handling, validation logic
|
|
279
|
+
|
|
280
|
+
**P2 — NICE TO HAVE (Optional)**:
|
|
281
|
+
- Pure UI components, refactoring, tests, docs, package updates
|
|
282
|
+
|
|
283
|
+
### Standard File Selection
|
|
284
|
+
|
|
285
|
+
From P0: select up to 5 most important (sort by API contracts → business logic → infrastructure).
|
|
286
|
+
From P1: select up to 3 if P0 < 3. Skip P2 unless P0+P1 < 3.
|
|
287
|
+
|
|
288
|
+
When focus specified: boost files matching focus keywords to P0; select ALL focus-matching P0 files.
|
|
289
|
+
|
|
290
|
+
> For the full focus-based selection algorithm with examples, see `SKILL.detail.md`.
|
|
291
|
+
|
|
292
|
+
---
|
|
293
|
+
|
|
294
|
+
## Step 5: Deep Dive Protocol
|
|
295
|
+
|
|
296
|
+
**You CANNOT make conclusions from git diff alone. You MUST:**
|
|
297
|
+
|
|
298
|
+
1. **Read selected files**:
|
|
299
|
+
- Small/medium files: read completely
|
|
300
|
+
- Large files (> 500 lines): use outline/grep to locate relevant sections, then read only those ranges
|
|
301
|
+
2. **Understand context**: architecture role, dependencies, what depends on it
|
|
302
|
+
3. **Find and analyze tests**: look for matching test files, understand coverage
|
|
303
|
+
4. **Check rules compliance**: verify against `code-style-patterns.mdc`
|
|
304
|
+
|
|
305
|
+
---
|
|
306
|
+
|
|
307
|
+
## Step 6: Cross-Repository Analysis (Source → Target)
|
|
308
|
+
|
|
309
|
+
1. **Dependency search**: find all target files importing changed DTOs/APIs from source
|
|
310
|
+
2. **Contract divergence**: compare new source contracts with current target implementation
|
|
311
|
+
3. **Target deep dive**: read 2-3 key components that will need changes
|
|
312
|
+
4. **Target rules compliance**: check `.cursor/rules/core/*.mdc` in target repo
|
|
313
|
+
|
|
314
|
+
---
|
|
315
|
+
|
|
316
|
+
## Step 7: UI Analysis (if applicable)
|
|
317
|
+
|
|
318
|
+
Check `AGENTS.md` for available tools (`playwright-testing.mdc`, `storybook-guidelines.mdc`). Analyze visual regression requirements, component behavior changes, accessibility impact.
|
|
319
|
+
|
|
320
|
+
---
|
|
321
|
+
|
|
322
|
+
## Step 8: Integration with Other Skills
|
|
323
|
+
|
|
324
|
+
Before finalizing, consider running:
|
|
325
|
+
- `skills/code-style-review` — if architecture changes detected
|
|
326
|
+
- `skills/code-ai-review` — for self-validation of findings
|
|
327
|
+
- `skills/code-mobx-store-review` — if store changes found
|
|
328
|
+
|
|
329
|
+
---
|
|
330
|
+
|
|
331
|
+
## Step 9: Intermediate Review (CRITICAL)
|
|
332
|
+
|
|
333
|
+
After completing analysis, **show user** before generating full report:
|
|
334
|
+
|
|
335
|
+
```
|
|
336
|
+
═══════════════════════════════════════════════
|
|
337
|
+
INTERMEDIATE ANALYSIS SUMMARY
|
|
338
|
+
═══════════════════════════════════════════════
|
|
339
|
+
|
|
340
|
+
Scope:
|
|
341
|
+
- Source: [repo] @ [branch]
|
|
342
|
+
- Target: [repo] @ [branch]
|
|
343
|
+
- Files analyzed: [N] (P0: [N], P1: [N])
|
|
344
|
+
- BASE_SHA: [sha]
|
|
345
|
+
|
|
346
|
+
Key Findings:
|
|
347
|
+
1. [Brief finding 1]
|
|
348
|
+
2. [Brief finding 2]
|
|
349
|
+
|
|
350
|
+
Cross-Repo Impact:
|
|
351
|
+
- [ ] Breaking API changes detected
|
|
352
|
+
- [ ] New endpoints to implement
|
|
353
|
+
- [ ] DTO changes affecting frontend
|
|
354
|
+
|
|
355
|
+
Estimated Complexity: [Low/Medium/High]
|
|
356
|
+
|
|
357
|
+
Continue to full documentation? [Y/n]
|
|
358
|
+
═══════════════════════════════════════════════
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
Wait for user confirmation before generating full report.
|
|
362
|
+
|
|
363
|
+
---
|
|
364
|
+
|
|
365
|
+
## Step 10: Documentation Generation
|
|
366
|
+
|
|
367
|
+
### Output Structure
|
|
368
|
+
|
|
369
|
+
```
|
|
370
|
+
<DOCS_ROOT>/analysis/<feature-name>-<YYYY-MM-DD>/
|
|
371
|
+
├── README.md # Index and navigation
|
|
372
|
+
├── report/
|
|
373
|
+
│ ├── en/report.md # English for humans
|
|
374
|
+
│ ├── ru/report.md # Russian for humans
|
|
375
|
+
│ └── ai/report.md # Structured for AI agents (EN)
|
|
376
|
+
├── plans/
|
|
377
|
+
│ ├── en/implementation-plan.md
|
|
378
|
+
│ ├── ru/implementation-plan.md
|
|
379
|
+
│ └── ai/implementation-plan.md
|
|
380
|
+
├── contracts/
|
|
381
|
+
│ ├── api-changes.md # API contract diff
|
|
382
|
+
│ └── dto-comparison.md # Before/after DTOs
|
|
383
|
+
└── metrics/
|
|
384
|
+
└── analysis-metrics.md # Analysis metadata
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
The AI-readable format (`report/ai/`, `plans/ai/`) uses Gherkin-style scenarios.
|
|
388
|
+
> For full Gherkin output format and syntax rules, see `SKILL.detail.md`.
|
|
389
|
+
|
|
390
|
+
---
|
|
391
|
+
|
|
392
|
+
## Step 11: Content Requirements
|
|
393
|
+
|
|
394
|
+
- Every claim MUST reference specific code: `[filename.ts:L123](file:///absolute/path#L123)`
|
|
395
|
+
- Minimum 3 code examples per report
|
|
396
|
+
- Mermaid diagrams for architecture, tables for DTO changes, flowcharts for data flow
|
|
397
|
+
- Multi-language: `en/` for humans, `ru/` for humans, `ai/` for AI agents
|
|
398
|
+
|
|
399
|
+
---
|
|
400
|
+
|
|
401
|
+
## Step 12: Error Handling
|
|
402
|
+
|
|
403
|
+
| Situation | Fallback |
|
|
404
|
+
|-----------|----------|
|
|
405
|
+
| GitHub MCP unavailable | Use git history only; notify user |
|
|
406
|
+
| No tests found | Note risk, recommend coverage |
|
|
407
|
+
| Cannot determine BASE_SHA | Ask user for parent branch, or use `--first-parent` estimate |
|
|
408
|
+
| Empty diff | Check staged (`--cached`), untracked (`git status`), wrong branch |
|
|
409
|
+
| Cross-repo access denied | Ask for manual path, or do source-only analysis |
|
|
410
|
+
|
|
411
|
+
---
|
|
412
|
+
|
|
413
|
+
## Step 13: Analysis Metrics
|
|
414
|
+
|
|
415
|
+
Track and include in `metrics/analysis-metrics.md`:
|
|
416
|
+
- Duration, files analyzed (P0/P1/P2), lines changed
|
|
417
|
+
- Cross-repo dependencies, API endpoints changed, DTOs modified
|
|
418
|
+
- Breaking changes count, test coverage %, risk level
|
|
419
|
+
- Complexity score: `(P0×3) + (P1×2) + (P2×1) + (breaking_changes×5)` — 0-10 low, 11-25 medium, 26+ high
|
|
420
|
+
|
|
421
|
+
---
|
|
422
|
+
|
|
423
|
+
## Step 14: Validation Checklist
|
|
424
|
+
|
|
425
|
+
Before finalizing:
|
|
426
|
+
- [ ] All P0 files analyzed completely
|
|
427
|
+
- [ ] Target repository analyzed (if cross-repo)
|
|
428
|
+
- [ ] Minimum 3 code examples included
|
|
429
|
+
- [ ] All file references include line numbers
|
|
430
|
+
- [ ] API contracts documented
|
|
431
|
+
- [ ] Breaking changes clearly identified
|
|
432
|
+
- [ ] Implementation plan provided
|
|
433
|
+
- [ ] Metrics calculated
|
|
434
|
+
- [ ] User approved intermediate review
|
|
435
|
+
|
|
436
|
+
---
|
|
437
|
+
|
|
438
|
+
## Step 15: Post-Analysis
|
|
439
|
+
|
|
440
|
+
Follow `documentation-management.mdc`: update `<DOCS_ROOT>/readme.md`, add entry to analysis index, tag with keywords.
|
|
441
|
+
|
|
442
|
+
---
|
|
443
|
+
|
|
444
|
+
## Rules and Guidelines
|
|
445
|
+
|
|
446
|
+
1. **Always follow** `documentation-management.mdc` for doc structure
|
|
447
|
+
2. **Always check** `code-style-patterns.mdc` for compliance
|
|
448
|
+
3. **Always use** AGENTS.md to discover available skills and tools
|
|
449
|
+
4. **Never assume** — ask user when unclear
|
|
450
|
+
5. **Never skip** intermediate review for complex analyses (P0 files > 3)
|
|
451
|
+
6. **Always provide** concrete, actionable recommendations
|
|
452
|
+
7. **Always include** both human-readable and AI-readable formats
|
|
453
|
+
|
|
454
|
+
---
|
|
455
|
+
|
|
456
|
+
## Success Criteria
|
|
457
|
+
|
|
458
|
+
Analysis is successful when:
|
|
459
|
+
- Business logic is fully understood and documented
|
|
460
|
+
- API contracts are clearly specified
|
|
461
|
+
- Breaking changes are identified
|
|
462
|
+
- Implementation plan is actionable
|
|
463
|
+
- User confirms understanding via intermediate review
|
|
464
|
+
- All P0 files analyzed completely
|
|
465
|
+
|
|
466
|
+
---
|
|
467
|
+
|
|
468
|
+
> **Extended documentation**: detailed analysis mode descriptions, file selection algorithms, Gherkin output format, cache/existing-report handling, and full examples are in `SKILL.detail.md`.
|