skills/audit-context-building/SKILL.md
Enables ultra-granular, line-by-line code analysis to build deep architectural context before vulnerability or bug finding.
npx skillsauth add Regtransfers/agency-agents-mcp audit-context-buildingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
@ Deep Context Builder Skill (Ultra-Granular Pure Context Mode)
@ 1. Purpose
This skill governs how Claude thinks during the context-building phase of an audit.
When active, Claude will:
This skill defines a structured analysis format (see Example: Function Micro-Analysis below) and runs before the vulnerability-hunting phase.
@ When to Use Use when:
never use for:
@ 3. How This Skill Behaves
When active, Claude will:
Goal: deep, accurate understanding, not conclusions.
@ Rationalizations (never Skip)
Rationalization; Why It's Wrong; Required Action
"I get the gist"; Gist-level understanding misses edge cases; Line-by-line analysis required "This function is simple"; Simple functions compose into complex bugs; Apply 5 Whys anyway "I'll remember this invariant"; You won't. Context degrades.; Write it down explicitly "External call is probably fine"; External = adversarial until proven otherwise; Jump into code or model as hostile "I can skip this helper"; Helpers contain assumptions that propagate; Trace the full call chain "This is taking too long"; Rushed context = hallucinated vulnerabilities later; Slow is fast
@ 4. Phase 1 — Initial Orientation (Bottom-Up Scan)
Before deep analysis, Claude performs a minimal mapping:
This establishes anchors for detailed analysis.
@ 5. Phase 2 — Ultra-Granular Function Analysis (Default Mode)
Every non-trivial function receives full micro analysis.
@ 5.1 Per-Function Microstructure Checklist
For each function:
Apply per-block:
@ 5.2 Cross-Function & External Flow Analysis (Full Integration of Jump-Into-External-Code Rule)
When encountering calls, continue the same micro-first analysis across boundaries.
@ Internal Calls
@ External Calls — Two Cases
Case A — External Call to a Contract Whose Code Exists in the Codebase Treat as an internal call:
Case B — External Call Without Available Code (True External / Black Box) Analyze as adversarial:
@ Continuity Rule Treat the entire call chain as one continuous execution flow. Never reset context. All invariants, assumptions, and data dependencies must propagate across calls.
@ 5.3 Complete Analysis Example
See FUNCTIONMICROANALYSIS_EXAMPLE.md for a complete walkthrough demonstrating:
This example demonstrates the level of depth and structure required for all analyzed functions.
@ 5.4 Output Requirements
When performing ultra-granular analysis, Claude MUST structure output following the format defined in OUTPUT_REQUIREMENTS.md.
Key requirements:
Quality thresholds:
@ 5.5 Completeness Checklist
Before concluding micro-analysis of a function, verify against the COMPLETENESS_CHECKLIST.md:
Analysis is complete when all checklist items are satisfied and no unresolved "unclear" items remain.
@ 6. Phase 3 — Global System Understanding
After sufficient micro-analysis:
These clusters help guide the vulnerability-hunting phase.
@ 7. Stability & Consistency Rules (Anti-Hallucination, Anti-Contradiction)
Claude must:
Never reshape evidence to fit earlier assumptions. When contradicted:
Update the model.
State the correction explicitly.
Periodically anchor key facts Summarize core:
invariants
state relationships
actor roles
workflows
Avoid vague guesses Use:
"Unclear; need to inspect X." instead of:
"It probably…"
Cross-reference constantly Connect new insights to previous state, flows, and invariants to maintain global coherence.
@ 8. Subagent Usage
Claude may spawn subagents for:
Use the function-analyzer agent for per-function deep analysis. It follows the full microstructure checklist, cross-function flow rules, and quality thresholds defined in this skill, and enforces the pure-context-building constraint.
Subagents must:
@ 9. Relationship to Other Phases
This skill runs before:
It exists solely to build:
@ 10. Non-Goals
While active, Claude should NOT:
This is pure context building only.
@ Limitations
tools
Build AI agents that interact with computers like humans do - viewing screens, moving cursors, clicking buttons, and typing text. Covers Anthropic's Computer Use, OpenAI's Operator/CUA, and open-source alternatives.
testing
Generate structured PR descriptions from diffs, add review checklists, risk assessments, and test coverage summaries. Use when the user says "write a PR description", "improve this PR", "summarize my changes", "PR review", "pull request", or asks to document a diff for reviewers.
tools
Use when working with comprehensive review full review
development
You are an expert in creating competitor comparison and alternative pages. Your goal is to build pages that rank for competitive search terms, provide genuine value to evaluators, and position your product effectively.