claude-dev-env 8.14.0 → 8.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/.agents/agents/test_agent_frontmatter.py +0 -72
  2. package/.agents/agents-archived/code-quality-agent.md +16 -16
  3. package/.agents/skills/_shared/end-of-run-gotcha-recommendations.md +5 -21
  4. package/.agents/skills/e-code-review/SKILL.md +1 -3
  5. package/.agents/skills/e-simplify/SKILL.md +6 -6
  6. package/.agents/skills/eli5/SKILL.md +4 -14
  7. package/.agents/skills/eli5/reference/task-seeds.md +3 -4
  8. package/.agents/skills/everything-search/SKILL.md +3 -3
  9. package/.agents/skills/fresh-branch/SKILL.md +2 -3
  10. package/.agents/skills/grok-spawn/SKILL.md +3 -8
  11. package/.agents/skills/issue-tracker/SKILL.md +4 -6
  12. package/.agents/skills/orchestrator-refresh/SKILL.md +7 -7
  13. package/.agents/skills/plugin-eval-standalone-skill/SKILL.md +3 -3
  14. package/.agents/skills/privacy-hygiene/SKILL.md +6 -10
  15. package/.agents/skills/privacy-hygiene/reference/sweep-procedure.md +1 -1
  16. package/.agents/skills/pull-request/SKILL.md +11 -14
  17. package/.agents/skills/pull-request/reference/publication-tasks.md +2 -4
  18. package/.agents/skills/recovering-codex-startup/SKILL.md +3 -6
  19. package/.agents/skills/recovering-codex-startup/reference/task-seeds.md +1 -1
  20. package/.agents/skills/repairing-hook-boundaries/SKILL.md +4 -7
  21. package/.agents/skills/repairing-hook-boundaries/reference/task-seeds.md +1 -2
  22. package/.agents/skills/second-account-workers/.claude/CLAUDE.md +1 -0
  23. package/.agents/skills/second-account-workers/AGENTS.md +1 -0
  24. package/.agents/skills/second-account-workers/SKILL.md +65 -0
  25. package/.agents/skills/syncing-submodules/SKILL.md +7 -17
  26. package/.agents/skills/syncing-submodules/reference/run-tasks.md +1 -1
  27. package/.agents/skills/task-build/SKILL.md +1 -1
  28. package/.agents/skills/task-build/reference/tool-routing.md +1 -1
  29. package/.agents/skills/team-advisor/SKILL.md +2 -4
  30. package/.agents/skills/usage-pause/SKILL.md +1 -1
  31. package/.agents/skills/windows-scheduled-task/SKILL.md +1 -1
  32. package/AGENTS.md +1 -1
  33. package/_shared/advisor/advisor-protocol.md +4 -4
  34. package/_shared/advisor/reference/consult-format.md +1 -1
  35. package/_shared/advisor/reference/identity.md +2 -2
  36. package/_shared/advisor/reference/warm-up.md +1 -1
  37. package/audit-rubrics/category_rubrics/category-o-docstring-vs-impl-drift.md +1 -1
  38. package/audit-rubrics/prompts/category-o-docstring-vs-impl-drift.md +2 -16
  39. package/bin/ever-shipped-skills.mjs +1 -0
  40. package/bin/install.mjs +1 -0
  41. package/bin/install.prompt-context.test.mjs +46 -0
  42. package/bin/install.test.mjs +3 -2
  43. package/commands/sr-loop.md +2 -2
  44. package/docs/CODE_RULES.md +2 -2
  45. package/docs/DJANGO_PATTERNS.md +5 -5
  46. package/docs/REACT_PATTERNS.md +6 -6
  47. package/docs/TEST_QUALITY.md +10 -28
  48. package/docs/agent-spawn-protocol.md +4 -4
  49. package/docs/codex-compatibility.md +4 -33
  50. package/docs/references/team-advisor-skill.md +0 -1
  51. package/docs/second-claude-account.md +4 -0
  52. package/docs/worker-completion-gate.md +0 -1
  53. package/hooks/advisory/migration_safety_advisor.py +3 -2
  54. package/hooks/advisory/refactor_guard.py +3 -3
  55. package/hooks/hooks.json +0 -5
  56. package/hooks/hooks_constants/issue_tracker_session_starter_constants.py +1 -2
  57. package/hooks/hooks_constants/orchestrator_auto_starter_constants.py +1 -2
  58. package/package.json +1 -1
  59. package/rules/explore-thoroughly.md +0 -1
  60. package/rules/filesystem-search.md +1 -1
  61. package/rules/git-workflow.md +5 -5
  62. package/rules/long-horizon-autonomy.md +1 -5
  63. package/rules/re-stage-before-commit.md +0 -2
  64. package/rules/research-mode.md +1 -1
  65. package/rules/shell-invocation.md +1 -1
  66. package/scripts/claude_account_worker.py +347 -0
  67. package/scripts/claude_account_worker_process.py +169 -0
  68. package/scripts/claude_account_worker_report.py +170 -0
  69. package/scripts/dev_env_scripts_constants/claude_account_worker_constants.py +139 -0
  70. package/scripts/dev_env_scripts_constants/grok_worker_constants.py +8 -2
  71. package/scripts/grok_headless_runner.py +2 -5
  72. package/scripts/policy_lint/config/constants.py +1 -0
  73. package/scripts/policy_lint/engine.py +5 -2
  74. package/scripts/repository_checks/config/constants.py +1 -1
  75. package/scripts/spawn_grok_batch.py +12 -1
  76. package/scripts/subprocess_stream_text.py +28 -0
  77. package/scripts/task_usage_events.py +387 -0
  78. package/scripts/task_usage_report.py +391 -0
  79. package/scripts/test_claude_account_worker.py +331 -0
  80. package/scripts/test_spawn_grok_batch.py +22 -0
  81. package/scripts/test_task_usage_events.py +47 -0
  82. package/scripts/test_task_usage_report.py +603 -0
  83. package/scripts/tests/test_banned_prose_words.py +1 -1
  84. package/scripts/tests/test_policy_lint_rules_archive.py +16 -0
  85. package/scripts/tests/test_policy_lint_rules_engine.py +2 -2
  86. package/scripts/tests/test_rules.py +9 -9
  87. package/system-prompts/software-engineer.xml +15 -30
  88. package/audit-rubrics/audit-categories.json +0 -700
  89. package/audit-rubrics/category_rubrics/category-a-api-contracts.md +0 -90
  90. package/audit-rubrics/category_rubrics/category-b-selector-engine-compat.md +0 -36
  91. package/audit-rubrics/category_rubrics/category-c-resource-cleanup.md +0 -35
  92. package/audit-rubrics/category_rubrics/category-d-scoping-and-ordering.md +0 -35
  93. package/audit-rubrics/category_rubrics/category-e-dead-code.md +0 -40
  94. package/audit-rubrics/category_rubrics/category-f-silent-failures.md +0 -41
  95. package/audit-rubrics/category_rubrics/category-g-bounds-and-overflow.md +0 -38
  96. package/audit-rubrics/category_rubrics/category-h-security-boundaries.md +0 -40
  97. package/audit-rubrics/category_rubrics/category-i-concurrency.md +0 -38
  98. package/audit-rubrics/category_rubrics/category-j-code-rules-compliance.md +0 -59
  99. package/audit-rubrics/category_rubrics/category-k-codebase-conflicts.md +0 -66
  100. package/audit-rubrics/category_rubrics/category-l-behavior-equivalence.md +0 -48
  101. package/audit-rubrics/category_rubrics/category-m-producer-consumer-cardinality.md +0 -44
  102. package/audit-rubrics/category_rubrics/category-n-test-name-scenario-verifier.md +0 -54
  103. package/audit-rubrics/category_rubrics/category-p-name-vs-behavior-contract.md +0 -59
  104. package/audit-rubrics/category_rubrics/category-q-cross-surface-claims.md +0 -46
  105. package/audit-rubrics/prompts/category-a-api-contracts.md +0 -407
  106. package/audit-rubrics/prompts/category-b-selector-engine-compat.md +0 -401
  107. package/audit-rubrics/prompts/category-c-resource-cleanup.md +0 -420
  108. package/audit-rubrics/prompts/category-d-scoping-and-ordering.md +0 -414
  109. package/audit-rubrics/prompts/category-e-dead-code.md +0 -434
  110. package/audit-rubrics/prompts/category-f-silent-failures.md +0 -432
  111. package/audit-rubrics/prompts/category-g-bounds-and-overflow.md +0 -383
  112. package/audit-rubrics/prompts/category-h-security-boundaries.md +0 -423
  113. package/audit-rubrics/prompts/category-i-concurrency.md +0 -429
  114. package/audit-rubrics/prompts/category-j-code-rules-compliance.md +0 -458
  115. package/audit-rubrics/prompts/category-k-codebase-conflicts.md +0 -338
  116. package/audit-rubrics/prompts/category-l-behavior-equivalence.md +0 -131
  117. package/audit-rubrics/prompts/category-m-producer-consumer-cardinality.md +0 -129
  118. package/audit-rubrics/prompts/category-n-test-name-scenario-verifier.md +0 -139
  119. package/audit-rubrics/prompts/category-p-name-vs-behavior-contract.md +0 -89
  120. package/audit-rubrics/prompts/category-q-cross-surface-claims.md +0 -51
  121. package/hooks/hooks_constants/style_reminder_prompt_constants.py +0 -9
  122. package/hooks/session/style_reminder_prompt.py +0 -41
  123. package/hooks/session/test_style_reminder_prompt.py +0 -32
@@ -25,10 +25,10 @@ def _comment_policy_surfaces(package_root: Path) -> tuple[Path, ...]:
25
25
  package_root / "system-prompts" / "software-engineer.xml",
26
26
  package_root / ".agents" / "agents-archived" / "clean-coder.md",
27
27
  package_root / ".agents" / "agents-archived" / "code-quality-agent.md",
28
- package_root / "audit-rubrics" / "category_rubrics" / "category-j-code-rules-compliance.md",
29
- package_root / "audit-rubrics" / "prompts" / "category-j-code-rules-compliance.md",
30
- package_root / "audit-rubrics" / "category_rubrics" / "category-l-behavior-equivalence.md",
31
- package_root / "audit-rubrics" / "prompts" / "category-l-behavior-equivalence.md",
28
+ package_root / "audit-rubrics-archived" / "category_rubrics" / "category-j-code-rules-compliance.md",
29
+ package_root / "audit-rubrics-archived" / "prompts" / "category-j-code-rules-compliance.md",
30
+ package_root / "audit-rubrics-archived" / "category_rubrics" / "category-l-behavior-equivalence.md",
31
+ package_root / "audit-rubrics-archived" / "prompts" / "category-l-behavior-equivalence.md",
32
32
  package_root / ".agents" / "skills" / "grok-spawn" / "reference" / "worker-briefs.md",
33
33
  package_root.parent.parent / ".github" / "copilot-instructions.md",
34
34
  )
@@ -96,17 +96,17 @@ def test_comment_guidance_reaches_installed_instruction_surfaces() -> None:
96
96
  def _category_l_policy_texts() -> tuple[str, str, str]:
97
97
  category_l_rubric = (
98
98
  _PACKAGE_ROOT
99
- / "audit-rubrics"
99
+ / "audit-rubrics-archived"
100
100
  / "category_rubrics"
101
101
  / "category-l-behavior-equivalence.md"
102
102
  )
103
103
  category_l_prompt = (
104
104
  _PACKAGE_ROOT
105
- / "audit-rubrics"
105
+ / "audit-rubrics-archived"
106
106
  / "prompts"
107
107
  / "category-l-behavior-equivalence.md"
108
108
  )
109
- audit_categories = _PACKAGE_ROOT / "audit-rubrics" / "audit-categories.json"
109
+ audit_categories = _PACKAGE_ROOT / "audit-rubrics-archived" / "audit-categories.json"
110
110
  return tuple(
111
111
  each_path.read_text(encoding="utf-8").lower()
112
112
  for each_path in (category_l_rubric, category_l_prompt, audit_categories)
@@ -117,7 +117,7 @@ def _comment_policy_summary_texts() -> tuple[str, str, str]:
117
117
  clean_coder = _PACKAGE_ROOT / ".agents" / "agents-archived" / "clean-coder.md"
118
118
  category_j = (
119
119
  _PACKAGE_ROOT
120
- / "audit-rubrics"
120
+ / "audit-rubrics-archived"
121
121
  / "category_rubrics"
122
122
  / "category-j-code-rules-compliance.md"
123
123
  )
@@ -145,7 +145,7 @@ def test_comment_policy_removes_directive_justification_guidance() -> None:
145
145
  ).read_text(encoding="utf-8").lower()
146
146
  category_e_prompt = (
147
147
  _PACKAGE_ROOT
148
- / "audit-rubrics"
148
+ / "audit-rubrics-archived"
149
149
  / "prompts"
150
150
  / "category-e-dead-code.md"
151
151
  ).read_text(encoding="utf-8").lower()
@@ -67,17 +67,7 @@
67
67
  Reserve user questions for preferences, missing context the user holds, judgment calls, and
68
68
  scope decisions.
69
69
 
70
- Three anti-hallucination constraints are always active. First, acknowledge the gap directly
71
- — "I lack data on this" — when a credible source for a claim is absent; guessing and
72
- inferring are replaced by honest acknowledgment. Second, every recommendation, claim, or piece of advice cites a
73
- specific source: a file in the current project, an external URL found via web search, a
74
- named expert or paper, or official documentation. Third, when working from documents, extract
75
- the text first before analyzing — ground responses in direct quotes, and reference
76
- the quote when making a point.
77
-
78
- Creative thinking, brainstorming, and novel ideas are exempt from citation requirements;
79
- synthesizing across sources to reach new conclusions is encouraged provided the inputs are
80
- grounded.
70
+ Source every claim as rules/research-mode.md describes.
81
71
  </investigation>
82
72
 
83
73
  <problem_solving>
@@ -145,8 +135,8 @@
145
135
  </code_quality>
146
136
 
147
137
  <behavior_protocol>
148
- Apply an outside-in BDD reasoning protocol before writing any code. Outside-in BDD is the
149
- required development protocol; apply it in place of any Red-Green-Refactor heuristic. The
138
+ Apply an outside-in BDD reasoning protocol before writing any code. BDD is the outer
139
+ process, and red-green-refactor is the inner loop for each formulated behavior. The
150
140
  full anti-pattern catalog, Example Mapping algorithm, and solo-developer guidance live in
151
141
  the long-form BDD references (`~/.claude/docs/BDD_DISCOVERY_PROTOCOL.md`,
152
142
  `~/.claude/docs/BDD_SCENARIO_QUALITY.md`); this section carries the core four-phase sequence.
@@ -178,9 +168,9 @@
178
168
  where untrusted data enters the system. Trust internal code and framework guarantees within
179
169
  those boundaries; internal call sites operate on data already validated at the entry point.
180
170
 
181
- Create abstractions and shared helpers when a pattern recurs three or more times. A single
182
- occurrence warrants inline code; two occurrences are worth watching; three occurrences
183
- justify extraction. Implement precisely what the task requires at its current scale and
171
+ Add an abstraction at the commit that introduces its second concrete implementation, the
172
+ house setting in rules/code-standards.md. Implement precisely what the task requires at its
173
+ current scale and
184
174
  complete it fully.
185
175
 
186
176
  Apply backwards compatibility conventions — underscore-prefixed variable renaming, type
@@ -216,11 +206,6 @@
216
206
  success looks like; and that the task is unambiguous enough to delegate. When any of those
217
207
  is unknown, investigate first using Read, Glob, or Grep for code search — or ask the user.
218
208
 
219
- After confirming context, use the /prompt-generator skill to produce a structured prompt.
220
- Feed it the task description and goal, target files and directories, constraints and
221
- boundaries, expected output format, and acceptance criteria. Pass the skill's output as the
222
- agent's prompt parameter.
223
-
224
209
  When multiple tool calls are mutually independent, make all calls in a single response.
225
210
  Sequence calls only when a later call requires an earlier call's result. Reading three files:
226
211
  call all three Read operations at once. Running independent searches: launch all Grep
@@ -234,7 +219,7 @@
234
219
  Fetch all reviewer comments before making any fixes. Obtain the full comment set from the
235
220
  PR using `gh pr view --comments`.
236
221
 
237
- Create a TodoWrite checklist with one item per comment.
222
+ Create a checklist in the session's task tool with one item per comment.
238
223
 
239
224
  Fix comments systematically, marking each todo complete as it is resolved.
240
225
 
@@ -262,8 +247,9 @@
262
247
  </documentation>
263
248
 
264
249
  <context7>
265
- For all work involving libraries, frameworks, SDKs, or APIs, fetch current documentation
266
- via Context7 MCP before writing code. Training data may be stale; fetched docs are
250
+ When the Context7 MCP server is connected, fetch current documentation before you write code
251
+ against a library, framework, SDK, or API whose interface you have not checked this session.
252
+ Training data may be stale; fetched docs are
267
253
  authoritative. Apply this to setup questions, API references, version migration,
268
254
  library-specific debugging, and CLI tool usage — including well-known libraries such as
269
255
  React, Next.js, Prisma, Express, Django, and Spring Boot.
@@ -277,8 +263,9 @@
277
263
  </context7>
278
264
 
279
265
  <obsidian_vault>
280
- Use the Obsidian vault path configured for your workspace (session reports, decisions, and
281
- research documents typically live there across projects). Search it before starting substantive project work.
266
+ When an Obsidian MCP server is connected, use the vault path configured for your workspace
267
+ (session reports, decisions, and research documents typically live there across projects).
268
+ Search it before starting substantive project work.
282
269
 
283
270
  Available MCP tools:
284
271
  - mcp__obsidian__search_notes — search by content or frontmatter (searchFrontmatter: true)
@@ -356,7 +343,7 @@
356
343
 
357
344
  Reserve Bash for system commands and terminal operations that require shell execution.
358
345
 
359
- Track work with TodoWrite and mark each task complete as soon as it is finished.
346
+ Track work with the session's task tool and mark each task complete as soon as it is finished.
360
347
  </tool_usage>
361
348
 
362
349
  <cleanup>
@@ -375,9 +362,7 @@
375
362
  <communication_contract>
376
363
  Visible output is concise by default. The first progress update is one sentence.
377
364
  Later updates mark only important discoveries or direction changes. The final
378
- response begins with the outcome. When thinking is disabled, speak one brief
379
- natural-language sentence before a tool call that needs context, state when no
380
- fitting tool exists, and never emit internal-system XML in visible output.
365
+ response begins with the outcome.
381
366
  Language policy: rules/asd-ste100-language.md. This section owns visible progress,
382
367
  tool narration, and outcome-first final structure.
383
368
  </communication_contract>