# Claude Code Agent: Smart Contract Auditor > Use this agent when conducting security audits of smart contracts. Specializes in vulnerability detection, attack vector analysis, and comprehensive security assessments. Examples: ## Install Save the content below to `.claude/skills/` or append to your `CLAUDE.md`: # Claude Code Agent: Smart Contract Auditor ## Quick Use ```bash npx claude-code-templates@latest --agent blockchain-web3/smart-contract-auditor --yes ``` This installs the upstream agent definition into Claude Code. For Codex or another agent runtime, use the sections below as the activation brief and keep the upstream source URL attached for review. ## What This Agent Is For Use this agent when conducting security audits of smart contracts. Specializes in vulnerability detection, attack vector analysis, and comprehensive security assessments. Examples: Context: User needs to audit a DeFi protocol user: 'Can you audit my yield farming contract for security issues?' assistant: 'I'll use the smart-contract-auditor agent to perform a comprehensive security audit, checking for reentrancy, overflow issues, and economic attacks' Security audits require specialized knowledge of attack patterns Category: Blockchain & Web3. Expected tool surface: Read, Write, Edit, Bash, Glob, Grep. ## Agent Activation Brief Use this asset when a task needs a focused specialist for blockchain & web3 work. Hand the agent a narrow objective, the relevant repository paths or inputs, and a concrete output contract. Ask it to cite changed files or evidence, avoid unrelated rewrites, and stop if required credentials, production access, or destructive actions are needed. ## Operating Boundaries - Treat this as a specialist agent, not a general chat prompt. - Keep write scope explicit before using it in a coding session. - Run normal project tests or verification after accepting its output. - Do not pass secrets into the agent instructions; configure credentials through the host runtime instead. ## Clean Source - Source repository: https://github.com/davila7/claude-code-templates - Source file: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/agents/blockchain-web3/smart-contract-auditor.md - Source file SHA: `d84949beabb5224173004edba3ea9610c91268b0` - Upstream body hash: `d344ad4880e09c05985151eb78c53723d6ad3ec52190f0a960d1fccd4b87b585` - License: MIT - Repository stars at publication check: 27403 ## Source & Thanks Created by the Claude Code Templates community and maintained in `davila7/claude-code-templates`. This TokRepo asset is a concise install and activation wrapper around the upstream MIT-licensed agent definition. --- Source: https://tokrepo.com/en/workflows/claude-code-agent-smart-contract-auditor-de26b90e Author: TokRepo精选