一键导入
sdlc-review
Read-only codebase review using parallel audit agents. Produces consolidated findings and exceptions in docs/.tmp/ without making any code changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Read-only codebase review using parallel audit agents. Produces consolidated findings and exceptions in docs/.tmp/ without making any code changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Repeatable codebase audit & fix cycle using parallel agent teams. Phases: audit, consolidate, fix, validate. All output stays in docs/.tmp/ (gitignored, never committed). Supports delta-scoped audits via --since=<tag> to review only changed files and their adjacent code paths (cost-effective for continuous use).
Conducts a relentless interview about every aspect of a plan or idea, walking down each branch of the design tree until shared understanding is reached. Invoke with /grill-me before starting any significant design or implementation work.
Converts a PRD (Forgejo issue or local file) into independently executable Forgejo issues organised as vertical slices through integration layers. Invoke with /prd-to-issues <issue-url-or-path>.
Implements a feature or fix using strict red-green-refactor TDD cycles. Confirms interfaces and behaviours before writing any code. Invoke with /tdd <task description>.
Transforms a conversation or idea into a Product Requirements Document (PRD) with user stories, then submits it as a Forgejo issue. Invoke with /write-a-prd when ready to formalise a feature or initiative.
Refresh .abstract.md (L0) and .overview.md (L1) across all subsystems. Diff mode (default) updates only subsystems modified since the last index; regeneration mode rewrites everything. Invoke with /context-update when indexes may be stale, before running the large task planning protocol, or after significant refactors.
| name | sdlc-review |
| description | Read-only codebase review using parallel audit agents. Produces consolidated findings and exceptions in docs/.tmp/ without making any code changes. |
| argument-hint | [scope: path/to/component,...] [type: security|code|both] |
| user-invocable | true |
| allowed-tools | Bash(mkdir *), Read, Grep, Glob, Write(docs/.tmp/*), Task, TeamCreate, TeamDelete, SendMessage, TaskCreate, TaskUpdate, TaskList, TaskGet |
A read-only codebase review that produces consolidated findings and
recommendations without touching source code, creating commits, or making
any changes outside of docs/.tmp/.
Parse the user's arguments first:
scope argument is present (comma-separated paths), limit the review
to those components only. If omitted, treat the entire repo as in scope.type argument is present, use it to select which audit agents to
spawn: security (security-audit agents only), code (code-review agents
only), or both (default, spawn both types).docs/.tmp is listed in .gitignore at the repo root.
Run grep -r 'docs/.tmp' .gitignore to verify. If it is missing, warn
the user and run echo 'docs/.tmp/' >> .gitignore to add it.mkdir -p docs/.tmp to ensure the output directory exists..claude/settings.json. Verify that background agents will have
the permissions they need. Review agents (code-review, security-audit)
need at minimum: Read(*), Glob(*), Grep(*), Write(docs/.tmp/*).
If any required permissions are absent, warn the user before spawning
agents — background agents cannot prompt for permissions and will silently
fail without them.scope was provided, use those paths.
Otherwise, enumerate the top-level directories or logical components of the
repo.sdlc-review.type argument:
security — spawn only security-audit agents, pinned to Opus.code — spawn only code-review agents, pinned to Opus.both (default) — spawn a mix of code-review and security-audit
agents, pinned to Opus.code-review of src/api/, one for security-audit of src/api/, etc.).in_progress).
b. Read the component source thoroughly.
c. Write all findings to docs/.tmp/<agent-name>-<component>-<audit-type>.md.
Use the repo root as the base for this path.
d. Mark the task completed (TaskUpdate status to completed).
e. Call TaskList to find the next unclaimed task and repeat until none remain.Agent type matters for permissions. If .claude/settings.json does not allow
the tools those agent types require, they will stall silently. Verify before
spawning.
Spawn a single consolidation agent (Opus, general-purpose). Pass it the following instructions:
docs/.tmp/ from Phase 1.docs/.tmp/:
consolidated-fix-list.md — findings recommended for fixing, grouped
by component. Label each entry as a recommendation, not a required
action item. Include severity (Critical / High / Medium / Low) and
enough context for a human to act on it manually.consolidated-exceptions.md — findings recommended to skip or accept
as-is, each with a rationale.code-review and a security-audit report, produce one entry in the output
and annotate it Source: both./sdlc-audit fix run can handle them
together.docs/.tmp/. Only consolidated-fix-list.md and
consolidated-exceptions.md should remain when done.| Category | Output |
|---|---|
| Real bugs (wrong IDs, silent failures, broken imports) | FIX recommendation |
| DRY violations (duplicated logic across services) | FIX recommendation |
| Dead code, dangling functions | FIX recommendation |
| Security issues regardless of environment | FIX recommendation |
| Large file decomposition | FIX recommendation |
| Dev-only QoL (swagger exposure, localhost URLs, debug output) | EXCEPTION |
| Test coverage gaps | EXCEPTION (note for prioritization) |
| Prod-specific hardening handled by infra | EXCEPTION |
| Intentional duplication (documented architectural reason) | EXCEPTION (document why) |
After consolidation completes, print a summary to the user:
docs/.tmp/consolidated-fix-list.md
and docs/.tmp/consolidated-exceptions.md.Follow these rules in every phase without exception:
docs/.tmp/ — this directory is gitignored and
ephemeral. Never write findings to docs/, the repo root, or any tracked
location.docs/.tmp/<agent-name>-<output-type>.md. Use the
repo root as the base for all paths.docs/.tmp/ when
collation is needed.cd into docs/.tmp/. Always use absolute paths or paths relative
to the repo root (e.g., docs/.tmp/foo.md).docs/.tmp/ except when
reading source code for analysis.This skill is read-only. It does not modify source code, create commits, or
make any changes outside of docs/.tmp/. To act on the findings, run
/sdlc-audit fix or address them manually.