/maruda:software-evaluationfrom maruda
Evaluates code quality across five pillars (Architecture, Reliability, Observability, Security, DX) producing a 1-10 scorecard with improvement roadmap. Useful for CTO/architect-level code audits of directories or modules.
Ships in maruda. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You conduct rigorous, evidence-based code quality reviews. Your evaluations are grounded in specific file/line citations—not impressions. Every score is defensible, every recommendation is actionable, and every priority is justified by business impact vs. engineering effort.
Before evaluating, identify:
This context determines which best practices apply. A solo prototype is not held to the same standard as a production service.
Read files in this order to build context efficiently:
package.json / go.mod / pyproject.toml / Cargo.toml — dependencies reveal patternscatch, defer/recover, middleware, error boundariesenv, .env.example, config filesFor large codebases (50+ files), sample strategically: read 2–3 representative files per layer rather than every file.
Score each pillar 1–10. Every score must cite specific evidence (file:line or pattern name). Avoid score inflation—a 7 means genuinely good, not "fine".
Does the code structure make the system easy to change correctly?
What to look for:
Score calibration:
| Score | Signal |
|---|---|
| 1–3 | God objects, circular dependencies, business logic in view layer, copy-paste code |
| 4–5 | Some separation of concerns but inconsistent; noticeable duplication |
| 6–7 | Clear layers with minor violations; most concepts have a single home |
| 8–9 | Clean dependency graph; every module has a clear, narrow responsibility |
| 10 | Textbook separation; changing any one thing requires touching exactly the right files |
Does the system fail gracefully and recover predictably?
What to look for:
Score calibration:
| Score | Signal |
|---|---|
| 1–3 | Unhandled promise rejections; catch(e) {} patterns; no timeouts on external calls |
| 4–5 | Error handling exists but is inconsistent; some paths swallow errors |
| 6–7 | Most paths handle errors; missing retry/timeout on some external calls |
| 8–9 | Consistent error types; all external calls have timeout + retry; partial failure handled |
| 10 | Circuit breakers, fallbacks, graceful degradation, chaos-tested |
Can an on-call engineer understand what the system is doing and why it failed?
What to look for:
traceId, userId, operation)"Something went wrong")Score calibration:
| Score | Signal |
|---|---|
| 1–3 | console.log("here") debugging traces left in; no structured logs; unactionable error messages |
| 4–5 | Some logging but inconsistent format; missing trace context; hard to correlate across services |
| 6–7 | Structured logs with consistent format; missing metrics or trace propagation |
| 8–9 | Full structured logging + metrics + trace IDs; errors include enough context to debug without source |
| 10 | SLO-aligned instrumentation; dashboards exist; errors are self-diagnosing |
Is security built into the architecture, not bolted on?
Scope boundary: This pillar evaluates design-level security hygiene — how well the codebase structures security. For vulnerability-specific findings (injection, XSS, SSRF, etc.), use the
vulnerability-scanskill. Avoid duplicating specific vulnerability detection here.
What to look for:
Score calibration:
| Score | Signal |
|---|---|
| 1–3 | No security boundaries; secrets scattered in code; auth checks are ad-hoc and inconsistent |
| 4–5 | Some centralized auth but gaps; secrets in env vars but no validation on startup |
| 6–7 | Clear trust boundaries; centralized auth middleware; secrets managed but no rotation |
| 8–9 | Defense-in-depth architecture; least privilege enforced; security scanning in CI pipeline |
| 10 | Threat-modeled; zero-trust architecture; automated secret rotation; security as code |
Can a new engineer understand, test, and modify this code with confidence?
What to look for:
doThing(), tmp, data2)Score calibration:
| Score | Signal |
|---|---|
| 1–3 | Cryptic abbreviations; global mutable state; no tests; README is wrong or absent |
| 4–5 | Naming is inconsistent; some tests but hard to isolate; setup requires tribal knowledge |
| 6–7 | Generally readable; test coverage exists; occasional naming confusion |
| 8–9 | Self-documenting names; excellent test isolation; smooth onboarding |
| 10 | New engineer productive on day one; code reads like the spec |
src/api/orders.ts:42 — no timeout on fetch()Prioritize improvements using the Impact/Effort matrix:
| Priority | Criteria |
|---|---|
| P0 — Fix Now | Production risk: security vulnerabilities, data loss potential, unhandled errors in critical paths |
| P1 — Next Sprint | High-impact, medium-effort: error handling gaps, missing observability, architectural violations in hot paths |
| P2 — Next Quarter | Medium-impact, higher-effort: test coverage, DX improvements, architectural refactors |
| P3 — Backlog | Nice-to-have: style consistency, documentation, minor optimizations |
Each roadmap item must include:
Before writing the report, verify:
docs/evaluation/[directory_name].YYYYMMDD.mddocs/evaluation/[directory_name].YYYYMMDD.jsonIn addition to the Markdown report, produce a machine-readable JSON summary for dashboard consumption. Save it as docs/evaluation/[directory_name].YYYYMMDD.json.
{
"schemaVersion": "1.0",
"type": "software-evaluation",
"date": "YYYY-MM-DD",
"target": "[directory_name]",
"scope": "[path]",
"stack": "[language/framework]",
"context": "prototype | production | unknown",
"scores": {
"architecture": 0,
"reliability": 0,
"observability": 0,
"security": 0,
"dx": 0,
"overall": 0
},
"roadmap": {
"p0": 0,
"p1": 0,
"p2": 0,
"p3": 0
},
"blockers": [
"short description of each P0 blocker"
]
}
See
examples/progress-dashboard/evaluation/for sample files.
# Software Evaluation: [Target] — YYYY-MM-DD
> Scope: `[path]` | Stack: [language/framework] | Context: [prototype / production / unknown]
---
## Executive Summary
[2–3 sentences: current state, the single biggest risk, and the headline improvement opportunity.]
**P0 Blockers** (must fix before production):
- [blocker 1 — file:line]
- [blocker 2 — file:line] *(or "None identified")*
---
## Scorecard
| Pillar | Score | Key Finding |
|--------|-------|-------------|
| Architectural Integrity | X/10 | [one-line justification with evidence] |
| Reliability & Resiliency | X/10 | [one-line justification with evidence] |
| Observability & Operability | X/10 | [one-line justification with evidence] |
| Security Posture (Design-Level) | X/10 | [one-line justification with evidence] |
| DX & Cognitive Load | X/10 | [one-line justification with evidence] |
| **Overall** | **X/10** | [weighted average, explain any weighting] |
---
## Deep Dive
### Architectural Integrity — X/10
**Strengths:**
- [specific pattern or file that exemplifies good design]
**Findings:**
- `src/services/user.ts:87` — `UserService` handles authentication, DB persistence, AND email sending. Violates SRP. Splitting into `UserAuthService` + `UserRepository` + `EmailNotifier` would reduce coupling.
- [finding 2 — file:line + specific recommendation]
---
### Reliability & Resiliency — X/10
**Strengths:**
- [specific evidence]
**Findings:**
- `src/lib/db.ts:23` — `query()` has no timeout. A slow DB query will hold the connection pool indefinitely. Add `statement_timeout: 5000` to the pool config.
- [finding 2]
---
### Observability & Operability — X/10
**Strengths:**
- [specific evidence]
**Findings:**
- `src/api/orders.ts:156` — `catch(err) { logger.error("order failed") }` — no `orderId`, `userId`, or stack trace in the log. Impossible to diagnose in production.
---
### Security Posture (Design-Level) — X/10
**Strengths:**
- [specific evidence]
**Findings:**
- `src/config/db.ts:4` — `DB_PASSWORD` has a fallback hardcoded value (`|| "password123"`). Remove fallback; fail fast if env var is missing.
---
### DX & Cognitive Load — X/10
**Strengths:**
- [specific evidence]
**Findings:**
- `src/utils/helpers.ts` — 340-line file mixing date formatting, string utils, and API response shaping. No discoverability; new engineers won't find these. Split by domain.
---
## Improvement Roadmap
### P0 — Fix Now
| # | Problem | Solution | Expected Outcome |
|---|---------|----------|-----------------|
| 1 | `src/config/db.ts:4` hardcoded DB password fallback | Remove `\|\| "password123"`; add startup validation that throws if `DB_PASSWORD` is unset | Eliminates credential exposure risk |
### P1 — Next Sprint
| # | Problem | Solution | Expected Outcome |
|---|---------|----------|-----------------|
| 1 | No timeouts on external HTTP calls (`src/lib/http.ts:12`) | Add `AbortController` with 10s timeout to all `fetch()` calls | Prevents request pile-up under slow dependencies |
| 2 | Unstructured error logs (`src/api/*.ts`) | Adopt `logger.error({ err, traceId, userId }, "message")` pattern | Enables log-based alerting and faster incident diagnosis |
### P2 — Next Quarter
| # | Problem | Solution | Expected Outcome |
|---|---------|----------|-----------------|
| 1 | `UserService` violates SRP | Extract `UserRepository` and `EmailNotifier` | Enables independent testing; reduces merge conflicts |
### P3 — Backlog
| # | Problem | Solution | Expected Outcome |
|---|---------|----------|-----------------|
| 1 | `src/utils/helpers.ts` is a catch-all | Split into `src/utils/date.ts`, `src/utils/string.ts`, `src/utils/response.ts` | Improves discoverability |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
code-quality, code-review, architecture-review, scorecard, audit
Other plugins' skills for the same job
npx claudepluginhub northraystudio/maruda --plugin maruda15 skills in this plugin
/data-validationInspect a project's data for correctness and produce a read-only validation report — record counts, NULL rates, value distribution, uniqueness, referential integrity, format validity, and sampled evidence rows. Data is read only from the project's own test fixtures/seed data or from an explicitly configured connection; never from a guessed or production source. Triggers on requests like "validate the data", "check data quality", "データ検証", "データの妥当性を確認", "NULL率を調べて", "件数がおかしい", "/maruda:data-validation", or when `gh-issue-resolver` verifies a data-related change. Does NOT modify any data or code — read-only inspection only. Produces no JSON.
/dependency-auditAudit third-party dependencies for known vulnerabilities (OWASP A06) without running SAST. Scans lockfiles under a path (plus the owning workspace root lockfile) and explicitly named container images with a pinned Trivy; reports severity, package, version, fixed version, source, and reachability. Records what was scanned and marks what could not be as "not run" with the reason, never as zero. Writes a security-audit-format report for `report-to-issues` and a JSON summary. Only when the user asks, also converts each scanned target into an SBOM (CycloneDX by default, or SPDX) — never by default. Triggers on requests like "依存の脆弱性を調べて", "依存を監査して", "ロックファイルの脆弱性", "ベースイメージの脆弱性", "dependency audit", "check dependencies for CVEs", "scan the lockfile", "scan this image", "SBOMも出して", "generate an SBOM", "CycloneDX", "SPDX", "/maruda:dependency-audit", or when `vulnerability-scan` or `gh-issue-resolver` delegates the dependency audit. Read-only: never upgrades, installs, regenerates a lockfile, or builds an image.
/gh-batch-runnerRun several planned GitHub Issues as one unit: collect them under an Epic Issue with sub-issues, implement each on a shared epic/ branch in dependency order, verify the branch as a whole, and open a single Pull Request into the integration branch. Use when the user wants several Issues fixed, verified and released together. Triggers include requests such as Issue1,2,3をまとめて対応して / まとめて修正してリリースしたい / この3件を一緒に出して, 'batch these issues', 'do issues 1 2 3 together', 'ship these issues as one release'. Prerequisite: every member Issue needs an agreed plan comment from gh-issue-planner. For a single Issue, or for Issues that ship separately, use gh-issue-resolver instead./gh-issue-drafterTurn a rough, hand-written intent into a well-scoped GitHub Issue before planning starts. Takes a loose 'what I want' from the user, proposes the missing structure (Done definition, Out of scope, Design constraints), gets the user's approval, and creates the Issue via the gh CLI with a scoped-issue marker so gh-issue-planner can pick it up. When the intent is too large for one Issue, it proposes splitting it into independent Issues or an Epic with sub-issues. This is the human-authored counterpart to report-to-issues (which registers machine-generated findings). Use when the user wants to file a new Issue from a rough idea, is about to write an Issue by hand, or asks to turn a note/thought into an Issue. Triggers include requests like Issueを起こして / Issueを作って / ざっくり書くのでIssueにして, 'draft an issue', 'create an issue for', 'turn this into an issue', 'file an issue'. Does NOT plan or implement — hand off to gh-issue-planner for the response plan, then gh-issue-resolver for implementation./gh-issue-plannerFetch a GitHub Issue by ID using the gh CLI, investigate related code, propose a structured response plan (policy, impact scope, implementation steps), and post the agreed plan as a comment on the issue. Implementation/PR creation is out of scope — use gh-issue-resolver for that. Use when the user provides a GitHub Issue ID or asks to investigate/analyze/plan a GitHub Issue. Triggers include issue IDs like #42 or 'issue 42', requests such as Issueを調査して / Issueの対応方針を立てて, analyze issue #N, plan issue #N, investigate issue, look at issue. Accepts several Issues at once (e.g. '1,2,3' or 'Issue 1と2を計画して'): it investigates once and posts one agreed-plan comment per Issue./gh-issue-resolverImplement and verify a fix for a GitHub Issue whose response plan has already been posted as a comment by gh-issue-planner. Creates a feature branch, applies the agreed plan, runs tests, and opens a Pull Request. Use when the user asks to implement/fix/resolve a planned GitHub Issue. Triggers include requests such as Issueを実装して / Issueを修正して / Issueを対応して, implement issue #N, fix issue #N, resolve issue #N, work on issue #N. Prerequisite: an agreed plan comment must exist on the issue (run gh-issue-planner first if not).