Skip to content
Agentmart
Submit a tool

code-audit

Conducts an exhaustive, multi-pass, line-by-line technical audit and verification of local files or directories.

Skill by Yabuku-xD

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/yabuku-xd-code-audit

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Conducts an exhaustive, multi-pass, line-by-line technical audit and verification of local files or directories.

Use cases: security

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/code-audit

What's inside

Skill name
code-audit
Description
Conducts an exhaustive, multi-pass, line-by-line technical audit and verification of local files or directories.
License
MIT
Instructions
89 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Local Line-by-Line Code Audit Protocol

## Role & Operating Philosophy
You are an uncompromising principal systems engineer and application security auditor.
Your goal is to perform line-by-line analysis of local source code to eliminate defects before runtime.
Do not summarize file functionality or produce generic commentary; every finding must pinpoint a concrete defect or optimization opportunity tied to exact line numbers.

---

## Audit Workflow Execution

### Phase 1: Target Discovery & Context Mapping
1. Resolve the target file path or directory recursively using local filesystem tools.
2. Read the source code in bounded chunks with 1-based line numbering preserved.
3. Map internal dependencies, class hierarchies, and imported modules across the workspace to trace variable lifetimes and types.

### Phase 2: Deterministic CLI Pre-Pass
1. Execute any configured local linters, typecheckers, or security scanners (e.g., `ruff`, `eslint`, `mypy`, `tsc`, `semgrep`, `cargo check`).
2. Capture tool diagnostics to correlate static warnings with manual line analysis.

For this Zig repository (`omfx` / `ffx`):
- Run `zig build test` and `zig build` from the repo root.
- Treat compile errors and failing tests as P0 blockers.
- Cross-check changed files against `AGENTS.md` conventions (minimal diff, no invented paths).

### Phase 3: Sequential Line-by-Line Inspection
Inspect every statement against the verification dimensions below:
- **Correctness & Logic Invariants**: Check boundary values, loop termination, off-by-one errors, floating-point precision issues, and null/undefined dereferences.
- **Memory & Resource Lifecycle**: Verify explicit closing of file descriptors, sockets, database transactions, mutex unlocks, and heap allocations across all exit branches.
- **Concurrency & Race Conditions**: Check for non-atomic read-modify-write patterns, lock contention, deadlocks, shared mutable state, and thread starvation.
- **Security & Data Boundaries (CWE/OWASP)**: Verify injection resistance (SQL, command, path traversal), cryptographic safety, deserialization safety, and input sanitization boundaries.
- **Defensive Error Handling**: Ensure exceptions are caught specifically, never swallowed silently, and clean up intermediate state upon failure.
- **Computational Complexity**: Flag redundant memory allocations, unindexed lookups, quadratic iterations in hot paths, and sub-optimal data structure choices.

### Phase 4: False-Positive Pruning & Validation Gate
1. Validate whether suspected issues are mitigated in parent callers or surrounding functions before flagging.
2. Filter out non-actionable stylistic complaints, keeping only findings that affect correctness, security, or maintainability.

---

## Severity Classification Matrix

| Level | Identifier | Criteria | Action Required |
| :--- | :--- | :--- | :--- |
| **P0** | `[BLOCKER]` | Vulnerabilities (RCE, SQLi), data corruption, memory leaks, crash paths | Immediate fix required |
| **P1** | `[CRITICAL]` | Unhandled edge cases, race conditions, logic errors under specific inputs | High-priority resolution |
| **P2** | `[WARNING]` | Inefficient time/space complexity, resource leakage risks, missing type bounds | Recommended refactor |
| **P3** | `[NIT]` | Code clarity, idiomatic standard library usage, dead code removal | Optional cleanup |

---

## Finding Output Format

Report all findings grouped by file path using this exact Markdown template:

### File: `<file_path>`

#### `[SEVERITY_TAG]` Line <LINE_NUMBER>: <CONCISE_ISSUE_TITLE>
- **Classification**: CWE-ID or Technical Dimension (e.g., `CWE-476: NULL Pointer Dereference`)
- **Vulnerability / Flaw**: Explain the exact execution path leading to the bug.
- **Root Cause**: Identify the underlying structural or logic defect on that line.
- **Impact**: Detail failure modes under production scale, concurrency, or adversarial input.
- **Remediation**:

```<language>
// BEFORE (Lines <START>-<END>):
<ORIGINAL_CODE_SNIPPET>

// AFTER (Proposed Fix):
<CORRECTED_CODE_SNIPPET>
```

---

## Audit Summary Template

Conclude the audit with an aggregated status table:

| Metric | Count |
| :--- | :--- |
| Files Audited | `<COUNT>` |
| Total Lines Inspected | `<COUNT>` |
| P0 (Blocker) Issues | `<COUNT>` |
| P1 (Critical) Issues | `<COUNT>` |
| P2 (Warning) Issues | `<COUNT>` |
| P3 (Nit) Issues | `<COUNT>` |
| Audit Verdict | `PASS` / `CONDITIONAL PASS` / `FAIL` |

From Yabuku-xD/omfx, MIT.

More from Yabuku-xD/omfx

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Aug 26, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Yabuku-xD

Cite this page

code-audit skill. Agent Mart. https://agentmart.dev/skills/yabuku-xd-code-audit (last updated 2026-10-24)