원클릭으로
audit
Audit the codebase for code quality, DRY violations, modularity, LaTeX/asm parity, doc freshness, and doc structure.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Audit the codebase for code quality, DRY violations, modularity, LaTeX/asm parity, doc freshness, and doc structure.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Review PR changes for missing or outdated documentation, comments, and doc site content.
Write or update a PR title and description for the current branch, matching the style of recent PRs.
Create a placeholder PR from the current branch to warm CI caches.
| name | audit |
| description | Audit the codebase for code quality, DRY violations, modularity, LaTeX/asm parity, doc freshness, and doc structure. |
| disable-model-invocation | true |
| user-invocable | true |
auditFull codebase audit covering code quality, structure, algorithm parity, documentation freshness, and documentation structure.
Before starting the audit, check whether .audit/findings.md
already exists. If it does, skip the audit steps entirely
and proceed to the Resolve section below.
Read every source file across the workspace:
build/, macros/, interface/, tests/
(Rust)program/src/dropset/ (SBPF assembly)Check for DRY violations:
.s files
that could be factored into a shared routine.mov32/exit pairs) are intentionally
inlined for CU savings. Do not flag these.Check modularity and decomposition:
Check abstractions:
Check for magic numbers:
Check that code is easy to change (ETC):
For each .tex file in docs/algorithms/,
find its corresponding .s file via the
<Algorithm tex="..." asm="..."/> mapping in
the docs pages. Then verify:
.s file reference the
correct pseudocode line or step where
applicable.\texttt{} references in .tex files
and inline # comments in .s files follow
the notation spec in
docs/src/program/layout.md#notation
(module paths use ::, field access uses .,
constants use full interface path, type names
are unqualified, CPI targets use
program::InstructionName form).Check test coverage for algorithms:
buildAlgorithmIndex (or read
docs/algorithms/index.json if already
built) to get the generated index, which
maps each algorithm to its tests array
via // Verifies: tags in test case files
under tests/tests/cases/.tests array is
missing or empty.Read the notation spec in
docs/src/program/layout.md#notation. Then
check every .tex file in docs/algorithms/
and every .s file in program/src/dropset/:
\texttt{} references in .tex files and
inline # comments in .s files must follow
the notation spec:
::...MarketHeader,
or instruction-scoped types like Accounts).constants group name elided.program::InstructionName
form.:: is expected,
qualified type names, missing module path on
constants, wrong CPI target form).For each page in docs/src/, read the page
and the source files it documents. Verify:
<Include> region tags resolve to regions
that still exist in the referenced source.<Algorithm> tex and asm props point to
files that exist.Check that CLAUDE.md is current with docs/:
CLAUDE.md should still exist.Check Rust dependency freshness:
Cargo.toml where all workspace
dependency versions are declared.cargo outdated
if available, otherwise web-search crates.io).Check workspace dependency inheritance:
Cargo.toml (build/,
macros/, interface/, tests/).{ workspace = true }.Check docs site dependency freshness:
docs/package.json.npm outdated --prefix docs or
web-search npmjs.com).Check for known vulnerabilities:
cargo audit (if installed) or review
advisory databases for the Rust dependencies.npm audit --prefix docs for the docs
site.For each page in docs/src/, check whether
it needs decomposition:
Check for misplaced content:
Check sidebar and navigation coherence:
.md file in docs/src/ (excluding
index.md files used as section landing pages)
should appear in the sidebar config in
docs/.vitepress/config.js.Enter plan mode. Do NOT make any changes.
Compile all findings into .audit/findings.md
(create the directory if needed). Use a checklist
format with one item per finding. Each item
should include:
Mark every item with - [ ] (unchecked).
If nothing needed fixing, confirm the audit passed and exit plan mode.
If there are findings, present the checklist to the user and ask for approval to proceed with fixes. Do NOT exit plan mode or make any changes until the user approves.
Only proceed here after the user approves.
Exit plan mode.
Read .audit/findings.md. Identify the first
unchecked (- [ ]) item.
Fix the issue described in that item.
Mark it as checked (- [x]) in the file.
Repeat until all items are checked or the user asks to stop.
Once all items are checked, delete the
.audit/ directory and confirm the audit
is complete.