Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By w159v1.0.5MITIn 1 marketplace
Finds code that breaks book-derived principles. A deterministic Python scanner with 20 detected rules (DRY, small functions, crash early, Law of Demeter, shared state, injection, dependency rule, inheritance tax, CQS and more), each tied to a book and tip and proven by fixtures; JSON and SARIF output for CI. A cited model judge covers what code cannot decide. 2 skills (review, principles) and 1 agent (principles-judge).
Claude hands work to one, or you mention it with @.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
code-review, static-analysis, principles, clean-code, pragmatic-programmer, sarif
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Finds code that breaks book-derived principles, and proves each finding.
A deterministic Python scanner checks 20 detected rules taken from The Pragmatic Programmer, Clean Code, Clean Architecture, Refactoring and other books in the corpus. Each rule cites its book and tip, and fixture tests prove it fires on a seeded violation and stays quiet on clean code. A read-only model judge covers what code cannot decide (names, responsibilities, domain language, contracts, tests) and must cite the line it read.
Part of the tech-tools marketplace.
/plugin marketplace add w159/tech-tools
/plugin install programmer@tech-tools
Developing in place:
claude --plugin-dir ./plugins/programmer
| Component | Name | Purpose |
|---|---|---|
| Skill | review | Runs the scanner, then the judge, and writes a ranked report with file:line, principle, book and fix. |
| Skill | principles | Advisor: names the 1-4 principles that apply to the code or decision in front of you. |
| Agent | principles-judge | Read-only judge for one batch of files; returns strict JSON. |
| Hook | scan_on_edit.py | Opt-in. After an Edit or Write to a .py file, reports the error-level findings the edit introduced to Claude. |
| CLI | scripts/principles | The scanner. Python 3.9+ standard library only (config files need 3.11+). |
| Rule | Severity | Title |
|---|---|---|
| DRY001 | warning | Duplicated logic (near-miss functions and repeated blocks) |
| FN001 | warning | Function too long |
| FN002 | warning | Long parameter list |
| FN003 | warning | Flag argument |
| FN004 | warning | Deep nesting |
| FN005 | warning | High cyclomatic complexity |
| ERR001 | error | Swallowed or over-broad exception |
| DEM001 | warning | Message chain (Law of Demeter) |
| STATE001 | warning | Mutable global state, mutable default argument |
| RES001 | warning | Resource not paired with release |
| SEC001 | error | Query or command built from strings; unsafe call (shell, eval, unpickle, yaml.load, verify=False) |
| SEC002 | error | Secret in source |
| CFG001 | warning | Hardcoded endpoint |
| ARCH001 | warning | Dependency rule violation |
| ARCH002 | warning | Import cycle |
| OO001 | warning | Large class |
| OO002 | warning | Deep inheritance |
| CQS001 | warning | Query that mutates |
| LIT001 | note | Magic number |
| WIN001 | note | Broken window (TODO/FIXME/XXX) |
Principles, sources and thresholds for each rule: skills/principles/references/catalog.md (generated from scripts/principles/catalog.py), or python3 scripts/principles explain DEM001.
/programmer:review src/
/programmer:review . --diff main
/programmer:review src/ --no-judge
/programmer:review . --profile pragmatic --report review.md
The review skill runs the scanner first and keeps its JSON as the source of truth for detected findings. It then dispatches principles-judge in parallel batches (8 files per batch, 4 batches max). Judge findings whose evidence does not match the cited line are dropped. Scanner findings the judge disputes stay in the report under "Disputed". The report goes to .principles-report.md unless --report is given.
Ask "which principle applies here?" or "is this DRY?" and the principles skill answers with 1-4 principles, each with its source and a pointer into your code.
python3 plugins/programmer/scripts/principles scan src/
python3 plugins/programmer/scripts/principles scan . --format sarif -o principles.sarif
python3 plugins/programmer/scripts/principles scan . --diff origin/main --fail-on warning
python3 plugins/programmer/scripts/principles rules
python3 plugins/programmer/scripts/principles explain SEC001
| Option | Effect |
|---|---|
--format text|json|sarif|md | Output format. SARIF 2.1.0 works with GitHub code scanning. |
-o FILE | Write output to a file. |
--rules A,B / --skip A,B | Restrict which rules run. |
--diff [REF] | Only lines changed vs REF (default HEAD), plus untracked files. |
--no-tests | Skip test files entirely. |
--fail-on error|warning|note|never | Exit 1 at or above this severity. Default error. |
--baseline FILE / --write-baseline FILE | Adopt on a legacy repo: record current findings, report only new ones. |
Exit codes: 0 clean, 1 findings at or above --fail-on, 2 usage, git or baseline error, or any file that failed to parse.
.principles.toml at the scan root, or [tool.principles] in pyproject.toml:
disable = ["LIT001"]
exclude = ["migrations/*"] # globs on paths relative to the scan root
exclude_dirs = ["vendor"] # directory names skipped anywhere
[rules.FN002]
max_params = 5
[rules.ARCH001]
inner_dirs = ["core"]
npx claudepluginhub w159/tech-tools --plugin programmerBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground