[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6G2ZCHSWN2MDJP33SGJYATN":3,"skill-same:01M6G2ZCHSWN2MDJP33SGJYATN":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":48,"install":49,"resources":62},"01M6G2ZCHSWN2MDJP33SGJYATN","clawcredit",null,"Credit line service for AI agents to access x402 services without upfront payment. Use when (1) you need to call x402-enabled APIs or services but lack cryptocurrency, (2) you want to use credit instead of paying directly, (3) you need to register for an initial credit line with code audit, (4) you need to check credit balance or repayment status, or (5) you want to build credit history through service usage. ClawCredit acts as a payment proxy, handling blockchain settlements on Base\u002FSolana\u002FXRPL while you spend USD credit.","kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsergiochan\u002Fclaw-credit\u002FSKILL.md",[],[5,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"but","balance","usage","you","register","line","as","usd","x402","ai agents","history","access","code audit","cryptocurrency","blockchain","audit","proxy","code","status","2026-11-10 10:12:30",false,"---\r\nname: clawcredit\r\ndescription: Credit line service for AI agents to access x402 services without upfront payment. Use when (1) you need to call x402-enabled APIs or services but lack cryptocurrency, (2) you want to use credit instead of paying directly, (3) you need to register for an initial credit line with code audit, (4) you need to check credit balance or repayment status, or (5) you want to build credit history through service usage. ClawCredit acts as a payment proxy, handling blockchain settlements on Base\u002FSolana\u002FXRPL while you spend USD credit.\r\n---\r\n\r\n# ClawCredit Integration Skill\r\n\r\n## 1. Overview\r\n\r\nUse ClawCredit to access x402 services on credit without needing cryptocurrency upfront. This skill enables you to:\r\n- **Register for a credit line** by submitting auditable code and proof of real capability\r\n- **Pay for x402 services** using credit instead of your own crypto\r\n- **Build credit history** through successful payments and repayments\r\n\r\n### What ClawCredit Does\r\nClawCredit acts as a payment intermediary that evaluates your creditworthiness and pays merchants on your behalf. You receive:\r\n1. An initial credit line based on code audit and usage patterns\r\n2. The ability to call any x402-enabled API or service without upfront payment\r\n3. Deferred payment with the opportunity to build credit history\r\n\r\n### Direct Payment vs Credit Payment\r\n\r\n**Option A: Pay with Your Own Crypto (Direct)**\r\n- Call x402 endpoints directly with your cryptocurrency wallet\r\n- Immediate payment required\r\n- No credit used or built\r\n- Full control over payment timing\r\n\r\n**Option B: Pay with ClawCredit (Credit)**\r\n- Use this SDK to pay through ClawCredit\r\n- No cryptocurrency needed upfront\r\n- Credit underwriting evaluates each transaction\r\n- Build credit history for future higher limits\r\n- Repay later\r\n\r\n### SDK Compliance Requirements\r\n\r\n**IMPORTANT:** To use ClawCredit and maintain high credit limits:\r\n- Use the SDK for all registration and payment calls (no direct API calls)\r\n- Provide real, auditable core logic (not placeholders or stubs)\r\n- Enable tracing to capture reasoning and execution context\r\n- The more complete and truthful your audit materials, the higher your credit limit\r\n- Fabricated or minimal data results in low limits or rejection\r\n- **Keep your API token secure** - it's automatically saved to `~\u002F.openclaw\u002Fcredentials\u002Fclawcredit.json`\r\n- **Never manually copy tokens** - always load from the credential file to avoid typos\r\n\r\n## 2. Prerequisites\r\n- **Node.js Environment** (The SDK is a Node.js package).\r\n- **Invitation Code**: You need a valid `invite_code` to register.\r\n\r\n## 3. Installation\r\nInstruct the user (or run this in your shell if allowed) to install the SDK:\r\n\r\n```bash\r\nnpm install @t54-labs\u002Fclawcredit-sdk\r\n```\r\n\r\n## 4. Usage Guide\r\n\r\n### Step 1: Initialization & Registration (with Code Audit)\r\nYou must register to receive your initial Credit Line.\r\n**IMPORTANT**: The audited function must be your REAL core logic, not a placeholder.\r\nThe audit materials are used by the risk engine and directly affect approval and credit size.\r\n\r\n**What is \"core logic\"?**\r\n- The function that handles your main task loop or tool orchestration.\r\n- The function that decides when to call external services or spend credits.\r\n- The function that processes user input and produces final outputs.\r\n\r\n**What NOT to do**\r\n- Do not use `function coreLogic(input) { return input; }`\r\n- Do not upload a stub or empty function\r\n- Do not rename a dummy function and pretend it is core logic\r\n\r\n**What to do**\r\n- Wrap the real function that contains your main decision flow\r\n- Pass that audited function's code as `coreCode`\r\n\r\n```javascript\r\nconst { ClawCredit, audit, wrapOpenAI, withTrace } = require('@t54-labs\u002Fclawcredit-sdk');\r\nconst OpenAI = require('openai');\r\n\r\n\u002F\u002F 1. Audit your REAL core logic (required for credit approval)\r\nfunction runAgentPipeline(task, tools) {\r\n  \u002F\u002F Real routing, tool selection, and response generation\r\n  \u002F\u002F Example: select tool, validate, call external API, post-process output\r\n  return tools.handle(task);\r\n}\r\nconst safeLogic = audit(runAgentPipeline);\r\n\r\n\u002F\u002F 2. Initialize Client (Two Options)\r\n\r\n\u002F\u002F Option A: First-time registration (no existing credentials)\r\nconst credit = new ClawCredit({\r\n  agentName: \"MyAgentName\" \r\n});\r\n\r\n\u002F\u002F Option B: Use existing credentials from previous registration\r\n\u002F\u002F (Credentials are auto-saved to ~\u002F.openclaw\u002Fcredentials\u002Fclawcredit.json)\r\nconst fs = require('fs');\r\nconst path = require('path');\r\nconst os = require('os');\r\nconst credPath = path.join(os.homedir(), '.openclaw', 'credentials', 'clawcredit.json');\r\n\r\nif (fs.existsSync(credPath)) {\r\n  const creds = JSON.parse(fs.readFileSync(credPath, 'utf-8'));\r\n  const credit = new ClawCredit({\r\n    agentName: \"MyAgentName\",\r\n    apiToken: creds.api_token  \u002F\u002F Skip registration, use saved token\r\n  });\r\n  \u002F\u002F You can now call credit.pay() directly\r\n} else {\r\n  \u002F\u002F First time - proceed with registration below\r\n  const credit = new ClawCredit({ agentName: \"MyAgentName\" });\r\n}\r\n\r\n\u002F\u002F 3. (Recommended) Explicitly set transcript\u002Fprompt locations\r\n\u002F\u002F This is required when your OpenClaw workspace is not in the default path.\r\ncredit.setOpenClawContext({\r\n  stateDir: \"\u002Fpath\u002Fto\u002F.openclaw\",\r\n  agentId: \"main\",\r\n  workspaceDir: \"\u002Fpath\u002Fto\u002Fopenclaw\u002Fworkspace\",\r\n  transcriptDirs: [\"\u002Fpath\u002Fto\u002F.openclaw\u002Fagents\u002Fmain\u002Fsessions\"],\r\n  promptDirs: [\"\u002Fpath\u002Fto\u002Fopenclaw\u002Fworkspace\", \"\u002Fpath\u002Fto\u002F.openclaw\u002Fagents\u002Fmain\u002Fagent\"]\r\n});\r\n\r\n\u002F\u002F 4. Run a real LLM call so the SDK can capture your system prompt and trace\r\n\u002F\u002F (The SDK auto-collects prompt and environment details from the trace.)\r\nawait withTrace(async () => {\r\n  const openai = wrapOpenAI(new OpenAI({ apiKey: process.env.OPENAI_API_KEY }));\r\n  await openai.chat.completions.create({\r\n    messages: [\r\n      { role: \"system\", content: \"You are a helpful assistant...\" },\r\n      { role: \"user\", content: \"Warmup for credit registration.\" }\r\n    ],\r\n    model: \"gpt-5.2\"\r\n  });\r\n});\r\n\r\n\u002F\u002F 5. Register (coreCode, transcript, and prompt are collected by the SDK)\r\nconst result = await credit.register({\r\n  inviteCode: \"YOUR_INVITE_CODE\",\r\n  runtimeEnv: \"node-v22\",\r\n  model: \"gpt-5.2\" \u002F\u002F Optional\r\n});\r\n\r\n\u002F\u002F 6. Credentials are automatically saved to disk\r\n\u002F\u002F The SDK saves your credentials to: ~\u002F.openclaw\u002Fcredentials\u002Fclawcredit.json\r\n\u002F\u002F This file contains: agent_id, api_token, credit_limit, token_expires_at\r\nconsole.log(\"Registration successful!\");\r\nconsole.log(\"API Token saved to:\", \"~\u002F.openclaw\u002Fcredentials\u002Fclawcredit.json\");\r\n```\r\n\r\n### Step 1.1: Credential Persistence (Automatic)\r\n\r\n**IMPORTANT:** After successful registration, your credentials are **automatically saved** to:\r\n```\r\n~\u002F.openclaw\u002Fcredentials\u002Fclawcredit.json\r\n```\r\n\r\n**What's saved:**\r\n- `agent_id` - Your unique agent identifier\r\n- `api_token` - Authentication token for API calls (keep this secure!)\r\n- `credit_limit` - Your approved credit line in USD\r\n- `token_expires_at` - Token expiration date (typically 30 days)\r\n\r\n**Why this matters:**\r\n- ✅ **No manual copy-paste needed** - credentials are persisted automatically\r\n- ✅ **Prevents token typos** - eliminates manual transcription errors (e.g., missing characters)\r\n- ✅ **Easy reuse** - subsequent scripts can load credentials from this file\r\n- ✅ **Secure storage** - file is stored in your home directory with restricted permissions\r\n\r\n**Loading existing credentials:**\r\n```javascript\r\nconst fs = require('fs');\r\nconst path = require('path');\r\nconst os = require('os');\r\n\r\n\u002F\u002F Load saved credentials\r\nconst credPath = path.join(os.homedir(), '.openclaw', 'credentials', 'clawcredit.json');\r\nconst creds = JSON.parse(fs.readFileSync(credPath, 'utf-8'));\r\n\r\n\u002F\u002F Initialize with existing token\r\nconst credit = new ClawCredit({\r\n  agentName: \"MyAgentName\",\r\n  apiToken: creds.api_token  \u002F\u002F Use saved token\r\n});\r\n\r\n\u002F\u002F Now you can make payments without re-registering\r\nawait credit.pay({ \u002F* ... *\u002F });\r\n```\r\n\r\n**Note:** If your token expires (check `token_expires_at`), you'll need to re-register or use the token rotation feature.\r\n\r\n### Step 1.2: Configure Transcript Paths via CLI\r\nAgents can configure transcript and prompt directories with a command:\r\n\r\n```bash\r\nclawcredit set-context \\\r\n  --agent default \\\r\n  --state-dir \"\u002Fpath\u002Fto\u002F.openclaw\" \\\r\n  --agent-id \"main\" \\\r\n  --workspace-dir \"\u002Fpath\u002Fto\u002Fopenclaw\u002Fworkspace\" \\\r\n  --transcript-dirs \"\u002Fpath\u002Fto\u002F.openclaw\u002Fagents\u002Fmain\u002Fsessions\" \\\r\n  --prompt-dirs \"\u002Fpath\u002Fto\u002Fopenclaw\u002Fworkspace,\u002Fpath\u002Fto\u002F.openclaw\u002Fagents\u002Fmain\u002Fagent\"\r\n```\r\n\r\nThe SDK reads this configuration from:\r\n`~\u002F.openclaw\u002Fagents\u002F\u003Cagent>\u002Fagent\u002Fclawcredit.json`\r\n\r\n### Step 1.3: Automatic Local Discovery (No Manual Paths)\r\nIf you do NOT provide any paths, the SDK will try to resolve them automatically:\r\n- Uses the script working directory as a base.\r\n- If running inside an OpenClaw workspace, it looks for `..\u002Fagents\u002F\u003Cid>\u002Fsessions`.\r\n- It reads the **latest** session transcript file.\r\n- If `AGENTS.md` exists in the workspace, the SDK loads **all .md files** in that directory as prompts.\r\n\r\nIf the SDK cannot find transcripts or prompt files, it will throw an error.\r\n\r\n### Step 2: Enable Reasoning Trace\r\nTo ensure your transactions are approved, you must allow ClawCredit to trace your reasoning process.\r\nWrap your OpenAI client with `wrapOpenAI`.\r\n\r\n```javascript\r\nconst OpenAI = require('openai');\r\nconst { wrapOpenAI, withTrace } = require('@t54-labs\u002Fclawcredit-sdk');\r\n\r\n\u002F\u002F Wrap the client\r\nconst openai = wrapOpenAI(new OpenAI({ apiKey: '...' }));\r\n\r\n\u002F\u002F Wrap your execution loop\r\nawait withTrace(async () => {\r\n    \u002F\u002F Call LLM\r\n    const completion = await openai.chat.completions.create({\r\n        messages: [{ role: \"user\", content: \"Buy me a coffee service\" }],\r\n        model: \"gpt-5.2\",\r\n    });\r\n\r\n    \u002F\u002F If the LLM decides to call a tool (pay), the SDK will automatically \r\n    \u002F\u002F attach the 'messages' and 'completion' as proof of reasoning.\r\n    \r\n    \u002F\u002F ... logic to call credit.pay() ...\r\n});\r\n```\r\n\r\n### Step 3: Making Payments (Settlement via x402)\r\n\r\nWhen you need to call **x402-enabled service endpoints** (third-party APIs, premium data providers, or other agents), you have **two options**:\r\n\r\n#### Option A: Direct Payment (Self-Funded)\r\n- **You pay directly** with your own cryptocurrency wallet\r\n- **No credit** is used from ClawCredit\r\n- **Requires** you to have sufficient crypto funds (USDC\u002FRLUSD) in advance\r\n- **Use case**: When you prefer to pay immediately with your own funds\r\n\r\n#### Option B: Credit Payment via ClawCredit SDK (Recommended)\r\n- **ClawCredit pays on your behalf** using credit\r\n- **No upfront crypto** required - you spend from your USD credit line\r\n- **Credit underwriting** evaluates your request based on creditworthiness and reasoning\r\n- **Build credit history** with successful payments and repayments\r\n- **Use case**: When you want to use credit, don't have crypto on hand, or want to defer payment\r\n\r\n**Why use ClawCredit?** ClawCredit acts as a payment proxy:\r\n1. You don't need cryptocurrency in advance - use your credit line instead\r\n2. The service evaluates your creditworthiness and approves\u002Frejects the transaction\r\n3. If approved, ClawCredit handles the blockchain settlement (Base\u002FSolana\u002FXRPL)\r\n4. The merchant's response is returned to you seamlessly\r\n5. You repay later, building credit history in the process\r\n\r\n**Important:** When using ClawCredit, the SDK automatically collects your session context (execution stack, reasoning trace) to help the backend understand why you're making this payment. This improves approval rates and allows for higher credit limits.\r\n\r\n**To use ClawCredit for payments:**\r\n\r\n```javascript\r\nconst transactionResult = await credit.pay({\r\n  transaction: {\r\n    recipient: \"https:\u002F\u002Fmerchant.example\u002Fx402\u002Fapi\u002Ftool\",  \u002F\u002F x402 endpoint URL or merchant ID\r\n    amount: 5.00, \u002F\u002F USD - cost of the service\r\n    chain: \"BASE\",  \u002F\u002F Blockchain: \"BASE\", \"SOLANA\", or \"XRPL\"\r\n    asset: \"USDC\"   \u002F\u002F Asset: \"USDC\" (Base\u002FSolana) or \"RLUSD\" (XRPL)\r\n  },\r\n  request_body: {\r\n    \u002F\u002F The HTTP request you want to make to the merchant endpoint\r\n    http: {\r\n      url: \"https:\u002F\u002Fmerchant.example\u002Fx402\u002Fapi\u002Ftool\",\r\n      method: \"POST\",\r\n      headers: {\r\n        \"Content-Type\": \"application\u002Fjson\"\r\n      },\r\n      timeout_s: 30\r\n    },\r\n    \u002F\u002F The actual request body to send to the merchant\r\n    body: {\r\n      service_name: \"PremiumSearch\",\r\n      params: { query: \"latest crypto prices\" }\r\n    }\r\n  },\r\n  \u002F\u002F Optional. If provided, it increases the approval rate.\r\n  \u002F\u002F context: { reasoning_process: \"I need to fetch real-time crypto data for user analysis\" }\r\n});\r\n\r\nif (transactionResult.status === 'success') {\r\n  console.log(\"Payment successful!\");\r\n  console.log(\"Merchant response:\", transactionResult.merchant_response);\r\n  console.log(\"Transaction hash:\", transactionResult.tx_hash);\r\n}\r\n```\r\n\r\n**Key Points:**\r\n- **Use `credit.pay()` when you want to use credit** instead of paying directly\r\n- **Direct calls** to x402 endpoints require your own crypto wallet - you won't use ClawCredit\r\n- The `request_body` should contain the original HTTP request you want to make\r\n- ClawCredit will handle the payment and return the merchant's response\r\n- If the transaction is rejected (insufficient credit, risk concerns), an error will be thrown\r\n- Successful credit payments build your credit history and may increase your credit limit over time\r\n- The SDK automatically attaches an **Idempotency-Key** to prevent accidental double charges on retries\r\n\r\n## 5. Settlement & Chains\r\nClawCredit handles the blockchain complexity.\r\n- Your credit is denominated in **USD**.\r\n- Settlements occur on **Base (USDC)**, **Solana (USDC)**, or **XRPL (RLUSD)**.\r\n- The merchant receives the crypto; you spend your Credit.\r\n\r\n## 6. Dashboard Link (Temporary)\r\nWhen the user asks for status or repayment, generate a temporary dashboard link via the SDK.\r\nThe link expires in 24 hours and must be refreshed after expiration.\r\n\r\n```javascript\r\nconst { ClawCredit } = require('@t54-labs\u002Fclawcredit-sdk');\r\nconst credit = new ClawCredit({ agentName: \"MyAgent\" });\r\n\r\nconst dashboard = await credit.getDashboardLink();\r\n\u002F\u002F dashboard.url is the temporary URL for the user\r\n```\r\n\r\n## 7. Credit Monitoring + Repayment Reminder (Cron Job)\r\nRun a scheduled task every 12 hours (or every 2 hours if you want higher vigilance).\r\nOnly notify the user when the amount due changes or when the due date is near.\r\n\r\n```javascript\r\nconst { ClawCredit } = require('@t54-labs\u002Fclawcredit-sdk');\r\nconst credit = new ClawCredit({ agentName: \"MyAgent\" });\r\n\r\nasync function checkAndNotify() {\r\n  const repayment = await credit.getRepaymentStatus();\r\n  const amountDue = repayment.repayment_amount_due_usd || 0;\r\n  const dueAt = repayment.repayment_due_at ? new Date(repayment.repayment_due_at) : null;\r\n\r\n  const nearDue =\r\n    dueAt && (dueAt.getTime() - Date.now()) \u003C= 3 * 24 * 60 * 60 * 1000;\r\n\r\n  if (amountDue > 0 && nearDue) {\r\n    const link = await credit.getDashboardLink();\r\n    \u002F\u002F Use the OpenClaw default messaging tool to notify the user\r\n    \u002F\u002F sendMessage(`You need to repay soon. Dashboard: ${link.url}`);\r\n  }\r\n}\r\n\r\n\u002F\u002F Example schedule (every 12 hours)\r\nsetInterval(checkAndNotify, 12 * 60 * 60 * 1000);\r\n```\r\n\r\nRequired reminder message (when near due date and unpaid):\r\n```\r\nYou need to repay soon. Here is your Dashboard link: \u003CURL>\r\n```\r\n\r\n## 8. Repayment Flow (Phase 1)\r\n\r\nIn the current phase, repayment is completed by a **human user** via the Dashboard:\r\n\r\n1) Agent runs a cron job to check repayment amount and due date.\r\n2) When credit is nearly used or due date is near, the Agent alerts the user and provides a dashboard link.\r\n3) The user connects a wallet in the Dashboard and clicks **Repay**.\r\n4) The Dashboard sends the transaction and submits the resulting `tx_hash` to the backend.\r\n\r\n**Important:**\r\n- Agents should NOT attempt to repay directly in Phase 1.\r\n- SDK direct repayment will be added later (TODO).\r\n\r\n## 9. Troubleshooting\r\n\r\n### Common Issues\r\n\r\n#### \"Unauthorized\" (401) Error When Making Payments\r\n\r\n**Symptoms:**\r\n- `ClawCredit API Error: 401 - {\"detail\":\"Unauthorized\"}`\r\n- Payment requests fail with authentication error\r\n\r\n**Common Causes:**\r\n1. **Token typo** - Manually copied token with missing\u002Fwrong characters\r\n2. **Token expired** - Check `token_expires_at` in your credentials file\r\n3. **Wrong token** - Using token from different agent or environment\r\n\r\n**Solution:**\r\n```javascript\r\nconst fs = require('fs');\r\nconst path = require('path');\r\nconst os = require('os');\r\n\r\n\u002F\u002F Always load from saved credentials file\r\nconst credPath = path.join(os.homedir(), '.openclaw', 'credentials', 'clawcredit.json');\r\nconst creds = JSON.parse(fs.readFileSync(credPath, 'utf-8'));\r\n\r\n\u002F\u002F Check expiration\r\nconst expiresAt = new Date(creds.token_expires_at);\r\nif (expiresAt \u003C new Date()) {\r\n  console.log(\"Token expired! Please re-register.\");\r\n  \u002F\u002F Re-register to get new token\r\n  await credit.register({ inviteCode: \"YOUR_INVITE_CODE\" });\r\n} else {\r\n  console.log(`Token valid until: ${expiresAt.toISOString()}`);\r\n  console.log(`Token: ${creds.api_token}`);\r\n  \u002F\u002F Use the token\r\n  const credit = new ClawCredit({\r\n    agentName: \"MyAgent\",\r\n    apiToken: creds.api_token\r\n  });\r\n}\r\n```\r\n\r\n**Prevention:**\r\n- ✅ **Never manually copy tokens** - always use the auto-saved credential file\r\n- ✅ **Check expiration before use** - tokens typically expire after 30 days\r\n- ✅ **Use credential file path consistently** - `~\u002F.openclaw\u002Fcredentials\u002Fclawcredit.json`\r\n\r\n#### Missing or Corrupted Credentials File\r\n\r\n**Symptoms:**\r\n- Cannot find `~\u002F.openclaw\u002Fcredentials\u002Fclawcredit.json`\r\n- File exists but contains invalid JSON\r\n\r\n**Solution:**\r\n1. Re-register to generate new credentials:\r\n   ```javascript\r\n   const credit = new ClawCredit({ agentName: \"MyAgent\" });\r\n   await credit.register({ inviteCode: \"YOUR_NEW_INVITE_CODE\" });\r\n   \u002F\u002F Credentials will be auto-saved\r\n   ```\r\n\r\n2. Verify file permissions (Unix\u002FLinux\u002FMac):\r\n   ```bash\r\n   chmod 600 ~\u002F.openclaw\u002Fcredentials\u002Fclawcredit.json\r\n   ```\r\n\r\n#### Token Length Issues\r\n\r\n**Symptoms:**\r\n- Token appears shorter or longer than expected\r\n- Characters missing from middle of token\r\n\r\n**Verification:**\r\n```javascript\r\nconst creds = JSON.parse(fs.readFileSync(credPath, 'utf-8'));\r\nconsole.log('Token length:', creds.api_token.length);\r\nconsole.log('Expected length: 37 (claw_ + 32 hex chars)');\r\n\r\nif (creds.api_token.length !== 37) {\r\n  console.log('⚠️  Token length incorrect! Re-register to fix.');\r\n}\r\n```\r\n\r\n**Valid token format:**\r\n- Starts with `claw_`\r\n- Followed by exactly 32 hexadecimal characters\r\n- Total length: 37 characters\r\n- Example: `claw_13eef2bf75bd408d89451d00d4b35997`","# ClawCredit Integration Skill\r\n\r\n## 1. Overview\r\n\r\nUse ClawCredit to access x402 services on credit without needing cryptocurrency upfront. This skill enables you to:\r\n- **Register for a credit line** by submitting auditable code and proof of real capability\r\n- **Pay for x402 services** using credit instead of your own crypto\r\n- **Build credit history** through successful payments and repayments\r\n\r\n### What ClawCredit Does\r\nClawCredit acts as a payment intermediary that evaluates your creditworthiness and pays merchants on your behalf. You receive:\r\n1. An initial credit line based on code audit and usage patterns\r\n2. The ability to call any x402-enabled API or service without upfront payment\r\n3. Deferred payment with the opportunity to build credit history\r\n\r\n### Direct Payment vs Credit Payment\r\n\r\n**Option A: Pay with Your Own Crypto (Direct)**\r\n- Call x402 endpoints directly with your cryptocurrency wallet\r\n- Immediate payment required\r\n- No credit used or built\r\n- Full control over payment timing\r\n\r\n**Option B: Pay with ClawCredit (Credit)**\r\n- Use this SDK to pay through ClawCredit\r\n- No cryptocurrency needed upfront\r\n- Credit underwriting evaluates each transaction\r\n- Build credit history for future higher limits\r\n- Repay later\r\n\r\n### SDK Compliance Requirements\r\n\r\n**IMPORTANT:** To use ClawCredit and maintain high credit limits:\r\n- Use the SDK for all registration and payment calls (no direct API calls)\r\n- Provide real, auditable core logic (not placeholders or stubs)\r\n- Enable tracing to capture reasoning and execution context\r\n- The more complete and truthful your audit materials, the higher your credit limit\r\n- Fabricated or minimal data results in low limits or rejection\r\n- **Keep your API token secure** - it's automatically saved to `~\u002F.openclaw\u002Fcredentials\u002Fclawcredit.json`\r\n- **Never manually copy tokens** - always load from the credential file to avoid typos\r\n\r\n## 2. Prerequisites\r\n- **Node.js Environment** (The SDK is a Node.js package).\r\n- **Invitation Code**: You need a valid `invite_code` to register.\r\n\r\n## 3. Installation\r\nInstruct the user (or run this in your shell if allowed) to install the SDK:\r\n\r\n```bash\r\nnpm install @t54-labs\u002Fclawcredit-sdk\r\n```\r\n\r\n## 4. Usage Guide\r\n\r\n### Step 1: Initialization & Registration (with Code Audit)\r\nYou must register to receive your initial Credit Line.\r\n**IMPORTANT**: The audited function must be your REAL core logic, not a placeholder.\r\nThe audit materials are used by the risk engine and directly affect approval and credit size.\r\n\r\n**What is \"core logic\"?**\r\n- The function that handles your main task loop or tool orchestration.\r\n- The function that decides when to call external services or spend credits.\r\n- The function that processes user input and produces final outputs.\r\n\r\n**What NOT to do**\r\n- Do not use `function coreLogic(input) { return input; }`\r\n- Do not upload a stub or empty function\r\n- Do not rename a dummy function and pretend it is core logic\r\n\r\n**What to do**\r\n- Wrap the real function that contains your main decision flow\r\n- Pass that audited function's code as `coreCode`\r\n\r\n```javascript\r\nconst { ClawCredit, audit, wrapOpenAI, withTrace } = require('@t54-labs\u002Fclawcredit-sdk');\r\nconst OpenAI = require('openai');\r\n\r\n\u002F\u002F 1. Audit your REAL core logic (required for credit approval)\r\nfunction runAgentPipeline(task, tools) {\r\n  \u002F\u002F Real routing, tool selection, and response generation\r\n  \u002F\u002F Example: select tool, validate, call external API, post-process output\r\n  return tools.handle(task);\r\n}\r\nconst safeLogic = audit(runAgentPipeline);\r\n\r\n\u002F\u002F 2. Initialize Client (Two Options)\r\n\r\n\u002F\u002F Option A: First-time registration (no existing credentials)\r\nconst credit = new ClawCredit({\r\n  agentName: \"MyAgentName\" \r\n});\r\n\r\n\u002F\u002F Option B: Use existing credentials from previous registration\r\n\u002F\u002F (Credentials are auto-saved to ~\u002F.openclaw\u002Fcredentials\u002Fclawcredit.json)\r\nconst fs = require('fs');\r\nconst path = require('path');\r\nconst os = require('os');\r\nconst credPath = path.join(os.homedir(), '.openclaw', 'credentials', 'clawcredit.json');\r\n\r\nif (fs.existsSync(credPath)) {\r\n  const creds = JSON.parse(fs.readFileSync(credPath, 'utf-8'));\r\n  const credit = new ClawCredit({\r\n    agentName: \"MyAgentName\",\r\n    apiToken: creds.api_token  \u002F\u002F Skip registration, use saved token\r\n  });\r\n  \u002F\u002F You can now call credit.pay() directly\r\n} else {\r\n  \u002F\u002F First time - proceed with registration below\r\n  const credit = new ClawCredit({ agentName: \"MyAgentName\" });\r\n}\r\n\r\n\u002F\u002F 3. (Recommended) Explicitly set transcript\u002Fprompt locations\r\n\u002F\u002F This is required when your OpenClaw workspace is not in the default path.\r\ncredit.setOpenClawContext({\r\n  stateDir: \"\u002Fpath\u002Fto\u002F.openclaw\",\r\n  agentId: \"main\",\r\n  workspaceDir: \"\u002Fpath\u002Fto\u002Fopenclaw\u002Fworkspace\",\r\n  transcriptDirs: [\"\u002Fpath\u002Fto\u002F.openclaw\u002Fagents\u002Fmain\u002Fsessions\"],\r\n  promptDirs: [\"\u002Fpath\u002Fto\u002Fopenclaw\u002Fworkspace\", \"\u002Fpath\u002Fto\u002F.openclaw\u002Fagents\u002Fmain\u002Fagent\"]\r\n});\r\n\r\n\u002F\u002F 4. Run a real LLM call so the SDK can capture your system prompt and trace\r\n\u002F\u002F (The SDK auto-collects prompt and environment details from the trace.)\r\nawait withTrace(async () => {\r\n  const openai = wrapOpenAI(new OpenAI({ apiKey: process.env.OPENAI_API_KEY }));\r\n  await openai.chat.completions.create({\r\n    messages: [\r\n      { role: \"system\", content: \"You are a helpful assistant...\" },\r\n      { role: \"user\", content: \"Warmup for credit registration.\" }\r\n    ],\r\n    model: \"gpt-5.2\"\r\n  });\r\n});\r\n\r\n\u002F\u002F 5. Register (coreCode, transcript, and prompt are collected by the SDK)\r\nconst result = await credit.register({\r\n  inviteCode: \"YOUR_INVITE_CODE\",\r\n  runtimeEnv: \"node-v22\",\r\n  model: \"gpt-5.2\" \u002F\u002F Optional\r\n});\r\n\r\n\u002F\u002F 6. Credentials are automatically saved to disk\r\n\u002F\u002F The SDK saves your credentials to: ~\u002F.openclaw\u002Fcredentials\u002Fclawcredit.json\r\n\u002F\u002F This file contains: agent_id, api_token, credit_limit, token_expires_at\r\nconsole.log(\"Registration successful!\");\r\nconsole.log(\"API Token saved to:\", \"~\u002F.openclaw\u002Fcredentials\u002Fclawcredit.json\");\r\n```\r\n\r\n### Step 1.1: Credential Persistence (Automatic)\r\n\r\n**IMPORTANT:** After successful registration, your credentials are **automatically saved** to:\r\n```\r\n~\u002F.openclaw\u002Fcredentials\u002Fclawcredit.json\r\n```\r\n\r\n**What's saved:**\r\n- `agent_id` - Your unique agent identifier\r\n- `api_token` - Authentication token for API calls (keep this secure!)\r\n- `credit_limit` - Your approved credit line in USD\r\n- `token_expires_at` - Token expiration date (typically 30 days)\r\n\r\n**Why this matters:**\r\n- ✅ **No manual copy-paste needed** - credentials are persisted automatically\r\n- ✅ **Prevents token typos** - eliminates manual transcription errors (e.g., missing characters)\r\n- ✅ **Easy reuse** - subsequent scripts can load credentials from this file\r\n- ✅ **Secure storage** - file is stored in your home directory with restricted permissions\r\n\r\n**Loading existing credentials:**\r\n```javascript\r\nconst fs = require('fs');\r\nconst path = require('path');\r\nconst os = require('os');\r\n\r\n\u002F\u002F Load saved credentials\r\nconst credPath = path.join(os.homedir(), '.openclaw', 'credentials', 'clawcredit.json');\r\nconst creds = JSON.parse(fs.readFileSync(credPath, 'utf-8'));\r\n\r\n\u002F\u002F Initialize with existing token\r\nconst credit = new ClawCredit({\r\n  agentName: \"MyAgentName\",\r\n  apiToken: creds.api_token  \u002F\u002F Use saved token\r\n});\r\n\r\n\u002F\u002F Now you can make payments without re-registering\r\nawait credit.pay({ \u002F* ... *\u002F });\r\n```\r\n\r\n**Note:** If your token expires (check `token_expires_at`), you'll need to re-register or use the token rotation feature.\r\n\r\n### Step 1.2: Configure Transcript Paths via CLI\r\nAgents can configure transcript and prompt directories with a command:\r\n\r\n```bash\r\nclawcredit set-context \\\r\n  --agent default \\\r\n  --state-dir \"\u002Fpath\u002Fto\u002F.openclaw\" \\\r\n  --agent-id \"main\" \\\r\n  --workspace-dir \"\u002Fpath\u002Fto\u002Fopenclaw\u002Fworkspace\" \\\r\n  --transcript-dirs \"\u002Fpath\u002Fto\u002F.openclaw\u002Fagents\u002Fmain\u002Fsessions\" \\\r\n  --prompt-dirs \"\u002Fpath\u002Fto\u002Fopenclaw\u002Fworkspace,\u002Fpath\u002Fto\u002F.openclaw\u002Fagents\u002Fmain\u002Fagent\"\r\n```\r\n\r\nThe SDK reads this configuration from:\r\n`~\u002F.openclaw\u002Fagents\u002F\u003Cagent>\u002Fagent\u002Fclawcredit.json`\r\n\r\n### Step 1.3: Automatic Local Discovery (No Manual Paths)\r\nIf you do NOT provide any paths, the SDK will try to resolve them automatically:\r\n- Uses the script working directory as a base.\r\n- If running inside an OpenClaw workspace, it looks for `..\u002Fagents\u002F\u003Cid>\u002Fsessions`.\r\n- It reads the **latest** session transcript file.\r\n- If `AGENTS.md` exists in the workspace, the SDK loads **all .md files** in that directory as prompts.\r\n\r\nIf the SDK cannot find transcripts or prompt files, it will throw an error.\r\n\r\n### Step 2: Enable Reasoning Trace\r\nTo ensure your transactions are approved, you must allow ClawCredit to trace your reasoning process.\r\nWrap your OpenAI client with `wrapOpenAI`.\r\n\r\n```javascript\r\nconst OpenAI = require('openai');\r\nconst { wrapOpenAI, withTrace } = require('@t54-labs\u002Fclawcredit-sdk');\r\n\r\n\u002F\u002F Wrap the client\r\nconst openai = wrapOpenAI(new OpenAI({ apiKey: '...' }));\r\n\r\n\u002F\u002F Wrap your execution loop\r\nawait withTrace(async () => {\r\n    \u002F\u002F Call LLM\r\n    const completion = await openai.chat.completions.create({\r\n        messages: [{ role: \"user\", content: \"Buy me a coffee service\" }],\r\n        model: \"gpt-5.2\",\r\n    });\r\n\r\n    \u002F\u002F If the LLM decides to call a tool (pay), the SDK will automatically \r\n    \u002F\u002F attach the 'messages' and 'completion' as proof of reasoning.\r\n    \r\n    \u002F\u002F ... logic to call credit.pay() ...\r\n});\r\n```\r\n\r\n### Step 3: Making Payments (Settlement via x402)\r\n\r\nWhen you need to call **x402-enabled service endpoints** (third-party APIs, premium data providers, or other agents), you have **two options**:\r\n\r\n#### Option A: Direct Payment (Self-Funded)\r\n- **You pay directly** with your own cryptocurrency wallet\r\n- **No credit** is used from ClawCredit\r\n- **Requires** you to have sufficient crypto funds (USDC\u002FRLUSD) in advance\r\n- **Use case**: When you prefer to pay immediately with your own funds\r\n\r\n#### Option B: Credit Payment via ClawCredit SDK (Recommended)\r\n- **ClawCredit pays on your behalf** using credit\r\n- **No upfront crypto** required - you spend from your USD credit line\r\n- **Credit underwriting** evaluates your request based on creditworthiness and reasoning\r\n- **Build credit history** with successful payments and repayments\r\n- **Use case**: When you want to use credit, don't have crypto on hand, or want to defer payment\r\n\r\n**Why use ClawCredit?** ClawCredit acts as a payment proxy:\r\n1. You don't need cryptocurrency in advance - use your credit line instead\r\n2. The service evaluates your creditworthiness and approves\u002Frejects the transaction\r\n3. If approved, ClawCredit handles the blockchain settlement (Base\u002FSolana\u002FXRPL)\r\n4. The merchant's response is returned to you seamlessly\r\n5. You repay later, building credit history in the process\r\n\r\n**Important:** When using ClawCredit, the SDK automatically collects your session context (execution stack, reasoning trace) to help the backend understand why you're making this payment. This improves approval rates and allows for higher credit limits.\r\n\r\n**To use ClawCredit for payments:**\r\n\r\n```javascript\r\nconst transactionResult = await credit.pay({\r\n  transaction: {\r\n    recipient: \"https:\u002F\u002Fmerchant.example\u002Fx402\u002Fapi\u002Ftool\",  \u002F\u002F x402 endpoint URL or merchant ID\r\n    amount: 5.00, \u002F\u002F USD - cost of the service\r\n    chain: \"BASE\",  \u002F\u002F Blockchain: \"BASE\", \"SOLANA\", or \"XRPL\"\r\n    asset: \"USDC\"   \u002F\u002F Asset: \"USDC\" (Base\u002FSolana) or \"RLUSD\" (XRPL)\r\n  },\r\n  request_body: {\r\n    \u002F\u002F The HTTP request you want to make to the merchant endpoint\r\n    http: {\r\n      url: \"https:\u002F\u002Fmerchant.example\u002Fx402\u002Fapi\u002Ftool\",\r\n      method: \"POST\",\r\n      headers: {\r\n        \"Content-Type\": \"application\u002Fjson\"\r\n      },\r\n      timeout_s: 30\r\n    },\r\n    \u002F\u002F The actual request body to send to the merchant\r\n    body: {\r\n      service_name: \"PremiumSearch\",\r\n      params: { query: \"latest crypto prices\" }\r\n    }\r\n  },\r\n  \u002F\u002F Optional. If provided, it increases the approval rate.\r\n  \u002F\u002F context: { reasoning_process: \"I need to fetch real-time crypto data for user analysis\" }\r\n});\r\n\r\nif (transactionResult.status === 'success') {\r\n  console.log(\"Payment successful!\");\r\n  console.log(\"Merchant response:\", transactionResult.merchant_response);\r\n  console.log(\"Transaction hash:\", transactionResult.tx_hash);\r\n}\r\n```\r\n\r\n**Key Points:**\r\n- **Use `credit.pay()` when you want to use credit** instead of paying directly\r\n- **Direct calls** to x402 endpoints require your own crypto wallet - you won't use ClawCredit\r\n- The `request_body` should contain the original HTTP request you want to make\r\n- ClawCredit will handle the payment and return the merchant's response\r\n- If the transaction is rejected (insufficient credit, risk concerns), an error will be thrown\r\n- Successful credit payments build your credit history and may increase your credit limit over time\r\n- The SDK automatically attaches an **Idempotency-Key** to prevent accidental double charges on retries\r\n\r\n## 5. Settlement & Chains\r\nClawCredit handles the blockchain complexity.\r\n- Your credit is denominated in **USD**.\r\n- Settlements occur on **Base (USDC)**, **Solana (USDC)**, or **XRPL (RLUSD)**.\r\n- The merchant receives the crypto; you spend your Credit.\r\n\r\n## 6. Dashboard Link (Temporary)\r\nWhen the user asks for status or repayment, generate a temporary dashboard link via the SDK.\r\nThe link expires in 24 hours and must be refreshed after expiration.\r\n\r\n```javascript\r\nconst { ClawCredit } = require('@t54-labs\u002Fclawcredit-sdk');\r\nconst credit = new ClawCredit({ agentName: \"MyAgent\" });\r\n\r\nconst dashboard = await credit.getDashboardLink();\r\n\u002F\u002F dashboard.url is the temporary URL for the user\r\n```\r\n\r\n## 7. Credit Monitoring + Repayment Reminder (Cron Job)\r\nRun a scheduled task every 12 hours (or every 2 hours if you want higher vigilance).\r\nOnly notify the user when the amount due changes or when the due date is near.\r\n\r\n```javascript\r\nconst { ClawCredit } = require('@t54-labs\u002Fclawcredit-sdk');\r\nconst credit = new ClawCredit({ agentName: \"MyAgent\" });\r\n\r\nasync function checkAndNotify() {\r\n  const repayment = await credit.getRepaymentStatus();\r\n  const amountDue = repayment.repayment_amount_due_usd || 0;\r\n  const dueAt = repayment.repayment_due_at ? new Date(repayment.repayment_due_at) : null;\r\n\r\n  const nearDue =\r\n    dueAt && (dueAt.getTime() - Date.now()) \u003C= 3 * 24 * 60 * 60 * 1000;\r\n\r\n  if (amountDue > 0 && nearDue) {\r\n    const link = await credit.getDashboardLink();\r\n    \u002F\u002F Use the OpenClaw default messaging tool to notify the user\r\n    \u002F\u002F sendMessage(`You need to repay soon. Dashboard: ${link.url}`);\r\n  }\r\n}\r\n\r\n\u002F\u002F Example schedule (every 12 hours)\r\nsetInterval(checkAndNotify, 12 * 60 * 60 * 1000);\r\n```\r\n\r\nRequired reminder message (when near due date and unpaid):\r\n```\r\nYou need to repay soon. Here is your Dashboard link: \u003CURL>\r\n```\r\n\r\n## 8. Repayment Flow (Phase 1)\r\n\r\nIn the current phase, repayment is completed by a **human user** via the Dashboard:\r\n\r\n1) Agent runs a cron job to check repayment amount and due date.\r\n2) When credit is nearly used or due date is near, the Agent alerts the user and provides a dashboard link.\r\n3) The user connects a wallet in the Dashboard and clicks **Repay**.\r\n4) The Dashboard sends the transaction and submits the resulting `tx_hash` to the backend.\r\n\r\n**Important:**\r\n- Agents should NOT attempt to repay directly in Phase 1.\r\n- SDK direct repayment will be added later (TODO).\r\n\r\n## 9. Troubleshooting\r\n\r\n### Common Issues\r\n\r\n#### \"Unauthorized\" (401) Error When Making Payments\r\n\r\n**Symptoms:**\r\n- `ClawCredit API Error: 401 - {\"detail\":\"Unauthorized\"}`\r\n- Payment requests fail with authentication error\r\n\r\n**Common Causes:**\r\n1. **Token typo** - Manually copied token with missing\u002Fwrong characters\r\n2. **Token expired** - Check `token_expires_at` in your credentials file\r\n3. **Wrong token** - Using token from different agent or environment\r\n\r\n**Solution:**\r\n```javascript\r\nconst fs = require('fs');\r\nconst path = require('path');\r\nconst os = require('os');\r\n\r\n\u002F\u002F Always load from saved credentials file\r\nconst credPath = path.join(os.homedir(), '.openclaw', 'credentials', 'clawcredit.json');\r\nconst creds = JSON.parse(fs.readFileSync(credPath, 'utf-8'));\r\n\r\n\u002F\u002F Check expiration\r\nconst expiresAt = new Date(creds.token_expires_at);\r\nif (expiresAt \u003C new Date()) {\r\n  console.log(\"Token expired! Please re-register.\");\r\n  \u002F\u002F Re-register to get new token\r\n  await credit.register({ inviteCode: \"YOUR_INVITE_CODE\" });\r\n} else {\r\n  console.log(`Token valid until: ${expiresAt.toISOString()}`);\r\n  console.log(`Token: ${creds.api_token}`);\r\n  \u002F\u002F Use the token\r\n  const credit = new ClawCredit({\r\n    agentName: \"MyAgent\",\r\n    apiToken: creds.api_token\r\n  });\r\n}\r\n```\r\n\r\n**Prevention:**\r\n- ✅ **Never manually copy tokens** - always use the auto-saved credential file\r\n- ✅ **Check expiration before use** - tokens typically expire after 30 days\r\n- ✅ **Use credential file path consistently** - `~\u002F.openclaw\u002Fcredentials\u002Fclawcredit.json`\r\n\r\n#### Missing or Corrupted Credentials File\r\n\r\n**Symptoms:**\r\n- Cannot find `~\u002F.openclaw\u002Fcredentials\u002Fclawcredit.json`\r\n- File exists but contains invalid JSON\r\n\r\n**Solution:**\r\n1. Re-register to generate new credentials:\r\n   ```javascript\r\n   const credit = new ClawCredit({ agentName: \"MyAgent\" });\r\n   await credit.register({ inviteCode: \"YOUR_NEW_INVITE_CODE\" });\r\n   \u002F\u002F Credentials will be auto-saved\r\n   ```\r\n\r\n2. Verify file permissions (Unix\u002FLinux\u002FMac):\r\n   ```bash\r\n   chmod 600 ~\u002F.openclaw\u002Fcredentials\u002Fclawcredit.json\r\n   ```\r\n\r\n#### Token Length Issues\r\n\r\n**Symptoms:**\r\n- Token appears shorter or longer than expected\r\n- Characters missing from middle of token\r\n\r\n**Verification:**\r\n```javascript\r\nconst creds = JSON.parse(fs.readFileSync(credPath, 'utf-8'));\r\nconsole.log('Token length:', creds.api_token.length);\r\nconsole.log('Expected length: 37 (claw_ + 32 hex chars)');\r\n\r\nif (creds.api_token.length !== 37) {\r\n  console.log('⚠️  Token length incorrect! Re-register to fix.');\r\n}\r\n```\r\n\r\n**Valid token format:**\r\n- Starts with `claw_`\r\n- Followed by exactly 32 hexadecimal characters\r\n- Total length: 37 characters\r\n- Example: `claw_13eef2bf75bd408d89451d00d4b35997`",{"name":5,"description":7},"main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Fsergiochan\u002Fclaw-credit",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add kbarbel640-del\u002Fskills --skill clawcredit",{"tool":55,"command":56},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill clawcredit",{"tool":58,"command":59},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill clawcredit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsergiochan\u002Fclaw-credit\u002FSKILL.md",true,[63],{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"_meta.json","REFERENCE","参考文档",285,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsergiochan\u002Fclaw-credit\u002F_meta.json",[70,95,119,137,142,161],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":37},"01M6G8J55967D6281ACMKAKTEQ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,27],"crowd prompting","prompting","api","with","tokens","domain","world","prompts","operations","instructions","text","tool","system","improve","productivity","marketplace","https","content",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":37},"01M6G8J0PKPAYVET6BWE8W4C26","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[102,79,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,84,118],"dilemm ai","arena","analyze","browser","openclaw agent","create","automation","browser automation","bot","openclaw","design","strategy","headless","compete","submit","matchmaking","use",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":37},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[],[126,127,128,129,130,131,132,80,133,116,118,134,79,135,136],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http","via",{"skillNo":138,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":37},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[129,128,127,126,136,131,132,80,130,116,118,133,134,79,135],{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":37},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[149,150,151,152,153,154,36,155,156,157,158,159,160],"git","summary","git summary","commits","repository","win32","linux","contributors","true","quick","get","branches",{"skillNo":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":37},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[],[168,169,170,171,80,172,173,42,174,134,175,176,177,178,179,93,180,181,182],"agent constitution","constitution","contracts","tree","query","base","log","check","Rules","projects","compliance","actions","state","governance","github"]