code-audit
Conducts an exhaustive, multi-pass, line-by-line technical audit and verification of local files or directories.
Skill by Yabuku-xD
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.
About
Use cases: security
Reviews
Write a reviewNo 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
- 0.529score
zig-memory-management
Yabuku-xD
Memory management in Zig including allocators, pointers, slices, alignment, and ownership patterns.
SkillBFreshness: BClaude Code +9 - 0.524score
zig-tiger-style
Yabuku-xD
TigerStyle Zig coding guidelines — distilled from TigerBeetle's production codebase.
SkillBFreshness: BClaude Code +9 - 0.524score
zig-comptime
Yabuku-xD
Zig comptime skill for compile-time evaluation and metaprogramming.
SkillBFreshness: BClaude Code +9 - 0.520score
zig-debugging
Yabuku-xD
Zig debugging skill.
SkillBFreshness: BClaude Code +9 - 0.520score
zig-code-review
Yabuku-xD
Review Zig project code for style, correctness, and logic.
SkillBFreshness: BClaude Code +9 - 0.520score
zig-testing
Yabuku-xD
Zig testing skill for writing and running tests.
SkillBFreshness: BClaude Code +9 - 0.518score
zig-testing
Yabuku-xD
Zig 测试与调试技能。涉及 std.testing 的断言、测试组织、内存泄漏检测、以及 std.debug 的日志、堆栈回溯。在需要编写测试、调试代码、诊断问题时调用。
SkillBFreshness: BClaude Code +9 - 0.518score
zig-build-system
Yabuku-xD
Zig 构建系统专项技能。涉及 build.zig 和 build.zig.zon 的编写、模块管理、依赖配置、交叉编译、C/C++ 集成、自定义构建步骤和测试配置。在需要配置或调试项目构建时调用。
SkillBFreshness: BClaude Code +9 - 0.518score
zig-concurrency
Yabuku-xD
Zig 并发编程技能。涉及 std.Thread 的线程创建、同步原语(Mutex、RwLock、Condition、Semaphore、WaitGroup)、线程池和原子操作。在需要多线程或并行计算时调用。
SkillBFreshness: BClaude Code +9 - 0.518score
zig-project-structure
Yabuku-xD
Zig 项目结构全生命周期管理。创建项目骨架(exe/lib/多模块/带依赖)或检查已有项目的目录结构、文件命名、构建配置合规性,输出结构化报告。
SkillBFreshness: BClaude Code +9 - 0.516score
zig-build-system
Yabuku-xD
Zig build system skill for multi-file Zig projects.
SkillBFreshness: BClaude Code +9 - 0.515score
hello-omfx
Yabuku-xD
Example skill.
SkillBFreshness: BClaude Code +9
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
- Repository
- github.com/Yabuku-xD/omfx
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Yabuku-xD
- 0.529score
zig-memory-management
Yabuku-xD
Memory management in Zig including allocators, pointers, slices, alignment, and ownership patterns.
SkillBFreshness: BClaude Code +9 - 0.524score
zig-comptime
Yabuku-xD
Zig comptime skill for compile-time evaluation and metaprogramming.
SkillBFreshness: BClaude Code +9 - 0.524score
zig-tiger-style
Yabuku-xD
TigerStyle Zig coding guidelines — distilled from TigerBeetle's production codebase.
SkillBFreshness: BClaude Code +9 - 0.520score
zig-debugging
Yabuku-xD
Zig debugging skill.
SkillBFreshness: BClaude Code +9 - 0.520score
zig-testing
Yabuku-xD
Zig testing skill for writing and running tests.
SkillBFreshness: BClaude Code +9 - 0.520score
zig-code-review
Yabuku-xD
Review Zig project code for style, correctness, and logic.
SkillBFreshness: BClaude Code +9
Cite this page
code-audit skill. Agent Mart. https://agentmart.dev/skills/yabuku-xd-code-audit (last updated 2026-10-24)