@danmoisan/drm-copilot-mcp 0.0.1 → 0.0.6

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.
Files changed (183) hide show
  1. package/out/mcp-server.js +98 -21
  2. package/package.json +21 -5
  3. package/resources/claude-customizations/.claude/agent-memory/orchestrator/MEMORY.md +15 -3
  4. package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_branch_base_check_unmerged_pr_deps.md +16 -0
  5. package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_every_change_through_lifecycle.md +15 -0
  6. package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_policy_compliance_not_optional.md +18 -0
  7. package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_potential_to_issue_creates_github_issue.md +13 -0
  8. package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_remediation_plan_em_dash_required.md +13 -0
  9. package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_small_bug_uses_minor_audit.md +13 -0
  10. package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_test_files_count_against_500_cap.md +13 -0
  11. package/resources/claude-customizations/.claude/agents/atomic-executor.md +7 -7
  12. package/resources/claude-customizations/.claude/agents/csharp-typed-engineer.md +4 -5
  13. package/resources/claude-customizations/.claude/agents/feature-review.md +7 -3
  14. package/resources/claude-customizations/.claude/agents/orchestrator.md +22 -3
  15. package/resources/claude-customizations/.claude/agents/powershell-typed-engineer.md +1 -1
  16. package/resources/claude-customizations/.claude/agents/pr-author.md +78 -0
  17. package/resources/claude-customizations/.claude/agents/task-researcher.md +10 -6
  18. package/resources/claude-customizations/.claude/hooks/enforce-checkpoint-monotonic.ps1 +303 -0
  19. package/resources/claude-customizations/.claude/hooks/enforce-completion-consistency.ps1 +300 -0
  20. package/resources/claude-customizations/.claude/hooks/enforce-evidence-locations.ps1 +40 -14
  21. package/resources/claude-customizations/.claude/hooks/enforce-feature-folder-order.ps1 +148 -0
  22. package/resources/claude-customizations/.claude/hooks/enforce-orchestration-preimplementation-gate.ps1 +210 -0
  23. package/resources/claude-customizations/.claude/hooks/enforce-pr-author-skill.ps1 +333 -0
  24. package/resources/claude-customizations/.claude/hooks/enforce-prd-feature-before-planner.ps1 +216 -0
  25. package/resources/claude-customizations/.claude/hooks/enforce-promotion-mcp-only.ps1 +84 -15
  26. package/resources/claude-customizations/.claude/hooks/validate-executor-output.ps1 +1 -1
  27. package/resources/claude-customizations/.claude/hooks/validate-feature-review-coverage.ps1 +75 -5
  28. package/resources/claude-customizations/.claude/hooks/validate-orchestrator-output.ps1 +93 -0
  29. package/resources/claude-customizations/.claude/hooks/validate-pr-author-output.ps1 +136 -0
  30. package/resources/claude-customizations/.claude/hooks/validate-task-researcher-output.ps1 +90 -6
  31. package/resources/claude-customizations/.claude/rules/architecture-boundaries.md +46 -0
  32. package/resources/claude-customizations/.claude/rules/benchmark-baselines.md +35 -0
  33. package/resources/claude-customizations/.claude/rules/ci-workflows.md +36 -0
  34. package/resources/claude-customizations/.claude/rules/csharp.md +62 -16
  35. package/resources/claude-customizations/.claude/rules/general-code-change.md +12 -3
  36. package/resources/claude-customizations/.claude/rules/general-unit-test.md +47 -2
  37. package/resources/claude-customizations/.claude/rules/orchestrator-state.md +39 -0
  38. package/resources/claude-customizations/.claude/rules/powershell.md +5 -5
  39. package/resources/claude-customizations/.claude/rules/python.md +4 -3
  40. package/resources/claude-customizations/.claude/rules/quality-tiers.md +51 -0
  41. package/resources/claude-customizations/.claude/rules/typescript.md +37 -8
  42. package/resources/claude-customizations/.claude/settings.json +59 -12
  43. package/resources/claude-customizations/.claude/skills/atomic-plan-contract/SKILL.md +2 -2
  44. package/resources/claude-customizations/.claude/skills/csharp-qa-gate/SKILL.md +25 -10
  45. package/resources/claude-customizations/.claude/skills/evidence-and-timestamp-conventions/SKILL.md +0 -1
  46. package/resources/claude-customizations/.claude/skills/execute-hard-lock/SKILL.md +6 -6
  47. package/resources/claude-customizations/.claude/skills/feature-promotion-lifecycle/SKILL.md +8 -8
  48. package/resources/claude-customizations/.claude/skills/feature-review-workflow/SKILL.md +17 -6
  49. package/resources/claude-customizations/.claude/skills/human-exception-runbook/SKILL.md +52 -0
  50. package/resources/claude-customizations/.claude/skills/human-exception-runbook/example.runbook.md +36 -0
  51. package/resources/claude-customizations/.claude/skills/invoke-csharp-engineer/SKILL.md +4 -4
  52. package/resources/claude-customizations/.claude/skills/orchestrate/SKILL.md +172 -5
  53. package/resources/claude-customizations/.claude/skills/policy-audit-template-usage/SKILL.md +3 -3
  54. package/resources/claude-customizations/.claude/skills/powershell-qa-gate/SKILL.md +4 -4
  55. package/resources/claude-customizations/.claude/skills/pr-base-branch-merge-base/SKILL.md +3 -3
  56. package/resources/claude-customizations/.claude/skills/python-qa-gate/SKILL.md +1 -1
  57. package/resources/claude-customizations/.claude/skills/remediation-handoff-atomic-planner/SKILL.md +90 -17
  58. package/resources/claude-customizations/.claude/skills/research-issue/SKILL.md +5 -3
  59. package/resources/claude-customizations/.claude-variants/csharp-legacy/agents/csharp-typed-engineer.md +69 -0
  60. package/resources/claude-customizations/.claude-variants/csharp-legacy/rules/csharp.md +96 -0
  61. package/resources/claude-customizations/.claude-variants/csharp-legacy/skills/csharp-qa-gate/SKILL.md +77 -0
  62. package/resources/claude-customizations/.claude-variants/csharp-legacy/skills/invoke-csharp-engineer/SKILL.md +64 -0
  63. package/resources/claude-customizations/pack-manifests/core.json +65 -0
  64. package/resources/claude-customizations/pack-manifests/csharp-legacy.json +11 -0
  65. package/resources/claude-customizations/pack-manifests/csharp-modern.json +12 -0
  66. package/resources/claude-customizations/pack-manifests/powershell.json +14 -0
  67. package/resources/claude-customizations/pack-manifests/python.json +14 -0
  68. package/resources/claude-customizations/pack-manifests/typescript.json +9 -0
  69. package/resources/claude-dir-customizations/.mcp.json +3 -3
  70. package/resources/codex-and-agents-customizations/.agents/README.md +1 -1
  71. package/resources/codex-and-agents-customizations/.agents/skills/acceptance-criteria-tracking/SKILL.md +0 -5
  72. package/resources/codex-and-agents-customizations/.agents/skills/architecture-boundaries/SKILL.md +52 -0
  73. package/resources/codex-and-agents-customizations/.agents/skills/atomic-plan-contract/SKILL.md +16 -8
  74. package/resources/codex-and-agents-customizations/.agents/skills/benchmark-baselines/SKILL.md +44 -0
  75. package/resources/codex-and-agents-customizations/.agents/skills/ci-workflows/SKILL.md +45 -0
  76. package/resources/codex-and-agents-customizations/.agents/skills/commit-message/SKILL.md +3 -11
  77. package/resources/codex-and-agents-customizations/.agents/skills/csharp/SKILL.md +1 -5
  78. package/resources/codex-and-agents-customizations/.agents/skills/csharp-change-budget-router/SKILL.md +1 -6
  79. package/resources/codex-and-agents-customizations/.agents/skills/csharp-orchestration-state-machine/SKILL.md +0 -5
  80. package/resources/codex-and-agents-customizations/.agents/skills/csharp-qa-gate/SKILL.md +0 -5
  81. package/resources/codex-and-agents-customizations/.agents/skills/evidence-and-timestamp-conventions/SKILL.md +0 -5
  82. package/resources/codex-and-agents-customizations/.agents/skills/execute-hard-lock/SKILL.md +8 -17
  83. package/resources/codex-and-agents-customizations/.agents/skills/feature-promotion-lifecycle/SKILL.md +41 -25
  84. package/resources/codex-and-agents-customizations/.agents/skills/feature-review-workflow/SKILL.md +1 -6
  85. package/resources/codex-and-agents-customizations/.agents/skills/fill-feature-docs/SKILL.md +0 -5
  86. package/resources/codex-and-agents-customizations/.agents/skills/general-code-change/SKILL.md +86 -0
  87. package/resources/codex-and-agents-customizations/.agents/skills/general-unit-test/SKILL.md +111 -0
  88. package/resources/codex-and-agents-customizations/.agents/skills/human-exception-runbook/SKILL.md +57 -0
  89. package/resources/codex-and-agents-customizations/.agents/skills/human-exception-runbook/example.runbook.md +36 -0
  90. package/resources/codex-and-agents-customizations/.agents/skills/invoke-csharp-engineer/SKILL.md +0 -9
  91. package/resources/codex-and-agents-customizations/.agents/skills/invoke-powershell-engineer/SKILL.md +0 -9
  92. package/resources/codex-and-agents-customizations/.agents/skills/invoke-python-engineer/SKILL.md +0 -9
  93. package/resources/codex-and-agents-customizations/.agents/skills/make-skill-template/SKILL.md +0 -5
  94. package/resources/codex-and-agents-customizations/.agents/skills/orchestrate/SKILL.md +206 -18
  95. package/resources/codex-and-agents-customizations/.agents/skills/orchestrator-state/SKILL.md +48 -0
  96. package/resources/codex-and-agents-customizations/.agents/skills/orchestrator-workflow/SKILL.md +94 -10
  97. package/resources/codex-and-agents-customizations/.agents/skills/policy-audit-template-usage/SKILL.md +3 -8
  98. package/resources/codex-and-agents-customizations/.agents/skills/policy-compliance-order/SKILL.md +0 -10
  99. package/resources/codex-and-agents-customizations/.agents/skills/powershell/SKILL.md +4 -8
  100. package/resources/codex-and-agents-customizations/.agents/skills/powershell-change-budget-router/SKILL.md +1 -6
  101. package/resources/codex-and-agents-customizations/.agents/skills/powershell-orchestration-state-machine/SKILL.md +0 -5
  102. package/resources/codex-and-agents-customizations/.agents/skills/powershell-qa-gate/SKILL.md +3 -9
  103. package/resources/codex-and-agents-customizations/.agents/skills/pr-author/SKILL.md +1 -9
  104. package/resources/codex-and-agents-customizations/.agents/skills/pr-base-branch-merge-base/SKILL.md +4 -9
  105. package/resources/codex-and-agents-customizations/.agents/skills/pr-context-artifacts/SKILL.md +0 -5
  106. package/resources/codex-and-agents-customizations/.agents/skills/python/SKILL.md +1 -5
  107. package/resources/codex-and-agents-customizations/.agents/skills/python-change-budget-router/SKILL.md +1 -6
  108. package/resources/codex-and-agents-customizations/.agents/skills/python-qa-gate/SKILL.md +0 -5
  109. package/resources/codex-and-agents-customizations/.agents/skills/python-suppressions/SKILL.md +2 -6
  110. package/resources/codex-and-agents-customizations/.agents/skills/quality-tiers/SKILL.md +57 -0
  111. package/resources/codex-and-agents-customizations/.agents/skills/remediation-handoff-atomic-planner/SKILL.md +0 -5
  112. package/resources/codex-and-agents-customizations/.agents/skills/repo-automation-adapter/SKILL.md +96 -72
  113. package/resources/codex-and-agents-customizations/.agents/skills/repo-automation-adapter/agents/openai.yaml +1 -1
  114. package/resources/codex-and-agents-customizations/.agents/skills/research-issue/SKILL.md +0 -10
  115. package/resources/codex-and-agents-customizations/.agents/skills/review-epic/SKILL.md +0 -5
  116. package/resources/codex-and-agents-customizations/.agents/skills/review-feature/SKILL.md +0 -5
  117. package/resources/codex-and-agents-customizations/.agents/skills/review-staged/SKILL.md +0 -5
  118. package/resources/codex-and-agents-customizations/.agents/skills/self-explanatory-code-commenting/SKILL.md +2 -6
  119. package/resources/codex-and-agents-customizations/.agents/skills/skill-canonical-location-audit/SKILL.md +0 -5
  120. package/resources/codex-and-agents-customizations/.agents/skills/tonality/SKILL.md +86 -0
  121. package/resources/codex-and-agents-customizations/.agents/skills/translate-claude-to-codex/SKILL.md +297 -0
  122. package/resources/codex-and-agents-customizations/.agents/skills/translate-copilot-to-claude/SKILL.md +0 -22
  123. package/resources/codex-and-agents-customizations/.agents/skills/typescript/SKILL.md +1 -5
  124. package/resources/codex-and-agents-customizations/.agents/skills/typescript-suppressions/SKILL.md +2 -6
  125. package/resources/codex-and-agents-customizations/.agents/skills/update-status/SKILL.md +0 -5
  126. package/resources/codex-and-agents-customizations/.codex/agents/atomic-executor.toml +5 -5
  127. package/resources/codex-and-agents-customizations/.codex/agents/orchestrator.toml +91 -63
  128. package/resources/codex-and-agents-customizations/.codex/agents/powershell-atomic-executor.toml +1 -1
  129. package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer.toml +1 -1
  130. package/resources/codex-and-agents-customizations/.codex/config.toml +111 -137
  131. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-checkpoint-monotonic.ps1 +303 -0
  132. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-completion-consistency.ps1 +300 -0
  133. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-orchestration-preimplementation-gate.ps1 +148 -0
  134. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-pr-author-skill.ps1 +336 -0
  135. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-promotion-mcp-only.ps1 +84 -18
  136. package/resources/codex-and-agents-customizations/.codex/prompts/orchestrate-work.md +4 -3
  137. package/resources/codex-and-agents-customizations/.codex/scripts/post-codex-worktree-session.ps1 +5 -0
  138. package/resources/codex-and-agents-customizations/.github/workflows/_validate-orchestrator-state.yml +68 -0
  139. package/resources/codex-and-agents-customizations/.github/workflows/validate-orchestrator-state.yml +15 -0
  140. package/resources/config/orchestration-routing.json +76 -0
  141. package/resources/customizations/.github/agents/Powershell DI Unit Test Engineer.agent.md +1 -1
  142. package/resources/customizations/.github/agents/atomic_executor.agent.md +1 -1
  143. package/resources/customizations/.github/agents/atomic_planning.agent.md +10 -10
  144. package/resources/customizations/.github/agents/csharp-orchestrator.agent.md +6 -2
  145. package/resources/customizations/.github/agents/feature-review.agent.md +2 -2
  146. package/resources/customizations/.github/agents/orchestrator.agent.md +6 -2
  147. package/resources/customizations/.github/agents/powershell-atomic-executor.agent.md +4 -4
  148. package/resources/customizations/.github/agents/powershell-atomic-planning.agent.md +10 -10
  149. package/resources/customizations/.github/agents/powershell-orchestrator.agent.md +6 -2
  150. package/resources/customizations/.github/agents/powershell-typed-engineer.agent.md +2 -2
  151. package/resources/customizations/.github/agents/pr-author.agent.md +25 -0
  152. package/resources/customizations/.github/agents/python-orchestrator.agent.md +6 -2
  153. package/resources/customizations/.github/agents/staged-review.agent.md +1 -1
  154. package/resources/customizations/.github/agents/task-researcher.agent.md +4 -4
  155. package/resources/customizations/.github/instructions/powershell-code-change.instructions.md +6 -6
  156. package/resources/customizations/.github/prompts/fillout-prd-feature.prompt.md +1 -1
  157. package/resources/customizations/.github/prompts/generate-commit-message-repo.prompt.md +1 -1
  158. package/resources/customizations/.github/prompts/orchestrate-csharp-work.prompt.md +5 -3
  159. package/resources/customizations/.github/prompts/orchestrate-work.prompt.md +5 -3
  160. package/resources/customizations/.github/prompts/research-issue.prompt.md +4 -3
  161. package/resources/customizations/.github/skills/atomic-plan-contract/SKILL.md +14 -1
  162. package/resources/customizations/.github/skills/feature-promotion-lifecycle/SKILL.md +11 -7
  163. package/resources/customizations/.github/skills/feature-review-workflow/SKILL.md +10 -1
  164. package/resources/customizations/.github/skills/pr-base-branch-merge-base/SKILL.md +2 -2
  165. package/resources/customizations/.github/skills/remediation-handoff-atomic-planner/SKILL.md +5 -0
  166. package/resources/powershell/PoshQC/settings/pester.runsettings.psd1 +7 -0
  167. package/resources/scripts/dev_tools/_orchestrator_state_human_interaction.py +127 -0
  168. package/resources/scripts/dev_tools/_orchestrator_state_routing.py +216 -0
  169. package/resources/scripts/dev_tools/push_down_claude_customizations.py +276 -61
  170. package/resources/scripts/dev_tools/push_down_claude_filesystem.py +472 -0
  171. package/resources/scripts/dev_tools/push_down_claude_pack_selection.py +401 -0
  172. package/resources/scripts/dev_tools/validate_orchestration_artifacts.py +103 -411
  173. package/resources/scripts/dev_tools/validate_orchestration_review_artifacts.py +107 -0
  174. package/resources/scripts/dev_tools/validate_orchestrator_state.py +505 -0
  175. package/resources/scripts/dev_tools/validate_policy_audit_artifact.py +472 -0
  176. package/resources/templates/push_down_claude_customizations.py +162 -117
  177. package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_repo_root_is_source_of_truth.md +0 -11
  178. package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_vsce_verify_package_location.md +0 -19
  179. package/resources/claude-customizations/.claude/agent-memory/orchestrator/project_extension_location.md +0 -11
  180. package/resources/claude-customizations/.claude/agent-memory/prd-feature/MEMORY.md +0 -1
  181. package/resources/claude-customizations/.claude/agent-memory/prd-feature/project_push_down_pattern.md +0 -13
  182. package/resources/claude-customizations/.claude/agent-memory/task-researcher/MEMORY.md +0 -3
  183. package/resources/claude-customizations/.claude/agent-memory/task-researcher/project_push_down_claude_dir.md +0 -11
@@ -1,8 +1,3 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
7
2
  name: powershell-change-budget-router
8
3
  description: Budget-first routing contract for PowerShell work: estimate production-file scope, choose small vs large path, enforce direct-mode escalation to orchestrator, and use the VS Code extension command surface for promotion lifecycle steps when available.
@@ -29,7 +24,7 @@ Use this skill when:
29
24
  ## Orchestrated Small-Path Requirements
30
25
 
31
26
  When routed through `powershell-orchestrator`, small path still requires lifecycle scaffolding before implementation:
32
- - invoke promotion/folder lifecycle steps through `vscode/runCommand` + extension access per `feature-promotion-lifecycle` when available; use script/CLI fallback only when direct extension command execution is unavailable,
27
+ - invoke promotion/folder lifecycle steps through the `drm-copilot` MCP tools required by `repo-automation-adapter`. If the MCP server or required tool is unavailable, stop before promotion,
33
28
  - promote potential item to GitHub issue with `--work-mode minor-audit`,
34
29
  - create active feature folder with `--work-mode minor-audit`,
35
30
  - delegate minimal-audit plan creation to `atomic_planner` with `DIRECTIVE: MINIMAL-AUDIT PLAN REQUIRED`,
@@ -1,8 +1,3 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
7
2
  name: powershell-orchestration-state-machine
8
3
  description: Checkpoint schema and resume protocol for long-running PowerShell orchestration workflows.
@@ -1,9 +1,3 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - Rewrite Claude skill paths to shared skill paths.
5
- - Rewrite Claude rule paths to shared skill paths.
6
-
7
1
  ---
8
2
  name: powershell-qa-gate
9
3
  description: Final QA gate for PowerShell changes. Executes the full PoshQC format -> analyze -> test toolchain (with coverage where enforced), compares against a captured baseline, enforces zero-regression deltas, and produces the required reporting block before the agent declares the change complete.
@@ -33,9 +27,9 @@ Before invoking this gate, the agent must have:
33
27
 
34
28
  Run the full toolchain in this exact order. If any step fails or modifies files, fix the issue and restart from step 1. Do not stop the loop until all steps complete without errors in a single pass.
35
29
 
36
- 1. `mcp__drmCopilotExtension__run_poshqc_format`
37
- 2. `mcp__drmCopilotExtension__run_poshqc_analyze`
38
- 3. `mcp__drmCopilotExtension__run_poshqc_test`
30
+ 1. `mcp__drm-copilot__run_poshqc_format`
31
+ 2. `mcp__drm-copilot__run_poshqc_analyze`
32
+ 3. `mcp__drm-copilot__run_poshqc_test`
39
33
  4. Coverage check (when enforced by task/repo flow) — use the Pester coverage output from step 3 or the repo coverage task.
40
34
 
41
35
  If the environment prevents running any tool, stop and report the change as **unverified**. Do not declare completion.
@@ -1,14 +1,6 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
7
2
  name: pr-author
8
3
  description: Write a GitHub-ready pull request body from the canonical PR-context bundle with strict verification and auto-close rules.
9
- allowed-tools:
10
- - Read
11
- - "Bash(git log *)"
12
4
  ---
13
5
 
14
6
  # PR Author Skill
@@ -52,4 +44,4 @@ Use these sections in this order:
52
44
  - Only mention an issue/PR number if it appears verbatim in the provided context.
53
45
  - Do not treat PR numbers as issues.
54
46
  - Auto-close bullets must use exactly `- Closes #NNN` format, sourced only from "Issues to autoclose" or "Author-asserted autoclose issues."
55
- - If GitHub validation is unavailable/unverified, do not emit `Closes`; use the fallback `None` bullet.
47
+ - If GitHub validation is unavailable or unverified, do not emit `Closes`; use the `None` bullet.
@@ -1,11 +1,6 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
7
2
  name: pr-base-branch-merge-base
8
- description: 'Resolve PRBaseBranch for mcp__drmCopilotExtension__collect_pr_context using merge-base ancestry. Use when orchestrators or review workflows need the correct comparison base branch and must select the branch with the most recent common ancestor commit with HEAD.'
3
+ description: 'Resolve PRBaseBranch for mcp__drm-copilot__collect_pr_context using merge-base ancestry. Use when orchestrators or review workflows need the correct comparison base branch and must select the branch with the most recent common ancestor commit with HEAD.'
9
4
  ---
10
5
 
11
6
  # PR Base Branch (Merge-Base)
@@ -15,7 +10,7 @@ Deterministic branch-selection rules for PR context collection.
15
10
  ## When to Use This Skill
16
11
 
17
12
  Use this skill when:
18
- - running `mcp__drmCopilotExtension__collect_pr_context`,
13
+ - running `mcp__drm-copilot__collect_pr_context`,
19
14
  - delegating post-implementation review that depends on `PRBaseBranch`,
20
15
  - constructing PR context artifacts where the base must not be hard-coded.
21
16
 
@@ -42,14 +37,14 @@ Definition of correct base:
42
37
  ## Guardrails
43
38
 
44
39
  - Do not default to `main` unless merge-base resolution fails for all candidates.
45
- - If all candidates fail, surface explicit error context and use repository default branch only as last-resort fallback.
40
+ - If all candidates fail, surface explicit error context and stop unless repository metadata directly identifies the default branch.
46
41
  - Persist chosen `PRBaseBranch` in orchestration state and reuse it within the same run.
47
42
 
48
43
  ## Collector Invocation Rule
49
44
 
50
45
  When invoking PR context collection, pass the resolved base explicitly:
51
46
 
52
- - `mcp__drmCopilotExtension__collect_pr_context` with `base=<resolved-PRBaseBranch>`
47
+ - `mcp__drm-copilot__collect_pr_context` with `base=<resolved-PRBaseBranch>`
53
48
 
54
49
  ## Evidence Recommendation
55
50
 
@@ -1,8 +1,3 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
7
2
  name: pr-context-artifacts
8
3
  description: 'PR context artifact locations and refresh rules. Use when generating, reading, or inlining pr_context summary/appendix artifacts.'
@@ -1,9 +1,5 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
2
+ name: python
7
3
  paths:
8
4
  - "**/*.py"
9
5
  description: Python-specific toolchain and coding standards.
@@ -1,8 +1,3 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
7
2
  name: python-change-budget-router
8
3
  description: Budget-first routing and batch-scope contract for Python work. Estimate production-file scope, choose small vs large path, enforce the 3 production + 3 test per-batch cap, and halt the agent for scope expansion approval when the estimate exceeds the budget.
@@ -64,7 +59,7 @@ If `python-typed-engineer` is invoked directly and estimated scope is `>3` produ
64
59
 
65
60
  When routed through the orchestrator, the small path still requires lifecycle scaffolding before implementation:
66
61
 
67
- - invoke promotion and folder lifecycle steps through `vscode/runCommand` and extension access per `feature-promotion-lifecycle` when available. Use script or CLI fallback only when direct extension command execution is unavailable.
62
+ - invoke promotion and folder lifecycle steps through the `drm-copilot` MCP tools required by `repo-automation-adapter`. If the MCP server or required tool is unavailable, stop before promotion.
68
63
  - promote the potential item to a GitHub issue with `--work-mode minor-audit`,
69
64
  - create the active feature folder with `--work-mode minor-audit`,
70
65
  - delegate minimal-audit plan creation to `atomic_planner` with `DIRECTIVE: MINIMAL-AUDIT PLAN REQUIRED`,
@@ -1,8 +1,3 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - Rewrite Claude skill paths to shared skill paths.
5
-
6
1
  ---
7
2
  name: python-qa-gate
8
3
  description: Final QA gate for Python changes. Executes the full Black -> Ruff -> Pyright -> Pytest toolchain, compares against a captured baseline, enforces zero-regression deltas, and produces the required reporting block before the agent declares the change complete.
@@ -1,12 +1,8 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
2
+ name: python-suppressions
7
3
  paths:
8
4
  - "**/*.py"
9
- description: Pre-authorized Python Ruff and Pyright suppression patterns. Applies to Python files.
5
+ description: Python suppression policy for linting and type-checking exceptions.
10
6
  ---
11
7
 
12
8
  # Python Suppression Policy
@@ -0,0 +1,57 @@
1
+ ---
2
+ name: quality-tiers
3
+ description: Module rigor tier system and uniform coverage thresholds.
4
+ paths:
5
+ - "**"
6
+ description: Module rigor tier system and uniform coverage thresholds.
7
+ ---
8
+
9
+ # Converted rule
10
+
11
+ Source: legacy Claude rule `quality-tiers`.
12
+
13
+ # Module Rigor Tiers
14
+
15
+ This rule defines the T1–T4 module rigor tier system used by all CI gates in this repository. The tier system source of truth is `docs/ci.research.md` section 1; the file `quality-tiers.yml` at the repository root maps every project to a tier. Adding a project without a tier classification fails CI.
16
+
17
+ ## Tiers
18
+
19
+ - **T1 — Critical.** Behavior bugs cause silent data loss, model drift, or security holes. Examples (No-COM architecture): classifier engines (SpamBayes, Triage), ToDo ID allocator and hierarchy operations, Graph extended-properties adapter, auth/token handling, host-agnostic command bus.
20
+ - **T2 — Core.** Bugs cause feature regressions but not data loss. Examples: `TaskMaster.Domain`, `TaskMaster.Application`, mail-item DTOs, settings store abstraction, schema definitions.
21
+ - **T3 — Adapters & UI.** Glue around APIs the team does not own. Examples: Outlook task pane UI, Office.js wrappers, Microsoft Graph SDK wrappers, persistence I/O.
22
+ - **T4 — Scaffolding.** Examples: DI wiring, bootstrap, build scripts, dev tooling, generated code, manifests.
23
+
24
+ ## Source of Truth
25
+
26
+ - `quality-tiers.yml` at repo root maps every project to one tier.
27
+ - The CI pipeline's `tier-classification` stage validates that every project entry has a tier and that no unclassified project exists. Adding a project without a tier classification fails CI.
28
+
29
+ ## Uniform-vs-Tier-Dependent Gate Matrix
30
+
31
+ Per Authoritative Decision #2, line and branch coverage thresholds are uniform across all tiers. Other gates remain tier-dependent.
32
+
33
+ ### Uniform across all tiers (T1–T4)
34
+
35
+ - Format check: 100% pass.
36
+ - Lint errors: 0.
37
+ - Type errors: 0.
38
+ - Architecture violations: 0.
39
+ - Line coverage: >= 85%.
40
+ - Branch coverage: >= 75%.
41
+ - No regression on changed lines.
42
+
43
+ ### Tier-dependent
44
+
45
+ | Gate | T1 | T2 | T3 | T4 |
46
+ |---|---|---|---|---|
47
+ | Untyped escape hatches (`any`/`dynamic`) | 0 | 0 | <= 5 per file, justified | unlimited |
48
+ | Property test density | >= 1 per pure function | >= 1 per pure function | none | none |
49
+ | Mutation score | >= 75% | trend-only | none | none |
50
+ | Contract breaking changes | major bump required | major bump required | n/a | n/a |
51
+ | Determinism (retry rate) | < 0.5% | < 1% | < 2% | n/a |
52
+ | Golden tests | required for classifier-output modules | optional | none | none |
53
+ | Full E2E suite scope | all critical paths | core paths | adapter smoke | none |
54
+
55
+ ## Rationale (uniform coverage thresholds)
56
+
57
+ High test coverage is a fundamental quality-control design choice that enables autonomous agentic development and trust in the work product. For that reason, line coverage >= 85% and branch coverage >= 75% apply uniformly across T1–T4; tier-specific lower coverage floors are not used in this repository.
@@ -1,8 +1,3 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
7
2
  name: remediation-handoff-atomic-planner
8
3
  description: 'Reusable remediation trigger and atomic_planner handoff steps. Use when audits require remediation inputs and a delegated remediation plan.'
@@ -1,49 +1,39 @@
1
1
  ---
2
2
  name: repo-automation-adapter
3
- description: 'Centralize host-surface and repo-automation differences for Codex. Use when a migrated workflow previously depended on GitHub Copilot or VS Code extension commands and needs a single Codex-compatible execution or fallback rule.'
3
+ description: 'Centralize required drm-copilot MCP execution for Codex repo automation. Use when a workflow needs promotion, PR context, commit context, customization publishing, hard-lock resolution, or orchestration validation.'
4
4
  ---
5
5
 
6
6
  # Repo Automation Adapter
7
7
 
8
- Use this skill to keep host-specific workflow translation in one place.
8
+ Use this skill to keep host-specific workflow execution rules in one place.
9
9
 
10
- ## When to Use This Skill
10
+ ## Canonical Rule
11
11
 
12
- Use this skill when:
13
- - a migrated skill previously depended on `drmCopilotExtension.*` commands,
14
- - a workflow needs PR-context collection, issue promotion, or feature-folder creation,
15
- - the same fallback behavior would otherwise be repeated across multiple skills.
12
+ The `drm-copilot` MCP server is the only approved execution surface for canonical repository automation covered by this skill.
16
13
 
17
- ## Canonical Rule
14
+ There is no fallback. If the server is unavailable, the required tool is unavailable, or the MCP call fails, the workflow must stop, persist blocked state when an orchestrator checkpoint is active, and report the missing dependency or failed MCP operation.
18
15
 
19
- Do not encode host-specific execution details in multiple workflow skills. Put them here and have the calling skills reference this skill.
16
+ Do not replace a required MCP operation with local scripts, git reconstruction, direct filesystem synthesis, VS Code command IDs, or best-effort behavior.
20
17
 
21
- ## Published Codex Automation Surface
18
+ ## When to Use This Skill
22
19
 
23
- The canonical Codex automation dependency for this repo is the published MCP server:
24
- - `drmCopilotExtension`
20
+ Use this skill when:
25
21
 
26
- Downstream Codex skills should depend on the MCP server name `drmCopilotExtension`, not on raw VS Code command IDs.
22
+ - a migrated workflow previously depended on `drmCopilotExtension.*` commands,
23
+ - a workflow needs PR-context collection, issue promotion, feature-folder creation, commit-context collection, customization publishing, hard-lock prompt resolution, or orchestration-artifact validation,
24
+ - multiple skills need the same MCP-required execution rule.
27
25
 
28
- Declare that dependency once on this skill via `agents/openai.yaml`.
26
+ ## Published Codex Automation Surface
29
27
 
30
- ## Codex Capability Model
28
+ The required Codex automation dependency for this repo is the published MCP server:
31
29
 
32
- Codex in this repo can reliably use:
33
- - repository files,
34
- - shell commands,
35
- - git,
36
- - local scripts that already exist in the repository,
37
- - configured MCP tools when available.
30
+ - `drm-copilot`
38
31
 
39
- Codex in this repo should not assume direct access to:
40
- - `vscode/runCommand`,
41
- - `drmCopilotExtension.*` command execution,
42
- - GitHub issue or PR mutation unless an explicit connector or script is available.
32
+ Downstream Codex skills must depend on the MCP server name `drm-copilot`, not on raw VS Code command IDs.
43
33
 
44
34
  ## Published MCP Tool Surface
45
35
 
46
- Prefer these semantic MCP tools when the server is configured:
36
+ Use these semantic MCP tools when the corresponding operation is required:
47
37
 
48
38
  - `collect_commit_context`
49
39
  - `collect_pr_context`
@@ -54,8 +44,14 @@ Prefer these semantic MCP tools when the server is configured:
54
44
  - `potential_to_issue`
55
45
  - `new_active_feature_folder`
56
46
  - `resolve_execute_hard_lock_prompt`
47
+ - `resolve_atomic_plan_prompt`
48
+ - `validate_orchestration_artifacts`
49
+ - `run_poshqc_format`
50
+ - `run_poshqc_analyze`
51
+ - `run_poshqc_analyze_autofix`
52
+ - `run_poshqc_test`
57
53
 
58
- Legacy VS Code command IDs remain historical source material only:
54
+ Legacy VS Code command IDs are historical source material only and must not be invoked:
59
55
 
60
56
  - `drmCopilotExtension.collectCommitContext`
61
57
  - `drmCopilotExtension.collectPrContext`
@@ -69,74 +65,102 @@ Legacy VS Code command IDs remain historical source material only:
69
65
 
70
66
  ## Adapter Preconditions
71
67
 
72
- Before treating the MCP path as available, assume these prerequisites:
68
+ Before starting any workflow that depends on this skill, the orchestrator must assume these prerequisites are mandatory:
73
69
 
74
- - the Codex client is configured with MCP server name `drmCopilotExtension`
75
- - the published extension or bridge is installed and built
76
- - an open workspace folder exists for workspace-targeted operations
77
- - `python` is on `PATH`
78
- - `pwsh` is preferred, with Windows PowerShell fallback when applicable
70
+ - the Codex project is trusted so project `.codex/config.toml` loads,
71
+ - the Codex client is configured with MCP server name `drm-copilot`,
72
+ - the `drm-copilot` MCP server is active,
73
+ - the required MCP tool is exposed by the active server,
74
+ - an open workspace folder exists for workspace-targeted operations.
75
+
76
+ If any prerequisite is missing, stop before mutating workflow state.
79
77
 
80
78
  ## Execution Order
81
79
 
82
80
  For any host-specific workflow step:
83
81
 
84
- 1. Prefer the published `drmCopilotExtension` MCP tool when it covers the requested operation.
85
- 2. If the MCP server is unavailable, determine whether a deterministic git or filesystem fallback is sufficient.
86
- 3. If a deterministic fallback is sufficient, use it and record that the result is a fallback artifact rather than a canonical tool-produced artifact.
87
- 4. If no MCP path or safe fallback exists, stop and report the missing automation dependency instead of inventing behavior.
82
+ 1. Identify the required `drm-copilot` MCP tool.
83
+ 2. Call that MCP tool.
84
+ 3. Validate the MCP response according to the calling workflow's contract.
85
+ 4. If the tool is unavailable, the call fails, or the response does not satisfy the contract, stop and record blocked state. Do not execute a replacement path.
88
86
 
89
87
  ## Current Adapter Guidance
90
88
 
91
89
  ### PR context collection
92
90
 
93
- - Preferred: call tool `collect_pr_context` on MCP server `drmCopilotExtension`.
91
+ - Required tool: `collect_pr_context`.
94
92
  - When the caller already resolved a base branch, pass that base explicitly.
95
- - Current fallback: use deterministic git commands to reconstruct equivalent context when review workflows only need base/head, merge-base, commits, and changed files.
96
- - When using fallback, record the provenance in the generated review artifact.
97
93
  - For orchestrator remediation loops, PR-context refresh is mandatory after each remediation commit and before each re-review.
98
- - When the caller explicitly requires MCP tooling for PR-context refresh, do not silently downgrade to fallback; stop and report the dependency gap instead.
94
+ - If the tool is unavailable or fails, stop. Do not reconstruct PR context from local git commands.
99
95
 
100
96
  ### Commit context collection
101
97
 
102
- - Preferred: call tool `collect_commit_context` on MCP server `drmCopilotExtension`.
103
- - If the MCP server is unavailable and the workflow only needs staged-diff summary, use non-destructive git inspection as fallback and record that provenance.
98
+ - Required tool: `collect_commit_context`.
104
99
  - For orchestrator remediation loops, collect commit context only after `git add -A` and only when staged changes exist.
105
- - For orchestrator remediation loops, do not continue to commit-message generation without an on-disk commit-context artifact path produced by the selected adapter path.
106
- - When the caller explicitly requires MCP tooling for commit-context collection, do not silently downgrade to fallback; stop and report the dependency gap instead.
100
+ - Do not continue to commit-message generation without an on-disk commit-context artifact path produced by the MCP tool.
101
+ - If the tool is unavailable or fails, stop. Do not replace it with staged-diff inspection.
107
102
 
108
103
  ### Feature promotion and active feature folder creation
109
104
 
110
- - Preferred MCP tools:
111
- - `new_potential_entry`
112
- - `new_potential_bug_entry`
113
- - `potential_to_issue`
114
- - `new_active_feature_folder`
115
- - Current rule: use the MCP tools as the canonical path.
116
- - Execute these lifecycle operations as one ordered chain:
117
- - create potential entry
118
- - promote with `potential_to_issue`
119
- - capture numeric issue number from promotion output
120
- - create or check out `${promotion-type}/${short-name}-${issue-num}`
121
- - create active feature folder with `new_active_feature_folder`
122
- - `new_active_feature_folder` is not an allowed bootstrap substitute for missing promotion state.
123
- - If `${issue-num}` is missing, non-numeric, or placeholder text, stop instead of continuing.
124
- - If the MCP server is unavailable, surface a precise dependency gap unless the caller explicitly requests a best-effort local-only fallback.
125
- - Do not synthesize GitHub issue state, active-folder scaffolding, or placeholder lifecycle variables unless the user explicitly requests a best-effort local-only fallback.
126
- - When a local-only fallback is explicitly approved, preserve the same ordered lifecycle and verification gates; do not skip directly to folder creation.
105
+ Required tools:
106
+
107
+ - `new_potential_entry`
108
+ - `new_potential_bug_entry`
109
+ - `potential_to_issue`
110
+ - `new_active_feature_folder`
111
+
112
+ Execute these lifecycle operations as one ordered chain:
113
+
114
+ 1. Verify route metadata and selected `${work-mode}` are persisted in the
115
+ canonical checkpoint.
116
+ 2. Create or verify pre-issue branch `${promotion-type}/${short-name}` before
117
+ `new_potential_entry` or `new_potential_bug_entry`.
118
+ 3. Create the potential entry with `new_potential_entry` or
119
+ `new_potential_bug_entry`.
120
+ 4. Promote with `potential_to_issue`.
121
+ 5. Capture numeric issue number from promotion output.
122
+ 6. Rename the branch to `${promotion-type}/${short-name}-${issue-num}`.
123
+ 7. Create the active feature folder with `new_active_feature_folder`.
124
+
125
+ `new_active_feature_folder` is not an allowed bootstrap substitute for missing promotion state. If `${issue-num}` is missing, non-numeric, or placeholder text, stop before final branch rename or active folder creation. Do not synthesize GitHub issue state, active-folder scaffolding, or placeholder lifecycle variables.
127
126
 
128
127
  ### Customization publishing and hard-lock resolution
129
128
 
130
- - Preferred MCP tools:
131
- - `push_down_copilot_customizations`
132
- - `push_down_codex_and_agents_customizations`
133
- - `resolve_execute_hard_lock_prompt`
134
- - If the MCP server is unavailable, stop unless the caller explicitly provides an approved alternate path.
129
+ Required tools:
130
+
131
+ - `push_down_copilot_customizations`
132
+ - `push_down_codex_and_agents_customizations`
133
+ - `resolve_execute_hard_lock_prompt`
134
+ - `resolve_atomic_plan_prompt`
135
+
136
+ If the required tool is unavailable or fails, stop.
137
+
138
+ ### Orchestration artifact validation
139
+
140
+ Required tool:
141
+
142
+ - `validate_orchestration_artifacts`
143
+
144
+ Use this tool for canonical validation of plans, policy audits, code reviews, feature audits, and orchestrator state. For orchestrator completion, call it with `artifact_type: "orchestrator-state"` and `require_complete: true`.
145
+
146
+ If the tool is unavailable or fails, stop. Do not substitute direct CLI validation for canonical orchestrator completion.
147
+
148
+ ### PowerShell quality gates
149
+
150
+ Required tools:
151
+
152
+ - `run_poshqc_format`
153
+ - `run_poshqc_analyze`
154
+ - `run_poshqc_analyze_autofix`
155
+ - `run_poshqc_test`
156
+
157
+ When a workflow requires PoshQC execution through MCP, use only these tools. If the required tool is unavailable or fails, stop.
135
158
 
136
159
  ## Output Requirements
137
160
 
138
- When this skill is used, the calling workflow should report:
139
- - which operation required host adaptation,
140
- - which direct adapter or fallback path was selected,
141
- - whether the result is canonical or fallback-only,
142
- - what dependency is missing when the step is blocked.
161
+ When this skill is used, the calling workflow must report:
162
+
163
+ - which MCP operation was required,
164
+ - which `drm-copilot` tool was called,
165
+ - whether the MCP response satisfied the calling contract,
166
+ - the blocked-state reason when the MCP dependency is unavailable or fails.
@@ -1,5 +1,5 @@
1
1
  dependencies:
2
2
  tools:
3
3
  - type: "mcp"
4
- value: "drmCopilotExtension"
4
+ value: "drm-copilot"
5
5
  description: "Published drm-copilot stdio MCP bridge for repository automation"
@@ -1,16 +1,6 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
7
2
  name: research-issue
8
3
  description: Investigate the best implementation approach for a feature or bug by analyzing the codebase and external references, then writing structured findings to artifacts/research/.
9
- allowed-tools:
10
- - Read
11
- - Grep
12
- - Glob
13
- - WebFetch
14
4
  ---
15
5
 
16
6
  # Research Issue Skill
@@ -1,8 +1,3 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
7
2
  name: review-epic
8
3
  description: Invoke the epic-review worker to produce epic-audit artifacts for an epic folder.
@@ -1,8 +1,3 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
7
2
  name: review-feature
8
3
  description: Invoke the feature-review worker to produce feature-audit artifacts for an active feature folder.
@@ -1,8 +1,3 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
7
2
  name: review-staged
8
3
  description: Invoke the staged-review worker to produce staged-review artifacts from the staged diff.
@@ -1,12 +1,8 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
2
+ name: self-explanatory-code-commenting
7
3
  paths:
8
4
  - "**/*.py"
9
- description: Intent-first docstring and commenting standards. Applies to Python files.
5
+ description: Intent-first docstring and commenting standards.
10
6
  ---
11
7
 
12
8
  # Code Commenting and Docstring Policy
@@ -1,8 +1,3 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - Rewrite Claude skill-directory references to the native skill root.
5
-
6
1
  ---
7
2
  name: skill-canonical-location-audit
8
3
  description: 'Audit skills for canonical-location duplication. Use when ensuring a canonical location for a given item is defined in exactly one skill and duplicates are flagged.'