claude-dev-env 1.4.0 → 1.8.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.
package/README.md DELETED
@@ -1,247 +0,0 @@
1
- # claude-code-config
2
-
3
- Consistent development standards for Claude Code across every repo. Install once, get TDD enforcement, code quality hooks, specialized agents, and battle-tested rules everywhere.
4
-
5
- ## Quick Start
6
-
7
- ### Prerequisites
8
-
9
- - **Node.js 18+** (includes `npx`)
10
- - **Python 3.8+** (for hook scripts)
11
- - **Claude Code CLI** installed and working
12
-
13
- ### Install
14
-
15
- ```bash
16
- npx claude-dev-env
17
- ```
18
-
19
- That's it. The installer will:
20
-
21
- 1. Detect your Python 3 command (`python3`, `python`, or `py -3`)
22
- 2. Copy 13 rules, 4 docs, 34 agents, 11 commands, and 14 skills to `~/.claude/`
23
- 3. Copy 90+ hook scripts to `~/.claude/hooks/`
24
- 4. Merge 31 hook groups into `~/.claude/settings.json` (preserves your existing hooks)
25
- 5. Write a manifest to `~/.claude/.claude-dev-env-manifest.json` for clean uninstall
26
-
27
- ### Verify
28
-
29
- Start a new Claude Code session. You should see hook activity on your first prompt (code-rules-reminder, hook-structure-context). Run any slash command like `/commit` or `/readability-review` to confirm commands loaded.
30
-
31
- ### Update
32
-
33
- Run the same command again. It overwrites existing files and updates hook entries in place:
34
-
35
- ```bash
36
- npx claude-dev-env
37
- ```
38
-
39
- ### Uninstall
40
-
41
- Removes only the files this package installed (tracked via manifest) and cleans hook entries from `settings.json`:
42
-
43
- ```bash
44
- npx claude-dev-env --uninstall
45
- ```
46
-
47
- ## What This Solves
48
-
49
- Without shared config, every repo needs its own `.claude/rules/`, `.claude/hooks/`, `.claude/agents/`, etc. That means:
50
-
51
- - Duplicated config across 5+ repos
52
- - Drift when you update standards in one place but forget others
53
- - New repos start with zero guardrails
54
-
55
- This package centralizes all general-purpose Claude Code config. Project-specific rules still live in each repo's `.claude/` directory and merge with these.
56
-
57
- ## What's Included
58
-
59
- ### Rules (13)
60
-
61
- Behavioral rules loaded into every session. These shape how Claude approaches work before any code is written.
62
-
63
- | Rule | What it does |
64
- |------|-------------|
65
- | `tdd` | Red-green-refactor is non-negotiable |
66
- | `code-standards` | References CODE_RULES.md for all code generation |
67
- | `conservative-action` | Research first, act only when explicitly asked |
68
- | `right-sized-engineering` | Simple > clever, functions > classes, concrete > abstract |
69
- | `explore-thoroughly` | Read before proposing, map patterns before committing |
70
- | `research-mode` | Anti-hallucination: cite sources, say "I don't know", use direct quotes |
71
- | `parallel-tools` | Independent tool calls run simultaneously |
72
- | `agent-spawn-protocol` | Context sufficiency check before delegating to agents |
73
- | `git-workflow` | Draft PRs, one commit per review stage, stacked PR patterns |
74
- | `code-reviews` | Systematic PR review response protocol |
75
- | `testing` | Complete mocks, reference TEST_QUALITY.md |
76
- | `context7` | Fetch current docs via Context7 MCP instead of relying on training data |
77
- | `cleanup-temp-files` | Remove scratch files after tasks complete |
78
-
79
- ### Docs (4)
80
-
81
- Reference documents that rules and agents point to for detailed standards.
82
-
83
- | Document | Coverage |
84
- |----------|----------|
85
- | `CODE_RULES.md` | Hook-enforced rules, naming conventions, config patterns, type hints, readability rubric |
86
- | `TEST_QUALITY.md` | Test writing standards, mock completeness, assertion patterns |
87
- | `REACT_PATTERNS.md` | Component architecture, hooks, state management conventions |
88
- | `DJANGO_PATTERNS.md` | Model patterns, view architecture, ORM best practices |
89
-
90
- ### Agents (34)
91
-
92
- Specialized agent prompts for common development tasks. Claude Code automatically discovers these and makes them available for delegation.
93
-
94
- **Code Quality:** clean-coder, code-quality-agent, code-standards-agent, readability-review-agent, refactoring-specialist, right-sized-engineer
95
-
96
- **Testing:** tdd-test-writer, test-data-builder, validation-expert
97
-
98
- **Planning:** plan-executor, parallel-workflow-coordinator, mandatory-agent-workflow-agent, stub-detector-agent
99
-
100
- **Documentation:** docs-agent, doc-orchestrator, user-docs-writer, project-docs-analyzer
101
-
102
- **Configuration:** config-extraction-agent, config-centralizer, magic-value-eliminator-agent, project-structure-organizer-agent
103
-
104
- **Tooling:** agent-writer, skill-writer-agent, skill-to-agent-converter, tooling-builder
105
-
106
- **Git:** git-commit-crafter, pr-description-writer, session-continuity-manager
107
-
108
- **File Formats:** docx-agent, pdf-agent, xlsx-agent
109
-
110
- **Other:** clasp-deployment-orchestrator, workflow-visual-documenter, project-context-loader
111
-
112
- ### Commands (11)
113
-
114
- Slash commands for common workflows.
115
-
116
- | Command | Purpose |
117
- |---------|---------|
118
- | `/commit` | Structured git commit with conventional format |
119
- | `/plan` | Create implementation plans with config search |
120
- | `/implement` | Execute plans with TDD workflow |
121
- | `/review-plan` | Review and critique implementation plans |
122
- | `/readability-review` | 8-dimension readability scoring |
123
- | `/right-size` | Check for over/under-engineering |
124
- | `/stubcheck` | Find stubs, TODOs, and NotImplementedError |
125
- | `/pr-comments` | Process PR review comments systematically |
126
- | `/docupdate` | Update documentation after changes |
127
- | `/initialize` | Session initialization with protocol review |
128
- | `/sum` | Summarize current work context |
129
-
130
- ### Skills (14)
131
-
132
- | Skill | Purpose |
133
- |-------|---------|
134
- | `prompt-generator` | Write, refine, and structure prompts for Claude with emotion-informed framing |
135
- | `agent-prompt` | Craft structured agent prompts and spawn background agents after approval |
136
- | `tdd-team` | Orchestrate a 4-agent TDD team (planner, tester, implementer, validator) |
137
- | `pr-review-responder` | Systematic PR review response: fetch comments, checklist, fix, reply, commit |
138
- | `anthropic-plan` | Readonly codebase exploration before code changes, produces a plan file |
139
- | `readability-review` | 8-dimension readability scoring (160 pts) with automatic fixes |
140
- | `ingest` | Digest codebase into LLM-friendly text files via gitingest |
141
- | `npm-creator` | Scaffold npm installer packages for Claude Code plugin repos |
142
- | `rule-audit` | Full enforcement audit of rules, hooks, and docs across user and project layers |
143
- | `rule-creator` | Create and harden Claude Code rules with positive framing and rationale |
144
- | `skill-writer` | Guide for creating well-structured Agent Skills |
145
- | `everything-search` | Fast Windows file search via Everything (voidtools) es.exe |
146
- | `recall` | Retrieve prior session context and decisions from Obsidian vault |
147
- | `remember` | Save decisions, gotchas, and architectural choices to Obsidian vault |
148
-
149
- ### Hooks (31 registered, 70+ files)
150
-
151
- Automated enforcement that runs on Claude Code events. The installer detects your Python 3 command and rewrites hook paths to absolute `~/.claude/hooks/` paths in `settings.json`.
152
-
153
- #### PreToolUse (before tool execution)
154
-
155
- | Matcher | Hook | What it does |
156
- |---------|------|-------------|
157
- | Write\|Edit | `write-existing-file-blocker` | Warns before overwriting files that should be edited |
158
- | Write\|Edit | `sensitive-file-protector` | Blocks writes to .env, credentials, and sensitive files |
159
- | Write\|Edit | `pyautogui-scroll-blocker` | Prevents pyautogui scroll direction bugs |
160
- | Write\|Edit | `hook-format-validator` | Validates hook file format on write |
161
- | Write\|Edit | `run_all_validators` | Runs the full validation suite (30+ checks) |
162
- | Write\|Edit | `code-rules-enforcer` | Blocks CODE_RULES.md violations (comments, magic values, imports) |
163
- | Write\|Edit | `tdd-enforcer` | Prompts TDD confirmation when writing production code |
164
- | Write\|Edit | `code-style-validator` | Checks indentation and function spacing |
165
- | Write\|Edit | `docker-settings-guard` | Blocks direct edits to Docker settings files |
166
- | Edit | `refactor-guard` | Ensures refactoring happens only after green tests |
167
- | Edit | `migration-safety-advisor` | Warns about risky database migration patterns |
168
- | Bash | `destructive-command-blocker` | Blocks rm -rf, git reset --hard, and other destructive commands |
169
- | Bash | `block-main-commit` | Blocks direct commits to main/master branch |
170
- | Bash | `pr-description-enforcer` | Enforces PR description structure and style |
171
- | Bash | `test-preflight-check` | Validates server health and database before test runs |
172
- | Task\|Agent | `parallel-task-blocker` | Suggests team orchestration for parallel agent spawning |
173
- | AskUserQuestion | `attention-needed-notify` | Desktop notification when Claude needs your input |
174
-
175
- #### Other Events
176
-
177
- | Event | Hook | What it does |
178
- |-------|------|-------------|
179
- | UserPromptSubmit | `hook-structure-context` | Injects hook directory context into session |
180
- | UserPromptSubmit | `bulk-edit-reminder` | Suggests script-based approach for bulk updates |
181
- | UserPromptSubmit | `code-rules-reminder` | Injects CODE_RULES.md reminder on code-related prompts |
182
- | SessionStart (compact) | `compact-context-reinject` | Re-injects critical rules after context compaction |
183
- | SessionStart | `plugin-data-dir-cleanup` | Cleans stale plugin data on session start |
184
- | Stop | `attention-needed-notify` | Desktop notification when Claude stops |
185
- | Stop | `hedging-language-blocker` | Blocks responses with hedging language (anti-hallucination) |
186
- | SessionEnd | `session-end-cleanup` | Cleans temporary state on session end |
187
- | ConfigChange | `config-change-guard` | Guards against accidental settings changes |
188
- | PostToolUse (Write\|Edit) | `mypy_validator` | Runs mypy type checking after file writes |
189
- | PostToolUse (Write\|Edit) | `e2e-test-validator` | Validates e2e test conventions after writes |
190
- | PostToolUse (Write\|Edit) | `auto-formatter` | Auto-formats Python (ruff/black) and JS (prettier) on write |
191
- | PostToolUse (Agent\|Task) | `investigation-tracker-reset` | Resets investigation tracker after delegation |
192
- | Notification | `claude-notification-handler` | Routes Claude Code notifications to desktop |
193
-
194
- #### Validators Module
195
-
196
- The `hooks/validators/` directory contains 30+ individual check modules with a full test suite:
197
-
198
- Abbreviations, code quality, comments, file structure, git conventions, magic values, mypy integration, PR references, Python antipatterns, Python style, React patterns, ruff integration, security, TODO tracking, type safety, useless test detection, and more.
199
-
200
- ## Also Available as a Plugin
201
-
202
- If you prefer the Claude Code plugin system over npm:
203
-
204
- ```bash
205
- claude plugin install jl-cmd/claude-code-config
206
- ```
207
-
208
- ## Recommended Companion Plugins
209
-
210
- These plugins provide additional skills and capabilities that complement this config:
211
-
212
- ```bash
213
- claude plugin install anthropics/claude-code-plugins # Official: frontend-design, code-review, playwright, hookify, skill-creator, claude-md-management, serena, pyright-lsp, typescript-lsp, claude-code-setup
214
- claude plugin install anthropics/claude-code-workflows # Official: python-dev, ui-design, unit-testing, context-management, agent-teams, and more
215
- claude plugin install jl-cmd/claude-journal # Session logging to Obsidian vault (provides /session-log)
216
- claude plugin install jl-cmd/claude-deep-research # Deep multi-source research with citations
217
- claude plugin install jl-cmd/claude-workflow # Workflow definitions with YAML schemas
218
- ```
219
-
220
- GSD (project management) is available as an npm package:
221
- ```bash
222
- npx get-shit-done-cc
223
- ```
224
-
225
- ## Customization
226
-
227
- Installed rules merge with your project's `.claude/` config. To override a rule for a specific project, create a rule with the same filename in your project's `.claude/rules/` directory.
228
-
229
- Installed hooks run alongside any hooks already in your `settings.json` or `settings.local.json`. The installer preserves existing hook entries.
230
-
231
- ## Agent Gate
232
-
233
- For a prompt evaluation gate that reviews prompts before execution, see [agent-gate](https://github.com/jl-cmd/agent-gate):
234
-
235
- ```bash
236
- npx agent-gate-installer
237
- ```
238
-
239
- ## Requirements
240
-
241
- - Node.js 18+ (for the installer)
242
- - Python 3.8+ (for hooks)
243
- - Claude Code CLI
244
-
245
- ## License
246
-
247
- MIT