Best for
- Use when you need whole-project analysis before releases or security reviews.
yonatangross/orchestkit/src/skills/audit-full/SKILL.md
Single-pass codebase analysis leveraging a 1M-token context window for comprehensive security scanning, architecture review, and dependency auditing. Loads entire codebases for cross-file pattern detection and generates structured audit reports with severity-ranked findings. Use when you need whole-project analysis before releases or security reviews.
Decision brief
Single-pass whole-project analysis leveraging Opus 5's extended context window. Loads entire codebases (50K LOC) into context for cross-file vulnerability detection, architecture review, and dependency analysis.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Declared | Source record | Install path and trigger |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/yonatangross/orchestkit --skill "src/skills/audit-full"Inspect the Agent Skill "audit-full" from https://github.com/yonatangross/orchestkit/blob/4e5c1327b7d7902022ee69328e12db1f6a88f390/src/skills/audit-full/SKILL.md at commit 4e5c1327b7d7902022ee69328e12db1f6a88f390. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Opus 5: Uses complexity: max for extended thinking across entire codebases. 1M context (default and maximum on Opus 5) enables cross-file reasoning that chunked approaches miss. Effort defaults to high; bump to xhigh for one additional cross-file pattern sweep on the hardest cod…
BEFORE creating tasks, clarify audit scope using the interactive dialog.
TaskCreate(subject="Estimate token budget and plan loading", activeForm="Estimating token budget") id=2 TaskCreate(subject="Load codebase into context", activeForm="Loading codebase") id=3 TaskCreate(subject="Run audit analysis", activeForm="Analyzing codebase") id=4 TaskCreate(…
Before loading files, estimate whether the codebase fits in context.
Workflow({ "scriptPath": "${CLAUDEPLUGINROOT}/skills/audit-full/workflows/audit-full-mapreduce.js", "args": { "shards": [""], "mode": "", "effort": "" } }) python PushNotification( message=f"ork:audit-full complete — {SCOPE}: {critical}C/{high}H/{medium}M/{low}L · {reportpath}",…
Permission review
The documentation asks the agent to read local files, directories, or repositories.
TaskCreate(subject="Load codebase into context", activeForm="Loading codebase") # id=3The documentation asks the agent to read local files, directories, or repositories.
## STEP 2: Load Codebase into ContextEvidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 92/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 223 | Source | Repository attention, not individual Skill quality |
| Compatibility | 1 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Single-pass whole-project analysis leveraging Opus 5's extended context window. Loads entire codebases (~50K LOC) into context for cross-file vulnerability detection, architecture review, and dependency analysis.
/ork:audit-full # Full audit (all modes)
/ork:audit-full security # Security-focused audit
/ork:audit-full architecture # Architecture review
/ork:audit-full dependencies # Dependency audit
Opus 5: Uses
complexity: maxfor extended thinking across entire codebases. 1M context (default and maximum on Opus 5) enables cross-file reasoning that chunked approaches miss. Effort defaults tohigh; bump toxhighfor one additional cross-file pattern sweep on the hardest codebases.
1M Context Required: If
CLAUDE_CODE_DISABLE_1M_CONTEXTis set, audit-full cannot perform full-codebase analysis. Check:echo $CLAUDE_CODE_DISABLE_1M_CONTEXT— if non-empty, either unset it (unset CLAUDE_CODE_DISABLE_1M_CONTEXT) or use/ork:verifyfor chunked analysis instead.
Effort (CC 2.1.111+):
xhighadds a second pass that re-reads cross-module boundaries specifically looking for patterns the first pass normalized over. The Opus tier has defaulted tohighsince CC 2.1.154 and reservesxhighfor the hardest codebases. Silently falls back tohighon other models;/ork:doctorwarns on mismatch.
Switching to Opus (CC 2.1.144+):
/modelnow affects the current session only — pick Opus for this audit without it persisting. Pressdin the picker only if you want it as the default for new sessions too.
BEFORE creating tasks, clarify audit scope using the interactive dialog.
Load: Read("${CLAUDE_PLUGIN_ROOT}/skills/audit-full/references/audit-scope-dialog.md") for the full AskUserQuestion dialog with mode options (Full/Security/Architecture/Dependencies) and scope options (Entire codebase/Specific directory/Changed files).
# 1. Create main task IMMEDIATELY
TaskCreate(
subject="Full-codebase audit",
description="Single-pass audit using extended context",
activeForm="Running full-codebase audit"
)
# 2. Create subtasks for each phase
TaskCreate(subject="Estimate token budget and plan loading", activeForm="Estimating token budget") # id=2
TaskCreate(subject="Load codebase into context", activeForm="Loading codebase") # id=3
TaskCreate(subject="Run audit analysis", activeForm="Analyzing codebase") # id=4
TaskCreate(subject="Generate audit report", activeForm="Generating report") # id=5
# 3. Set dependencies for sequential phases
TaskUpdate(taskId="3", addBlockedBy=["2"]) # Loading needs budget estimate
TaskUpdate(taskId="4", addBlockedBy=["3"]) # Analysis needs codebase loaded
TaskUpdate(taskId="5", addBlockedBy=["4"]) # Report needs analysis done
# 4. Update status as you progress
TaskUpdate(taskId="2", status="in_progress") # When starting
TaskUpdate(taskId="2", status="completed") # When done — repeat for each subtask
Before loading files, estimate whether the codebase fits in context.
Load: Read("${CLAUDE_PLUGIN_ROOT}/skills/audit-full/references/token-budget-planning.md") for estimation rules (tokens/line by file type), budget allocation tables, auto-exclusion list, and fallback dialog when codebase exceeds budget.
Run estimation: bash ${CLAUDE_PLUGIN_ROOT}/skills/audit-full/scripts/estimate-tokens.sh /path/to/project
audit-full has two execution tiers. The estimate decides which:
| Estimate vs budget | Tier | Path |
|---|---|---|
| Fits (~≤125K LOC / ≤1M tokens) | Single-context (default — the skill's edge: whole-codebase cross-file reasoning in one window) | continue to STEP 2 |
| Exceeds budget | Map-reduce (scale tier — shard → per-shard audit → cross-shard boundary synthesis → refute) | invoke the workflow below; STEP 2–3.5 run inside it |
Over-budget → run the map-reduce workflow (don't punt, don't silently truncate the load):
# Derive shards from STEP 1 (top-level modules/dirs by size: src, apps/api, apps/web, packages/*).
Workflow({
"scriptPath": "${CLAUDE_PLUGIN_ROOT}/skills/audit-full/workflows/audit-full-mapreduce.js",
"args": { "shards": ["<repo-relative dirs>"], "mode": "<full|security|architecture|dependencies>", "effort": "<high|xhigh>" }
})
It preserves cross-file reasoning within each shard and recovers cross-shard edges (taint/auth/dep-direction that span modules) in a dedicated synthesis pass, then runs the same STEP 3.5 adversarial refutation. Its return (merged findings + refutation ledger) feeds STEP 4. The single-context tier remains the default because it's cheaper and loses no boundaries when the repo fits — only reach for map-reduce when it genuinely doesn't.
Load: Read("${CLAUDE_PLUGIN_ROOT}/skills/audit-full/references/report-structure.md") for loading strategy, inclusion patterns by language (TS/JS, Python, Config), and batch reading patterns.
With codebase loaded, perform the selected audit mode(s).
Load: Read("${CLAUDE_PLUGIN_ROOT}/skills/audit-full/references/security-audit-guide.md") for the full checklist.
Key cross-file analysis patterns:
Load: Read("${CLAUDE_PLUGIN_ROOT}/skills/audit-full/references/architecture-review-guide.md") for the full guide.
Key analysis patterns:
Load: Read("${CLAUDE_PLUGIN_ROOT}/skills/audit-full/references/dependency-audit-guide.md") for the full guide.
Key analysis patterns:
Output findings incrementally as each audit mode completes — don't batch until the report:
For multi-mode audits (Full), each mode's findings appear as they complete. This lets users act on critical security findings while architecture analysis is still running.
Before the report, a separate blind refuter verifies CRITICAL/HIGH findings — the
structural fix for self-preferential bias (a single-context pass grading its own findings
anchors on its own reasoning). low/medium skip this step; high runs single advisory
refuters; xhigh runs the engine's quorum (3 for CRITICAL, 2 for HIGH).
Load the protocol + audit-full bindings: Read("${CLAUDE_PLUGIN_ROOT}/skills/audit-full/references/adversarial-refutation.md")
(which loads the shared engine ${CLAUDE_PLUGIN_ROOT}/shared/rules/adversarial-refutation.md).
These refuters are audit-full's only sub-agent spawns (the producer is single-context),
always isolated Agent(...) with no team_name, fed only a neutral claim (category +
file:line). Deterministic ground truth is exempt — CVE/CVSS matches, failing build/test,
type errors are never refuted; only a reachability claim on top of a CVE is. Cross-file
findings the refuter can't reproduce from its narrow slice stay UPHELD (engine §5).
Refutation never silently drops a CRITICAL — the ledger (refutation-ledger.json) records
survived/killed/downgraded, and removing a CRITICAL/HIGH from the report needs user confirmation.
Load the report template: Read("${CLAUDE_PLUGIN_ROOT}/skills/audit-full/assets/audit-report-template.md").
Report structure and severity classification: Read("${CLAUDE_PLUGIN_ROOT}/skills/audit-full/references/report-structure.md") for finding table format, severity breakdown (CRITICAL/HIGH/MEDIUM/LOW with timelines), and architecture diagram conventions.
Severity matrix: Read("${CLAUDE_PLUGIN_ROOT}/skills/audit-full/assets/severity-matrix.md") for classification criteria.
Before finalizing the report, verify with Read("${CLAUDE_PLUGIN_ROOT}/skills/audit-full/checklists/audit-completion.md").
A full-codebase 1M-context audit typically runs 15–60 minutes on medium projects and can exceed that on large ones. After the report file is written and the completion checklist passes, call PushNotification so the finding counts are visible even if the user walked away.
PushNotification(
message=f"ork:audit-full complete — {SCOPE}: {critical}C/{high}H/{medium}M/{low}L · {report_path}",
status="proactive"
)
Full rule: Read("${CLAUDE_PLUGIN_ROOT}/skills/chain-patterns/rules/push-notification-on-completion.md").
| Situation | Use Instead |
|---|---|
| Small targeted check (1-5 files) | Direct Read + analysis |
| CI/CD automated scanning | security-scanning skill |
| Multi-agent graded verification | /ork:verify |
| Exploring unfamiliar codebase | /ork:explore |
| Codebase > 125K LOC (exceeds 1M) | stay here — STEP 1 routes to the map-reduce tier (workflows/audit-full-mapreduce.js); /ork:verify only if you want multi-agent graded verification instead of an audit |
Oversized reads (CC 2.1.144+): When loading large files, Read returns a
[PARTIAL view]truncated first page instead of a hard error if the whole-file read exceeds the token limit. Detect that notice and re-read with explicitoffset/limitto page through the rest — a partial read silently omits code an audit must not miss.
When context fills (CC 2.1.141+): Use the rewind menu's "Summarize up to here" to compress earlier turns while keeping recent findings, instead of restarting the audit. Reactive compaction (CC 2.1.142+) sizes the first summarize to the actual overflow, so a wasted second pass mid-turn is now rare.
Set a completion condition with /goal (CC 2.1.139+) and this skill will keep working across turns until the condition is met. Works in interactive, -p, and Remote Control. The overlay panel shows live elapsed / turns / tokens.
Example completion condition for this skill:
/goal until findings.critical == 0 OR no_new_critical_for_3_turns, or stop after 30 turns
Stops when: zero critical issues remain across 3 consecutive passes, or a structural anti-pattern budget is reached. Compatible with claude.ai Remote Control runs.
security-scanning — Automated scanner integration (npm audit, Semgrep, etc.)ork:security-patterns — Security architecture patterns and OWASP vulnerability classificationork:architecture-patterns — Architectural pattern referenceork:quality-gates — Quality assessment criteriaork:verify — Multi-agent verification (fallback for codebases exceeding 1M context)Load on demand with Read("${CLAUDE_PLUGIN_ROOT}/skills/audit-full/references/<file>"):
| File | Content |
|---|---|
references/security-audit-guide.md | Cross-file vulnerability patterns |
references/architecture-review-guide.md | Pattern and coupling analysis |
references/dependency-audit-guide.md | CVE, license, currency checks |
references/adversarial-refutation.md | Blind-refuter bindings (STEP 3.5) — loads the shared engine |
references/token-estimation.md | File type ratios and budget planning |
assets/audit-report-template.md | Structured output format |
assets/severity-matrix.md | Finding classification criteria |
checklists/audit-completion.md | Pre-report verification |
scripts/estimate-tokens.sh | Automated LOC to token estimation |
workflows/audit-full-mapreduce.js | Scale tier — shard→audit→synthesize→refute for repos that exceed 1M context (run via the Workflow tool) |
Frequently asked questions
Single-pass whole-project analysis leveraging Opus 5's extended context window. Loads entire codebases (50K LOC) into context for cross-file vulnerability detection, architecture review, and dependency analysis.
The source record exposes this install command: npx skills add https://github.com/yonatangross/orchestkit --skill "src/skills/audit-full". Inspect the command and pinned source before running it.
The pinned source record declares support for: claude code.
Static rules flagged read-files in the source; the page lists the matching lines and excerpts.
Alternatives
narrative-io/narrative-skills-marketplace
Translate a fuzzy analytical question into a rigorous investigation plan. Interrogates the ask, grounds the plan in the available data dictionary, applies analytical best practices, and produces a structured brief of query specifications for a downstream query-writing skill. Plans, does not write SQL. Use when: "why did X drop", "is there a relationship between A and B", "who are our highest-value customers", "what's driving the change in Y", "investigate this trend", "design an analysis for", "
brucesongs/kali-claw
Insecure Design (OWASP A06:2025) focuses on security flaws in system architecture and design phases, rather than code implementation-level bugs.
vasilyu1983/AI-Agents-public
Scans public GitHub repos for agent skills, dev practices, and code patterns. Use when enriching skills, setting team policy, or researching a build domain.
brucesongs/kali-claw
Binary reverse engineering covers the complete chain from static analysis, dynamic debugging, to vulnerability discovery, exploit development, and malware analysis.