@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.
- package/out/mcp-server.js +98 -21
- package/package.json +21 -5
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/MEMORY.md +15 -3
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_branch_base_check_unmerged_pr_deps.md +16 -0
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_every_change_through_lifecycle.md +15 -0
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_policy_compliance_not_optional.md +18 -0
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_potential_to_issue_creates_github_issue.md +13 -0
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_remediation_plan_em_dash_required.md +13 -0
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_small_bug_uses_minor_audit.md +13 -0
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_test_files_count_against_500_cap.md +13 -0
- package/resources/claude-customizations/.claude/agents/atomic-executor.md +7 -7
- package/resources/claude-customizations/.claude/agents/csharp-typed-engineer.md +4 -5
- package/resources/claude-customizations/.claude/agents/feature-review.md +7 -3
- package/resources/claude-customizations/.claude/agents/orchestrator.md +22 -3
- package/resources/claude-customizations/.claude/agents/powershell-typed-engineer.md +1 -1
- package/resources/claude-customizations/.claude/agents/pr-author.md +78 -0
- package/resources/claude-customizations/.claude/agents/task-researcher.md +10 -6
- package/resources/claude-customizations/.claude/hooks/enforce-checkpoint-monotonic.ps1 +303 -0
- package/resources/claude-customizations/.claude/hooks/enforce-completion-consistency.ps1 +300 -0
- package/resources/claude-customizations/.claude/hooks/enforce-evidence-locations.ps1 +40 -14
- package/resources/claude-customizations/.claude/hooks/enforce-feature-folder-order.ps1 +148 -0
- package/resources/claude-customizations/.claude/hooks/enforce-orchestration-preimplementation-gate.ps1 +210 -0
- package/resources/claude-customizations/.claude/hooks/enforce-pr-author-skill.ps1 +333 -0
- package/resources/claude-customizations/.claude/hooks/enforce-prd-feature-before-planner.ps1 +216 -0
- package/resources/claude-customizations/.claude/hooks/enforce-promotion-mcp-only.ps1 +84 -15
- package/resources/claude-customizations/.claude/hooks/validate-executor-output.ps1 +1 -1
- package/resources/claude-customizations/.claude/hooks/validate-feature-review-coverage.ps1 +75 -5
- package/resources/claude-customizations/.claude/hooks/validate-orchestrator-output.ps1 +93 -0
- package/resources/claude-customizations/.claude/hooks/validate-pr-author-output.ps1 +136 -0
- package/resources/claude-customizations/.claude/hooks/validate-task-researcher-output.ps1 +90 -6
- package/resources/claude-customizations/.claude/rules/architecture-boundaries.md +46 -0
- package/resources/claude-customizations/.claude/rules/benchmark-baselines.md +35 -0
- package/resources/claude-customizations/.claude/rules/ci-workflows.md +36 -0
- package/resources/claude-customizations/.claude/rules/csharp.md +62 -16
- package/resources/claude-customizations/.claude/rules/general-code-change.md +12 -3
- package/resources/claude-customizations/.claude/rules/general-unit-test.md +47 -2
- package/resources/claude-customizations/.claude/rules/orchestrator-state.md +39 -0
- package/resources/claude-customizations/.claude/rules/powershell.md +5 -5
- package/resources/claude-customizations/.claude/rules/python.md +4 -3
- package/resources/claude-customizations/.claude/rules/quality-tiers.md +51 -0
- package/resources/claude-customizations/.claude/rules/typescript.md +37 -8
- package/resources/claude-customizations/.claude/settings.json +59 -12
- package/resources/claude-customizations/.claude/skills/atomic-plan-contract/SKILL.md +2 -2
- package/resources/claude-customizations/.claude/skills/csharp-qa-gate/SKILL.md +25 -10
- package/resources/claude-customizations/.claude/skills/evidence-and-timestamp-conventions/SKILL.md +0 -1
- package/resources/claude-customizations/.claude/skills/execute-hard-lock/SKILL.md +6 -6
- package/resources/claude-customizations/.claude/skills/feature-promotion-lifecycle/SKILL.md +8 -8
- package/resources/claude-customizations/.claude/skills/feature-review-workflow/SKILL.md +17 -6
- package/resources/claude-customizations/.claude/skills/human-exception-runbook/SKILL.md +52 -0
- package/resources/claude-customizations/.claude/skills/human-exception-runbook/example.runbook.md +36 -0
- package/resources/claude-customizations/.claude/skills/invoke-csharp-engineer/SKILL.md +4 -4
- package/resources/claude-customizations/.claude/skills/orchestrate/SKILL.md +172 -5
- package/resources/claude-customizations/.claude/skills/policy-audit-template-usage/SKILL.md +3 -3
- package/resources/claude-customizations/.claude/skills/powershell-qa-gate/SKILL.md +4 -4
- package/resources/claude-customizations/.claude/skills/pr-base-branch-merge-base/SKILL.md +3 -3
- package/resources/claude-customizations/.claude/skills/python-qa-gate/SKILL.md +1 -1
- package/resources/claude-customizations/.claude/skills/remediation-handoff-atomic-planner/SKILL.md +90 -17
- package/resources/claude-customizations/.claude/skills/research-issue/SKILL.md +5 -3
- package/resources/claude-customizations/.claude-variants/csharp-legacy/agents/csharp-typed-engineer.md +69 -0
- package/resources/claude-customizations/.claude-variants/csharp-legacy/rules/csharp.md +96 -0
- package/resources/claude-customizations/.claude-variants/csharp-legacy/skills/csharp-qa-gate/SKILL.md +77 -0
- package/resources/claude-customizations/.claude-variants/csharp-legacy/skills/invoke-csharp-engineer/SKILL.md +64 -0
- package/resources/claude-customizations/pack-manifests/core.json +65 -0
- package/resources/claude-customizations/pack-manifests/csharp-legacy.json +11 -0
- package/resources/claude-customizations/pack-manifests/csharp-modern.json +12 -0
- package/resources/claude-customizations/pack-manifests/powershell.json +14 -0
- package/resources/claude-customizations/pack-manifests/python.json +14 -0
- package/resources/claude-customizations/pack-manifests/typescript.json +9 -0
- package/resources/claude-dir-customizations/.mcp.json +3 -3
- package/resources/codex-and-agents-customizations/.agents/README.md +1 -1
- package/resources/codex-and-agents-customizations/.agents/skills/acceptance-criteria-tracking/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/architecture-boundaries/SKILL.md +52 -0
- package/resources/codex-and-agents-customizations/.agents/skills/atomic-plan-contract/SKILL.md +16 -8
- package/resources/codex-and-agents-customizations/.agents/skills/benchmark-baselines/SKILL.md +44 -0
- package/resources/codex-and-agents-customizations/.agents/skills/ci-workflows/SKILL.md +45 -0
- package/resources/codex-and-agents-customizations/.agents/skills/commit-message/SKILL.md +3 -11
- package/resources/codex-and-agents-customizations/.agents/skills/csharp/SKILL.md +1 -5
- package/resources/codex-and-agents-customizations/.agents/skills/csharp-change-budget-router/SKILL.md +1 -6
- package/resources/codex-and-agents-customizations/.agents/skills/csharp-orchestration-state-machine/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/csharp-qa-gate/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/evidence-and-timestamp-conventions/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/execute-hard-lock/SKILL.md +8 -17
- package/resources/codex-and-agents-customizations/.agents/skills/feature-promotion-lifecycle/SKILL.md +41 -25
- package/resources/codex-and-agents-customizations/.agents/skills/feature-review-workflow/SKILL.md +1 -6
- package/resources/codex-and-agents-customizations/.agents/skills/fill-feature-docs/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/general-code-change/SKILL.md +86 -0
- package/resources/codex-and-agents-customizations/.agents/skills/general-unit-test/SKILL.md +111 -0
- package/resources/codex-and-agents-customizations/.agents/skills/human-exception-runbook/SKILL.md +57 -0
- package/resources/codex-and-agents-customizations/.agents/skills/human-exception-runbook/example.runbook.md +36 -0
- package/resources/codex-and-agents-customizations/.agents/skills/invoke-csharp-engineer/SKILL.md +0 -9
- package/resources/codex-and-agents-customizations/.agents/skills/invoke-powershell-engineer/SKILL.md +0 -9
- package/resources/codex-and-agents-customizations/.agents/skills/invoke-python-engineer/SKILL.md +0 -9
- package/resources/codex-and-agents-customizations/.agents/skills/make-skill-template/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/orchestrate/SKILL.md +206 -18
- package/resources/codex-and-agents-customizations/.agents/skills/orchestrator-state/SKILL.md +48 -0
- package/resources/codex-and-agents-customizations/.agents/skills/orchestrator-workflow/SKILL.md +94 -10
- package/resources/codex-and-agents-customizations/.agents/skills/policy-audit-template-usage/SKILL.md +3 -8
- package/resources/codex-and-agents-customizations/.agents/skills/policy-compliance-order/SKILL.md +0 -10
- package/resources/codex-and-agents-customizations/.agents/skills/powershell/SKILL.md +4 -8
- package/resources/codex-and-agents-customizations/.agents/skills/powershell-change-budget-router/SKILL.md +1 -6
- package/resources/codex-and-agents-customizations/.agents/skills/powershell-orchestration-state-machine/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/powershell-qa-gate/SKILL.md +3 -9
- package/resources/codex-and-agents-customizations/.agents/skills/pr-author/SKILL.md +1 -9
- package/resources/codex-and-agents-customizations/.agents/skills/pr-base-branch-merge-base/SKILL.md +4 -9
- package/resources/codex-and-agents-customizations/.agents/skills/pr-context-artifacts/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/python/SKILL.md +1 -5
- package/resources/codex-and-agents-customizations/.agents/skills/python-change-budget-router/SKILL.md +1 -6
- package/resources/codex-and-agents-customizations/.agents/skills/python-qa-gate/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/python-suppressions/SKILL.md +2 -6
- package/resources/codex-and-agents-customizations/.agents/skills/quality-tiers/SKILL.md +57 -0
- package/resources/codex-and-agents-customizations/.agents/skills/remediation-handoff-atomic-planner/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/repo-automation-adapter/SKILL.md +96 -72
- package/resources/codex-and-agents-customizations/.agents/skills/repo-automation-adapter/agents/openai.yaml +1 -1
- package/resources/codex-and-agents-customizations/.agents/skills/research-issue/SKILL.md +0 -10
- package/resources/codex-and-agents-customizations/.agents/skills/review-epic/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/review-feature/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/review-staged/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/self-explanatory-code-commenting/SKILL.md +2 -6
- package/resources/codex-and-agents-customizations/.agents/skills/skill-canonical-location-audit/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/tonality/SKILL.md +86 -0
- package/resources/codex-and-agents-customizations/.agents/skills/translate-claude-to-codex/SKILL.md +297 -0
- package/resources/codex-and-agents-customizations/.agents/skills/translate-copilot-to-claude/SKILL.md +0 -22
- package/resources/codex-and-agents-customizations/.agents/skills/typescript/SKILL.md +1 -5
- package/resources/codex-and-agents-customizations/.agents/skills/typescript-suppressions/SKILL.md +2 -6
- package/resources/codex-and-agents-customizations/.agents/skills/update-status/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.codex/agents/atomic-executor.toml +5 -5
- package/resources/codex-and-agents-customizations/.codex/agents/orchestrator.toml +91 -63
- package/resources/codex-and-agents-customizations/.codex/agents/powershell-atomic-executor.toml +1 -1
- package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer.toml +1 -1
- package/resources/codex-and-agents-customizations/.codex/config.toml +111 -137
- package/resources/codex-and-agents-customizations/.codex/hooks/enforce-checkpoint-monotonic.ps1 +303 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/enforce-completion-consistency.ps1 +300 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/enforce-orchestration-preimplementation-gate.ps1 +148 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/enforce-pr-author-skill.ps1 +336 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/enforce-promotion-mcp-only.ps1 +84 -18
- package/resources/codex-and-agents-customizations/.codex/prompts/orchestrate-work.md +4 -3
- package/resources/codex-and-agents-customizations/.codex/scripts/post-codex-worktree-session.ps1 +5 -0
- package/resources/codex-and-agents-customizations/.github/workflows/_validate-orchestrator-state.yml +68 -0
- package/resources/codex-and-agents-customizations/.github/workflows/validate-orchestrator-state.yml +15 -0
- package/resources/config/orchestration-routing.json +76 -0
- package/resources/customizations/.github/agents/Powershell DI Unit Test Engineer.agent.md +1 -1
- package/resources/customizations/.github/agents/atomic_executor.agent.md +1 -1
- package/resources/customizations/.github/agents/atomic_planning.agent.md +10 -10
- package/resources/customizations/.github/agents/csharp-orchestrator.agent.md +6 -2
- package/resources/customizations/.github/agents/feature-review.agent.md +2 -2
- package/resources/customizations/.github/agents/orchestrator.agent.md +6 -2
- package/resources/customizations/.github/agents/powershell-atomic-executor.agent.md +4 -4
- package/resources/customizations/.github/agents/powershell-atomic-planning.agent.md +10 -10
- package/resources/customizations/.github/agents/powershell-orchestrator.agent.md +6 -2
- package/resources/customizations/.github/agents/powershell-typed-engineer.agent.md +2 -2
- package/resources/customizations/.github/agents/pr-author.agent.md +25 -0
- package/resources/customizations/.github/agents/python-orchestrator.agent.md +6 -2
- package/resources/customizations/.github/agents/staged-review.agent.md +1 -1
- package/resources/customizations/.github/agents/task-researcher.agent.md +4 -4
- package/resources/customizations/.github/instructions/powershell-code-change.instructions.md +6 -6
- package/resources/customizations/.github/prompts/fillout-prd-feature.prompt.md +1 -1
- package/resources/customizations/.github/prompts/generate-commit-message-repo.prompt.md +1 -1
- package/resources/customizations/.github/prompts/orchestrate-csharp-work.prompt.md +5 -3
- package/resources/customizations/.github/prompts/orchestrate-work.prompt.md +5 -3
- package/resources/customizations/.github/prompts/research-issue.prompt.md +4 -3
- package/resources/customizations/.github/skills/atomic-plan-contract/SKILL.md +14 -1
- package/resources/customizations/.github/skills/feature-promotion-lifecycle/SKILL.md +11 -7
- package/resources/customizations/.github/skills/feature-review-workflow/SKILL.md +10 -1
- package/resources/customizations/.github/skills/pr-base-branch-merge-base/SKILL.md +2 -2
- package/resources/customizations/.github/skills/remediation-handoff-atomic-planner/SKILL.md +5 -0
- package/resources/powershell/PoshQC/settings/pester.runsettings.psd1 +7 -0
- package/resources/scripts/dev_tools/_orchestrator_state_human_interaction.py +127 -0
- package/resources/scripts/dev_tools/_orchestrator_state_routing.py +216 -0
- package/resources/scripts/dev_tools/push_down_claude_customizations.py +276 -61
- package/resources/scripts/dev_tools/push_down_claude_filesystem.py +472 -0
- package/resources/scripts/dev_tools/push_down_claude_pack_selection.py +401 -0
- package/resources/scripts/dev_tools/validate_orchestration_artifacts.py +103 -411
- package/resources/scripts/dev_tools/validate_orchestration_review_artifacts.py +107 -0
- package/resources/scripts/dev_tools/validate_orchestrator_state.py +505 -0
- package/resources/scripts/dev_tools/validate_policy_audit_artifact.py +472 -0
- package/resources/templates/push_down_claude_customizations.py +162 -117
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_repo_root_is_source_of_truth.md +0 -11
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_vsce_verify_package_location.md +0 -19
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/project_extension_location.md +0 -11
- package/resources/claude-customizations/.claude/agent-memory/prd-feature/MEMORY.md +0 -1
- package/resources/claude-customizations/.claude/agent-memory/prd-feature/project_push_down_pattern.md +0 -13
- package/resources/claude-customizations/.claude/agent-memory/task-researcher/MEMORY.md +0 -3
- 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 `
|
|
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`,
|
package/resources/codex-and-agents-customizations/.agents/skills/powershell-qa-gate/SKILL.md
CHANGED
|
@@ -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. `
|
|
37
|
-
2. `
|
|
38
|
-
3. `
|
|
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
|
|
47
|
+
- If GitHub validation is unavailable or unverified, do not emit `Closes`; use the `None` bullet.
|
package/resources/codex-and-agents-customizations/.agents/skills/pr-base-branch-merge-base/SKILL.md
CHANGED
|
@@ -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
|
|
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 `
|
|
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
|
|
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
|
-
- `
|
|
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: 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 `
|
|
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.
|
package/resources/codex-and-agents-customizations/.agents/skills/python-suppressions/SKILL.md
CHANGED
|
@@ -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:
|
|
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.
|
package/resources/codex-and-agents-customizations/.agents/skills/repo-automation-adapter/SKILL.md
CHANGED
|
@@ -1,49 +1,39 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: repo-automation-adapter
|
|
3
|
-
description: 'Centralize
|
|
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
|
|
8
|
+
Use this skill to keep host-specific workflow execution rules in one place.
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## Canonical Rule
|
|
11
11
|
|
|
12
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
##
|
|
18
|
+
## When to Use This Skill
|
|
22
19
|
|
|
23
|
-
|
|
24
|
-
- `drmCopilotExtension`
|
|
20
|
+
Use this skill when:
|
|
25
21
|
|
|
26
|
-
|
|
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
|
-
|
|
26
|
+
## Published Codex Automation Surface
|
|
29
27
|
|
|
30
|
-
|
|
28
|
+
The required Codex automation dependency for this repo is the published MCP server:
|
|
31
29
|
|
|
32
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
68
|
+
Before starting any workflow that depends on this skill, the orchestrator must assume these prerequisites are mandatory:
|
|
73
69
|
|
|
74
|
-
- the Codex
|
|
75
|
-
- the
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
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.
|
|
85
|
-
2.
|
|
86
|
-
3.
|
|
87
|
-
4. If
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
106
|
-
-
|
|
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
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
-
|
|
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
|
|
139
|
-
|
|
140
|
-
- which
|
|
141
|
-
-
|
|
142
|
-
-
|
|
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,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,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.
|
|
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.'
|