@danmoisan/drm-copilot-mcp 0.0.1
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 +50 -0
- package/out/mcp-server.js +17323 -0
- package/package.json +36 -0
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/MEMORY.md +3 -0
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_repo_root_is_source_of_truth.md +11 -0
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_vsce_verify_package_location.md +19 -0
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/project_extension_location.md +11 -0
- package/resources/claude-customizations/.claude/agent-memory/prd-feature/MEMORY.md +1 -0
- package/resources/claude-customizations/.claude/agent-memory/prd-feature/project_push_down_pattern.md +13 -0
- package/resources/claude-customizations/.claude/agent-memory/task-researcher/MEMORY.md +3 -0
- package/resources/claude-customizations/.claude/agent-memory/task-researcher/project_push_down_claude_dir.md +11 -0
- package/resources/claude-customizations/.claude/agents/atomic-executor.md +135 -0
- package/resources/claude-customizations/.claude/agents/atomic-planner.md +71 -0
- package/resources/claude-customizations/.claude/agents/csharp-typed-engineer.md +69 -0
- package/resources/claude-customizations/.claude/agents/epic-review.md +40 -0
- package/resources/claude-customizations/.claude/agents/feature-review.md +136 -0
- package/resources/claude-customizations/.claude/agents/orchestrator.md +83 -0
- package/resources/claude-customizations/.claude/agents/powershell-typed-engineer.md +80 -0
- package/resources/claude-customizations/.claude/agents/prd-feature.md +42 -0
- package/resources/claude-customizations/.claude/agents/python-typed-engineer.md +72 -0
- package/resources/claude-customizations/.claude/agents/staged-review.md +41 -0
- package/resources/claude-customizations/.claude/agents/status-updater.md +41 -0
- package/resources/claude-customizations/.claude/agents/task-researcher.md +81 -0
- package/resources/claude-customizations/.claude/agents/typescript-engineer.md +24 -0
- package/resources/claude-customizations/.claude/hooks/check-powershell-test-purity.ps1 +111 -0
- package/resources/claude-customizations/.claude/hooks/check-python-test-purity.ps1 +146 -0
- package/resources/claude-customizations/.claude/hooks/enforce-evidence-locations.ps1 +150 -0
- package/resources/claude-customizations/.claude/hooks/enforce-powershell-batch-budget.ps1 +238 -0
- package/resources/claude-customizations/.claude/hooks/enforce-promotion-mcp-only.ps1 +147 -0
- package/resources/claude-customizations/.claude/hooks/enforce-python-batch-budget.ps1 +235 -0
- package/resources/claude-customizations/.claude/hooks/validate-bash.ps1 +69 -0
- package/resources/claude-customizations/.claude/hooks/validate-executor-output.ps1 +296 -0
- package/resources/claude-customizations/.claude/hooks/validate-feature-review-coverage.ps1 +389 -0
- package/resources/claude-customizations/.claude/hooks/validate-orchestrator-output.ps1 +141 -0
- package/resources/claude-customizations/.claude/hooks/validate-planner-output.ps1 +288 -0
- package/resources/claude-customizations/.claude/hooks/validate-required-artifact-output.ps1 +171 -0
- package/resources/claude-customizations/.claude/hooks/validate-task-researcher-output.ps1 +142 -0
- package/resources/claude-customizations/.claude/rules/csharp.md +62 -0
- package/resources/claude-customizations/.claude/rules/general-code-change.md +71 -0
- package/resources/claude-customizations/.claude/rules/general-unit-test.md +60 -0
- package/resources/claude-customizations/.claude/rules/powershell.md +97 -0
- package/resources/claude-customizations/.claude/rules/python-suppressions.md +143 -0
- package/resources/claude-customizations/.claude/rules/python.md +99 -0
- package/resources/claude-customizations/.claude/rules/self-explanatory-code-commenting.md +97 -0
- package/resources/claude-customizations/.claude/rules/tonality.md +80 -0
- package/resources/claude-customizations/.claude/rules/typescript-suppressions.md +66 -0
- package/resources/claude-customizations/.claude/rules/typescript.md +45 -0
- package/resources/claude-customizations/.claude/settings.json +144 -0
- package/resources/claude-customizations/.claude/skills/acceptance-criteria-tracking/SKILL.md +102 -0
- package/resources/claude-customizations/.claude/skills/atomic-plan-contract/SKILL.md +189 -0
- package/resources/claude-customizations/.claude/skills/commit-message/SKILL.md +65 -0
- package/resources/claude-customizations/.claude/skills/csharp-change-budget-router/SKILL.md +90 -0
- package/resources/claude-customizations/.claude/skills/csharp-orchestration-state-machine/SKILL.md +58 -0
- package/resources/claude-customizations/.claude/skills/csharp-qa-gate/SKILL.md +77 -0
- package/resources/claude-customizations/.claude/skills/evidence-and-timestamp-conventions/SKILL.md +164 -0
- package/resources/claude-customizations/.claude/skills/execute-hard-lock/SKILL.md +82 -0
- package/resources/claude-customizations/.claude/skills/feature-promotion-lifecycle/SKILL.md +115 -0
- package/resources/claude-customizations/.claude/skills/feature-review-workflow/SKILL.md +167 -0
- package/resources/claude-customizations/.claude/skills/fill-feature-docs/SKILL.md +22 -0
- package/resources/claude-customizations/.claude/skills/invoke-csharp-engineer/SKILL.md +64 -0
- package/resources/claude-customizations/.claude/skills/invoke-powershell-engineer/SKILL.md +65 -0
- package/resources/claude-customizations/.claude/skills/invoke-python-engineer/SKILL.md +64 -0
- package/resources/claude-customizations/.claude/skills/make-skill-template/SKILL.md +147 -0
- package/resources/claude-customizations/.claude/skills/orchestrate/SKILL.md +132 -0
- package/resources/claude-customizations/.claude/skills/policy-audit-template-usage/SKILL.md +49 -0
- package/resources/claude-customizations/.claude/skills/policy-compliance-order/SKILL.md +40 -0
- package/resources/claude-customizations/.claude/skills/powershell-change-budget-router/SKILL.md +49 -0
- package/resources/claude-customizations/.claude/skills/powershell-orchestration-state-machine/SKILL.md +58 -0
- package/resources/claude-customizations/.claude/skills/powershell-qa-gate/SKILL.md +77 -0
- package/resources/claude-customizations/.claude/skills/pr-author/SKILL.md +50 -0
- package/resources/claude-customizations/.claude/skills/pr-base-branch-merge-base/SKILL.md +56 -0
- package/resources/claude-customizations/.claude/skills/pr-context-artifacts/SKILL.md +30 -0
- package/resources/claude-customizations/.claude/skills/python-change-budget-router/SKILL.md +79 -0
- package/resources/claude-customizations/.claude/skills/python-qa-gate/SKILL.md +77 -0
- package/resources/claude-customizations/.claude/skills/remediation-handoff-atomic-planner/SKILL.md +40 -0
- package/resources/claude-customizations/.claude/skills/research-issue/SKILL.md +67 -0
- package/resources/claude-customizations/.claude/skills/review-epic/SKILL.md +21 -0
- package/resources/claude-customizations/.claude/skills/review-feature/SKILL.md +25 -0
- package/resources/claude-customizations/.claude/skills/review-staged/SKILL.md +21 -0
- package/resources/claude-customizations/.claude/skills/skill-canonical-location-audit/SKILL.md +49 -0
- package/resources/claude-customizations/.claude/skills/translate-copilot-to-claude/SKILL.md +295 -0
- package/resources/claude-customizations/.claude/skills/update-status/SKILL.md +21 -0
- package/resources/claude-dir-customizations/.mcp.json +8 -0
- package/resources/codex-and-agents-customizations/.agents/README.md +86 -0
- package/resources/codex-and-agents-customizations/.agents/skills/README.md +49 -0
- package/resources/codex-and-agents-customizations/.agents/skills/acceptance-criteria-tracking/SKILL.md +107 -0
- package/resources/codex-and-agents-customizations/.agents/skills/atomic-executor/SKILL.md +73 -0
- package/resources/codex-and-agents-customizations/.agents/skills/atomic-plan-contract/SKILL.md +194 -0
- package/resources/codex-and-agents-customizations/.agents/skills/atomic-planner/SKILL.md +87 -0
- package/resources/codex-and-agents-customizations/.agents/skills/commit-message/SKILL.md +70 -0
- package/resources/codex-and-agents-customizations/.agents/skills/commit-message-conventions/SKILL.md +95 -0
- package/resources/codex-and-agents-customizations/.agents/skills/csharp/SKILL.md +67 -0
- package/resources/codex-and-agents-customizations/.agents/skills/csharp-change-budget-router/SKILL.md +94 -0
- package/resources/codex-and-agents-customizations/.agents/skills/csharp-orchestration-state-machine/SKILL.md +64 -0
- package/resources/codex-and-agents-customizations/.agents/skills/csharp-qa-gate/SKILL.md +82 -0
- package/resources/codex-and-agents-customizations/.agents/skills/evidence-and-timestamp-conventions/SKILL.md +168 -0
- package/resources/codex-and-agents-customizations/.agents/skills/execute-hard-lock/SKILL.md +88 -0
- package/resources/codex-and-agents-customizations/.agents/skills/feature-promotion-lifecycle/SKILL.md +129 -0
- package/resources/codex-and-agents-customizations/.agents/skills/feature-review/SKILL.md +106 -0
- package/resources/codex-and-agents-customizations/.agents/skills/feature-review-workflow/SKILL.md +181 -0
- package/resources/codex-and-agents-customizations/.agents/skills/fill-feature-docs/SKILL.md +27 -0
- package/resources/codex-and-agents-customizations/.agents/skills/invoke-csharp-engineer/SKILL.md +73 -0
- package/resources/codex-and-agents-customizations/.agents/skills/invoke-powershell-engineer/SKILL.md +74 -0
- package/resources/codex-and-agents-customizations/.agents/skills/invoke-python-engineer/SKILL.md +73 -0
- package/resources/codex-and-agents-customizations/.agents/skills/make-skill-template/SKILL.md +152 -0
- package/resources/codex-and-agents-customizations/.agents/skills/orchestrate/SKILL.md +143 -0
- package/resources/codex-and-agents-customizations/.agents/skills/orchestrator-workflow/SKILL.md +317 -0
- package/resources/codex-and-agents-customizations/.agents/skills/policy-audit-template-usage/SKILL.md +53 -0
- package/resources/codex-and-agents-customizations/.agents/skills/policy-compliance-order/SKILL.md +49 -0
- package/resources/codex-and-agents-customizations/.agents/skills/powershell/SKILL.md +102 -0
- package/resources/codex-and-agents-customizations/.agents/skills/powershell-change-budget-router/SKILL.md +53 -0
- package/resources/codex-and-agents-customizations/.agents/skills/powershell-orchestration-state-machine/SKILL.md +64 -0
- package/resources/codex-and-agents-customizations/.agents/skills/powershell-qa-gate/SKILL.md +83 -0
- package/resources/codex-and-agents-customizations/.agents/skills/pr-author/SKILL.md +55 -0
- package/resources/codex-and-agents-customizations/.agents/skills/pr-authoring/SKILL.md +124 -0
- package/resources/codex-and-agents-customizations/.agents/skills/pr-base-branch-merge-base/SKILL.md +60 -0
- package/resources/codex-and-agents-customizations/.agents/skills/pr-context-artifacts/SKILL.md +34 -0
- package/resources/codex-and-agents-customizations/.agents/skills/python/SKILL.md +104 -0
- package/resources/codex-and-agents-customizations/.agents/skills/python-change-budget-router/SKILL.md +84 -0
- package/resources/codex-and-agents-customizations/.agents/skills/python-qa-gate/SKILL.md +82 -0
- package/resources/codex-and-agents-customizations/.agents/skills/python-suppressions/SKILL.md +148 -0
- package/resources/codex-and-agents-customizations/.agents/skills/remediation-handoff-atomic-planner/SKILL.md +49 -0
- package/resources/codex-and-agents-customizations/.agents/skills/repo-automation-adapter/SKILL.md +142 -0
- package/resources/codex-and-agents-customizations/.agents/skills/repo-automation-adapter/agents/openai.yaml +5 -0
- package/resources/codex-and-agents-customizations/.agents/skills/research-issue/SKILL.md +72 -0
- package/resources/codex-and-agents-customizations/.agents/skills/review-epic/SKILL.md +26 -0
- package/resources/codex-and-agents-customizations/.agents/skills/review-feature/SKILL.md +30 -0
- package/resources/codex-and-agents-customizations/.agents/skills/review-staged/SKILL.md +26 -0
- package/resources/codex-and-agents-customizations/.agents/skills/self-explanatory-code-commenting/SKILL.md +102 -0
- package/resources/codex-and-agents-customizations/.agents/skills/skill-canonical-location-audit/SKILL.md +52 -0
- package/resources/codex-and-agents-customizations/.agents/skills/translate-copilot-to-claude/SKILL.md +317 -0
- package/resources/codex-and-agents-customizations/.agents/skills/typescript/SKILL.md +50 -0
- package/resources/codex-and-agents-customizations/.agents/skills/typescript-suppressions/SKILL.md +71 -0
- package/resources/codex-and-agents-customizations/.agents/skills/update-status/SKILL.md +26 -0
- package/resources/codex-and-agents-customizations/.codex/agents/5.1-beast-adjusted.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/5.1-thinking-beast-mode-adjusted.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/api-architect.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/atomic-executor.toml +151 -0
- package/resources/codex-and-agents-customizations/.codex/agents/atomic-planner.toml +93 -0
- package/resources/codex-and-agents-customizations/.codex/agents/atomic-planning.toml +24 -0
- package/resources/codex-and-agents-customizations/.codex/agents/commentary-remediation.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/commit-steward.toml +20 -0
- package/resources/codex-and-agents-customizations/.codex/agents/csharp-atomic-executor.toml +24 -0
- package/resources/codex-and-agents-customizations/.codex/agents/csharp-atomic-planning.toml +25 -0
- package/resources/codex-and-agents-customizations/.codex/agents/csharp-orchestrator.toml +56 -0
- package/resources/codex-and-agents-customizations/.codex/agents/csharp-typed-engineer.toml +97 -0
- package/resources/codex-and-agents-customizations/.codex/agents/epic-review.toml +52 -0
- package/resources/codex-and-agents-customizations/.codex/agents/expert-nextjs-developer.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/expert-react-frontend-engineer.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/feature-review.toml +149 -0
- package/resources/codex-and-agents-customizations/.codex/agents/feature-reviewer.toml +60 -0
- package/resources/codex-and-agents-customizations/.codex/agents/gpt-5-beast-mode.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/hlbpa.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/mentor.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/orchestrator.toml +121 -0
- package/resources/codex-and-agents-customizations/.codex/agents/powershell-atomic-executor.toml +24 -0
- package/resources/codex-and-agents-customizations/.codex/agents/powershell-atomic-planning.toml +25 -0
- package/resources/codex-and-agents-customizations/.codex/agents/powershell-di-unit-test-engineer.toml +24 -0
- package/resources/codex-and-agents-customizations/.codex/agents/powershell-orchestrator.toml +56 -0
- package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer.toml +108 -0
- package/resources/codex-and-agents-customizations/.codex/agents/pr-author.toml +26 -0
- package/resources/codex-and-agents-customizations/.codex/agents/prd-feature.toml +53 -0
- package/resources/codex-and-agents-customizations/.codex/agents/prd.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/pytest-unit-test-coding.toml +24 -0
- package/resources/codex-and-agents-customizations/.codex/agents/python-atomic-executor.toml +24 -0
- package/resources/codex-and-agents-customizations/.codex/agents/python-atomic-planning.toml +25 -0
- package/resources/codex-and-agents-customizations/.codex/agents/python-execution-only-typed.toml +24 -0
- package/resources/codex-and-agents-customizations/.codex/agents/python-orchestrator.toml +54 -0
- package/resources/codex-and-agents-customizations/.codex/agents/python-typed-engineer.toml +100 -0
- package/resources/codex-and-agents-customizations/.codex/agents/staged-review.toml +53 -0
- package/resources/codex-and-agents-customizations/.codex/agents/status-updater.toml +53 -0
- package/resources/codex-and-agents-customizations/.codex/agents/task-researcher.toml +103 -0
- package/resources/codex-and-agents-customizations/.codex/agents/tdd-green.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/tdd-red.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/tdd-refactor.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/typescript-engineer.toml +48 -0
- package/resources/codex-and-agents-customizations/.codex/agents/voidbeast-gpt41enhanced.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/codex-web-setup.plan.md +26 -0
- package/resources/codex-and-agents-customizations/.codex/codex-web-setup.sh +384 -0
- package/resources/codex-and-agents-customizations/.codex/config.toml +137 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/check-powershell-test-purity.ps1 +113 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/check-python-test-purity.ps1 +149 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/enforce-evidence-locations.ps1 +153 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/enforce-powershell-batch-budget.ps1 +241 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/enforce-promotion-mcp-only.ps1 +150 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/enforce-python-batch-budget.ps1 +238 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/validate-bash.ps1 +72 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/validate-feature-review-coverage.ps1 +265 -0
- package/resources/codex-and-agents-customizations/.codex/prompts/feature-review-remediate.md +10 -0
- package/resources/codex-and-agents-customizations/.codex/prompts/generate-commit-message-repo.md +11 -0
- package/resources/codex-and-agents-customizations/.codex/prompts/generate-pr.md +15 -0
- package/resources/codex-and-agents-customizations/.codex/prompts/orchestrate-work.md +22 -0
- package/resources/codex-and-agents-customizations/AGENTS.md +317 -0
- package/resources/customizations/.github/agents/5.1-Beast-adjusted.agent.md +181 -0
- package/resources/customizations/.github/agents/5.1-Thinking-Beast-Mode-adjusted.agent.md +361 -0
- package/resources/customizations/.github/agents/Powershell DI Unit Test Engineer.agent.md +192 -0
- package/resources/customizations/.github/agents/api-architect.agent.md +40 -0
- package/resources/customizations/.github/agents/atomic_executor.agent.md +251 -0
- package/resources/customizations/.github/agents/atomic_planning.agent.md +658 -0
- package/resources/customizations/.github/agents/commentary-remediation.agent.md +35 -0
- package/resources/customizations/.github/agents/commit-steward.agent.md +200 -0
- package/resources/customizations/.github/agents/csharp-atomic-executor.agent.md +288 -0
- package/resources/customizations/.github/agents/csharp-atomic-planning.agent.md +354 -0
- package/resources/customizations/.github/agents/csharp-orchestrator.agent.md +375 -0
- package/resources/customizations/.github/agents/csharp-typed-engineer.agent.md +285 -0
- package/resources/customizations/.github/agents/epic-review.agent.md +374 -0
- package/resources/customizations/.github/agents/expert-nextjs-developer.agent.md +477 -0
- package/resources/customizations/.github/agents/expert-react-frontend-engineer.agent.md +739 -0
- package/resources/customizations/.github/agents/feature-review.agent.md +49 -0
- package/resources/customizations/.github/agents/gpt-5-beast-mode.agent.md +116 -0
- package/resources/customizations/.github/agents/hlbpa.agent.md +219 -0
- package/resources/customizations/.github/agents/mentor.agent.md +32 -0
- package/resources/customizations/.github/agents/orchestrator.agent.md +449 -0
- package/resources/customizations/.github/agents/powershell-atomic-executor.agent.md +287 -0
- package/resources/customizations/.github/agents/powershell-atomic-planning.agent.md +647 -0
- package/resources/customizations/.github/agents/powershell-orchestrator.agent.md +382 -0
- package/resources/customizations/.github/agents/powershell-typed-engineer.agent.md +293 -0
- package/resources/customizations/.github/agents/pr-author.agent.md +138 -0
- package/resources/customizations/.github/agents/prd-feature.agent.md +52 -0
- package/resources/customizations/.github/agents/prd.agent.md +202 -0
- package/resources/customizations/.github/agents/pytest-unit-test-coding.agent.md +202 -0
- package/resources/customizations/.github/agents/python-atomic-executor.agent.md +289 -0
- package/resources/customizations/.github/agents/python-atomic-planning.agent.md +429 -0
- package/resources/customizations/.github/agents/python-execution-only-typed.agent.md +217 -0
- package/resources/customizations/.github/agents/python-orchestrator.agent.md +380 -0
- package/resources/customizations/.github/agents/python-typed-engineer.agent.md +271 -0
- package/resources/customizations/.github/agents/staged-review.agent.md +246 -0
- package/resources/customizations/.github/agents/status_updater.agent.md +279 -0
- package/resources/customizations/.github/agents/task-researcher.agent.md +298 -0
- package/resources/customizations/.github/agents/tdd-green.agent.md +60 -0
- package/resources/customizations/.github/agents/tdd-red.agent.md +66 -0
- package/resources/customizations/.github/agents/tdd-refactor.agent.md +94 -0
- package/resources/customizations/.github/agents/typescript-engineer.agent.md +167 -0
- package/resources/customizations/.github/agents/voidbeast-gpt41enhanced.agent.md +230 -0
- package/resources/customizations/.github/codex/execute-hard-lock.prompt.md +105 -0
- package/resources/customizations/.github/codex/resume-hard-lock.prompt.md +92 -0
- package/resources/customizations/.github/copilot-instructions.md +7 -0
- package/resources/customizations/.github/instructions/csharp-code-change.instructions.md +184 -0
- package/resources/customizations/.github/instructions/csharp-unit-test.instructions.md +52 -0
- package/resources/customizations/.github/instructions/general-code-change.instructions.md +290 -0
- package/resources/customizations/.github/instructions/general-unit-test.instructions.md +106 -0
- package/resources/customizations/.github/instructions/github-actions-ci-cd-best-practices.instructions.md +607 -0
- package/resources/customizations/.github/instructions/github-actions.instructions.md +23 -0
- package/resources/customizations/.github/instructions/powershell-code-change.instructions.md +81 -0
- package/resources/customizations/.github/instructions/powershell-unit-test.instructions.md +69 -0
- package/resources/customizations/.github/instructions/python-code-change.instructions.md +232 -0
- package/resources/customizations/.github/instructions/python-suppressions.instructions.md +609 -0
- package/resources/customizations/.github/instructions/python-unit-test.instructions.md +71 -0
- package/resources/customizations/.github/instructions/self-explanatory-code-commenting.instructions.md +238 -0
- package/resources/customizations/.github/instructions/tonality.instructions.md +133 -0
- package/resources/customizations/.github/instructions/typescript-code-change.instructions.md +203 -0
- package/resources/customizations/.github/instructions/typescript-suppressions.instructions.md +157 -0
- package/resources/customizations/.github/instructions/typescript-unit-test.instructions.md +112 -0
- package/resources/customizations/.github/prompts/add-educational-comments.prompt.md +129 -0
- package/resources/customizations/.github/prompts/breakdown-bug-prd.prompt.md +29 -0
- package/resources/customizations/.github/prompts/breakdown-epic-arch.prompt.md +66 -0
- package/resources/customizations/.github/prompts/breakdown-epic-pm.prompt.md +58 -0
- package/resources/customizations/.github/prompts/breakdown-feature-implementation.prompt.md +128 -0
- package/resources/customizations/.github/prompts/breakdown-feature-prd.prompt.md +61 -0
- package/resources/customizations/.github/prompts/code-exemplars-blueprint-generator.prompt.md +126 -0
- package/resources/customizations/.github/prompts/drafts/create-github-issues-feature-from-implementation-plan.prompt.md +28 -0
- package/resources/customizations/.github/prompts/drafts/create-implementation-plan.prompt.md +158 -0
- package/resources/customizations/.github/prompts/drafts/create-technical-spike.prompt.md +231 -0
- package/resources/customizations/.github/prompts/drafts/potential-feature-prd.prompt.md +19 -0
- package/resources/customizations/.github/prompts/drafts/update-implementation-plan.prompt.md +158 -0
- package/resources/customizations/.github/prompts/execute-plan-template.md +21 -0
- package/resources/customizations/.github/prompts/export-chat.prompt.md +7 -0
- package/resources/customizations/.github/prompts/fillout-prd-feature.prompt.md +46 -0
- package/resources/customizations/.github/prompts/generate-atomic-plan.prompt.md +96 -0
- package/resources/customizations/.github/prompts/generate-commit-message-repo.prompt.md +108 -0
- package/resources/customizations/.github/prompts/generate-pr.prompt.md +151 -0
- package/resources/customizations/.github/prompts/javascript-typescript-jest.prompt.md +44 -0
- package/resources/customizations/.github/prompts/orchestrate-csharp-work.prompt.md +66 -0
- package/resources/customizations/.github/prompts/orchestrate-powershell-work.prompt.md +50 -0
- package/resources/customizations/.github/prompts/orchestrate-python-work.prompt.md +50 -0
- package/resources/customizations/.github/prompts/orchestrate-work.prompt.md +66 -0
- package/resources/customizations/.github/prompts/remediate-comments.prompt.md +53 -0
- package/resources/customizations/.github/prompts/research-issue.prompt.md +125 -0
- package/resources/customizations/.github/prompts/review-epic.prompt.md +94 -0
- package/resources/customizations/.github/prompts/review-feature.prompt.md +130 -0
- package/resources/customizations/.github/prompts/review-staged.prompt.md +43 -0
- package/resources/customizations/.github/prompts/update_status.prompt.md +68 -0
- package/resources/customizations/.github/skills/README.md +26 -0
- package/resources/customizations/.github/skills/acceptance-criteria-tracking/SKILL.md +102 -0
- package/resources/customizations/.github/skills/atomic-plan-contract/SKILL.md +174 -0
- package/resources/customizations/.github/skills/csharp-change-budget-router/SKILL.md +48 -0
- package/resources/customizations/.github/skills/csharp-orchestration-state-machine/SKILL.md +57 -0
- package/resources/customizations/.github/skills/evidence-and-timestamp-conventions/SKILL.md +135 -0
- package/resources/customizations/.github/skills/feature-promotion-lifecycle/SKILL.md +121 -0
- package/resources/customizations/.github/skills/feature-review-workflow/SKILL.md +153 -0
- package/resources/customizations/.github/skills/make-skill-template/SKILL.md +147 -0
- package/resources/customizations/.github/skills/policy-audit-template-usage/SKILL.md +48 -0
- package/resources/customizations/.github/skills/policy-compliance-order/SKILL.md +37 -0
- package/resources/customizations/.github/skills/powershell-change-budget-router/SKILL.md +48 -0
- package/resources/customizations/.github/skills/powershell-orchestration-state-machine/SKILL.md +57 -0
- package/resources/customizations/.github/skills/pr-base-branch-merge-base/SKILL.md +55 -0
- package/resources/customizations/.github/skills/pr-context-artifacts/SKILL.md +29 -0
- package/resources/customizations/.github/skills/remediation-handoff-atomic-planner/SKILL.md +39 -0
- package/resources/customizations/.github/skills/skill-canonical-location-audit/SKILL.md +48 -0
- package/resources/feature-templates/bug/plan.yyyy-MM-ddTHH-mm.md +44 -0
- package/resources/feature-templates/bug/potential_bug.md +59 -0
- package/resources/feature-templates/bug/spec.md +99 -0
- package/resources/feature-templates/epic/initiative.md +43 -0
- package/resources/feature-templates/feature/plan.yyyy-MM-ddTHH-mm.md +53 -0
- package/resources/feature-templates/feature/spec.md +66 -0
- package/resources/feature-templates/feature/user-story.md +42 -0
- package/resources/feature-templates/potential/template.md +33 -0
- package/resources/feature-templates/refactor/plan.yyyy-MM-ddTHH-mm.md +52 -0
- package/resources/feature-templates/refactor/spec.md +69 -0
- package/resources/powershell/PoshQC/PoshQC.Analyzer.psm1 +254 -0
- package/resources/powershell/PoshQC/PoshQC.FileDiscovery.psm1 +138 -0
- package/resources/powershell/PoshQC/PoshQC.Testing.psm1 +409 -0
- package/resources/powershell/PoshQC/PoshQC.psd1 +31 -0
- package/resources/powershell/PoshQC/PoshQC.psm1 +101 -0
- package/resources/powershell/PoshQC/README.md +80 -0
- package/resources/powershell/PoshQC/settings/pester.runsettings.psd1 +59 -0
- package/resources/powershell/PoshQC/settings/pssa.settings.psd1 +55 -0
- package/resources/scripts/dev_tools/__init__.py +0 -0
- package/resources/scripts/dev_tools/agentic_sync.py +819 -0
- package/resources/scripts/dev_tools/codex_native_converter/__init__.py +11 -0
- package/resources/scripts/dev_tools/codex_native_converter/__main__.py +6 -0
- package/resources/scripts/dev_tools/codex_native_converter/cli.py +11 -0
- package/resources/scripts/dev_tools/new_active_feature_folder.py +79 -0
- package/resources/scripts/dev_tools/new_active_feature_folder_docs.py +268 -0
- package/resources/scripts/dev_tools/new_active_feature_folder_flow.py +366 -0
- package/resources/scripts/dev_tools/new_active_feature_folder_io.py +306 -0
- package/resources/scripts/dev_tools/new_active_feature_folder_markdown.py +252 -0
- package/resources/scripts/dev_tools/new_active_feature_folder_models.py +136 -0
- package/resources/scripts/dev_tools/new_potential_bug_entry.py +465 -0
- package/resources/scripts/dev_tools/potential_to_issue.py +421 -0
- package/resources/scripts/dev_tools/potential_to_issue_content.py +212 -0
- package/resources/scripts/dev_tools/pr_context/__init__.py +0 -0
- package/resources/scripts/dev_tools/pr_context/collector.py +619 -0
- package/resources/scripts/dev_tools/pr_context/feature_docs.py +349 -0
- package/resources/scripts/dev_tools/pr_context/git.py +153 -0
- package/resources/scripts/dev_tools/pr_context/github.py +549 -0
- package/resources/scripts/dev_tools/pr_context/models.py +198 -0
- package/resources/scripts/dev_tools/pr_context/render.py +342 -0
- package/resources/scripts/dev_tools/pr_context/render_feature_excerpts.py +256 -0
- package/resources/scripts/dev_tools/pr_context/render_pr_helpers.py +291 -0
- package/resources/scripts/dev_tools/pr_context/summary_helpers.py +386 -0
- package/resources/scripts/dev_tools/pr_context/verification_evidence.py +171 -0
- package/resources/scripts/dev_tools/prompt_mode_contract.py +152 -0
- package/resources/scripts/dev_tools/push_down_claude_customizations.py +188 -0
- package/resources/scripts/dev_tools/push_down_codex_and_agents_customizations.py +139 -0
- package/resources/scripts/dev_tools/push_down_copilot_customizations.py +504 -0
- package/resources/scripts/dev_tools/push_down_copilot_customizations_filesystem.py +217 -0
- package/resources/scripts/dev_tools/push_down_copilot_customizations_rewrites.py +293 -0
- package/resources/scripts/dev_tools/resolve_file_prompt.py +457 -0
- package/resources/scripts/dev_tools/resolve_hard_lock_prompt.py +444 -0
- package/resources/scripts/dev_tools/validate_orchestration_artifacts.py +554 -0
- package/resources/templates/codex_native_converter.py +35 -0
- package/resources/templates/collect_commit_context.py +212 -0
- package/resources/templates/collect_pr_context.py +74 -0
- package/resources/templates/hello_pwsh.ps1 +3 -0
- package/resources/templates/hello_python.py +11 -0
- package/resources/templates/link-parent-child.ps1 +480 -0
- package/resources/templates/new-claude-worktree-session.ps1 +232 -0
- package/resources/templates/new-potential-entry.ps1 +187 -0
- package/resources/templates/new_active_feature_folder.py +67 -0
- package/resources/templates/new_potential_bug_entry.py +54 -0
- package/resources/templates/policy_audit/AGENTS.md +117 -0
- package/resources/templates/policy_audit/code-review.yyyy-MM-ddTHH-mm.md +165 -0
- package/resources/templates/policy_audit/feature-audit.yyyy-MM-ddTHH-mm.md +124 -0
- package/resources/templates/policy_audit/policy-audit.yyyy-MM-ddTHH-mm.md +649 -0
- package/resources/templates/potential_to_issue.py +55 -0
- package/resources/templates/push_down_claude_customizations.py +188 -0
- package/resources/templates/push_down_codex_and_agents_customizations.py +95 -0
- package/resources/templates/push_down_copilot_customizations.py +124 -0
- package/resources/templates/resolve_atomic_plan_prompt.py +75 -0
- package/resources/templates/resolve_hard_lock_prompt.py +65 -0
- package/resources/templates/run-poshqc-analyze-autofix.ps1 +16 -0
- package/resources/templates/run-poshqc-analyze.ps1 +26 -0
- package/resources/templates/run-poshqc-format.ps1 +26 -0
- package/resources/templates/run-poshqc-suite.ps1 +24 -0
- package/resources/templates/run-poshqc-test.ps1 +32 -0
- package/resources/templates/sync-agents-from-instructions.ps1 +400 -0
- package/resources/templates/validate_orchestration_artifacts.py +55 -0
- package/resources/templates/vscode-cli.helpers.ps1 +63 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Pre-authorized patterns for ESLint and TypeScript suppressions in TypeScript code"
|
|
3
|
+
applyTo: "**/*.ts"
|
|
4
|
+
name: typescript-suppressions-policy
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Pre-Authorized Suppression Patterns (TypeScript)
|
|
8
|
+
|
|
9
|
+
This policy defines the **only** patterns of ESLint and TypeScript suppression directives that are pre-authorized for use in TypeScript code without explicit user approval.
|
|
10
|
+
|
|
11
|
+
**Authorization requirement:**
|
|
12
|
+
|
|
13
|
+
- All ESLint and TypeScript suppressions must either:
|
|
14
|
+
1. **Match a pre-authorized pattern** defined in this file, OR
|
|
15
|
+
2. **Have explicit user approval** for that specific suppression
|
|
16
|
+
|
|
17
|
+
**If you encounter an error that seems to require a suppression not matching a pre-authorized pattern:**
|
|
18
|
+
|
|
19
|
+
1. First, attempt to resolve it without a suppression (refactor, restructure, adjust types)
|
|
20
|
+
2. If that fails, try at least five more distinct approaches
|
|
21
|
+
3. Continue iterating until you solve the problem or demonstrate why each approach fails
|
|
22
|
+
4. Only after multiple documented failed attempts may you request user approval, providing:
|
|
23
|
+
- The specific rule/error and diagnostic code
|
|
24
|
+
- Each approach you tried and why it failed
|
|
25
|
+
- Why a suppression is the only remaining option
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## ESLint Suppressions
|
|
30
|
+
|
|
31
|
+
### eslint-disable-next-line (single rule)
|
|
32
|
+
|
|
33
|
+
**When pre-authorized:**
|
|
34
|
+
|
|
35
|
+
You must suppress **exactly one** ESLint rule for **exactly one** following line, and you can provide a concrete, local justification.
|
|
36
|
+
|
|
37
|
+
**Required pattern:**
|
|
38
|
+
|
|
39
|
+
- `// eslint-disable-next-line <rule-name> -- <reason>`
|
|
40
|
+
|
|
41
|
+
**Required context:**
|
|
42
|
+
|
|
43
|
+
- The suppressed rule must apply to the next line only.
|
|
44
|
+
- The reason must be specific and local to the code (not “annoying rule” / “temporary” / “works”).
|
|
45
|
+
- The suppression must not hide a real bug or broaden the type surface unnecessarily.
|
|
46
|
+
|
|
47
|
+
**Justification:**
|
|
48
|
+
|
|
49
|
+
Single-line, single-rule disables keep blast radius small, preserve lint value elsewhere, and ensure reviewers can see exactly what is being waived and why.
|
|
50
|
+
|
|
51
|
+
**Examples:**
|
|
52
|
+
|
|
53
|
+
- Narrowly suppressing an intentional non-null assertion when the invariant is enforced immediately above.
|
|
54
|
+
- Suppressing a rule for an unavoidable API shape mismatch while keeping runtime checks.
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## TypeScript Suppressions
|
|
59
|
+
|
|
60
|
+
### @ts-expect-error (single line)
|
|
61
|
+
|
|
62
|
+
**When pre-authorized:**
|
|
63
|
+
|
|
64
|
+
You have a single line that TypeScript flags, you can explain the mismatch precisely, and you can justify why it is safe in this local context.
|
|
65
|
+
|
|
66
|
+
**Required pattern:**
|
|
67
|
+
|
|
68
|
+
- `// @ts-expect-error -- <reason>`
|
|
69
|
+
|
|
70
|
+
**Required context:**
|
|
71
|
+
|
|
72
|
+
- Prefer fixing types, adding runtime guards, or refining control flow over suppressions.
|
|
73
|
+
- The reason must be specific:
|
|
74
|
+
- what TypeScript is complaining about, and
|
|
75
|
+
- why this line is safe anyway.
|
|
76
|
+
- The suppression must be on the line immediately preceding the flagged line.
|
|
77
|
+
|
|
78
|
+
**Justification:**
|
|
79
|
+
|
|
80
|
+
`@ts-expect-error` is self-auditing: it fails the build if the error disappears, preventing stale suppressions from lingering indefinitely.
|
|
81
|
+
|
|
82
|
+
**Examples:**
|
|
83
|
+
|
|
84
|
+
- Narrowly suppressing a known incorrect upstream type declaration when wrapping the call with runtime validation.
|
|
85
|
+
- Narrowly suppressing an intentional type-level limitation when bridging legacy shapes.
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## Non-authorized Patterns (Explicitly Prohibited - with Workarounds)
|
|
90
|
+
|
|
91
|
+
The following patterns are **NOT** pre-authorized. They require explicit approval (and usually should be avoided entirely).
|
|
92
|
+
|
|
93
|
+
### File-level ESLint disables
|
|
94
|
+
|
|
95
|
+
**Prohibited patterns:**
|
|
96
|
+
|
|
97
|
+
- `/* eslint-disable */`
|
|
98
|
+
- `/* eslint-disable <rule> */`
|
|
99
|
+
|
|
100
|
+
**Why NOT authorized:**
|
|
101
|
+
|
|
102
|
+
File-level disables have an extremely large blast radius and tend to hide unrelated problems over time.
|
|
103
|
+
|
|
104
|
+
**Recommended alternative pattern:**
|
|
105
|
+
|
|
106
|
+
- Rewrite the code to satisfy the rule, or
|
|
107
|
+
- Use a single-line `eslint-disable-next-line` suppression with a specific reason (if the rule truly cannot be satisfied).
|
|
108
|
+
|
|
109
|
+
### @ts-ignore
|
|
110
|
+
|
|
111
|
+
**Prohibited pattern:**
|
|
112
|
+
|
|
113
|
+
- `// @ts-ignore`
|
|
114
|
+
|
|
115
|
+
**Why NOT authorized:**
|
|
116
|
+
|
|
117
|
+
`@ts-ignore` can silently mask real problems and does not fail when the error disappears.
|
|
118
|
+
|
|
119
|
+
**Recommended alternative pattern:**
|
|
120
|
+
|
|
121
|
+
- Prefer `// @ts-expect-error -- <reason>`.
|
|
122
|
+
|
|
123
|
+
### @ts-nocheck / @ts-check
|
|
124
|
+
|
|
125
|
+
**Prohibited patterns:**
|
|
126
|
+
|
|
127
|
+
- `// @ts-nocheck`
|
|
128
|
+
|
|
129
|
+
**Why NOT authorized:**
|
|
130
|
+
|
|
131
|
+
Disabling type checking for a file defeats the repo’s type-safety standards.
|
|
132
|
+
|
|
133
|
+
**Recommended alternative pattern:**
|
|
134
|
+
|
|
135
|
+
- Fix the typing issue locally, or isolate the untyped/unsafe boundary behind a small adapter with runtime validation.
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## Policy Enforcement
|
|
140
|
+
|
|
141
|
+
### Pre-authorized pattern checklist
|
|
142
|
+
|
|
143
|
+
Before using a suppression, verify:
|
|
144
|
+
|
|
145
|
+
- [ ] Pattern **exactly** matches a pre-authorized pattern above
|
|
146
|
+
- [ ] Required comment format is used verbatim
|
|
147
|
+
- [ ] Scope is the smallest possible (single rule, single line)
|
|
148
|
+
- [ ] The reason is specific and explains why the code is safe
|
|
149
|
+
|
|
150
|
+
### Requesting new pre-authorized patterns
|
|
151
|
+
|
|
152
|
+
If you encounter a recurring suppression need that should be pre-authorized:
|
|
153
|
+
|
|
154
|
+
1. Document the pattern with full justification
|
|
155
|
+
2. Show why it is deterministic and can be codified
|
|
156
|
+
3. Propose the required comment format
|
|
157
|
+
4. Request user approval to add it to this file
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
|
|
2
|
+
---
|
|
3
|
+
description: "TypeScript-specific unit test rules, layered on top of the general unit test policy"
|
|
4
|
+
applyTo: "**/*.ts"
|
|
5
|
+
name: typescript-unit-test-policy
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# TypeScript Unit Test Policy
|
|
9
|
+
|
|
10
|
+
This policy **extends** `general-unit-test.instructions.md` and applies to all **TypeScript unit tests** in this repo.
|
|
11
|
+
|
|
12
|
+
You must follow **both**:
|
|
13
|
+
|
|
14
|
+
- The general unit test policy, and
|
|
15
|
+
- The TypeScript-specific rules below.
|
|
16
|
+
|
|
17
|
+
If there is any conflict between these documents, **halt and notify the user.**
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 1. Framework and Scope
|
|
22
|
+
|
|
23
|
+
- **Testing framework**
|
|
24
|
+
- All TypeScript unit tests must use **Jest**.
|
|
25
|
+
|
|
26
|
+
- **Unit test definition**
|
|
27
|
+
- Unit tests validate small, isolated behaviors (functions, helpers, small classes).
|
|
28
|
+
- Unit tests must not require launching the VS Code extension host or depending on a live VS Code environment.
|
|
29
|
+
|
|
30
|
+
- **Coverage expectation**
|
|
31
|
+
- All new TypeScript logic must be covered by Jest unit tests that follow the general unit test policy.
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## 2. Test Layout and Naming
|
|
36
|
+
|
|
37
|
+
### **File naming**
|
|
38
|
+
|
|
39
|
+
- Name test files with the `.test.ts` suffix.
|
|
40
|
+
|
|
41
|
+
### **Test location**
|
|
42
|
+
|
|
43
|
+
- Organize tests in a way that mirrors the code under test where practical (for example, `tests/unit/<module>.test.ts` for `src/<module>.ts`, or a parallel folder structure for deeper subsystems).
|
|
44
|
+
- Use shared setup sparingly and keep it narrowly scoped:
|
|
45
|
+
- Prefer `describe()` blocks with local `beforeEach` / `afterEach` for common setup within a small group of tests.
|
|
46
|
+
- Prefer small helper functions / factories (or a local test utility module) when it reduces duplication without hiding intent.
|
|
47
|
+
- Avoid broad, implicit “global” setup that makes tests hard to reason about.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## 3. Test Style and Structure (TypeScript)
|
|
52
|
+
|
|
53
|
+
### **Focused tests**
|
|
54
|
+
|
|
55
|
+
- Each test should target one behavior.
|
|
56
|
+
- Prefer testing observable behavior over internal implementation details.
|
|
57
|
+
|
|
58
|
+
### **Arrange–Act–Assert**
|
|
59
|
+
|
|
60
|
+
Organize each test into:
|
|
61
|
+
- Arrange — inputs and setup
|
|
62
|
+
- Act — call the function/behavior
|
|
63
|
+
- Assert — verify results
|
|
64
|
+
|
|
65
|
+
### **Intent documentation**
|
|
66
|
+
|
|
67
|
+
- Test names must clearly express the scenario and expected outcome.
|
|
68
|
+
- If intent is not obvious, add a brief comment explaining why the case matters.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## 4. Mocking and Isolation
|
|
73
|
+
|
|
74
|
+
### **Avoid external dependencies**
|
|
75
|
+
|
|
76
|
+
- Unit tests must not depend on external services, network calls, or external processes.
|
|
77
|
+
|
|
78
|
+
### **Mocking guidance**
|
|
79
|
+
|
|
80
|
+
- Mock external APIs or platform dependencies to keep tests deterministic.
|
|
81
|
+
- Prefer targeted mocks:
|
|
82
|
+
- `jest.spyOn(obj, 'method')` for specific functions
|
|
83
|
+
- `jest.mock('module')` for module-level dependencies
|
|
84
|
+
|
|
85
|
+
### **Resetting mocks**
|
|
86
|
+
|
|
87
|
+
- Reset mocks between tests to ensure independence.
|
|
88
|
+
- Preferred pattern:
|
|
89
|
+
- `afterEach(() => { jest.resetAllMocks(); });`
|
|
90
|
+
|
|
91
|
+
### **Time and timers**
|
|
92
|
+
|
|
93
|
+
- Avoid brittle timing assertions.
|
|
94
|
+
- Prefer fake timers (`jest.useFakeTimers()`) or injected clocks when time is part of behavior.
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## 5. Assertions and Diagnostics
|
|
99
|
+
|
|
100
|
+
- Assertions must produce clear, actionable failures.
|
|
101
|
+
- Prefer simple, direct matchers (`toEqual`, `toMatchObject`, `toHaveBeenCalledWith`).
|
|
102
|
+
- Avoid snapshots unless they provide strong value and are stable; keep snapshots small and intentional.
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## 6. Required Commands
|
|
107
|
+
|
|
108
|
+
When verifying TypeScript unit tests locally, use the repo-standard scripts:
|
|
109
|
+
|
|
110
|
+
- Approved command: `npm run test:unit`
|
|
111
|
+
|
|
112
|
+
> Formatting/lint/type-check commands for the full toolchain loop are defined in the TypeScript code change policy.
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
---
|
|
2
|
+
agent: 'agent'
|
|
3
|
+
description: 'Add educational comments to the file specified, or prompt asking for file to comment if one is not provided.'
|
|
4
|
+
tools: ['edit/editFiles', 'web/fetch', 'todo']
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Add Educational Comments
|
|
8
|
+
|
|
9
|
+
Add educational comments to code files so they become effective learning resources. When no file is provided, request one and offer a numbered list of close matches for quick selection.
|
|
10
|
+
|
|
11
|
+
## Role
|
|
12
|
+
|
|
13
|
+
You are an expert educator and technical writer. You can explain programming topics to beginners, intermediate learners, and advanced practitioners. You adapt tone and detail to match the user's configured knowledge levels while keeping guidance encouraging and instructional.
|
|
14
|
+
|
|
15
|
+
- Provide foundational explanations for beginners
|
|
16
|
+
- Add practical insights and best practices for intermediate users
|
|
17
|
+
- Offer deeper context (performance, architecture, language internals) for advanced users
|
|
18
|
+
- Suggest improvements only when they meaningfully support understanding
|
|
19
|
+
- Always obey the **Educational Commenting Rules**
|
|
20
|
+
|
|
21
|
+
## Objectives
|
|
22
|
+
|
|
23
|
+
1. Transform the provided file by adding educational comments aligned with the configuration.
|
|
24
|
+
2. Maintain the file's structure, encoding, and build correctness.
|
|
25
|
+
3. Increase the total line count by **125%** using educational comments only (up to 400 new lines). For files already processed with this prompt, update existing notes instead of reapplying the 125% rule.
|
|
26
|
+
|
|
27
|
+
### Line Count Guidance
|
|
28
|
+
|
|
29
|
+
- Default: add lines so the file reaches 125% of its original length.
|
|
30
|
+
- Hard limit: never add more than 400 educational comment lines.
|
|
31
|
+
- Large files: when the file exceeds 1,000 lines, aim for no more than 300 educational comment lines.
|
|
32
|
+
- Previously processed files: revise and improve current comments; do not chase the 125% increase again.
|
|
33
|
+
|
|
34
|
+
## Educational Commenting Rules
|
|
35
|
+
|
|
36
|
+
### Encoding and Formatting
|
|
37
|
+
|
|
38
|
+
- Determine the file's encoding before editing and keep it unchanged.
|
|
39
|
+
- Use only characters available on a standard QWERTY keyboard.
|
|
40
|
+
- Do not insert emojis or other special symbols.
|
|
41
|
+
- Preserve the original end-of-line style (LF or CRLF).
|
|
42
|
+
- Keep single-line comments on a single line.
|
|
43
|
+
- Maintain the indentation style required by the language (Python, Haskell, F#, Nim, Cobra, YAML, Makefiles, etc.).
|
|
44
|
+
- When instructed with `Line Number Referencing = yes`, prefix each new comment with `Note <number>` (e.g., `Note 1`).
|
|
45
|
+
|
|
46
|
+
### Content Expectations
|
|
47
|
+
|
|
48
|
+
- Focus on lines and blocks that best illustrate language or platform concepts.
|
|
49
|
+
- Explain the "why" behind syntax, idioms, and design choices.
|
|
50
|
+
- Reinforce previous concepts only when it improves comprehension (`Repetitiveness`).
|
|
51
|
+
- Highlight potential improvements gently and only when they serve an educational purpose.
|
|
52
|
+
- If `Line Number Referencing = yes`, use note numbers to connect related explanations.
|
|
53
|
+
|
|
54
|
+
### Safety and Compliance
|
|
55
|
+
|
|
56
|
+
- Do not alter namespaces, imports, module declarations, or encoding headers in a way that breaks execution.
|
|
57
|
+
- Avoid introducing syntax errors (for example, Python encoding errors per [PEP 263](https://peps.python.org/pep-0263/)).
|
|
58
|
+
- Input data as if typed on the user's keyboard.
|
|
59
|
+
|
|
60
|
+
## Workflow
|
|
61
|
+
|
|
62
|
+
1. **Confirm Inputs** – Ensure at least one target file is provided. If missing, respond with: `Please provide a file or files to add educational comments to. Preferably as chat variable or attached context.`
|
|
63
|
+
2. **Identify File(s)** – If multiple matches exist, present an ordered list so the user can choose by number or name.
|
|
64
|
+
3. **Review Configuration** – Combine the prompt defaults with user-specified values. Interpret obvious typos (e.g., `Line Numer`) using context.
|
|
65
|
+
4. **Plan Comments** – Decide which sections of the code best support the configured learning goals.
|
|
66
|
+
5. **Add Comments** – Apply educational comments following the configured detail, repetitiveness, and knowledge levels. Respect indentation and language syntax.
|
|
67
|
+
6. **Validate** – Confirm formatting, encoding, and syntax remain intact. Ensure the 125% rule and line limits are satisfied.
|
|
68
|
+
|
|
69
|
+
## Configuration Reference
|
|
70
|
+
|
|
71
|
+
### Properties
|
|
72
|
+
|
|
73
|
+
- **Numeric Scale**: `1-3`
|
|
74
|
+
- **Numeric Sequence**: `ordered` (higher numbers represent higher knowledge or intensity)
|
|
75
|
+
|
|
76
|
+
### Parameters
|
|
77
|
+
|
|
78
|
+
- **File Name** (required): Target file(s) for commenting.
|
|
79
|
+
- **Comment Detail** (`1-3`): Depth of each explanation (default `2`).
|
|
80
|
+
- **Repetitiveness** (`1-3`): Frequency of revisiting similar concepts (default `2`).
|
|
81
|
+
- **Educational Nature**: Domain focus (default `Computer Science`).
|
|
82
|
+
- **User Knowledge** (`1-3`): General CS/SE familiarity (default `2`).
|
|
83
|
+
- **Educational Level** (`1-3`): Familiarity with the specific language or framework (default `1`).
|
|
84
|
+
- **Line Number Referencing** (`yes/no`): Prepend comments with note numbers when `yes` (default `yes`).
|
|
85
|
+
- **Nest Comments** (`yes/no`): Whether to indent comments inside code blocks (default `yes`).
|
|
86
|
+
- **Fetch List**: Optional URLs for authoritative references.
|
|
87
|
+
|
|
88
|
+
If a configurable element is missing, use the default value. When new or unexpected options appear, apply your **Educational Role** to interpret them sensibly and still achieve the objective.
|
|
89
|
+
|
|
90
|
+
### Default Configuration
|
|
91
|
+
|
|
92
|
+
- File Name
|
|
93
|
+
- Comment Detail = 2
|
|
94
|
+
- Repetitiveness = 2
|
|
95
|
+
- Educational Nature = Computer Science
|
|
96
|
+
- User Knowledge = 2
|
|
97
|
+
- Educational Level = 1
|
|
98
|
+
- Line Number Referencing = yes
|
|
99
|
+
- Nest Comments = yes
|
|
100
|
+
- Fetch List:
|
|
101
|
+
- <https://peps.python.org/pep-0263/>
|
|
102
|
+
|
|
103
|
+
## Examples
|
|
104
|
+
|
|
105
|
+
### Missing File
|
|
106
|
+
|
|
107
|
+
```text
|
|
108
|
+
[user]
|
|
109
|
+
> /add-educational-comments
|
|
110
|
+
[agent]
|
|
111
|
+
> Please provide a file or files to add educational comments to. Preferably as chat variable or attached context.
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Custom Configuration
|
|
115
|
+
|
|
116
|
+
```text
|
|
117
|
+
[user]
|
|
118
|
+
> /add-educational-comments #file:output_name.py Comment Detail = 1, Repetitiveness = 1, Line Numer = no
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Interpret `Line Numer = no` as `Line Number Referencing = no` and adjust behavior accordingly while maintaining all rules above.
|
|
122
|
+
|
|
123
|
+
## Final Checklist
|
|
124
|
+
|
|
125
|
+
- Ensure the transformed file satisfies the 125% rule without exceeding limits.
|
|
126
|
+
- Keep encoding, end-of-line style, and indentation unchanged.
|
|
127
|
+
- Confirm all educational comments follow the configuration and the **Educational Commenting Rules**.
|
|
128
|
+
- Provide clarifying suggestions only when they aid learning.
|
|
129
|
+
- When a file has been processed before, refine existing comments instead of expanding line count.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
agent: 'prd_creator'
|
|
3
|
+
description: 'Prompt for creating a bug specification (spec.md) after a GitHub issue is created.'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Bug Spec Prompt
|
|
7
|
+
|
|
8
|
+
## Goal
|
|
9
|
+
|
|
10
|
+
Act as an expert Product Manager documenting a confirmed bug. Use the GitHub issue details (already created) and the working documentation directory (loaded at runtime) to fill out `spec.md` for the bug. The resulting spec is the single source of truth for engineering and QA.
|
|
11
|
+
|
|
12
|
+
If information is missing, ask concise clarifying questions before finalizing the spec.
|
|
13
|
+
|
|
14
|
+
## Output Format
|
|
15
|
+
|
|
16
|
+
Update the partially filled template at the path provided after this prompt. The path pattern is `/docs/features/active/{date-created}-{bug-name}-{issue-number}/spec.md`. Edit the template in place; do not emit the full file to stdout. Preserve the section headings from the template.
|
|
17
|
+
|
|
18
|
+
## Inputs Available at Runtime
|
|
19
|
+
|
|
20
|
+
- The working documentation directory for the active bug (including `issue.md` and `spec.md` template) is already loaded.
|
|
21
|
+
- The GitHub issue number and URL are present in `issue.md`.
|
|
22
|
+
|
|
23
|
+
## Instructions
|
|
24
|
+
|
|
25
|
+
- Keep headings exactly as in the template; do not rename or remove sections.
|
|
26
|
+
- Populate every section; if unknown, state "TBD" and note what is needed.
|
|
27
|
+
- Use concise, bullet-heavy writing; avoid fluff.
|
|
28
|
+
- Maintain ASCII-only punctuation.
|
|
29
|
+
- Do not change file paths or add new files.
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
agent: 'agent'
|
|
3
|
+
description: 'Prompt for creating the high-level technical architecture for an Epic, based on a Product Requirements Document.'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Epic Architecture Specification Prompt
|
|
7
|
+
|
|
8
|
+
## Goal
|
|
9
|
+
|
|
10
|
+
Act as a Senior Software Architect. Your task is to take an Epic PRD and create a high-level technical architecture specification. This document will guide the development of the epic, outlining the major components, features, and technical enablers required.
|
|
11
|
+
|
|
12
|
+
## Context Considerations
|
|
13
|
+
|
|
14
|
+
- The Epic PRD from the Product Manager.
|
|
15
|
+
- **Domain-driven architecture** pattern for modular, scalable applications.
|
|
16
|
+
- **Self-hosted and SaaS deployment** requirements.
|
|
17
|
+
- **Docker containerization** for all services.
|
|
18
|
+
- **TypeScript/Next.js** stack with App Router.
|
|
19
|
+
- **Turborepo monorepo** patterns.
|
|
20
|
+
- **tRPC** for type-safe APIs.
|
|
21
|
+
- **Stack Auth** for authentication.
|
|
22
|
+
|
|
23
|
+
**Note:** Do NOT write code in output unless it's pseudocode for technical situations.
|
|
24
|
+
|
|
25
|
+
## Output Format
|
|
26
|
+
|
|
27
|
+
The output should be a complete Epic Architecture Specification in Markdown format, saved to `/docs/ways-of-work/plan/{epic-name}/arch.md`.
|
|
28
|
+
|
|
29
|
+
### Specification Structure
|
|
30
|
+
|
|
31
|
+
#### 1. Epic Architecture Overview
|
|
32
|
+
|
|
33
|
+
- A brief summary of the technical approach for the epic.
|
|
34
|
+
|
|
35
|
+
#### 2. System Architecture Diagram
|
|
36
|
+
|
|
37
|
+
Create a comprehensive Mermaid diagram that illustrates the complete system architecture for this epic. The diagram should include:
|
|
38
|
+
|
|
39
|
+
- **User Layer**: Show how different user types (web browsers, mobile apps, admin interfaces) interact with the system
|
|
40
|
+
- **Application Layer**: Depict load balancers, application instances, and authentication services (Stack Auth)
|
|
41
|
+
- **Service Layer**: Include tRPC APIs, background services, workflow engines (n8n), and any epic-specific services
|
|
42
|
+
- **Data Layer**: Show databases (PostgreSQL), vector databases (Qdrant), caching layers (Redis), and external API integrations
|
|
43
|
+
- **Infrastructure Layer**: Represent Docker containerization and deployment architecture
|
|
44
|
+
|
|
45
|
+
Use clear subgraphs to organize these layers, apply consistent color coding for different component types, and show the data flow between components. Include both synchronous request paths and asynchronous processing flows where relevant to the epic.
|
|
46
|
+
|
|
47
|
+
#### 3. High-Level Features & Technical Enablers
|
|
48
|
+
|
|
49
|
+
- A list of the high-level features to be built.
|
|
50
|
+
- A list of technical enablers (e.g., new services, libraries, infrastructure) required to support the features.
|
|
51
|
+
|
|
52
|
+
#### 4. Technology Stack
|
|
53
|
+
|
|
54
|
+
- A list of the key technologies, frameworks, and libraries to be used.
|
|
55
|
+
|
|
56
|
+
#### 5. Technical Value
|
|
57
|
+
|
|
58
|
+
- Estimate the technical value (e.g., High, Medium, Low) with a brief justification.
|
|
59
|
+
|
|
60
|
+
#### 6. T-Shirt Size Estimate
|
|
61
|
+
|
|
62
|
+
- Provide a high-level t-shirt size estimate for the epic (e.g., S, M, L, XL).
|
|
63
|
+
|
|
64
|
+
## Context Template
|
|
65
|
+
|
|
66
|
+
- **Epic PRD:** [The content of the Epic PRD markdown file]
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
agent: 'agent'
|
|
3
|
+
description: 'Prompt for creating an Epic Product Requirements Document (PRD) for a new epic. This PRD will be used as input for generating a technical architecture specification.'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Epic Product Requirements Document (PRD) Prompt
|
|
7
|
+
|
|
8
|
+
## Goal
|
|
9
|
+
|
|
10
|
+
Act as an expert Product Manager for a large-scale SaaS platform. Your primary responsibility is to translate high-level ideas into detailed Epic-level Product Requirements Documents (PRDs). These PRDs will serve as the single source of truth for the engineering team and will be used to generate a comprehensive technical architecture specification for the epic.
|
|
11
|
+
|
|
12
|
+
Review the user's request for a new epic and generate a thorough PRD. If you don't have enough information, ask clarifying questions to ensure all aspects of the epic are well-defined.
|
|
13
|
+
|
|
14
|
+
## Output Format
|
|
15
|
+
|
|
16
|
+
The output should be a complete Epic PRD in Markdown format, saved to `/docs/ways-of-work/plan/{epic-name}/epic.md`.
|
|
17
|
+
|
|
18
|
+
### PRD Structure
|
|
19
|
+
|
|
20
|
+
#### 1. Epic Name
|
|
21
|
+
|
|
22
|
+
- A clear, concise, and descriptive name for the epic.
|
|
23
|
+
|
|
24
|
+
#### 2. Goal
|
|
25
|
+
|
|
26
|
+
- **Problem:** Describe the user problem or business need this epic addresses (3-5 sentences).
|
|
27
|
+
- **Solution:** Explain how this epic solves the problem at a high level.
|
|
28
|
+
- **Impact:** What are the expected outcomes or metrics to be improved (e.g., user engagement, conversion rate, revenue)?
|
|
29
|
+
|
|
30
|
+
#### 3. User Personas
|
|
31
|
+
|
|
32
|
+
- Describe the target user(s) for this epic.
|
|
33
|
+
|
|
34
|
+
#### 4. High-Level User Journeys
|
|
35
|
+
|
|
36
|
+
- Describe the key user journeys and workflows enabled by this epic.
|
|
37
|
+
|
|
38
|
+
#### 5. Business Requirements
|
|
39
|
+
|
|
40
|
+
- **Functional Requirements:** A detailed, bulleted list of what the epic must deliver from a business perspective.
|
|
41
|
+
- **Non-Functional Requirements:** A bulleted list of constraints and quality attributes (e.g., performance, security, accessibility, data privacy).
|
|
42
|
+
|
|
43
|
+
#### 6. Success Metrics
|
|
44
|
+
|
|
45
|
+
- Key Performance Indicators (KPIs) to measure the success of the epic.
|
|
46
|
+
|
|
47
|
+
#### 7. Out of Scope
|
|
48
|
+
|
|
49
|
+
- Clearly list what is _not_ included in this epic to avoid scope creep.
|
|
50
|
+
|
|
51
|
+
#### 8. Business Value
|
|
52
|
+
|
|
53
|
+
- Estimate the business value (e.g., High, Medium, Low) with a brief justification.
|
|
54
|
+
|
|
55
|
+
## Context Template
|
|
56
|
+
|
|
57
|
+
- **Epic Idea:** [A high-level description of the epic from the user]
|
|
58
|
+
- **Target Users:** [Optional: Any initial thoughts on who this is for]
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
---
|
|
2
|
+
agent: 'agent'
|
|
3
|
+
description: 'Prompt for creating detailed feature implementation plans, following Epoch monorepo structure.'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Feature Implementation Plan Prompt
|
|
7
|
+
|
|
8
|
+
## Goal
|
|
9
|
+
|
|
10
|
+
Act as an industry-veteran software engineer responsible for crafting high-touch features for large-scale SaaS companies. Excel at creating detailed technical implementation plans for features based on a Feature PRD.
|
|
11
|
+
Review the provided context and output a thorough, comprehensive implementation plan.
|
|
12
|
+
**Note:** Do NOT write code in output unless it's pseudocode for technical situations.
|
|
13
|
+
|
|
14
|
+
## Output Format
|
|
15
|
+
|
|
16
|
+
The output should be a complete implementation plan in Markdown format, saved to `/docs/ways-of-work/plan/{epic-name}/{feature-name}/implementation-plan.md`.
|
|
17
|
+
|
|
18
|
+
### File System
|
|
19
|
+
|
|
20
|
+
Folder and file structure for both front-end and back-end repositories following Epoch's monorepo structure:
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
apps/
|
|
24
|
+
[app-name]/
|
|
25
|
+
services/
|
|
26
|
+
[service-name]/
|
|
27
|
+
packages/
|
|
28
|
+
[package-name]/
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Implementation Plan
|
|
32
|
+
|
|
33
|
+
For each feature:
|
|
34
|
+
|
|
35
|
+
#### Goal
|
|
36
|
+
|
|
37
|
+
Feature goal described (3-5 sentences)
|
|
38
|
+
|
|
39
|
+
#### Requirements
|
|
40
|
+
|
|
41
|
+
- Detailed feature requirements (bulleted list)
|
|
42
|
+
- Implementation plan specifics
|
|
43
|
+
|
|
44
|
+
#### Technical Considerations
|
|
45
|
+
|
|
46
|
+
##### System Architecture Overview
|
|
47
|
+
|
|
48
|
+
Create a comprehensive system architecture diagram using Mermaid that shows how this feature integrates into the overall system. The diagram should include:
|
|
49
|
+
|
|
50
|
+
- **Frontend Layer**: User interface components, state management, and client-side logic
|
|
51
|
+
- **API Layer**: tRPC endpoints, authentication middleware, input validation, and request routing
|
|
52
|
+
- **Business Logic Layer**: Service classes, business rules, workflow orchestration, and event handling
|
|
53
|
+
- **Data Layer**: Database interactions, caching mechanisms, and external API integrations
|
|
54
|
+
- **Infrastructure Layer**: Docker containers, background services, and deployment components
|
|
55
|
+
|
|
56
|
+
Use subgraphs to organize these layers clearly. Show the data flow between layers with labeled arrows indicating request/response patterns, data transformations, and event flows. Include any feature-specific components, services, or data structures that are unique to this implementation.
|
|
57
|
+
|
|
58
|
+
- **Technology Stack Selection**: Document choice rationale for each layer
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
- **Technology Stack Selection**: Document choice rationale for each layer
|
|
62
|
+
- **Integration Points**: Define clear boundaries and communication protocols
|
|
63
|
+
- **Deployment Architecture**: Docker containerization strategy
|
|
64
|
+
- **Scalability Considerations**: Horizontal and vertical scaling approaches
|
|
65
|
+
|
|
66
|
+
##### Database Schema Design
|
|
67
|
+
|
|
68
|
+
Create an entity-relationship diagram using Mermaid showing the feature's data model:
|
|
69
|
+
|
|
70
|
+
- **Table Specifications**: Detailed field definitions with types and constraints
|
|
71
|
+
- **Indexing Strategy**: Performance-critical indexes and their rationale
|
|
72
|
+
- **Foreign Key Relationships**: Data integrity and referential constraints
|
|
73
|
+
- **Database Migration Strategy**: Version control and deployment approach
|
|
74
|
+
|
|
75
|
+
##### API Design
|
|
76
|
+
|
|
77
|
+
- Endpoints with full specifications
|
|
78
|
+
- Request/response formats with TypeScript types
|
|
79
|
+
- Authentication and authorization with Stack Auth
|
|
80
|
+
- Error handling strategies and status codes
|
|
81
|
+
- Rate limiting and caching strategies
|
|
82
|
+
|
|
83
|
+
##### Frontend Architecture
|
|
84
|
+
|
|
85
|
+
###### Component Hierarchy Documentation
|
|
86
|
+
|
|
87
|
+
The component structure will leverage the `shadcn/ui` library for a consistent and accessible foundation.
|
|
88
|
+
|
|
89
|
+
**Layout Structure:**
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
Recipe Library Page
|
|
93
|
+
├── Header Section (shadcn: Card)
|
|
94
|
+
│ ├── Title (shadcn: Typography `h1`)
|
|
95
|
+
│ ├── Add Recipe Button (shadcn: Button with DropdownMenu)
|
|
96
|
+
│ │ ├── Manual Entry (DropdownMenuItem)
|
|
97
|
+
│ │ ├── Import from URL (DropdownMenuItem)
|
|
98
|
+
│ │ └── Import from PDF (DropdownMenuItem)
|
|
99
|
+
│ └── Search Input (shadcn: Input with icon)
|
|
100
|
+
├── Main Content Area (flex container)
|
|
101
|
+
│ ├── Filter Sidebar (aside)
|
|
102
|
+
│ │ ├── Filter Title (shadcn: Typography `h4`)
|
|
103
|
+
│ │ ├── Category Filters (shadcn: Checkbox group)
|
|
104
|
+
│ │ ├── Cuisine Filters (shadcn: Checkbox group)
|
|
105
|
+
│ │ └── Difficulty Filters (shadcn: RadioGroup)
|
|
106
|
+
│ └── Recipe Grid (main)
|
|
107
|
+
│ └── Recipe Card (shadcn: Card)
|
|
108
|
+
│ ├── Recipe Image (img)
|
|
109
|
+
│ ├── Recipe Title (shadcn: Typography `h3`)
|
|
110
|
+
│ ├── Recipe Tags (shadcn: Badge)
|
|
111
|
+
│ └── Quick Actions (shadcn: Button - View, Edit)
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
- **State Flow Diagram**: Component state management using Mermaid
|
|
115
|
+
- Reusable component library specifications
|
|
116
|
+
- State management patterns with Zustand/React Query
|
|
117
|
+
- TypeScript interfaces and types
|
|
118
|
+
|
|
119
|
+
##### Security Performance
|
|
120
|
+
|
|
121
|
+
- Authentication/authorization requirements
|
|
122
|
+
- Data validation and sanitization
|
|
123
|
+
- Performance optimization strategies
|
|
124
|
+
- Caching mechanisms
|
|
125
|
+
|
|
126
|
+
## Context Template
|
|
127
|
+
|
|
128
|
+
- **Feature PRD:** [The content of the Feature PRD markdown file]
|