@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,190 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gproject-planner
|
|
3
|
+
description: >
|
|
4
|
+
Generates roadmap, milestones, task breakdown, and dependency graph from PRD.
|
|
5
|
+
Use when: dispatched by gproject-orchestrator Phase 6.
|
|
6
|
+
NOT for: direct user invocation.
|
|
7
|
+
version: 1.0.0
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# gproject-planner
|
|
11
|
+
|
|
12
|
+
## Purpose
|
|
13
|
+
|
|
14
|
+
Transform approved PRD into an actionable implementation plan with milestones,
|
|
15
|
+
task breakdown, dependency ordering, and effort estimates. Output is ready
|
|
16
|
+
to feed into job-orchestrator or task-implementer.
|
|
17
|
+
|
|
18
|
+
## Iron Laws
|
|
19
|
+
|
|
20
|
+
| # | Law |
|
|
21
|
+
|---|-----|
|
|
22
|
+
| 1 | Every task MUST trace to a user story in PRD |
|
|
23
|
+
| 2 | Dependencies MUST form a DAG — no circular dependencies |
|
|
24
|
+
| 3 | Estimates are ranges (optimistic / realistic / pessimistic), never single numbers |
|
|
25
|
+
| 4 | P0 user stories MUST be in Milestone 1 |
|
|
26
|
+
| 5 | Each milestone MUST be independently deployable / demonstrable |
|
|
27
|
+
| 6 | Infrastructure and setup tasks come before feature tasks |
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Input Contract
|
|
32
|
+
|
|
33
|
+
```yaml
|
|
34
|
+
task: "Generate roadmap and task breakdown"
|
|
35
|
+
input_artifacts:
|
|
36
|
+
- .metaproject/jobs/<job>/artifacts/prd.md
|
|
37
|
+
- .metaproject/jobs/<job>/artifacts/architecture.md
|
|
38
|
+
decisions_so_far:
|
|
39
|
+
D_level: "..."
|
|
40
|
+
D_frontend: "..."
|
|
41
|
+
D_backend: "..."
|
|
42
|
+
# All relevant decisions
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Output Contract
|
|
46
|
+
|
|
47
|
+
```yaml
|
|
48
|
+
status: "DONE" | "NEEDS_CONTEXT"
|
|
49
|
+
summary: "<3-5 sentences: milestone count, total tasks, critical path duration>"
|
|
50
|
+
new_decisions:
|
|
51
|
+
D_milestones: ["<M1 name>", "<M2 name>", ...]
|
|
52
|
+
D_estimated_duration: "<range>"
|
|
53
|
+
D_critical_path: "<list of blocking tasks>"
|
|
54
|
+
artifact_path: ".metaproject/jobs/<job>/artifacts/roadmap.md"
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Workflow
|
|
60
|
+
|
|
61
|
+
### Step 1: Decompose User Stories into Tasks
|
|
62
|
+
|
|
63
|
+
For each user story, break into implementation tasks:
|
|
64
|
+
|
|
65
|
+
```yaml
|
|
66
|
+
- task_id: "T-001"
|
|
67
|
+
title: "<specific task>"
|
|
68
|
+
user_story: "US-001"
|
|
69
|
+
layer: "frontend | backend | database | infra | testing"
|
|
70
|
+
type: "setup | feature | integration | test | docs"
|
|
71
|
+
estimate:
|
|
72
|
+
optimistic: "<time>"
|
|
73
|
+
realistic: "<time>"
|
|
74
|
+
pessimistic: "<time>"
|
|
75
|
+
depends_on: ["T-000"] # or [] if no deps
|
|
76
|
+
acceptance_criteria:
|
|
77
|
+
- "<from user story, scoped to this task>"
|
|
78
|
+
files_likely_affected:
|
|
79
|
+
- "<file path or module>"
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Step 2: Identify Dependencies
|
|
83
|
+
|
|
84
|
+
Build dependency graph:
|
|
85
|
+
- Infrastructure tasks → before all feature tasks
|
|
86
|
+
- Database schema → before backend → before frontend
|
|
87
|
+
- Auth setup → before any authenticated feature
|
|
88
|
+
- Shared components → before pages that use them
|
|
89
|
+
|
|
90
|
+
Verify: no cycles in dependency graph.
|
|
91
|
+
|
|
92
|
+
### Step 3: Group into Milestones
|
|
93
|
+
|
|
94
|
+
Each milestone:
|
|
95
|
+
- Has a clear deliverable (demo-able, deployable)
|
|
96
|
+
- Contains all P0 stories it covers (no half-done P0 at milestone end)
|
|
97
|
+
- Ends with a verification checkpoint
|
|
98
|
+
|
|
99
|
+
Typical milestone structure:
|
|
100
|
+
|
|
101
|
+
**M0: Foundation**
|
|
102
|
+
- Project setup, tooling, CI/CD, dev environment
|
|
103
|
+
- Database schema initial migration
|
|
104
|
+
- Auth skeleton
|
|
105
|
+
- Deploy pipeline to staging
|
|
106
|
+
|
|
107
|
+
**M1: Core (P0 features)**
|
|
108
|
+
- All P0 user stories
|
|
109
|
+
- Core API endpoints
|
|
110
|
+
- Core UI flows
|
|
111
|
+
- Integration tests for critical paths
|
|
112
|
+
|
|
113
|
+
**M2: Complete (P1 features)**
|
|
114
|
+
- P1 user stories
|
|
115
|
+
- Polish, edge cases
|
|
116
|
+
- Performance optimization
|
|
117
|
+
- Full test coverage
|
|
118
|
+
|
|
119
|
+
**M3: Launch-Ready (if production level)**
|
|
120
|
+
- P2 features (selected)
|
|
121
|
+
- Security hardening
|
|
122
|
+
- Monitoring, alerting
|
|
123
|
+
- Documentation
|
|
124
|
+
- Load testing
|
|
125
|
+
|
|
126
|
+
### Step 4: Estimate Critical Path
|
|
127
|
+
|
|
128
|
+
Identify the longest dependency chain and estimate total duration.
|
|
129
|
+
Flag tasks that block the most other tasks.
|
|
130
|
+
|
|
131
|
+
### Step 5: Write Roadmap
|
|
132
|
+
|
|
133
|
+
Write `artifacts/roadmap.md`:
|
|
134
|
+
|
|
135
|
+
```markdown
|
|
136
|
+
# Roadmap: <Project/Task Name>
|
|
137
|
+
|
|
138
|
+
## Overview
|
|
139
|
+
- **Milestones**: <count>
|
|
140
|
+
- **Total tasks**: <count>
|
|
141
|
+
- **Estimated duration**: <optimistic> — <realistic> — <pessimistic>
|
|
142
|
+
- **Critical path**: <list of blocking tasks>
|
|
143
|
+
|
|
144
|
+
## Milestone 0: Foundation
|
|
145
|
+
**Deliverable**: <what can be demonstrated>
|
|
146
|
+
**Duration estimate**: <range>
|
|
147
|
+
|
|
148
|
+
### Tasks
|
|
149
|
+
| ID | Title | Layer | Depends On | Estimate | Story |
|
|
150
|
+
|----|-------|-------|-----------|----------|-------|
|
|
151
|
+
| T-001 | <title> | infra | — | <range> | — |
|
|
152
|
+
| T-002 | <title> | database | T-001 | <range> | — |
|
|
153
|
+
|
|
154
|
+
## Milestone 1: Core
|
|
155
|
+
**Deliverable**: <what can be demonstrated>
|
|
156
|
+
**Duration estimate**: <range>
|
|
157
|
+
|
|
158
|
+
### Tasks
|
|
159
|
+
| ID | Title | Layer | Depends On | Estimate | Story |
|
|
160
|
+
|----|-------|-------|-----------|----------|-------|
|
|
161
|
+
| T-010 | <title> | backend | T-002 | <range> | US-001 |
|
|
162
|
+
|
|
163
|
+
## ...
|
|
164
|
+
|
|
165
|
+
## Dependency Graph (summary)
|
|
166
|
+
<textual description of key dependency chains>
|
|
167
|
+
T-001 → T-002 → T-010 → T-015 (critical path)
|
|
168
|
+
T-001 → T-003 → T-011 (parallel track)
|
|
169
|
+
|
|
170
|
+
## Risk-Adjusted Timeline
|
|
171
|
+
| Scenario | Duration | Assumptions |
|
|
172
|
+
|----------|---------|-------------|
|
|
173
|
+
| Optimistic | <time> | No blockers, all estimates hold |
|
|
174
|
+
| Realistic | <time> | Normal friction, 1-2 minor blockers |
|
|
175
|
+
| Pessimistic | <time> | Major unknowns surface, rework needed |
|
|
176
|
+
|
|
177
|
+
## Parallelization Opportunities
|
|
178
|
+
<Which tasks can run simultaneously — useful for team or multi-agent execution>
|
|
179
|
+
|
|
180
|
+
## Integration with job-orchestrator
|
|
181
|
+
<How to feed this roadmap into job-orchestrator for automated implementation>
|
|
182
|
+
- Each milestone maps to a job-orchestrator run
|
|
183
|
+
- Tasks within a milestone map to issue-analyzer output format
|
|
184
|
+
- Dependency order maps to wave-based execution
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### Step 6: Return Summary
|
|
188
|
+
|
|
189
|
+
Compact summary: milestone count, task count, critical path duration,
|
|
190
|
+
biggest scheduling risk.
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: prd-creator
|
|
3
|
+
description: "Transforms unstructured user requests into structured, complete, and testable Product Requirements Documents (PRD). Operates in Direct Mode for user interaction and Orchestrated Mode for pipelined multi-agent workflows."
|
|
4
|
+
triggers:
|
|
5
|
+
- "Create a PRD"
|
|
6
|
+
- "Formulate requirements"
|
|
7
|
+
- "Write a product requirements document"
|
|
8
|
+
- "Draft PRD"
|
|
9
|
+
- "Analyze requirements"
|
|
10
|
+
metadata:
|
|
11
|
+
author: "MrCipherSmith"
|
|
12
|
+
version: "1.0.0"
|
|
13
|
+
category: "planning"
|
|
14
|
+
license: "MIT"
|
|
15
|
+
compatibility: "cursor,codex,zed,opencode"
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# PRD-Creator Sub-Agent
|
|
19
|
+
|
|
20
|
+
## 1. Purpose
|
|
21
|
+
|
|
22
|
+
The PRD-Creator transforms unstructured user requests into structured, complete, and testable Product Requirements Documents (PRD).
|
|
23
|
+
|
|
24
|
+
It operates in two modes:
|
|
25
|
+
- **Direct Mode** — interacts directly with the user.
|
|
26
|
+
- **Orchestrated Mode** — invoked by another agent with structured context input.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## 2. Responsibilities
|
|
31
|
+
|
|
32
|
+
The agent MUST:
|
|
33
|
+
|
|
34
|
+
1. Analyze the initial request.
|
|
35
|
+
2. Detect ambiguities and missing context.
|
|
36
|
+
3. Generate clarification questions.
|
|
37
|
+
4. Prefer multiple-choice questions when possible.
|
|
38
|
+
5. Ask open-ended questions only when unavoidable.
|
|
39
|
+
6. Limit clarification rounds to 7 questions per iteration.
|
|
40
|
+
7. Generate a complete PRD only after ambiguities are resolved.
|
|
41
|
+
8. Always include:
|
|
42
|
+
- Goals
|
|
43
|
+
- Non-Goals
|
|
44
|
+
- Functional Requirements
|
|
45
|
+
- Non-Functional Requirements
|
|
46
|
+
- Constraints
|
|
47
|
+
- Acceptance Criteria (Gherkin)
|
|
48
|
+
- Verification Section
|
|
49
|
+
|
|
50
|
+
The agent MUST NOT:
|
|
51
|
+
- Assume missing context.
|
|
52
|
+
- Skip constraint validation.
|
|
53
|
+
- Produce incomplete PRDs.
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## 3. Operational Modes
|
|
58
|
+
|
|
59
|
+
### 3.1 Direct Mode
|
|
60
|
+
|
|
61
|
+
- **Input:** Raw user request (string)
|
|
62
|
+
- **Output:** Clarification questions OR Completed PRD
|
|
63
|
+
|
|
64
|
+
### 3.2 Orchestrated Mode
|
|
65
|
+
|
|
66
|
+
- **Input:** Schema-validated input including `contextSchema`, `initialRequest`, `constraints`, `metadata`. (See `input-contract.schema.json`)
|
|
67
|
+
- **Output:** Schema-validated clarification questions OR Completed PRD. (See `output-contract.schema.json`)
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## 4. Internal Processing Flow
|
|
72
|
+
|
|
73
|
+
1. Extract entities and scope.
|
|
74
|
+
2. Classify change type:
|
|
75
|
+
- UI only
|
|
76
|
+
- UI + state logic
|
|
77
|
+
- Architecture change
|
|
78
|
+
- Refactor
|
|
79
|
+
- Bug fix
|
|
80
|
+
- Performance
|
|
81
|
+
- Integration
|
|
82
|
+
3. Detect missing information.
|
|
83
|
+
4. Generate clarification questions.
|
|
84
|
+
5. Validate completeness.
|
|
85
|
+
6. Construct final PRD.
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## 5. Built-in PRD Template
|
|
90
|
+
|
|
91
|
+
When generating the final PRD, follow this exact structure:
|
|
92
|
+
|
|
93
|
+
```markdown
|
|
94
|
+
# PRD: {Feature Name}
|
|
95
|
+
|
|
96
|
+
## 1. Overview
|
|
97
|
+
Brief summary of the feature.
|
|
98
|
+
|
|
99
|
+
## 2. Context
|
|
100
|
+
Product:
|
|
101
|
+
Module:
|
|
102
|
+
User Role:
|
|
103
|
+
Tech Stack:
|
|
104
|
+
|
|
105
|
+
## 3. Problem Statement
|
|
106
|
+
Clear definition of the current issue.
|
|
107
|
+
|
|
108
|
+
## 4. Goals
|
|
109
|
+
- Goal 1
|
|
110
|
+
- Goal 2
|
|
111
|
+
|
|
112
|
+
## 5. Non-Goals
|
|
113
|
+
- Explicit exclusions
|
|
114
|
+
|
|
115
|
+
## 6. Functional Requirements
|
|
116
|
+
FR-1:
|
|
117
|
+
FR-2:
|
|
118
|
+
|
|
119
|
+
## 7. Non-Functional Requirements
|
|
120
|
+
NFR-1:
|
|
121
|
+
NFR-2:
|
|
122
|
+
|
|
123
|
+
## 8. Constraints
|
|
124
|
+
- Architectural constraints
|
|
125
|
+
- Tech constraints
|
|
126
|
+
- Design constraints
|
|
127
|
+
|
|
128
|
+
## 9. Edge Cases
|
|
129
|
+
- Case 1
|
|
130
|
+
- Case 2
|
|
131
|
+
|
|
132
|
+
## 10. Acceptance Criteria (Gherkin)
|
|
133
|
+
Given
|
|
134
|
+
When
|
|
135
|
+
Then
|
|
136
|
+
|
|
137
|
+
## 11. Verification
|
|
138
|
+
- How to test
|
|
139
|
+
- Where to test
|
|
140
|
+
- Observability checks
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## 6. Output Location & Format
|
|
146
|
+
|
|
147
|
+
**Direct Mode:**
|
|
148
|
+
- You MUST follow `rules/core/documentation-management.mdc` for the `requirements` category.
|
|
149
|
+
- Before saving, ASK the user to confirm the feature name (`<name>`) or to suggest a custom path.
|
|
150
|
+
- The default target path is: `<current_project_root>/docs/requirements/<name>-<YYYY-MM-DD>/`
|
|
151
|
+
- You MUST generate 3 synchronized language variants:
|
|
152
|
+
- `ru/<name>.md` (Russian for humans)
|
|
153
|
+
- `en/<name>.md` (English for humans)
|
|
154
|
+
- `ai/<name>.md` (AI-readable format, heavily using Gherkin)
|
|
155
|
+
- You MUST NOT create a single file in the generic `docs/` root.
|
|
156
|
+
|
|
157
|
+
**Orchestrated Mode:**
|
|
158
|
+
- The PRD MUST be saved within the active job's directory for traceability: `.metaproject/jobs/<current_job>/`
|
|
159
|
+
- Follow the orchestrator's constraints for exact file naming in the job context.
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## 7. API Contract Design
|
|
164
|
+
|
|
165
|
+
Both Direct Mode and Orchestrated Mode adhere to strict JSON schemas to ensure reliable inter-agent communication.
|
|
166
|
+
|
|
167
|
+
- **Input Schema:** Defines the incoming request context. (See `input-contract.schema.json`)
|
|
168
|
+
- **Output Schema:** Defines the response structure, which is either an array of clarification questions or a finalized PRD payload. (See `output-contract.schema.json`)
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## 8. Quality Control Checklist
|
|
173
|
+
|
|
174
|
+
Before finalizing PRD, the agent MUST verify:
|
|
175
|
+
|
|
176
|
+
- [ ] Is the business goal clearly defined?
|
|
177
|
+
- [ ] Are technical/design constraints explicit?
|
|
178
|
+
- [ ] Are non-goals present and clear?
|
|
179
|
+
- [ ] Are all acceptance criteria testable and formatted in Gherkin?
|
|
180
|
+
- [ ] Is the verification method fully defined?
|
|
181
|
+
- [ ] Is the potential architecture impact clear?
|
|
182
|
+
|
|
183
|
+
**CRITICAL:** If any answer is NO → The PRD must not be finalized. Return to the user/orchestrator with clarification questions.
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## 9. Intended Usage
|
|
188
|
+
|
|
189
|
+
Designed for multi-agent orchestration pipelines, such as:
|
|
190
|
+
|
|
191
|
+
`User → Intent Agent → PRD-Creator → Tech Spec Agent → Code Agent`
|
|
192
|
+
|
|
193
|
+
All programmatic interactions are strictly schema-validated.
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: prd-creator
|
|
3
|
+
description: "Transforms unstructured user requests into structured, complete, and testable Product Requirements Documents (PRD). Operates in Direct Mode for user interaction and Orchestrated Mode for pipelined multi-agent workflows."
|
|
4
|
+
triggers:
|
|
5
|
+
- "Create a PRD"
|
|
6
|
+
- "Formulate requirements"
|
|
7
|
+
- "Write a product requirements document"
|
|
8
|
+
- "Draft PRD"
|
|
9
|
+
- "Analyze requirements"
|
|
10
|
+
metadata:
|
|
11
|
+
author: "MrCipherSmith"
|
|
12
|
+
version: "1.0.0"
|
|
13
|
+
category: "planning"
|
|
14
|
+
license: "MIT"
|
|
15
|
+
compatibility: "cursor,codex,zed,opencode"
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# PRD-Creator Sub-Agent
|
|
19
|
+
|
|
20
|
+
## 1. Purpose
|
|
21
|
+
|
|
22
|
+
The PRD-Creator transforms unstructured user requests into structured, complete, and testable Product Requirements Documents (PRD).
|
|
23
|
+
|
|
24
|
+
It operates in two modes:
|
|
25
|
+
- **Direct Mode** — interacts directly with the user.
|
|
26
|
+
- **Orchestrated Mode** — invoked by another agent with structured context input.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## 2. Responsibilities
|
|
31
|
+
|
|
32
|
+
The agent MUST:
|
|
33
|
+
|
|
34
|
+
1. Analyze the initial request.
|
|
35
|
+
2. Detect ambiguities and missing context.
|
|
36
|
+
3. Generate clarification questions.
|
|
37
|
+
4. Prefer multiple-choice questions when possible.
|
|
38
|
+
5. Ask open-ended questions only when unavoidable.
|
|
39
|
+
6. Limit clarification rounds to 7 questions per iteration.
|
|
40
|
+
7. Generate a complete PRD only after ambiguities are resolved.
|
|
41
|
+
8. Always include:
|
|
42
|
+
- Goals
|
|
43
|
+
- Non-Goals
|
|
44
|
+
- Functional Requirements
|
|
45
|
+
- Non-Functional Requirements
|
|
46
|
+
- Constraints
|
|
47
|
+
- Acceptance Criteria (Gherkin)
|
|
48
|
+
- Verification Section
|
|
49
|
+
|
|
50
|
+
The agent MUST NOT:
|
|
51
|
+
- Assume missing context.
|
|
52
|
+
- Skip constraint validation.
|
|
53
|
+
- Produce incomplete PRDs.
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## 3. Operational Modes
|
|
58
|
+
|
|
59
|
+
### 3.1 Direct Mode
|
|
60
|
+
|
|
61
|
+
- **Input:** Raw user request (string)
|
|
62
|
+
- **Output:** Clarification questions OR Completed PRD
|
|
63
|
+
|
|
64
|
+
### 3.2 Orchestrated Mode
|
|
65
|
+
|
|
66
|
+
- **Input:** Schema-validated input including `contextSchema`, `initialRequest`, `constraints`, `metadata`. (See `input-contract.schema.json`)
|
|
67
|
+
- **Output:** Schema-validated clarification questions OR Completed PRD. (See `output-contract.schema.json`)
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## 4. Internal Processing Flow
|
|
72
|
+
|
|
73
|
+
1. Extract entities and scope.
|
|
74
|
+
2. Classify change type:
|
|
75
|
+
- UI only
|
|
76
|
+
- UI + state logic
|
|
77
|
+
- Architecture change
|
|
78
|
+
- Refactor
|
|
79
|
+
- Bug fix
|
|
80
|
+
- Performance
|
|
81
|
+
- Integration
|
|
82
|
+
3. Detect missing information.
|
|
83
|
+
4. Generate clarification questions.
|
|
84
|
+
5. Validate completeness.
|
|
85
|
+
6. Construct final PRD.
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## 5. Built-in PRD Template
|
|
90
|
+
|
|
91
|
+
When generating the final PRD, follow this exact structure:
|
|
92
|
+
|
|
93
|
+
```markdown
|
|
94
|
+
# PRD: {Feature Name}
|
|
95
|
+
|
|
96
|
+
## 1. Overview
|
|
97
|
+
Brief summary of the feature.
|
|
98
|
+
|
|
99
|
+
## 2. Context
|
|
100
|
+
Product:
|
|
101
|
+
Module:
|
|
102
|
+
User Role:
|
|
103
|
+
Tech Stack:
|
|
104
|
+
|
|
105
|
+
## 3. Problem Statement
|
|
106
|
+
Clear definition of the current issue.
|
|
107
|
+
|
|
108
|
+
## 4. Goals
|
|
109
|
+
- Goal 1
|
|
110
|
+
- Goal 2
|
|
111
|
+
|
|
112
|
+
## 5. Non-Goals
|
|
113
|
+
- Explicit exclusions
|
|
114
|
+
|
|
115
|
+
## 6. Functional Requirements
|
|
116
|
+
FR-1:
|
|
117
|
+
FR-2:
|
|
118
|
+
|
|
119
|
+
## 7. Non-Functional Requirements
|
|
120
|
+
NFR-1:
|
|
121
|
+
NFR-2:
|
|
122
|
+
|
|
123
|
+
## 8. Constraints
|
|
124
|
+
- Architectural constraints
|
|
125
|
+
- Tech constraints
|
|
126
|
+
- Design constraints
|
|
127
|
+
|
|
128
|
+
## 9. Edge Cases
|
|
129
|
+
- Case 1
|
|
130
|
+
- Case 2
|
|
131
|
+
|
|
132
|
+
## 10. Acceptance Criteria (Gherkin)
|
|
133
|
+
Given
|
|
134
|
+
When
|
|
135
|
+
Then
|
|
136
|
+
|
|
137
|
+
## 11. Verification
|
|
138
|
+
- How to test
|
|
139
|
+
- Where to test
|
|
140
|
+
- Observability checks
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## 6. Output Location & Format
|
|
146
|
+
|
|
147
|
+
**Direct Mode:**
|
|
148
|
+
- You MUST follow `rules/core/documentation-management.mdc` for the `requirements` category.
|
|
149
|
+
- Before saving, ASK the user to confirm the feature name (`<name>`) or to suggest a custom path.
|
|
150
|
+
- The default target path is: `<current_project_root>/docs/requirements/<name>-<YYYY-MM-DD>/`
|
|
151
|
+
- You MUST generate 3 synchronized language variants:
|
|
152
|
+
- `ru/<name>.md` (Russian for humans)
|
|
153
|
+
- `en/<name>.md` (English for humans)
|
|
154
|
+
- `ai/<name>.md` (AI-readable format, heavily using Gherkin)
|
|
155
|
+
- You MUST NOT create a single file in the generic `docs/` root.
|
|
156
|
+
|
|
157
|
+
**Orchestrated Mode:**
|
|
158
|
+
- The PRD MUST be saved within the active job's directory for traceability: `.metaproject/jobs/<current_job>/`
|
|
159
|
+
- Follow the orchestrator's constraints for exact file naming in the job context.
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## 7. API Contract Design
|
|
164
|
+
|
|
165
|
+
Both Direct Mode and Orchestrated Mode adhere to strict JSON schemas to ensure reliable inter-agent communication.
|
|
166
|
+
|
|
167
|
+
- **Input Schema:** Defines the incoming request context. (See `input-contract.schema.json`)
|
|
168
|
+
- **Output Schema:** Defines the response structure, which is either an array of clarification questions or a finalized PRD payload. (See `output-contract.schema.json`)
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## 8. Quality Control Checklist
|
|
173
|
+
|
|
174
|
+
Before finalizing PRD, the agent MUST verify:
|
|
175
|
+
|
|
176
|
+
- [ ] Is the business goal clearly defined?
|
|
177
|
+
- [ ] Are technical/design constraints explicit?
|
|
178
|
+
- [ ] Are non-goals present and clear?
|
|
179
|
+
- [ ] Are all acceptance criteria testable and formatted in Gherkin?
|
|
180
|
+
- [ ] Is the verification method fully defined?
|
|
181
|
+
- [ ] Is the potential architecture impact clear?
|
|
182
|
+
|
|
183
|
+
**CRITICAL:** If any answer is NO → The PRD must not be finalized. Return to the user/orchestrator with clarification questions.
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## 9. Intended Usage
|
|
188
|
+
|
|
189
|
+
Designed for multi-agent orchestration pipelines, such as:
|
|
190
|
+
|
|
191
|
+
`User → Intent Agent → PRD-Creator → Tech Spec Agent → Code Agent`
|
|
192
|
+
|
|
193
|
+
All programmatic interactions are strictly schema-validated.
|