audit-context-building

Analyze code line-by-line to build architectural context before auditing.

Updated Feb 13, 2026
One-click install
npx skills add https://github.com/fjor1025/InfoSec-Framework --skill audit-context-building-fjor1025
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: audit-context-building
Source: https://github.com/fjor1025/InfoSec-Framework/tree/main/ClaudeSkills/plugins/audit-context-building/skills/audit-context-building
Command: npx skills add https://github.com/fjor1025/InfoSec-Framework --skill audit-context-building-fjor1025

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenge of achieving deep, accurate understanding of complex codebases before diving into vulnerability hunting, reducing hallucinations and context loss.

Core Features & Use Cases

  • Ultra-Granular Analysis: Performs line-by-line code analysis to build a robust mental model.
  • First Principles & 5 Whys/Hows: Applies rigorous analytical techniques at a micro-level.
  • Use Case: Before auditing a DeFi smart contract, use this Skill to meticulously analyze each function, its inputs, outputs, and internal logic, ensuring no critical assumptions or invariants are missed.

Quick Start

Use the audit-context-building skill to perform an ultra-granular analysis of the swap function in the provided Router.sol file.

Frequently Asked Questions about audit-context-building

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build deep context for smart contract audit before vulnerability research?

To build deep context for a smart contract audit, perform ultra-granular line-by-line code analysis using First Principles and 5 Whys. This constructs a stable mental model linking micro-level insights to functions and modules, identifying invariants and assumptions before bug hunting.

What is the best way to analyze DeFi code for invariants and assumptions?

The best way to analyze DeFi code for invariants is applying First Principles and 5 Hows at micro scale. This method meticulously evaluates each function's inputs, outputs, and internal logic to ensure no critical assumptions are missed during architectural context building.

How to prevent context loss and hallucinations during complex codebase analysis?

Prevent context loss and hallucinations during codebase analysis by maintaining an explicit mental model that evolves with new evidence. Ultra-granular line-by-line comprehension tracks reasoning hazards and links insights to the entire system, ensuring accurate deep comprehension.

Can I use first principles analysis at micro scale for smart contract functions?

Yes, you can use first principles analysis at micro scale for smart contract functions. This approach enables ultra-granular analysis of individual functions like a swap mechanism, meticulously evaluating internal logic to build a robust architectural context before finding bugs.

Does ultra-granular code analysis work for identifying reasoning hazards in Solidity?

Ultra-granular code analysis works for identifying reasoning hazards in Solidity by maintaining a stable, explicit mental model. It applies rigorous analytical techniques at micro scale to track invariants and assumptions across functions and the entire system architecture.