/morning-star-harness:mstar-auditfrom morning-star-harness
Audits a codebase into an evidence-backed, prioritized review report covering bugs, security, perf, test gaps, tech debt, DX, PR diffs, test suites, and skill corpus redundancy. Read-only; never edits source code.
Ships in morning-star-harness. 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.
Read when SKILL.md points to them.
A read-only advisory skill that discovers what is worth doing in a codebase and writes a review report for the maintainer. The audit never edits source code — its output is one run directory under {REVIEW_DIR} holding the report and its evidence.
Read mstar-harness-core first; resolve {REVIEW_DIR} through mstar-conventions / mstar path resolve.
{REVIEW_DIR} ({HARNESS_DIR}/reviews/; .mstarc review_dir overrides it) — run directory and report layout → § Output format and references/codebase-audit.md § Phase 4 (codebase audit) / references/pr-review.md § Local report archive (pr variant). Carve-out (pr variant, lead entries only): the main agent captures deferred batch PRs as issues in {HARNESS_DIR}/store.db (report files are gitignored; capture goes through the issue verbs — primary checkout, never the review worktree — procedures → references/pr-review.md § Batch sibling PRs).mstar-harness-core § 定向执行与验证边界). Carve-out (pr variant only): posting the GitHub Review via gh api (Reviews POST, event: COMMENT) is a required deliverable of deep PR review — the main agent (the command's orchestrator) posts the review; review seats never post (posted at Stage 3 synthesis). It is a comment on the PR, not a source-code mutation. Git stays read-only: no commits, no worktree edits, no formatters. Procedure → references/pr-review.md § Comment posting. The pr-variant main-agent writes in the Hard Rule 1 carve-out (line 16) — deferred-PR issue capture + deep-review report/evidence files — are not affected by this rule: read-only applies to source/tooling mutation, not those main-agent writes (procedures → references/pr-review.md § Batch sibling PRs / § Local report archive)..env contents, findings reference file:line and credential type only, and recommend rotation. The value itself must never appear in anything you write.Task category: audit; before a major refactoring initiative. Process detail → references/codebase-audit.md.ship it / needs fixes / blocked / incomplete). Process detail → references/pr-review.md.| Entry | Load |
|---|---|
Full codebase audit — bare / quick / deep / category focus (security, perf, tests, ...) / branch / next / roadmap / simplify | references/codebase-audit.md (Phase 2 categories + effort table, scope variants, Phase 4 excerpt & reconcile rules, audit index output templates) — shared review report → ## Output format |
PR / branch / diff deep review (pr) | references/pr-review.md(三阶段流水线:领域收集 → 领域审查 → 主代理合成;存在 pinned diff pack 时 collect 波默认折入领域席位(collectFolded),kept 例外与 - notes: 声明见 § Review pipeline;同一目标在 head 前进后再次 review → § Re-review(复核既有 findings;上一轮 settled 且祖先成立时只审增量,其它情况完整审 base...<new-head>);多 PR 单会话语义见 § Review pipeline / § Batch sibling PRs) |
Skill-corpus audit — skills / stocktake the skills/ tree (concept overlap, stale references, promotion candidates, resident-description cost) / quick scan or full | references/skill-corpus-audit.md(four judgements + evidence each requires, verdict vocabulary Keep / Improve / Retire / Merge into <skill> / Promote to <owner>, reason-quality rule, report shape, approval gate; judging vocabulary → mstar-skill-authoring) |
Test-suite audit — category focus tests depth / prune, repair, consolidate the test surface / campaign (one subsystem's whole test surface) / /amazing-test-audit | references/test-audit.md(value bar, authoring gate, junk-pattern sweep, retention bar, per-candidate evidence, discovery lanes, campaign R/F/C/D ledger; the report carries the edit shape + verification gates) |
For an explicitly scoped early codebase survey, map the territory before judging it. For PR/diff review, use its supplied scope/pack and inspect only changed contracts and missing direct context; do not restart a full repository survey:
README, AGENTS.md / CLAUDE.md, CONTRIBUTING, root config (package.json, pyproject.toml, go.mod, etc.), CI config, directory structure.docs/adr/, docs/decisions/), specs, CONTEXT.md, DESIGN.md, STRATEGY.md, PRODUCT.md. Apply the documented-decision bar in references/finding-format.md § What disqualifies a finding.git log --oneline -30, churn hotspots) for what is actively evolving vs. frozen.{KNOWLEDGE_DIR}/README.md if present and follow only relevant Active entries — crystallized decisions inform what is settled; do not load the entire knowledge corpus.If a relevant verification entry is missing or has a known failure, record that concrete gap and its evidence. Do not run every repository command to establish a baseline or insert unrelated verification work into every finding.
Full codebase audit: nine-category fan-out across references/audit-playbook.md with the effort table (quick / standard / deep) and "state what was not audited" → references/codebase-audit.md § Phase 2. PR review: scoping + concern lenses → references/pr-review.md § Scoping / Concern lenses.
Investigate correctness, security, and data-loss paths before reliability at expected load, risky untested behavior, performance, and leanness. This is an investigation order, not a replacement for the existing leverage rubric, severity, merge classes, or verdict derivation.
Test assertions (all variants, including pr): apply mstar-coding-behavior § Evidence keep/delete rule. On finding a non-product assertion, the auditor must report its non-product-assertion class and conclude "delete, or replace with a product-behaviour assertion". Detailed candidate evidence and retention safeguards → references/test-audit.md §§ 2–7.
Attack before vet — claims must survive an adversarial pass first. Take the top candidate findings (by leverage; scale the count to finding volume — attack the whole table when small, the head when large) and run a three-way attack on each:
file:line and check it actually supports the claim.Dispose each attacked finding into exactly one of the four dispositions below:
- <finding>: not worth doing because <one line>.Where the attack step decides whether a claim stands on its face, vet below confirms the code itself — opening cited files and disposing by-design / mis-attribution / duplicate cases; survived findings hand to vet below.
Vet before presenting — subagents over-report. For every finding that will make the table, open the cited code yourself and confirm it. Three failure classes to expect:
https_proxy flagged as SSRF — standard proxy convention; or a tradeoff explicitly recorded in an ADR).Downgrade, correct, or reject accordingly. Record rejections in the index's "considered and rejected" section so they are not re-audited next run.
Present the vetted findings table to the user, ordered by leverage (impact ÷ effort, weighted by confidence and fix-risk). Finding format fields: Category, Impact, Effort, Risk, Confidence, Evidence.
Present direction findings separately — they are options for the maintainer to weigh, not problems ranked against bugs. 2–4 grounded suggestions max, each with evidence and trade-offs in two or three sentences.
Write the vetted table into this run's report — the report is the deliverable. Where one finding is a prerequisite for another, say so in the finding's own text (e.g. "characterization tests for module X must land before the refactor of X").
Do not pad the report with speculative findings: a short list of high-confidence, high-leverage findings beats a long one.
The output contract is common; per-variant output shapes live in the variant reference.
{REVIEW_DIR} — <YYYY-MM-DD>-codebase-<level>-<round>/ with its README.md index (findings table, direction, Coverage table, considered-and-rejected, red-team dispositions, plus the Needs verification and Hardening & checked notes disposition sections) and the mstar audit scaffold Engine-check callout → references/codebase-audit.md § Output format and § Phase 4.<YYYY-MM-DD>-pr<N>/ under {REVIEW_DIR} (branch/diff variants per references/pr-review.md § Local report archive) holding report.md plus stage1-<slug>.md / stage2-<slug>.md evidence; report fields findings / verdict / score_pct / tally / evidence / next / notes / comments → references/pr-review.md § Output shape.references/finding-format.md — read it before the first finding.{HARNESS_DIR}/store.db at the moment it is confirmed — before, and independently of, any later decision to act on it (unscoped mstar issue add; a plan session that owns the batch uses plan-scoped mstar plan issue-add — a recurrence appends an occurrence to the same issue). The single-authority capture contract, its authorization and its activation boundary live in mstar-project-governance「Issue capture」 and are not restated here. Audit / collect / domain seats return findings as evidence and never write the store; under a lead entry the seat that owns the confirmed outcome (the audit's main agent, or the PM seat) captures it, and the report cites the captured issue ids so report and store name the same identity. Direct · read-only entries do not capture: under a direct · read-only entry (/amazing-audit, /amazing-pr-review) a confirmed finding stays in the report and nothing is written to {HARNESS_DIR}/store.db — capture there is a separate, explicitly authorized action the user may request afterwards, and every capture statement in this skill's variants means the lead-entry path.Advise, do not sell. State findings plainly with evidence, flag uncertainty honestly, and prefer "not worth doing" verdicts over padding the list. A short list of high-confidence, high-leverage findings beats a long one.
Workflow, audit playbook, finding format, and the security deep-dive method are adapted or synthesized from third-party sources — full provenance lives in ATTRIBUTION.md at this repo's root. The execute / reconcile / --issues variants of the source skill are not carried over — Morning Star's SDD, store.db issue/execution authority, and its separate planning flow replace them.
references/audit-playbook.md — open when auditing one category or briefing a per-category pass; nine-category audit checklist with finding format and prioritization rubricreferences/finding-format.md — open when writing, prioritizing or vetting a finding; structured finding shape and evidence requirementsreferences/codebase-audit.md — open when the target is a full codebase audit rather than the pr variant; full codebase audit variant: Phase 2 categories + subagent-prompt requirements, effort table, scope variants, Phase 4 excerpt & reconcile rules, audit index output templates, mstar audit scaffold callout (report writing → § Phase 4)amazing-audit, amazing-test-audit or amazing-pr-review, open the matching references/command-entries/amazing-audit.md, references/command-entries/amazing-test-audit.md or references/command-entries/amazing-pr-review.md for input, delegation and report contracts.references/pr-review.md — open when the target is a pull request, branch or diff; deep PR-review process: worktree isolation, concern lenses, evidence rules, verdict synthesis, linked-issue hygiene, three-stage pipeline, same-target re-review (§ Re-review: revalidate prior findings, review only the increment), batch session policyreferences/security-review.md — open when the category focus is security or a checklist hit needs the exploitability bar; security deep-dive: exploitability bar, input-source triage, FP discipline, hunting angles, LLM/supply-chain/CI-CD surfaces; its sibling references/agent-artifact-review.md covers untrusted skill/MCP/repo/URL artifacts (install-time red flags, social-engineering leads, supply-chain gaps)references/test-audit.md — open when the category focus is tests or the existing test surface is judged; test-suite audit deep method: value bar, authoring gate (grades existing tests and gates proposed ones), junk-pattern sweep, retention bar, per-candidate evidence, discovery lanes, campaign scope (per-test R/F/C/D ledger), edit shape + verification gates the report carriesreferences/agent-artifact-review.md (opens in a new tab)references/audit-playbook.md (opens in a new tab)references/codebase-audit.md (opens in a new tab)references/command-entries/amazing-audit.md (opens in a new tab)references/command-entries/amazing-pr-review.md (opens in a new tab)references/command-entries/amazing-test-audit.md (opens in a new tab)references/finding-format.md (opens in a new tab)references/pr-review-seat-evidence.md (opens in a new tab)references/pr-review.md (opens in a new tab)references/security-review.md (opens in a new tab)references/skill-corpus-audit.md (opens in a new tab)references/test-audit.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
29 skills in this plugin
/drtDirect work entry: one View completes one bounded unit and ends, with no PM, plan row, Done, QC tri-review or delivery chain. Use when the user wants a bounded request executed directly (audit, review, cleanup, governance pass, docs, harness text) without iteration or multi-plan orchestration./grill-meInterview the user relentlessly about a plan or design until shared understanding, resolving each decision branch. Use when a plan or design needs stress-testing, or the user says 'grill me'./mstar-artifactsPlan artifacts: main plans, durable review summaries, QC/PM Acceptance bundles, workflow state/config/progress/evidence, issue capture, residual severity. Read when authoring or mapping them.Claude Code refuses to install this plugin
.claude-plugin/plugin.json: agents: Invalid string: must end with ".md"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Other plugins' skills for the same job