This skill should be used when the user runs "/commandments", asks to "evaluate the codebase against engineering commandments", "assess engineering maturity", "run a commandments assessment", "check codebase maturity levels", "how mature is this codebase", "engineering best practices audit", "code quality assessment against commandments", or "generate a commandments report". It evaluates the current repository against 10 Engineering Commandments using a 5-level maturity model and generates a detailed report with evidence-backed assessments and stack-specific actionable improvements.
How this skill is triggered — by the user, by Claude, or both
Slash command
/engineering-commandments:commandmentsThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Evaluate the current repository against 10 Engineering Commandments, producing an evidence-backed maturity report with researched, prioritized actionable improvements.
Evaluate the current repository against 10 Engineering Commandments, producing an evidence-backed maturity report with researched, prioritized actionable improvements.
Execute these phases sequentially, providing progress updates after each:
claudedocs/commandments-report.mdIMPORTANT: Only READ codebase files for analysis. Never modify source code. The only file written is the report.
Scan for package manifests and configuration files to identify the tech stack:
Glob: package.json, requirements.txt, Pipfile, pyproject.toml, go.mod, Cargo.toml,
pom.xml, build.gradle, Gemfile, composer.json, *.csproj, mix.exs, deno.json
Glob: Dockerfile, docker-compose.yml, .github/workflows/*, Makefile, Jenkinsfile
Glob: tsconfig.json, .eslintrc*, .prettierrc*, jest.config.*, vitest.config.*,
webpack.config.*, vite.config.*, next.config.*, nuxt.config.*
Read each discovered manifest to extract:
If no manifests found, analyze file extensions and directory structure as fallback. Clearly note "stack detected via heuristics" in the report.
Using ONLY technology names (never internal code details), run WebSearch queries:
"[Framework] error handling best practices [current year]"
"[Framework] testing best practices [current year]"
"[Framework] observability logging monitoring [current year]"
"[Framework] security best practices OWASP [current year]"
Limit to 3-5 targeted searches for the primary stack components. Store findings for use in actionable recommendations.
For EACH of the 10 commandments, use the Agent tool (subagent_type: Explore) to perform deep codebase analysis. Launch agents in parallel clusters of 3-4 for efficiency.
Locate the bundled commandments reference for the full 5-level maturity criteria:
Glob: **/commandments.md
Read this file to load the maturity level definitions before assessing each commandment.
For each commandment, search for these specific evidence patterns:
try, catch, finally, rescue, except, recover, on_errorretry, backoff, circuit.?breaker, fallback, timeouthealth.?check, readiness, liveness**/errors/**, **/exceptions/****/*.test.*, **/*.spec.*, **/test_*, **/*_test.*, **/tests/****/__tests__/**, **/e2e/**, **/integration/**logger, log\., console\.log, logging, winston, pino, bunyan, slogmetric, counter, histogram, gauge, tracing, span, opentelemetrycorrelation.?id, request.?id, trace.?id**/monitoring/**, **/dashboards/**, **/alerts/****/README.md, **/docs/**, **/adr/**, **/ADR/**@doc, @description, @param, @returns, """, ///.github/workflows/**, .gitlab-ci.yml, Jenkinsfile, .circleci/**Dockerfile, docker-compose.*, terraform/**, *.tfMakefile, scripts/**, bin/**sanitize, escape, validate, parameterize, prepared.?statementhelmet, cors, csrf, rate.?limit, authprocess\.env, os\.environ, env\(, dotenv.env.example, **/security/**, **/auth/**transaction, atomic, lock, mutex, semaphoreschema, validate, zod, joi, yup, pydantic, marshmallowidempoten, migration, constraint, foreign.?keyinject, interface, abstract, trait, protocolcache, redis, memcache, cdnasync, await, queue, worker, job, celery, bull, sidekiqpaginate, limit, offset, cursorpool, connection.?pool, thread.?poolFor each commandment, compare evidence found against the 5-level criteria in commandments.md. Assign the HIGHEST level where ALL criteria are substantially met. When in doubt, assign the lower level and note what's missing.
Each assessment MUST include:
Write to claudedocs/commandments-report.md. Create the claudedocs/ directory if it doesn't exist.
If the report already exists:
## Assessment History section# Engineering Commandments Assessment Report
**Repository:** [repo name from directory]
**Date:** [YYYY-MM-DD]
**Overall Maturity:** [average level, e.g., "Level 2.4 / 5"]
## Tech Stack
| Category | Technologies |
|----------|-------------|
| Languages | [detected] |
| Frameworks | [detected] |
| Testing | [detected] |
| CI/CD | [detected] |
| Infrastructure | [detected] |
## Maturity Summary
| # | Commandment | Level | Score |
|---|------------|-------|-------|
| 1 | Design for Failure | Level X | X/5 |
| 2 | Keep It Simple | Level X | X/5 |
| ... | ... | ... | ... |
| | **Overall** | | **X.X/5** |
## Detailed Assessments
### 1. Design for Failure - Level X/5
**Evidence Found:**
- [specific file paths and patterns found]
- [counts and metrics]
**Evidence Missing (for next level):**
- [what would be needed to reach Level X+1]
**Assessment Rationale:**
[Brief explanation of why this level was assigned]
[Repeat for all 10 commandments]
## Actionable Improvements (Prioritized by Impact)
### Priority 1: [Highest impact action]
**Commandment:** [which one]
**Current Level:** X -> **Target Level:** Y
**Effort:** Low/Medium/High
**Impact:** [why this matters most]
**Steps:**
1. [Specific, stack-aware step]
2. [Reference to best practice from WebSearch]
[Repeat for top 5-10 actions]
## Assessment History
| Date | Overall Score | Top Improvement | Notes |
|------|--------------|-----------------|-------|
| [previous dates and scores from existing report] |
| [current date] | [current score] | [biggest change] | [notes] |
For each recommendation:
Label any recommendation that falls back to general best practices (for unknown stacks) with: [General Best Practice]
--quick: Skip WebSearch research phase, use only codebase analysis--focus=NAME: Deep-dive into a single commandment (e.g., --focus=security)Guides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.
npx claudepluginhub dhanesh/commandments --plugin engineering-commandments