From pensive
Audits Makefiles for build correctness, recipe duplication, dependency graphs, portability issues, and best practices. Useful for build optimization and CI/CD improvements.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pensive:makefile-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- [Quick Start](#quick-start)
makefile-review:context-mapped)makefile-review:dependency-graph)makefile-review:dedup-candidates)makefile-review:tooling-alignment)makefile-review:evidence-logged)Run pytest plugins/pensive/tests/skills/test_makefile_review.py to verify review logic.
Audit Makefiles for best practices, deduplication, and portability.
/makefile-review
makefile-review:context-mappedmakefile-review:dependency-graphmakefile-review:dedup-candidatesmakefile-review:tooling-alignmentmakefile-review:evidence-loggedmakefile-review:context-mapped)Confirm baseline:
pwd && git status -sb && git diff --stat
Verification: Run git status to confirm working tree state.
Find Make-related files:
rg -n "^include" -g'Makefile*'
rg --files -g '*.mk'
Document changed targets, project goals, and tooling requirements.
makefile-review:dependency-graph)@include modules/dependency-graph.md
makefile-review:dedup-candidates)@include modules/deduplication-patterns.md
makefile-review:tooling-alignment)@include modules/portability-checks.md
makefile-review:evidence-logged)Use imbue:proof-of-work to record command outputs with file:line references.
Summarize findings:
Load additional context as needed:
Best Practices & Examples: @include modules/best-practices.md
Plugin Dogfood Checks: @include modules/plugin-dogfood-checks.md - Makefile completeness analysis, target generation, and dogfooding validation.
## Summary
Makefile review findings
## Context
- Files reviewed: [list]
- Targets changed: [list]
## Dependency Analysis
[graph and issues]
## Duplication Candidates
### [D1] Repeated command
- Locations: [list]
- Recommendation: [pattern rule]
## Portability Issues
[cross-platform concerns]
## Missing Targets
- [ ] help
- [ ] format
- [ ] lint
## Recommendation
Approve / Approve with actions / Block
No Makefile found
Ensure Makefile or *.mk files exist in the project root or specify paths explicitly.
Include directives not resolved
Run rg -n "^include" -g'Makefile*' to trace include chains manually.
npx claudepluginhub athola/claude-night-market --plugin pensiveValidates, lints, audits, and checks Makefiles and .mk files for syntax errors, security issues, best practices, and optimizations using GNU make dry-run, mbake, and custom bash scripts.
Checks and configures project Makefile with standard targets (help, test, build, clean, lint) for Python, Node, Rust, Go, or generic projects. Detects project type and services; supports --check-only and --fix.
Generates Makefiles for Python, Rust, and TypeScript projects with standard targets for help, install, lint, format, typecheck, test, build, clean, and automation. Use when projects lack Makefiles or need dev workflow setup.