[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77T9SRD22DH52V970WAYCMW":3,"skill-same:01M77T9SRD22DH52V970WAYCMW":60},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":42,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":44,"updatedAt":45,"install":46,"resources":59},"01M77T9SRD22DH52V970WAYCMW","safelink",null,"Secure agent-to-agent hiring and execution skill for OpenClaw MCP with escrowed settlement, x402 facilitator payments, ERC-8004 identity\u002Freputation checks, strict replay protection, DNS-safe endpoint validation, and MPC wallet signing. Use when building or operating production A2A workflows that require proof-before-settlement, policy gating, risk-scored transactions, and beginner-friendly wallet setup.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fs\u002Fsafelink\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: safelink\ndescription: Secure agent-to-agent hiring and execution skill for OpenClaw MCP with escrowed settlement, x402 facilitator payments, ERC-8004 identity\u002Freputation checks, strict replay protection, DNS-safe endpoint validation, and MPC wallet signing. Use when building or operating production A2A workflows that require proof-before-settlement, policy gating, risk-scored transactions, and beginner-friendly wallet setup.\nlicense: MIT\ncompatibility: \"Node.js >= 20. Foundry (forge) required for one-time contract deployment only — not needed at MCP runtime.\"\nmetadata:\n  author: charliebot8888\n  version: \"0.1.1\"\n  required_env: \"BASE_RPC_URL (Base RPC endpoint), ERC8004_REGISTRY_ADDRESS (after deploy), SAFE_ESCROW_ADDRESS (after deploy), X402_FACILITATOR_URL (default: https:\u002F\u002Fx402.org\u002Ffacilitator)\"\n  required_env_wallet: \"One of: COINBASE_CDP_API_KEY_NAME + COINBASE_CDP_API_KEY_PRIVATE_KEY (Coinbase AgentKit) OR PRIVY_APP_ID + PRIVY_APP_SECRET (Privy MPC). Both are MPC providers — private keys never enter app memory.\"\n  required_env_llm: \"ANTHROPIC_API_KEY (when LLM_PROVIDER=anthropic, default) OR LLM_BASE_URL + LLM_API_KEY (when LLM_PROVIDER=openai_compatible)\"\n  optional_env: \"REDIS_URL (multi-instance replay store), TENDERLY_ACCESS_KEY (simulation), BASESCAN_API_KEY (explorer), TASK_AUTH_SHARED_SECRET (>=32 chars, when TASK_AUTH_REQUIRED=true), SIWX_VERIFIER_URL (when SIWX_REQUIRED=true), AUTONOMYS_RPC_URL (memory checkpoints)\"\n  deploy_only_env: \"DEPLOYER_PRIVATE_KEY — used once by scripts\u002Fdeploy-contracts.ts to deploy on-chain contracts. NOT loaded at MCP runtime. Use a throwaway funded key; discard after deployment.\"\n  runtime_network: \"Opens HTTP server on TASK_SERVER_PORT (default 3402, bound to 127.0.0.1) only when safe_listen_for_hire tool is called.\"\n  runtime_files: \"scripts\u002Fgenerate-env.ts writes .env interactively on first setup. scripts\u002Fdeploy-contracts.ts writes deployed contract addresses back to .env after one-time deployment. Neither runs automatically.\"\n  security_test_note: \"tests\u002Fstress\u002F files contain literal prompt-injection strings (e.g. Ignore all previous instructions) as adversarial test fixtures to verify the input-gate blocks them. These are not instructions.\"\n  homepage: \"https:\u002F\u002Fgithub.com\u002Fcharliebot8888\u002FSafeLink\"\n  repository: \"https:\u002F\u002Fgithub.com\u002Fcharliebot8888\u002FSafeLink\"\n---\n\n# SafeLink\n\nProduction-grade OpenClaw skill for safe bidirectional hire-agent and execute-agent flows.\n\n## Brand and Discovery\n\n`SafeLink` is designed for trusted agent economies:\n\n- tagline: `Secure A2A hiring, settled by proof`\n- target users: OpenClaw developers, MCP operators, agent marketplaces\n- recommended ClawHub tags:\n  - `security`\n  - `web3`\n  - `a2a`\n  - `payments`\n  - `escrow`\n  - `x402`\n  - `erc-8004`\n  - `agentic-wallet`\n  - `mcp`\n  - `production`\n\n## Design Goals\n\n- Default-safe operations with explicit escalation for risk.\n- Zero private key exposure through MPC wallet providers.\n- Proof-before-settlement: no proof, no release.\n- Deterministic validation and replay defenses.\n- Fast onboarding: one-call wallet setup and beginner-safe examples.\n\n## Security Guarantees\n\nSafeLink enforces the following guarantees in runtime code paths:\n\n1. Wallet custody\n- Private keys are never loaded into app memory.\n- Signing is delegated to Coinbase AgentKit MPC or Privy MPC.\n\n2. Settlement safety\n- Escrow deposit happens before task execution.\n- Release requires proof hash equality with on-chain commitment.\n- Failed delivery and invalid proofs trigger refund path.\n\n3. Replay and race protection\n- Receipt replay reservation\u002Fused state is enforced.\n- Idempotency lock prevents concurrent duplicates.\n- Completed idempotency keys are blocked for reuse (terminal dedupe window).\n\n4. Input and endpoint hardening\n- Strict zod validation on tool inputs.\n- PII redaction for task and intent text.\n- Endpoint URL checks include scheme, hostname denylist, private IP range checks, and DNS resolution checks to prevent SSRF pivots.\n\n5. Transaction execution safety\n- Simulate before signing.\n- Risk score and flags decide gating path.\n- High-risk actions require explicit confirmation.\n\n## Industry Alignment Matrix\n\nReference themes: x402 v2 facilitator model, ERC-8004 reputation\u002Fverification tiers, proof-before-settlement, cryptoeconomic reputation, opaque A2A execution, gas-aware risk controls, zkML\u002FTEE extensibility.\n\n- x402 facilitator flow: `Partially covered`\n  - covered: requirements\u002Fpay\u002Fverify flows, domain checks, timeout handling\n  - gap: SIWx auth binding, batch settlement primitive, sponsored gas ergonomics\n- ERC-8004 base identity\u002Freputation: `Covered`\n  - covered: register, getAgent, active checks, threshold gating\n  - gap: tiered verification fields and verifier lifecycle\n- Proof-before-settlement: `Covered`\n  - covered: deterministic proof commitment and strict on-chain proof match\n- Reputation cryptoeconomics: `Partially covered`\n  - covered: escrow success\u002Ffailure reputation updates, minimum threshold checks\n  - gap: robust Sybil graph scoring, stake\u002Fslash challenge economics\n- A2A opaque execution: `Partially covered`\n  - covered: minimal metadata task payload and policy gates\n  - gap: encrypted envelope mode and selective disclosure controls\n- Gas and DoS hardening: `Partially covered`\n  - covered: simulation gas checks, request body limits, concurrency cap, timeout controls\n  - gap: adaptive rate control, weighted queues, quota market controls\n- zkML\u002FTEE hooks: `Partially covered`\n  - covered: tool fields and hook placeholders\n  - gap: real attestation verification and circuit verifier integration\n\n## Tool Contract (Production)\n\n### `setup_agentic_wallet`\n\nPurpose: Create or load an MPC wallet and return balance\u002Fnetwork readiness.\n\nParameters:\n\n- `provider` (optional): `\"auto\" | \"coinbase\" | \"privy\"`\n  - `auto`: choose Coinbase when available, else Privy\n\nReturns:\n\n```json\n{\n  \"provider\": \"coinbase\",\n  \"wallet_id\": \"wallet_...\",\n  \"address\": \"0x...\",\n  \"eth_balance\": \"0.120000 ETH\",\n  \"usdc_balance\": \"12.50 USDC\",\n  \"network\": \"base-sepolia\",\n  \"network_id\": 84532,\n  \"ready\": true,\n  \"setup_note\": \"optional\"\n}\n```\n\nSafety notes:\n\n- Never return secrets.\n- If user selects a provider explicitly, honor that choice.\n- Fail with actionable configuration guidance.\n\nExample:\n\n```json\n{\n  \"tool\": \"setup_agentic_wallet\",\n  \"arguments\": { \"provider\": \"auto\" }\n}\n```\n\n### `safe_hire_agent`\n\nPurpose: Hire one agent with escrow + x402 + proof verification.\n\nParameters:\n\n- `target_id`: `0x...` agent address\n- `task_description`: text task\n- `payment_model`: `\"per_request\" | \"per_min\" | \"per_execution\"`\n- `rate`: number USDC\n- `idempotency_key` (optional): dedupe key\n- `policy` (optional): runtime constraints\n- `confirmed` (optional): explicit high-risk confirmation\n\nReturns:\n\n```json\n{\n  \"task_id\": \"...\",\n  \"escrow_id\": \"0x...\",\n  \"result\": {},\n  \"proof_hash\": \"0x...\",\n  \"status\": \"completed\",\n  \"reputation_score_at_hire\": 82,\n  \"amount_paid_usdc\": 0.05,\n  \"idempotency_key\": \"hire-...\"\n}\n```\n\nSafety notes:\n\n- Blocks low-reputation targets.\n- Enforces strict endpoint validation including DNS\u002FIP checks.\n- Refuses invalid proofs and refunds escrow.\n\nExample:\n\n```json\n{\n  \"tool\": \"safe_hire_agent\",\n  \"arguments\": {\n    \"target_id\": \"0xabc123...\",\n    \"task_description\": \"Summarize this PR and list top 3 security risks.\",\n    \"payment_model\": \"per_request\",\n    \"rate\": 0.05,\n    \"idempotency_key\": \"hire-pr-2026-03-05\"\n  }\n}\n```\n\n### `safe_execute_tx`\n\nPurpose: Intent-to-transaction execution pipeline with mandatory simulation and risk gating.\n\nParameters:\n\n- `intent_description`: plain-English tx intent\n- `confirmed` (optional): high-risk confirmation\n\nReturns:\n\n```json\n{\n  \"tx_hash\": \"0x...\",\n  \"simulation_report\": {\n    \"success\": true,\n    \"gas_estimate\": \"142331\"\n  },\n  \"risk_score\": 24,\n  \"risk_flags\": [\"HIGH_GAS\"],\n  \"status\": \"broadcast\"\n}\n```\n\nSafety notes:\n\n- Never sign when simulation fails.\n- Never bypass confirmation for high-risk score.\n\nExample:\n\n```json\n{\n  \"tool\": \"safe_execute_tx\",\n  \"arguments\": {\n    \"intent_description\": \"Approve 5 USDC to escrow contract 0x... on Base Sepolia\"\n  }\n}\n```\n\n### `safe_listen_for_hire`\n\nPurpose: Start local HTTP receiver for inbound paid tasks.\n\nParameters:\n\n- none\n\nReturns:\n\n```json\n{\n  \"status\": \"listening\",\n  \"message\": \"Agent ... is now accepting hire requests ...\",\n  \"tasks_processed\": 0,\n  \"endpoint\": \"http:\u002F\u002F127.0.0.1:8787\u002Ftask\"\n}\n```\n\nSafety notes:\n\n- Verifies payment receipt before executing work.\n- Rejects malformed session IDs and invalid amount values.\n- Uses bounded concurrency and body size limits.\n\nExample:\n\n```json\n{\n  \"tool\": \"safe_listen_for_hire\",\n  \"arguments\": {}\n}\n```\n\n## Additional Tools\n\n- `safe_hire_agents_batch`: batch hires with bounded concurrency and failure policy\n- `safe_register_as_service`: publish capabilities\u002Fpolicy to registry\n- `verify_task_proof`: validate proof locally and optionally against escrow record\n- `get_agent_reputation`: fetch and evaluate target reputation profile\n- `generate_agent_card`: produce JSON and markdown profile artifacts\n- `checkpoint_memory`: encrypted memory checkpoint + Merkle anchoring\n- `agent_analytics_summary`: period metrics and operations summary\n\n## One-Click Setup\n\n1. Install and configure env:\n\n```bash\nnpm install\nnpm run setup\n```\n\n2. Build and start MCP server:\n\n```bash\nnpm run build\nnpm start\n```\n\n3. First call from host:\n\n```json\n{\n  \"tool\": \"setup_agentic_wallet\",\n  \"arguments\": { \"provider\": \"auto\" }\n}\n```\n\n## Security-Focused Examples\n\n### Example: Safe hire with deterministic idempotency\n\n```ts\nawait agent.call(\"safe_hire_agent\", {\n  target_id: \"0xabc123...\",\n  task_description: \"Analyze the staking contract for reentrancy and auth flaws.\",\n  payment_model: \"per_request\",\n  rate: 0.08,\n  idempotency_key: \"audit-staking-v1-2026-03-05\"\n});\n```\n\n### Example: Escalation flow for high-risk tx\n\n```ts\nconst firstTry = await agent.call(\"safe_execute_tx\", {\n  intent_description: \"Upgrade proxy at 0x... to implementation 0x...\"\n});\n\n\u002F\u002F If approval required, call again:\nawait agent.call(\"safe_execute_tx\", {\n  intent_description: \"Upgrade proxy at 0x... to implementation 0x...\",\n  confirmed: true\n});\n```\n\n## Key TypeScript Skeletons\n\n### `setup_agentic_wallet`\n\n```ts\nexport async function setup_agentic_wallet(rawInput: unknown) {\n  const input = validateInput(WalletSchema, rawInput);\n  const wallet = await getMPCWalletClient(resolveProvider(input.provider));\n  const [eth, usdc, chainId] = await Promise.all([\n    publicClient.getBalance({ address: wallet.address }),\n    getUSDCBalance(wallet.address, resolveNetwork()),\n    publicClient.getChainId()\n  ]);\n\n  return formatWalletReady(wallet, eth, usdc, chainId);\n}\n```\n\n### `safe_hire_agent`\n\n```ts\nexport async function safe_hire_agent(rawInput: unknown): Promise\u003CHireResult> {\n  const input = validateInput(HireSchema, rawInput);\n  const key = deriveOrUseIdempotencyKey(input);\n  await acquireIdempotencyLock(key);\n\n  try {\n    const rep = await assertReputation(input.target_id);\n    const commitment = computeProofCommitment(session.id, input.target_id);\n    const escrow = await depositEscrow(...);\n    const payment = await sendX402Payment(...);\n    const task = await deliverTaskToAgentStrict(...);\n\n    if (!verifyProof(task.proof_hash, session.id, input.target_id)) {\n      await refundEscrow(escrow.escrowId);\n      throw new ProofVerificationError(task.proof_hash);\n    }\n\n    await releaseEscrow(escrow.escrowId, task.proof_hash);\n    await markIdempotencyCompleted(key);\n    return buildHireResult(\"completed\", ...);\n  } catch (e) {\n    await attemptRefundIfNeeded();\n    throw e;\n  } finally {\n    await releaseIdempotencyLock(key);\n    await destroySession(session.id);\n  }\n}\n```\n\n### `safe_execute_tx`\n\n```ts\nexport async function safe_execute_tx(rawInput: unknown): Promise\u003CExecuteTxResult> {\n  const input = validateInput(ExecuteTxSchema, rawInput);\n  const parsed = await intentToTransaction(input.intent_description);\n  const simulation = await simulateTx(parsed);\n\n  if (!simulation.success) return simulationFailed(simulation);\n\n  const { score, flags } = await scoreRisk(simulation);\n  enforceApprovalGate(score, flags, input.confirmed, simulation);\n\n  const wallet = await getMPCWalletClient();\n  const txHash = await wallet.sendTransaction(toTxRequest(parsed, simulation));\n  return buildExecuteResult(txHash, simulation, score, flags);\n}\n```\n\n### `safe_listen_for_hire`\n\n```ts\nexport async function safe_listen_for_hire(): Promise\u003CListenResult> {\n  const server = await startTaskServer(getConfig().TASK_SERVER_PORT);\n  return {\n    status: \"listening\",\n    message: `Register capability endpoint:${server.address}\u002Ftask`,\n    tasks_processed: 0,\n    endpoint: `${server.address}\u002Ftask`\n  };\n}\n```\n\n## Recommended New Tools (Next Iteration)\n\n- `safe_verify_attestation`\n  - verify TEE quotes and zkML proofs against approved verifier sets\n- `safe_challenge_settlement`\n  - submit challenge evidence for disputed task proofs\n- `safe_rate_limit_admin`\n  - runtime quotas and payer-level controls\n\n## Recommended Config Additions\n\n- `SAFE_ENDPOINT_ALLOWLIST`: allowed destination domains for outbound A2A calls\n- `MAX_INBOUND_AMOUNT_ATOMIC_USDC`: hard cap on inbound job value\n- `IDEMPOTENCY_COMPLETED_TTL_MS`: terminal dedupe window\n- `SIWX_REQUIRED`: require SIWx signature binding for paid task requests\n- `ENABLE_OPAQUE_ENVELOPE`: encrypted A2A payload mode\n\n## Security Disclosure\n\n- **Required environment variables**: `ANTHROPIC_API_KEY` (LLM), `BASE_RPC_URL`, and one of Privy (`PRIVY_APP_ID` + `PRIVY_APP_SECRET`) or Coinbase CDP (`COINBASE_CDP_API_KEY_NAME` + `COINBASE_CDP_API_KEY_PRIVATE_KEY`) for MPC wallet signing. Full list in `.env.example` and `_meta.json`.\n- **`DEPLOYER_PRIVATE_KEY`**: Used **once** by `scripts\u002Fdeploy-contracts.ts` for initial on-chain contract deployment only. Not loaded at MCP runtime. Use a throwaway funded key; discard after deployment.\n- **HTTP listener**: `safe_listen_for_hire` opens an HTTP server on `TASK_SERVER_PORT` (default 3402), bound to `127.0.0.1` unless explicitly reconfigured.\n- **File writes**: `scripts\u002Fdeploy-contracts.ts` writes deployed contract addresses back to `.env`. `scripts\u002Fgenerate-env.ts` creates `.env` interactively. Neither runs automatically on MCP startup.\n- **External CLI** (`forge`): Used by `scripts\u002Fdeploy-contracts.ts` for one-time Solidity contract compilation and deployment only. Not required or invoked at MCP runtime.\n- **Test files**: `tests\u002Fstress\u002F` contains literal prompt-injection strings (e.g. `Ignore all previous instructions`) as adversarial test fixtures that verify the input-gate blocks them. These are not instructions to any agent.\n\n## Changelog\n\n- `v0.1.1` (2026-03-05)\n  - added `_meta.json` with full required env vars, binaries, runtime behavior, and security disclosure for registry scanners\n  - added clarifying headers to stress test files to prevent false-positive prompt-injection scanner alerts\n  - upgraded `x402` to `^1.1.0` (fixes GHSA-3j63-5h8p-gf7c)\n\n- `v0.1.0` (2026-03-05)\n  - initial public release\n  - strict endpoint DNS\u002FIP validation for outbound task delivery\n  - HMAC-signed inbound task auth with nonce replay lock and SIWx hook\n  - completion-state idempotency protection blocks post-completion duplicates\n  - `\u002F.well-known\u002Fagent-card.json` HTTP endpoint\n  - 128 unit tests, zero TypeScript errors, CI coverage gates enforced\n\n## Roadmap\n\n1. Complete x402 v2 alignment\n- SIWx auth binding\n- batch payment primitive\n- optional sponsored gas support\n\n2. ERC-8004 tiered verification\n- tier metadata (`basic`, `tee_attested`, `zkml_attested`, `stake_secured`)\n- verifier registries and revocation handling\n\n3. Cryptoeconomic reputation hardening\n- Sybil graph scoring\n- challenge\u002Fslash dispute mechanisms\n\n4. Opaque A2A execution\n- encrypted task\u002Fresult envelopes\n- selective metadata disclosure\n\n5. Production SRE posture\n- adaptive rate limits\n- weighted queues\n- audit log export and incident hooks\n","# SafeLink\n\nProduction-grade OpenClaw skill for safe bidirectional hire-agent and execute-agent flows.\n\n## Brand and Discovery\n\n`SafeLink` is designed for trusted agent economies:\n\n- tagline: `Secure A2A hiring, settled by proof`\n- target users: OpenClaw developers, MCP operators, agent marketplaces\n- recommended ClawHub tags:\n  - `security`\n  - `web3`\n  - `a2a`\n  - `payments`\n  - `escrow`\n  - `x402`\n  - `erc-8004`\n  - `agentic-wallet`\n  - `mcp`\n  - `production`\n\n## Design Goals\n\n- Default-safe operations with explicit escalation for risk.\n- Zero private key exposure through MPC wallet providers.\n- Proof-before-settlement: no proof, no release.\n- Deterministic validation and replay defenses.\n- Fast onboarding: one-call wallet setup and beginner-safe examples.\n\n## Security Guarantees\n\nSafeLink enforces the following guarantees in runtime code paths:\n\n1. Wallet custody\n- Private keys are never loaded into app memory.\n- Signing is delegated to Coinbase AgentKit MPC or Privy MPC.\n\n2. Settlement safety\n- Escrow deposit happens before task execution.\n- Release requires proof hash equality with on-chain commitment.\n- Failed delivery and invalid proofs trigger refund path.\n\n3. Replay and race protection\n- Receipt replay reservation\u002Fused state is enforced.\n- Idempotency lock prevents concurrent duplicates.\n- Completed idempotency keys are blocked for reuse (terminal dedupe window).\n\n4. Input and endpoint hardening\n- Strict zod validation on tool inputs.\n- PII redaction for task and intent text.\n- Endpoint URL checks include scheme, hostname denylist, private IP range checks, and DNS resolution checks to prevent SSRF pivots.\n\n5. Transaction execution safety\n- Simulate before signing.\n- Risk score and flags decide gating path.\n- High-risk actions require explicit confirmation.\n\n## Industry Alignment Matrix\n\nReference themes: x402 v2 facilitator model, ERC-8004 reputation\u002Fverification tiers, proof-before-settlement, cryptoeconomic reputation, opaque A2A execution, gas-aware risk controls, zkML\u002FTEE extensibility.\n\n- x402 facilitator flow: `Partially covered`\n  - covered: requirements\u002Fpay\u002Fverify flows, domain checks, timeout handling\n  - gap: SIWx auth binding, batch settlement primitive, sponsored gas ergonomics\n- ERC-8004 base identity\u002Freputation: `Covered`\n  - covered: register, getAgent, active checks, threshold gating\n  - gap: tiered verification fields and verifier lifecycle\n- Proof-before-settlement: `Covered`\n  - covered: deterministic proof commitment and strict on-chain proof match\n- Reputation cryptoeconomics: `Partially covered`\n  - covered: escrow success\u002Ffailure reputation updates, minimum threshold checks\n  - gap: robust Sybil graph scoring, stake\u002Fslash challenge economics\n- A2A opaque execution: `Partially covered`\n  - covered: minimal metadata task payload and policy gates\n  - gap: encrypted envelope mode and selective disclosure controls\n- Gas and DoS hardening: `Partially covered`\n  - covered: simulation gas checks, request body limits, concurrency cap, timeout controls\n  - gap: adaptive rate control, weighted queues, quota market controls\n- zkML\u002FTEE hooks: `Partially covered`\n  - covered: tool fields and hook placeholders\n  - gap: real attestation verification and circuit verifier integration\n\n## Tool Contract (Production)\n\n### `setup_agentic_wallet`\n\nPurpose: Create or load an MPC wallet and return balance\u002Fnetwork readiness.\n\nParameters:\n\n- `provider` (optional): `\"auto\" | \"coinbase\" | \"privy\"`\n  - `auto`: choose Coinbase when available, else Privy\n\nReturns:\n\n```json\n{\n  \"provider\": \"coinbase\",\n  \"wallet_id\": \"wallet_...\",\n  \"address\": \"0x...\",\n  \"eth_balance\": \"0.120000 ETH\",\n  \"usdc_balance\": \"12.50 USDC\",\n  \"network\": \"base-sepolia\",\n  \"network_id\": 84532,\n  \"ready\": true,\n  \"setup_note\": \"optional\"\n}\n```\n\nSafety notes:\n\n- Never return secrets.\n- If user selects a provider explicitly, honor that choice.\n- Fail with actionable configuration guidance.\n\nExample:\n\n```json\n{\n  \"tool\": \"setup_agentic_wallet\",\n  \"arguments\": { \"provider\": \"auto\" }\n}\n```\n\n### `safe_hire_agent`\n\nPurpose: Hire one agent with escrow + x402 + proof verification.\n\nParameters:\n\n- `target_id`: `0x...` agent address\n- `task_description`: text task\n- `payment_model`: `\"per_request\" | \"per_min\" | \"per_execution\"`\n- `rate`: number USDC\n- `idempotency_key` (optional): dedupe key\n- `policy` (optional): runtime constraints\n- `confirmed` (optional): explicit high-risk confirmation\n\nReturns:\n\n```json\n{\n  \"task_id\": \"...\",\n  \"escrow_id\": \"0x...\",\n  \"result\": {},\n  \"proof_hash\": \"0x...\",\n  \"status\": \"completed\",\n  \"reputation_score_at_hire\": 82,\n  \"amount_paid_usdc\": 0.05,\n  \"idempotency_key\": \"hire-...\"\n}\n```\n\nSafety notes:\n\n- Blocks low-reputation targets.\n- Enforces strict endpoint validation including DNS\u002FIP checks.\n- Refuses invalid proofs and refunds escrow.\n\nExample:\n\n```json\n{\n  \"tool\": \"safe_hire_agent\",\n  \"arguments\": {\n    \"target_id\": \"0xabc123...\",\n    \"task_description\": \"Summarize this PR and list top 3 security risks.\",\n    \"payment_model\": \"per_request\",\n    \"rate\": 0.05,\n    \"idempotency_key\": \"hire-pr-2026-03-05\"\n  }\n}\n```\n\n### `safe_execute_tx`\n\nPurpose: Intent-to-transaction execution pipeline with mandatory simulation and risk gating.\n\nParameters:\n\n- `intent_description`: plain-English tx intent\n- `confirmed` (optional): high-risk confirmation\n\nReturns:\n\n```json\n{\n  \"tx_hash\": \"0x...\",\n  \"simulation_report\": {\n    \"success\": true,\n    \"gas_estimate\": \"142331\"\n  },\n  \"risk_score\": 24,\n  \"risk_flags\": [\"HIGH_GAS\"],\n  \"status\": \"broadcast\"\n}\n```\n\nSafety notes:\n\n- Never sign when simulation fails.\n- Never bypass confirmation for high-risk score.\n\nExample:\n\n```json\n{\n  \"tool\": \"safe_execute_tx\",\n  \"arguments\": {\n    \"intent_description\": \"Approve 5 USDC to escrow contract 0x... on Base Sepolia\"\n  }\n}\n```\n\n### `safe_listen_for_hire`\n\nPurpose: Start local HTTP receiver for inbound paid tasks.\n\nParameters:\n\n- none\n\nReturns:\n\n```json\n{\n  \"status\": \"listening\",\n  \"message\": \"Agent ... is now accepting hire requests ...\",\n  \"tasks_processed\": 0,\n  \"endpoint\": \"http:\u002F\u002F127.0.0.1:8787\u002Ftask\"\n}\n```\n\nSafety notes:\n\n- Verifies payment receipt before executing work.\n- Rejects malformed session IDs and invalid amount values.\n- Uses bounded concurrency and body size limits.\n\nExample:\n\n```json\n{\n  \"tool\": \"safe_listen_for_hire\",\n  \"arguments\": {}\n}\n```\n\n## Additional Tools\n\n- `safe_hire_agents_batch`: batch hires with bounded concurrency and failure policy\n- `safe_register_as_service`: publish capabilities\u002Fpolicy to registry\n- `verify_task_proof`: validate proof locally and optionally against escrow record\n- `get_agent_reputation`: fetch and evaluate target reputation profile\n- `generate_agent_card`: produce JSON and markdown profile artifacts\n- `checkpoint_memory`: encrypted memory checkpoint + Merkle anchoring\n- `agent_analytics_summary`: period metrics and operations summary\n\n## One-Click Setup\n\n1. Install and configure env:\n\n```bash\nnpm install\nnpm run setup\n```\n\n2. Build and start MCP server:\n\n```bash\nnpm run build\nnpm start\n```\n\n3. First call from host:\n\n```json\n{\n  \"tool\": \"setup_agentic_wallet\",\n  \"arguments\": { \"provider\": \"auto\" }\n}\n```\n\n## Security-Focused Examples\n\n### Example: Safe hire with deterministic idempotency\n\n```ts\nawait agent.call(\"safe_hire_agent\", {\n  target_id: \"0xabc123...\",\n  task_description: \"Analyze the staking contract for reentrancy and auth flaws.\",\n  payment_model: \"per_request\",\n  rate: 0.08,\n  idempotency_key: \"audit-staking-v1-2026-03-05\"\n});\n```\n\n### Example: Escalation flow for high-risk tx\n\n```ts\nconst firstTry = await agent.call(\"safe_execute_tx\", {\n  intent_description: \"Upgrade proxy at 0x... to implementation 0x...\"\n});\n\n\u002F\u002F If approval required, call again:\nawait agent.call(\"safe_execute_tx\", {\n  intent_description: \"Upgrade proxy at 0x... to implementation 0x...\",\n  confirmed: true\n});\n```\n\n## Key TypeScript Skeletons\n\n### `setup_agentic_wallet`\n\n```ts\nexport async function setup_agentic_wallet(rawInput: unknown) {\n  const input = validateInput(WalletSchema, rawInput);\n  const wallet = await getMPCWalletClient(resolveProvider(input.provider));\n  const [eth, usdc, chainId] = await Promise.all([\n    publicClient.getBalance({ address: wallet.address }),\n    getUSDCBalance(wallet.address, resolveNetwork()),\n    publicClient.getChainId()\n  ]);\n\n  return formatWalletReady(wallet, eth, usdc, chainId);\n}\n```\n\n### `safe_hire_agent`\n\n```ts\nexport async function safe_hire_agent(rawInput: unknown): Promise\u003CHireResult> {\n  const input = validateInput(HireSchema, rawInput);\n  const key = deriveOrUseIdempotencyKey(input);\n  await acquireIdempotencyLock(key);\n\n  try {\n    const rep = await assertReputation(input.target_id);\n    const commitment = computeProofCommitment(session.id, input.target_id);\n    const escrow = await depositEscrow(...);\n    const payment = await sendX402Payment(...);\n    const task = await deliverTaskToAgentStrict(...);\n\n    if (!verifyProof(task.proof_hash, session.id, input.target_id)) {\n      await refundEscrow(escrow.escrowId);\n      throw new ProofVerificationError(task.proof_hash);\n    }\n\n    await releaseEscrow(escrow.escrowId, task.proof_hash);\n    await markIdempotencyCompleted(key);\n    return buildHireResult(\"completed\", ...);\n  } catch (e) {\n    await attemptRefundIfNeeded();\n    throw e;\n  } finally {\n    await releaseIdempotencyLock(key);\n    await destroySession(session.id);\n  }\n}\n```\n\n### `safe_execute_tx`\n\n```ts\nexport async function safe_execute_tx(rawInput: unknown): Promise\u003CExecuteTxResult> {\n  const input = validateInput(ExecuteTxSchema, rawInput);\n  const parsed = await intentToTransaction(input.intent_description);\n  const simulation = await simulateTx(parsed);\n\n  if (!simulation.success) return simulationFailed(simulation);\n\n  const { score, flags } = await scoreRisk(simulation);\n  enforceApprovalGate(score, flags, input.confirmed, simulation);\n\n  const wallet = await getMPCWalletClient();\n  const txHash = await wallet.sendTransaction(toTxRequest(parsed, simulation));\n  return buildExecuteResult(txHash, simulation, score, flags);\n}\n```\n\n### `safe_listen_for_hire`\n\n```ts\nexport async function safe_listen_for_hire(): Promise\u003CListenResult> {\n  const server = await startTaskServer(getConfig().TASK_SERVER_PORT);\n  return {\n    status: \"listening\",\n    message: `Register capability endpoint:${server.address}\u002Ftask`,\n    tasks_processed: 0,\n    endpoint: `${server.address}\u002Ftask`\n  };\n}\n```\n\n## Recommended New Tools (Next Iteration)\n\n- `safe_verify_attestation`\n  - verify TEE quotes and zkML proofs against approved verifier sets\n- `safe_challenge_settlement`\n  - submit challenge evidence for disputed task proofs\n- `safe_rate_limit_admin`\n  - runtime quotas and payer-level controls\n\n## Recommended Config Additions\n\n- `SAFE_ENDPOINT_ALLOWLIST`: allowed destination domains for outbound A2A calls\n- `MAX_INBOUND_AMOUNT_ATOMIC_USDC`: hard cap on inbound job value\n- `IDEMPOTENCY_COMPLETED_TTL_MS`: terminal dedupe window\n- `SIWX_REQUIRED`: require SIWx signature binding for paid task requests\n- `ENABLE_OPAQUE_ENVELOPE`: encrypted A2A payload mode\n\n## Security Disclosure\n\n- **Required environment variables**: `ANTHROPIC_API_KEY` (LLM), `BASE_RPC_URL`, and one of Privy (`PRIVY_APP_ID` + `PRIVY_APP_SECRET`) or Coinbase CDP (`COINBASE_CDP_API_KEY_NAME` + `COINBASE_CDP_API_KEY_PRIVATE_KEY`) for MPC wallet signing. Full list in `.env.example` and `_meta.json`.\n- **`DEPLOYER_PRIVATE_KEY`**: Used **once** by `scripts\u002Fdeploy-contracts.ts` for initial on-chain contract deployment only. Not loaded at MCP runtime. Use a throwaway funded key; discard after deployment.\n- **HTTP listener**: `safe_listen_for_hire` opens an HTTP server on `TASK_SERVER_PORT` (default 3402), bound to `127.0.0.1` unless explicitly reconfigured.\n- **File writes**: `scripts\u002Fdeploy-contracts.ts` writes deployed contract addresses back to `.env`. `scripts\u002Fgenerate-env.ts` creates `.env` interactively. Neither runs automatically on MCP startup.\n- **External CLI** (`forge`): Used by `scripts\u002Fdeploy-contracts.ts` for one-time Solidity contract compilation and deployment only. Not required or invoked at MCP runtime.\n- **Test files**: `tests\u002Fstress\u002F` contains literal prompt-injection strings (e.g. `Ignore all previous instructions`) as adversarial test fixtures that verify the input-gate blocks them. These are not instructions to any agent.\n\n## Changelog\n\n- `v0.1.1` (2026-03-05)\n  - added `_meta.json` with full required env vars, binaries, runtime behavior, and security disclosure for registry scanners\n  - added clarifying headers to stress test files to prevent false-positive prompt-injection scanner alerts\n  - upgraded `x402` to `^1.1.0` (fixes GHSA-3j63-5h8p-gf7c)\n\n- `v0.1.0` (2026-03-05)\n  - initial public release\n  - strict endpoint DNS\u002FIP validation for outbound task delivery\n  - HMAC-signed inbound task auth with nonce replay lock and SIWx hook\n  - completion-state idempotency protection blocks post-completion duplicates\n  - `\u002F.well-known\u002Fagent-card.json` HTTP endpoint\n  - 128 unit tests, zero TypeScript errors, CI coverage gates enforced\n\n## Roadmap\n\n1. Complete x402 v2 alignment\n- SIWx auth binding\n- batch payment primitive\n- optional sponsored gas support\n\n2. ERC-8004 tiered verification\n- tier metadata (`basic`, `tee_attested`, `zkml_attested`, `stake_secured`)\n- verifier registries and revocation handling\n\n3. Cryptoeconomic reputation hardening\n- Sybil graph scoring\n- challenge\u002Fslash dispute mechanisms\n\n4. Opaque A2A execution\n- encrypted task\u002Fresult envelopes\n- selective metadata disclosure\n\n5. Production SRE posture\n- adaptive rate limits\n- weighted queues\n- audit log export and incident hooks\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":36},{"author":25,"version":26,"homepage":27,"repository":27,"optional_env":28,"required_env":29,"runtime_files":30,"deploy_only_env":31,"runtime_network":32,"required_env_llm":33,"security_test_note":34,"required_env_wallet":35},"charliebot8888","0.1.1","https:\u002F\u002Fgithub.com\u002Fcharliebot8888\u002FSafeLink","REDIS_URL (multi-instance replay store), TENDERLY_ACCESS_KEY (simulation), BASESCAN_API_KEY (explorer), TASK_AUTH_SHARED_SECRET (>=32 chars, when TASK_AUTH_REQUIRED=true), SIWX_VERIFIER_URL (when SIWX_REQUIRED=true), AUTONOMYS_RPC_URL (memory checkpoints)","BASE_RPC_URL (Base RPC endpoint), ERC8004_REGISTRY_ADDRESS (after deploy), SAFE_ESCROW_ADDRESS (after deploy), X402_FACILITATOR_URL (default: https:\u002F\u002Fx402.org\u002Ffacilitator)","scripts\u002Fgenerate-env.ts writes .env interactively on first setup. scripts\u002Fdeploy-contracts.ts writes deployed contract addresses back to .env after one-time deployment. Neither runs automatically.","DEPLOYER_PRIVATE_KEY — used once by scripts\u002Fdeploy-contracts.ts to deploy on-chain contracts. NOT loaded at MCP runtime. Use a throwaway funded key; discard after deployment.","Opens HTTP server on TASK_SERVER_PORT (default 3402, bound to 127.0.0.1) only when safe_listen_for_hire tool is called.","ANTHROPIC_API_KEY (when LLM_PROVIDER=anthropic, default) OR LLM_BASE_URL + LLM_API_KEY (when LLM_PROVIDER=openai_compatible)","tests\u002Fstress\u002F files contain literal prompt-injection strings (e.g. Ignore all previous instructions) as adversarial test fixtures to verify the input-gate blocks them. These are not instructions.","One of: COINBASE_CDP_API_KEY_NAME + COINBASE_CDP_API_KEY_PRIVATE_KEY (Coinbase AgentKit) OR PRIVY_APP_ID + PRIVY_APP_SECRET (Privy MPC). Both are MPC providers — private keys never enter app memory.","Node.js >= 20. Foundry (forge) required for one-time contract deployment only — not needed at MCP runtime.","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fs\u002Fsafelink",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill safelink",{"tool":52,"command":53},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill safelink",{"tool":55,"command":56},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill safelink","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fs\u002Fsafelink\u002FSKILL.md",true,[],[61,68,75,82,89,96],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]