Tai Audit Skill is a business-flow-first smart contract audit skill for Claude Code, with Codex-compatible installation support.
The repository maintains one skill:
skills/tai-audit/ Claude Code / Codex skill bundle
x-ray is an external companion skill from pashov/skills. Tai consumes x-ray/ outputs in the audited project, but this repository does not vendor or maintain the x-ray source.
- Builds audit scope from business flows and entry points, not repo-wide grep alone.
- Runs a multi-agent loop over 7 root-cause families.
- Separates
Confirmed Vulnerability,Security Risk,Hardening / QA,Research Lead, andFalse Positive. - Persists reusable artifacts in the audited repo under
tai/artifacts/. - Writes final reports under
tai/business/.
Supported triggers are unchanged:
tai audit
deep audit
security review
Install Tai for Claude Code:
./scripts/install.shThis installs or updates only Tai:
~/.claude/skills/tai-audit
It does not install, update, or overwrite an existing x-ray skill.
If you already have x-ray installed, this is the recommended command:
./scripts/check.sh
./scripts/install.shInstall or update Tai plus upstream x-ray for Claude Code:
./scripts/install.sh --with-xrayUse --with-xray only when x-ray is missing or when you intentionally want to refresh the upstream x-ray skill from pashov/skills.
Install for Codex:
./scripts/install.sh --target codex --with-xrayInstall for both Claude Code and Codex:
./scripts/install.sh --target all --with-xrayDefault destinations:
Claude Code: ~/.claude/skills/tai-audit
Codex: ~/.codex/skills/tai-audit
Override destinations with CLAUDE_SKILLS_DIR and CODEX_SKILLS_DIR.
For an existing x-ray install, omit --with-xray for Codex too:
./scripts/install.sh --target codexPin the upstream x-ray dependency with X_RAY_REF:
X_RAY_REF=v22042026 ./scripts/install.sh --with-xrayRun the repository checks:
./scripts/check.shThis verifies the skill bundle shape, required references, scripts, license files, and that no local vendored x-ray source references remain.
Tai expects one of these x-ray artifact sources, in order:
- Existing audited-project output at
x-ray/x-ray.mdandx-ray/entry-points.md. - An installed external
x-rayskill from pashov/skills. - A low-confidence fallback entry point map generated from Solidity
public/externalfunctions.
The fallback is only for degraded operation. For serious audits, install and run upstream x-ray first or install it with ./scripts/install.sh --with-xray.
./scripts/install.sh deliberately does not manage x-ray unless --with-xray is provided. This keeps a working x-ray installation stable while you iterate on Tai.
skills/tai-audit/
SKILL.md
VERSION
agents/openai.yaml
references/
docs/
scripts/
docs/ contains design notes for maintainers. Runtime skill behavior lives under skills/tai-audit/.
MIT.