claude-dev-env 1.50.3 → 1.51.0

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 (67) hide show
  1. package/CLAUDE.md +0 -8
  2. package/_shared/pr-loop/audit-contract.md +3 -3
  3. package/_shared/pr-loop/scripts/pr_loop_shared_constants/preflight_self_heal_constants.py +28 -0
  4. package/_shared/pr-loop/scripts/preflight.py +18 -6
  5. package/_shared/pr-loop/scripts/preflight_self_heal.py +164 -0
  6. package/_shared/pr-loop/scripts/tests/test_preflight.py +39 -0
  7. package/_shared/pr-loop/scripts/tests/test_preflight_self_heal.py +273 -0
  8. package/agents/clean-coder.md +1 -1
  9. package/agents/code-quality-agent.md +7 -5
  10. package/audit-rubrics/category_rubrics/category-a-api-contracts.md +3 -0
  11. package/audit-rubrics/category_rubrics/category-f-silent-failures.md +3 -0
  12. package/audit-rubrics/category_rubrics/category-k-codebase-conflicts.md +8 -2
  13. package/audit-rubrics/category_rubrics/category-n-test-name-scenario-verifier.md +3 -0
  14. package/audit-rubrics/category_rubrics/category-o-docstring-vs-impl-drift.md +39 -0
  15. package/audit-rubrics/category_rubrics/category-p-name-vs-behavior-contract.md +40 -0
  16. package/audit-rubrics/prompts/category-a-api-contracts.md +11 -4
  17. package/audit-rubrics/prompts/category-b-selector-engine-compat.md +2 -2
  18. package/audit-rubrics/prompts/category-c-resource-cleanup.md +1 -1
  19. package/audit-rubrics/prompts/category-d-scoping-and-ordering.md +1 -1
  20. package/audit-rubrics/prompts/category-e-dead-code.md +1 -1
  21. package/audit-rubrics/prompts/category-f-silent-failures.md +13 -2
  22. package/audit-rubrics/prompts/category-g-bounds-and-overflow.md +1 -1
  23. package/audit-rubrics/prompts/category-h-security-boundaries.md +1 -1
  24. package/audit-rubrics/prompts/category-i-concurrency.md +1 -1
  25. package/audit-rubrics/prompts/category-j-code-rules-compliance.md +1 -1
  26. package/audit-rubrics/prompts/category-k-codebase-conflicts.md +15 -5
  27. package/audit-rubrics/prompts/category-l-behavior-equivalence.md +1 -1
  28. package/audit-rubrics/prompts/category-m-producer-consumer-cardinality.md +1 -1
  29. package/audit-rubrics/prompts/category-n-test-name-scenario-verifier.md +10 -3
  30. package/audit-rubrics/prompts/category-o-docstring-vs-impl-drift.md +74 -0
  31. package/audit-rubrics/prompts/category-p-name-vs-behavior-contract.md +75 -0
  32. package/docs/CODE_RULES.md +24 -346
  33. package/package.json +1 -1
  34. package/rules/ask-user-question-required.md +2 -41
  35. package/rules/confirm-implementation-forks.md +3 -44
  36. package/rules/gh-body-file.md +2 -78
  37. package/rules/gh-paginate.md +2 -78
  38. package/rules/plain-language.md +2 -41
  39. package/rules/prompt-workflow-context-controls.md +9 -38
  40. package/rules/shell-invocation-policy.md +2 -141
  41. package/rules/testing.md +10 -0
  42. package/rules/vault-context.md +3 -32
  43. package/rules/windows-filesystem-safe.md +3 -87
  44. package/scripts/sync_to_cursor/rules.py +201 -79
  45. package/scripts/tests/test_sync_to_cursor.py +122 -26
  46. package/skills/_shared/pr-loop/scripts/skills_pr_loop_constants/path_resolver_constants.py +2 -0
  47. package/skills/_shared/pr-loop/scripts/test_build_audit_prompt.py +51 -4
  48. package/skills/auditing-claude-config/SKILL.md +6 -1
  49. package/skills/bugteam/CONSTRAINTS.md +1 -1
  50. package/skills/bugteam/PROMPTS.md +8 -6
  51. package/skills/bugteam/SKILL.md +5 -5
  52. package/skills/bugteam/reference/audit-and-teammates.md +1 -1
  53. package/skills/bugteam/reference/audit-contract.md +4 -4
  54. package/skills/bugteam/reference/design-rationale.md +1 -1
  55. package/skills/bugteam/reference/obstacles/audit-walk-categories.md +1 -1
  56. package/skills/bugteam/reference/team-setup.md +17 -5
  57. package/skills/bugteam/scripts/bugteam_preflight.py +22 -10
  58. package/skills/bugteam/scripts/test_bugteam_preflight.py +32 -0
  59. package/skills/copilot-review/SKILL.md +5 -8
  60. package/skills/doc-gist/SKILL.md +5 -8
  61. package/skills/fixbugs/SKILL.md +1 -1
  62. package/skills/gh-paginate/SKILL.md +84 -0
  63. package/skills/pr-converge/SKILL.md +28 -1
  64. package/skills/pr-converge/reference/per-tick.md +24 -8
  65. package/skills/pre-compact/SKILL.md +4 -9
  66. package/skills/refine/SKILL.md +8 -2
  67. package/skills/structure-prompt/SKILL.md +5 -10
@@ -1,6 +1,12 @@
1
1
  ---
2
2
  name: refine
3
- description: Interview-driven plan refiner with built-in audit loop. Takes a draft, a topic, or the active conversation; fans out research agents; interviews via AskUserQuestion until further questions would be impractical hypotheticals; writes the plan to the Obsidian vault under Research/<topic>/<slug>.md; then loops a general-purpose audit and fix pass (both with plan-quality rubrics) until the plan is clean, with a sibling <slug>-implementation-notes.html capturing design decisions, deviations, tradeoffs, and open questions across iterations. The interview is mandatory and the vault is the only output target — these survive any session-level "no clarifying questions" or local plans/ shortcuts. Use when the user says /refine, "refine this", "turn this into a plan", "flesh this out", "make a spec for this", "let's plan this out", or asks for a vague idea to be matured into a plan. Always operates on plans — skill plans, new-code implementation plans, or code-refinement plans.
3
+ description: >-
4
+ Interview-driven plan refiner with built-in audit loop: fans out research agents,
5
+ interviews via AskUserQuestion (mandatory — survives no-question directives), writes
6
+ the plan to the Obsidian vault under Research/<topic>/<slug>.md, then loops audit and
7
+ fix until clean. Triggers: /refine, "refine this", "turn this into a plan", "flesh
8
+ this out", "make a spec for this", "let's plan this out", or any vague idea to mature
9
+ into a plan.
4
10
  ---
5
11
 
6
12
  # refine
@@ -164,7 +170,7 @@ Spawn `general-purpose` (`subagent_type: general-purpose`, foreground) with:
164
170
  - **Ambiguity** — no parked open questions where a decision is required for implementation to begin
165
171
  - **Implementer-readiness** — a downstream implementer can act on each step without back-and-forth (file paths named, agents named, change concrete)
166
172
  - A required return shape: structured findings as `severity (P0/P1/P2) | location | violation`, plus an explicit `CLEAN` verdict when no findings remain
167
- - An explicit instruction NOT to apply code-review rubrics (CODE_RULES categories A–N, API contracts, resource cleanup, etc.) — the audit target is a markdown plan, not source code
173
+ - An explicit instruction NOT to apply code-review rubrics (CODE_RULES categories A–P, API contracts, resource cleanup, etc.) — the audit target is a markdown plan, not source code
168
174
 
169
175
  If the verdict is `CLEAN`: skip step 8 and proceed to step 10.
170
176
 
@@ -1,16 +1,11 @@
1
1
  ---
2
2
  name: structure-prompt
3
3
  description: >-
4
- Restructure any user-provided prompt order blocks correctly, replace persona
5
- framing with task constraints, enforce per-category dispositions, replace
6
- ceremony directives with measurable constraints, expand placeholder tokens
7
- into real values via the sibling rubric or AskUserQuestion, add file:line
8
- citations for identifiers that appear in the data body, mark the canonical
9
- sub-bucket with ⭐, and sharpen generic adversarial-pass phrasing into a
10
- category-specific failure-mode noun. Trigger when the user invokes
11
- /structure-prompt, pastes a prompt and asks to optimize it, asks for a
12
- "minimally invasive edit" to a prompt artifact, or asks to "tighten this
13
- prompt."
4
+ Restructure a user-provided prompt: order blocks, replace persona framing with task
5
+ constraints, enforce per-category dispositions, expand placeholder tokens via the
6
+ sibling rubric or AskUserQuestion, add file:line citations, mark the canonical
7
+ sub-bucket, sharpen adversarial-pass phrasing. Triggers: /structure-prompt, "optimize
8
+ this prompt", "minimally invasive edit" to a prompt artifact, "tighten this prompt".
14
9
  ---
15
10
 
16
11
  # structure-prompt