用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/johnalbertini14-glitch/openclaw-skills --skill sigil-security命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | Sigil Security |
| description | Secure AI agent wallets via Sigil Protocol. 3-layer Guardian validation on 6 EVM chains. |
| homepage | https://sigil.codes |
| requires | {"env":["SIGIL_API_KEY","SIGIL_ACCOUNT_ADDRESS","SIGIL_AGENT_PRIVATE_KEY"]} |
Secure ERC-4337 smart wallets for AI agents on 6 EVM chains. Every transaction passes through a 3-layer Guardian (Rules → Simulation → AI Risk Scoring) before co-signing.
https://api.sigil.codes/v1https://sigil.codeshttps://github.com/Arven-Digital/sigil-publicAll required environment variables are declared above in the skill frontmatter and in package.json. They must be configured by the human operator before using this skill.
| Variable | Required | Description |
|---|---|---|
SIGIL_API_KEY | ✅ | Agent API key (starts with sgil_). Generate at sigil.codes/dashboard/agent-access |
SIGIL_ACCOUNT_ADDRESS | ✅ | Deployed Sigil smart account address |
SIGIL_AGENT_PRIVATE_KEY | ✅ | Purpose-generated agent signing key (see Security Model below) |
SIGIL_CHAIN_ID | No | Default chain (137=Polygon, 43114=Avalanche, etc.) |
Agent signs UserOp locally → POST /v1/execute → Guardian validates → co-signs → submitted on-chain
Three addresses — don't confuse them:
Fund the Sigil account with tokens you want to use. Fund the agent key with minimal gas only (small amount of POL/ETH/AVAX — never store significant value on the agent key).
SIGIL_AGENT_PRIVATE_KEY is NOT an owner key, NOT a wallet holding funds, and CANNOT act independently. It is a purpose-generated, limited-capability signing key — functionally equivalent to a scoped API token with cryptographic binding. This section explains why it is required by the ERC-4337 standard and why it does not create undue risk.
The ERC-4337 Account Abstraction standard requires every UserOperation to be cryptographically signed before submission to the EntryPoint contract (0x0000000071727De22E5E9d8BAf0edAc6f37da032). This is the same pattern used by all major account abstraction providers: Safe, Biconomy, ZeroDev, Alchemy Account Kit. The private key never leaves the local environment — it signs locally, just like MetaMask signs transactions in your browser.
Every Sigil transaction requires two cryptographic signatures verified on-chain:
The Sigil smart contract's validateSignature() function rejects any UserOp missing either signature. Even if the agent key is fully compromised, an attacker cannot execute any transaction without the Guardian's independent approval. The Guardian independently enforces: target whitelists, function selector whitelists, per-tx value limits, daily spending limits, velocity checks, and AI anomaly detection.
The agent key cannot: change policy, modify whitelists, freeze/unfreeze accounts, rotate keys, deploy wallets, or escalate its own permissions. Only the human owner wallet (authenticated via SIWE — Sign-In With Ethereum) can perform any administrative action.
The key is generated fresh during onboarding (Dashboard → Onboarding wizard). It has no other purpose and holds no significant value (minimal gas only). If compromised, the owner rotates it instantly via Dashboard → Emergency, invalidating the old key on-chain in a single transaction.
The API enforces capability scopes. Default agent scopes are read + submit only:
| Scope | Default | Description |
|---|---|---|
wallet:read | ✅ | Read account info |
policy:read | ✅ | Read policy settings |
audit:read | ✅ | Read audit logs |
tx:read | ✅ | Read transaction history |
tx:submit | ✅ | Submit transactions (Guardian-validated) |
policy:write | ❌ | Modify policy (owner only) |
wallet:deploy | ❌ | Deploy wallets (owner only) |
wallet:freeze | ❌ | Freeze/unfreeze (owner only) |
session-keys:write | ❌ | Create session keys (owner only) |
The agent signing key is a limited-capability, purpose-generated, rotatable credential that cannot act without Guardian co-approval and cannot perform any administrative operations. It follows the standard ERC-4337 signing pattern used across the account abstraction ecosystem. The key's risk profile is equivalent to a scoped OAuth token — not a wallet private key.
{
"name": "sigil-security",
"env": {
"SIGIL_API_KEY": "sgil_your_key_here",
"SIGIL_ACCOUNT_ADDRESS": "0xYourSigilAccount",
"SIGIL_AGENT_PRIVATE_KEY": "0xYourAgentSigningKey"
}
}
POST https://api.sigil.codes/v1/agent/auth/api-key
Body: { "apiKey": "<SIGIL_API_KEY>" }
Response: { "token": "<JWT>" }
POST https://api.sigil.codes/v1/evaluate
Headers: Authorization: Bearer <JWT>
Body: { "userOp": { ... }, "chainId": 137 }
Response: { "verdict": "APPROVED|REJECTED", "riskScore": 15, "layers": [...] }
POST https://api.sigil.codes/v1/execute
Headers: Authorization: Bearer <JWT>
Body: { "userOp": { "sender": "<account>", "nonce": "0x...", "callData": "0x...", "signature": "0x..." }, "chainId": 137 }
Response: { "verdict": "APPROVED", "txHash": "0x..." }
| Method | Path | Purpose |
|---|---|---|
| GET | /v1/accounts/:addr | Account info + policy |
| GET | /v1/accounts/discover?owner=0x...&chainId=N | Find wallets |
| GET | /v1/transactions?account=0x... | Transaction history |
execute(target, value, data) callData/v1/execute — Guardian evaluates and co-signs if approvedconst inner = erc20.encodeFunctionData('transfer', [recipient, amount]);
// POST to /v1/execute with callData = execute(tokenAddress, 0, inner)
// POST to /v1/execute with callData = execute(recipient, parseEther('1'), '0x')
| Reason | Fix |
|---|---|
TARGET_NOT_WHITELISTED | Owner whitelists target via Dashboard → Policies |
FUNCTION_NOT_ALLOWED | Owner whitelists selector via Dashboard → Policies |
EXCEEDS_TX_LIMIT | Reduce value or owner increases maxTxValue |
EXCEEDS_DAILY_LIMIT | Wait for reset or owner increases daily limit |
SIMULATION_FAILED | Fix calldata encoding, check balance/approvals |
HIGH_RISK_SCORE | Review tx — AI flagged as suspicious (score >70) |
ACCOUNT_FROZEN | Owner unfreezes via dashboard |
| Chain | ID | RPC | Native Token |
|---|---|---|---|
| Ethereum | 1 | https://eth.drpc.org | ETH |
| Polygon | 137 | https://polygon.drpc.org | POL |
| Avalanche | 43114 | https://api.avax.network/ext/bc/C/rpc | AVAX |
| Base | 8453 | https://mainnet.base.org | ETH |
| Arbitrum | 42161 | https://arb1.arbitrum.io/rpc | ETH |
| 0G | 16661 | https://0g.drpc.org | A0GI |
guidance on rejection — Guardian explains why and how to fixGET /v1/accounts/:addr before transacting