Creator · trailofbits
Last updated · Aug 24, 2026
audit-context-building
Understand a codebase before looking for bugs in it - what each function assumes, what it guarantees, and what it depends on elsewhere. Use when starting an audit, threat model, or architecture review on unfamiliar code, and before any vulnerability-hunting pass.
Review then install
Install targets
Codex install prompt
Install the "audit-context-building" agent skill from https://github.com/trailofbits/skills/tree/main/plugins/audit-context-building/skills/audit-context-building. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Understand a codebase before looking for bugs in it - what each function assumes, what it guarantees, and what it depends on elsewhere. Use when starting an audit, threat model, or architecture review on unfamiliar code, and before any vulnerability-hunting pass. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"trailofbits-audit-context-building","task":"Install audit-context-building","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Coding and developer agents
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add trailofbits/skills --skill audit-context-building
Maintenance
fresh
Pushed today
Risk
Safe to try
Quality score needs review
GitHub quality
6.8K
86/100 Quality · 86/100 Trust
Coverage tags
Review notes
Quality score needs review
Agent adoption scorecard
Trust, audit, and install readiness at a glance
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
ExcellentHigh-confidence pick with strong adoption and healthy maintenance signals.
Trust
Review then installGood shortlist signal, but the agent should review audit notes, install policy, and outcome evidence before running it.
Audit
Safe to tryA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Agent install candidate
Use as the primary candidate after human or sandbox review.
Stars
6.8K GitHub stars
Repo activity
6.8K stars, 585 forks
Maintenance
Pushed today
License
CC-BY-SA-4.0
Install
npx skills add trailofbits/skills --skill audit-context-building
Install safety
standard package or runtime install path
Permission surface
filesystem or document access, database access
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Low metadata risk
- Quality score needs review
Install readiness
Install path available
- Install path is available
- Repository evidence is available
- License is declared
- No Agent Proven outcome evidence yet
Agent-readable metadata
Machine-readable decision data for this skill.
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
View technical data+
Agent-readable metadata
Machine-readable decision data for this skill.
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
- Workflow automation workflows
- Claude Code teams
- teams that value GitHub adoption signals
- Move data between tools
Suited agents
Install decision
- Command
- npx skills add trailofbits/skills --skill audit-context-building
- Policy
- review
- Human review
- yes
Trust and risk
- Trust
- 83/100
- Audit
- 89/100
- Risk level
- Safe to try
Outcome loop
- Endpoint
- /api/agent/outcome
- Event ID
- resolve
- Outcomes
- 5
Install command
npx skills add trailofbits/skills --skill audit-context-buildingDo not use when
- teams that need a vendor-supported SLA
- high-compliance environments without internal security review
- No OpenAgentSkill engagement data yet
- Quality score needs review
- Production credentials, payments, or irreversible account changes without explicit human review
Agent safety v2
69/100 · Review before install
Good audit and safety signals with no high-risk permission hints in public metadata.
Review the audit page, then allow agent install in a sandboxed workflow.
medium
Network access
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Filesystem access
Skill may read or write project files, documents, generated artifacts, or local workspace state.
medium
Database access
Skill may inspect schemas, query databases, or work with persistent stores.
- Quality score needs review
Agent resolve plan
Let an agent verify fit before installing.
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20audit-context-building%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20audit-context-building%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/trailofbits-audit-context-building/install
Agent should check
- Task fit and alternatives from Resolve API.
- Audit score, trust score, and safety policy warnings.
- Install target compatibility for Codex, Claude Code, Cursor, or CLI.
Copy prompt
Task: Use audit-context-building in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20audit-context-building%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/trailofbits-audit-context-building/install
Install command: npx skills add trailofbits/skills --skill audit-context-building
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Give an agent the install path, not another directory page.
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/trailofbits-audit-context-building/install
LLM text format
/api/skills/trailofbits-audit-context-building/install?format=text
Find alternatives
/api/skills/search?q=audit-context-building&limit=3
Agent prompt
Use audit-context-building for this task. Review https://www.openagentskill.com/api/skills/trailofbits-audit-context-building/install, then install with: npx skills add trailofbits/skills --skill audit-context-buildingRegistry metadata
Agent-readable profile for automatic skill selection.
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/trailofbits-audit-context-building
LLM text
/api/registry/manifest/trailofbits-audit-context-building?format=text
Install alias
/api/registry/install/trailofbits-audit-context-building
Recommend
/api/registry/recommend?task=Use%20audit-context-building%20in%20an%20agent%20workflow&limit=3
Agent fit
Workflow automation
Platforms
Claude Code
Audit report
Safe to try · 89/100
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Primary pick for Workflow automation
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Workflow automation
Trust label
Production-ready
Install path
Command ready
Use when
- Workflow automation workflows
- Claude Code teams
- teams that value GitHub adoption signals
Evidence
- 6,823 GitHub stars
- recent repository activity
- install command or GitHub repo available
- 86/100 quality profile
review first
- No OpenAgentSkill engagement data yet
Implementation path
- 1Install it in a sandbox agent and run one Workflow automation task end to end.
- 2Compare output quality, latency, and failure behavior against at least one alternative.
- 3Promote it into production only after reviewing repository permissions, license, and maintenance signals.
Trust profile
Review then install
Good shortlist signal, but the agent should review audit notes, install policy, and outcome evidence before running it.
GitHub adoption
PASS6.8K GitHub stars
Stars/forks activity
PASS6.8K stars, 585 forks; issue activity unavailable in current metadata
Recent maintenance
PASSPushed today
License clarity
PASSCC-BY-SA-4.0
Good signals
- AI review approved
- Install path is available
- Repository evidence is available
- Recently maintained repository
- Large GitHub adoption signal
- Install command has no obvious high-risk pattern
- Outcome loop is ready but needs first real agent run
Review before install
- Quality score needs review
- No real agent outcome reports yet
- Human review required before unattended installation
Recommended action
Use as the primary candidate after human or sandbox review.
Quality profile
Excellent candidate for agent workflows
High-confidence pick with strong adoption and healthy maintenance signals.
Workflow fit
Use this skill in these scenarios
Automate repeated work
Workflow automation
I need my agent to automate a repeated workflow across tools and files.
Reduce risk
Security and compliance
I need my agent to scan a project for security risks and summarize what needs attention.
Build and ship code
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
Workflow fit
Add it to a complete workflow
Turn skills into distribution
Content growth agent
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Inspect, patch, and verify code
Coding review agent
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Operate and verify web apps
Browser QA agent
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Alternative shortlist
Compare before you install
Similar skills that may fit this task.
Wazuh
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
Maigret
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
Nuclei
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
Infisical
Infisical is the open-source platform for secrets, certificates, and privileged access management.
Overview
--- name: audit-context-building description: Understand a codebase before looking for bugs in it - what each function assumes, what it guarantees, and what it depends on elsewhere. Use when starting an audit, threat model, or architecture review on unfamiliar code, and before any vulnerability-hunting pass. allowed-tools: Task Read Grep Glob ---
# Audit Context Building
Build understanding, not verdicts. This runs before anyone hunts for bugs, and feeds that work.
## When to Use
At the start of an audit, a threat model, or an architecture review, when the code is unfamiliar. Also when an earlier pass produced findings nobody could judge, because no one had mapped out how the system fits together.
## When NOT to Use
Do not name vulnerabilities, suggest fixes, write proofs-of-concept, or rate severity. Those belong to the hunting phase, which runs next and with the whole picture in hand. When the code counts on something and nothing checks it, record that plainly and move on — whether it matters is decided later.
Not worth the tokens on code you already understand.
## Do not analyze in this context
The analysis is long, and this context needs to survive to use it. Dispatch it:
- **A codebase, or more than one function** — run `/audit-context-building:audit-context <path>`. It orients, analyzes each function in its own subagent, and writes `audit-context/DOSSIER.md` plus one file per function under `audit-context/functions/`. Only compact records return here. - **A single function** — dispatch the `audit-context-building:function-analyzer` agent at it. It writes its prose to disk and returns a record.
Then work from what comes back: the index, the unenforced assumptions, the open questions. Read a function's file when you need its detail.
The workflow is what enforces this, not this text: a subagent bound to a return schema cannot return prose. Treat this section as routing, and route.
## What comes back, and how to read it
Each record lists what must always be true (with the line that shows it), what the function takes on faith (with whatever establishes it), which functions it calls and what it needs from each, and anything still unclear. The dossier adds the rules that span several functions, who can reach what, and where the complicated parts cluster.
Two things matter more than the rest:
- **Assumptions marked `nothing found`.** The code counts on something being true and nothing anywhere makes it true. This is the most useful thing to hand the hunting phase. - **The open questions.** An honest list of what is still unclear beats a confident answer that turns out to be wrong. Carry them forward instead of closing them out.
Where two records disagree, both are quoted rather than quietly reconciled. That is a fact about the code, not a flaw in the analysis.
## The format
[ANALYSIS_FORMAT.md](resources/ANALYSIS_FORMAT.md) defines it, and [FUNCTION_MICRO_ANALYSIS_EXAMPLE.md](resources/FUNCTION_MICRO_ANALYSIS_EXAMPLE.md) works through examples in C and Solidity. Read them when extending this plugin or deciding whether a record can be trusted.
The format is the same whatever the target. What changes is what fills each slot, and what counts as a call you cannot see inside. [DOMAIN_NOTES.md](resources/DOMAIN_NOTES.md) maps that across smart contracts, C and C++, decompiled firmware, and web services — read it when the target is not plain source code.
**The rule that matters most: follow the calls.** Whether a function is correct usually depends on something another function does, and you cannot see that from the caller alone. A limit looks enforced because the value came back from a function whose name suggests it was checked. So read the function being called, follow every path through it rather than only the one that succeeds, and say what makes each assumption true. When nothing does, use those words: `nothing found`. Every claim cites a line, or becomes an open question.
Technical details
- Version
- 1.0.0
- License
- CC-BY-SA-4.0
- Last updated
- Aug 24, 2026
- Published
- Aug 24, 2026
Decision snapshot
Primary pick
6,823 GitHub stars
Audit
Install review
Install and adoption review
- Security
- 87/100
- Maintenance
- 100/100
- Install
- 92/100
Agent-proven evidence
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
- Success rate
- —
- Recent failure
- —
- Outcomes
- 0
- Output quality
- —
- Failed
- 0
- Not relevant
- 0
- Installs
- 0
- Risk blocked
- 0
- Setup needed
- 0
- Production
- 0
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Add to agent workflow
Free and open source. Review the report before installing into production agents.
Growth loop
Share kit
Scenario-led draft for audit-context-building, ready for a manual X post.
audit-context-building: Understand a codebase before looking for bugs in it - what each function assumes, what it gua... 6.8K stars https://www.openagentskill.com/skills/trailofbits-audit-context-building?ref=x
Optional reply with install command
Listing + install path for audit-context-building: https://www.openagentskill.com/skills/trailofbits-audit-context-building?ref=x Install: npx skills add trailofbits/skills --skill audit-context-building
Listing source
Registry indexed
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
- Creator
- trailofbits
- Source
- trailofbits/skills
- Indexed by
- OpenAgentSkill community index
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
Claim this skill listing
This Registry indexed listing is attributed to trailofbits but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Add the evidence badges to your README
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/trailofbits-audit-context-building)
[](https://www.openagentskill.com/skills/trailofbits-audit-context-building)
[](https://www.openagentskill.com/skills/trailofbits-audit-context-building/audit)
[](https://www.openagentskill.com/skills/trailofbits-audit-context-building)Author
trailofbits
@trailofbits
Tags
Platform fit
Health signals
- GitHub stars
- 6.8K
- Quality score
- 50/100
- Last GitHub push
- Aug 24, 2026
- Framework hints
- Unknown
- OpenAgentSkill views
- 0
- Install copies
- 0
- Outbound clicks
- 0
Community signal
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Trust & safety
Review then install
- GitHub adoption6.8K GitHub starsPASS
- Stars/forks activity6.8K stars, 585 forks; issue activity unavailable in current metadataPASS
- Recent maintenancePushed todayPASS
- License clarityCC-BY-SA-4.0PASS
- README/SKILL.md completenessMetadata includes enough usage and workflow contextPASS
- Dependency/runtime riskno major dependency risk hints in public metadataPASS
Related skills
Wazuh
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
16.3K StarsMaigret
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
32.9K StarsNuclei
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
29.2K StarsInfisical
Infisical is the open-source platform for secrets, certificates, and privileged access management.
27.4K Stars