[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F86Q01FHAQJ0SKGSYF1T4V":3,"skill-same:01M6F86Q01FHAQJ0SKGSYF1T4V":77},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":57,"repositoryHtmlUrl":58,"repositoryHomepageUrl":59,"ownerHtmlUrl":60,"ownerBlogUrl":6,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M6F86Q01FHAQJ0SKGSYF1T4V","clade-local-dev-loop",null,"Set up a fast local development loop for building with the Anthropic API —\nUse when working with local-dev-loop patterns.\nhot reload, cost-saving tips, and test patterns.\nTrigger with \"anthropic dev setup\", \"claude local development\",\n\"anthropic test locally\", \"claude dev workflow\".","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fclade-local-dev-loop\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"loop","clade local dev loop","local","dev","local dev","code","workflow","SET","api","dev workflow","Bash","testing","read","write","edit","up","patterns","dev setup","io","local development","2026-11-10 10:12:30",false,"---\nname: clade-local-dev-loop\ndescription: |\n  Set up a fast local development loop for building with the Anthropic API —\n  Use when working with local-dev-loop patterns.\n  hot reload, cost-saving tips, and test patterns.\n  Trigger with \"anthropic dev setup\", \"claude local development\",\n  \"anthropic test locally\", \"claude dev workflow\".\nallowed-tools: Read, Write, Edit, Bash(npm:*), Bash(pip:*)\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code\ntags: [saas, anthropic, claude, development, testing]\n---\n\n# Anthropic Local Dev Loop\n\n## Overview\nSet up a fast, cheap development workflow for building with Claude.\n\n## Prerequisites\n- Node.js 18+ or Python 3.10+\n- `ANTHROPIC_API_KEY` environment variable set\n- npm or pip package manager\n\n## Instructions\n\n### Step 1: Project Setup\n```bash\nmkdir my-claude-app && cd my-claude-app\nnpm init -y\nnpm install @claude-ai\u002Fsdk dotenv tsx\n\n# Create .env (never commit this)\necho 'ANTHROPIC_API_KEY=sk-ant-api03-...' > .env\necho '.env' >> .gitignore\n```\n\n### Step 2: Create a Test Script\n```typescript\n\u002F\u002F src\u002Ftest-prompt.ts\nimport 'dotenv\u002Fconfig';\nimport Anthropic from '@claude-ai\u002Fsdk';\n\nconst client = new Anthropic();\n\nasync function main() {\n  const message = await client.messages.create({\n    model: 'claude-haiku-4-5-20251001', \u002F\u002F Use Haiku for dev — 20x cheaper than Opus\n    max_tokens: 512,\n    messages: [{ role: 'user', content: 'Summarize this in one sentence: ...' }],\n  });\n\n  console.log(message.content[0].text);\n  console.log(`Cost: ~$${((message.usage.input_tokens * 0.80 + message.usage.output_tokens * 4) \u002F 1_000_000).toFixed(4)}`);\n}\n\nmain();\n```\n\n### Step 3: Run with Hot Reload\n```bash\n# Watch mode — re-runs on file changes\nnpx tsx watch src\u002Ftest-prompt.ts\n\n# Or one-shot\nnpx tsx src\u002Ftest-prompt.ts\n```\n\n## Cost-Saving Dev Tips\n| Tip | Savings |\n|-----|---------|\n| Use `claude-haiku-4-5-20251001` during development | 20x cheaper than Opus |\n| Set `max_tokens: 256` for testing | Fewer output tokens billed |\n| Cache your system prompt with prompt caching beta | 90% off cached input tokens |\n| Use Message Batches for bulk testing (50% off) | Half price, 24h turnaround |\n| Log responses locally so you don't re-call for the same input | 100% savings on repeats |\n\n## Mock Client for Unit Tests\n```typescript\n\u002F\u002F tests\u002Fmock-anthropic.ts\nexport function createMockClient() {\n  return {\n    messages: {\n      create: async (params: any) => ({\n        id: 'msg_test',\n        type: 'message',\n        role: 'assistant',\n        model: params.model,\n        content: [{ type: 'text', text: 'Mock response for testing' }],\n        stop_reason: 'end_turn',\n        usage: { input_tokens: 10, output_tokens: 5 },\n      }),\n    },\n  };\n}\n\n\u002F\u002F In your test:\nimport { createMockClient } from '.\u002Fmock-anthropic';\nconst client = process.env.MOCK ? createMockClient() : new Anthropic();\n```\n\n## Python Dev Loop\n```bash\npip install anthropic python-dotenv ipython\n\n# Interactive exploration\nANTHROPIC_API_KEY=sk-ant-... ipython\n>>> import anthropic\n>>> c = anthropic.Anthropic()\n>>> r = c.messages.create(model=\"claude-haiku-4-5-20251001\", max_tokens=100, messages=[{\"role\":\"user\",\"content\":\"hello\"}])\n>>> r.content[0].text\n```\n\n## Output\n- Project scaffolded with SDK, dotenv, and tsx for hot reload\n- Test script running against Claude Haiku (cheapest model)\n- Mock client available for unit tests without API calls\n- Cost estimate printed per request\n\n## Error Handling\n| Issue | Fix |\n|-------|-----|\n| `ANTHROPIC_API_KEY` not loading | Make sure `dotenv\u002Fconfig` is imported first |\n| Slow iteration | Use Haiku, reduce max_tokens |\n| High dev costs | Log responses, use mocks for unit tests |\n\n## Examples\nSee Step 1 (project setup), Step 2 (test script with cost tracking), Step 3 (hot reload), Mock Client section, and Python Dev Loop section above.\n\n## Resources\n- [Quickstart Guide](https:\u002F\u002Fdocs.anthropic.com\u002Fen\u002Fdocs\u002Finitial-setup)\n- [TypeScript SDK](https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-sdk-typescript)\n\n## Next Steps\nSee `clade-sdk-patterns` for production client configuration.\n\n","# Anthropic Local Dev Loop\n\n## Overview\nSet up a fast, cheap development workflow for building with Claude.\n\n## Prerequisites\n- Node.js 18+ or Python 3.10+\n- `ANTHROPIC_API_KEY` environment variable set\n- npm or pip package manager\n\n## Instructions\n\n### Step 1: Project Setup\n```bash\nmkdir my-claude-app && cd my-claude-app\nnpm init -y\nnpm install @claude-ai\u002Fsdk dotenv tsx\n\n# Create .env (never commit this)\necho 'ANTHROPIC_API_KEY=sk-ant-api03-...' > .env\necho '.env' >> .gitignore\n```\n\n### Step 2: Create a Test Script\n```typescript\n\u002F\u002F src\u002Ftest-prompt.ts\nimport 'dotenv\u002Fconfig';\nimport Anthropic from '@claude-ai\u002Fsdk';\n\nconst client = new Anthropic();\n\nasync function main() {\n  const message = await client.messages.create({\n    model: 'claude-haiku-4-5-20251001', \u002F\u002F Use Haiku for dev — 20x cheaper than Opus\n    max_tokens: 512,\n    messages: [{ role: 'user', content: 'Summarize this in one sentence: ...' }],\n  });\n\n  console.log(message.content[0].text);\n  console.log(`Cost: ~$${((message.usage.input_tokens * 0.80 + message.usage.output_tokens * 4) \u002F 1_000_000).toFixed(4)}`);\n}\n\nmain();\n```\n\n### Step 3: Run with Hot Reload\n```bash\n# Watch mode — re-runs on file changes\nnpx tsx watch src\u002Ftest-prompt.ts\n\n# Or one-shot\nnpx tsx src\u002Ftest-prompt.ts\n```\n\n## Cost-Saving Dev Tips\n| Tip | Savings |\n|-----|---------|\n| Use `claude-haiku-4-5-20251001` during development | 20x cheaper than Opus |\n| Set `max_tokens: 256` for testing | Fewer output tokens billed |\n| Cache your system prompt with prompt caching beta | 90% off cached input tokens |\n| Use Message Batches for bulk testing (50% off) | Half price, 24h turnaround |\n| Log responses locally so you don't re-call for the same input | 100% savings on repeats |\n\n## Mock Client for Unit Tests\n```typescript\n\u002F\u002F tests\u002Fmock-anthropic.ts\nexport function createMockClient() {\n  return {\n    messages: {\n      create: async (params: any) => ({\n        id: 'msg_test',\n        type: 'message',\n        role: 'assistant',\n        model: params.model,\n        content: [{ type: 'text', text: 'Mock response for testing' }],\n        stop_reason: 'end_turn',\n        usage: { input_tokens: 10, output_tokens: 5 },\n      }),\n    },\n  };\n}\n\n\u002F\u002F In your test:\nimport { createMockClient } from '.\u002Fmock-anthropic';\nconst client = process.env.MOCK ? createMockClient() : new Anthropic();\n```\n\n## Python Dev Loop\n```bash\npip install anthropic python-dotenv ipython\n\n# Interactive exploration\nANTHROPIC_API_KEY=sk-ant-... ipython\n>>> import anthropic\n>>> c = anthropic.Anthropic()\n>>> r = c.messages.create(model=\"claude-haiku-4-5-20251001\", max_tokens=100, messages=[{\"role\":\"user\",\"content\":\"hello\"}])\n>>> r.content[0].text\n```\n\n## Output\n- Project scaffolded with SDK, dotenv, and tsx for hot reload\n- Test script running against Claude Haiku (cheapest model)\n- Mock client available for unit tests without API calls\n- Cost estimate printed per request\n\n## Error Handling\n| Issue | Fix |\n|-------|-----|\n| `ANTHROPIC_API_KEY` not loading | Make sure `dotenv\u002Fconfig` is imported first |\n| Slow iteration | Use Haiku, reduce max_tokens |\n| High dev costs | Log responses, use mocks for unit tests |\n\n## Examples\nSee Step 1 (project setup), Step 2 (test script with cost tracking), Step 3 (hot reload), Mock Client section, and Python Dev Loop section above.\n\n## Resources\n- [Quickstart Guide](https:\u002F\u002Fdocs.anthropic.com\u002Fen\u002Fdocs\u002Finitial-setup)\n- [TypeScript SDK](https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-sdk-typescript)\n\n## Next Steps\nSee `clade-sdk-patterns` for production client configuration.\n\n",{"name":5,"tags":44,"author":49,"license":15,"version":50,"description":51,"allowed-tools":52,"compatible-with":53},[45,46,47,48,30],"saas","anthropic","claude","development","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Set up a fast local development loop for building with the Anthropic API —\nUse when working with local-dev-loop patterns.\nhot reload, cost-saving tips, and test patterns.\nTrigger with \"anthropic dev setup\", \"claude local development\",\n\"anthropic test locally\", \"claude dev workflow\".\n","Read, Write, Edit, Bash(npm:*), Bash(pip:*)","claude-code","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fclade-local-dev-loop",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill clade-local-dev-loop",{"tool":69,"command":70},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill clade-local-dev-loop",{"tool":72,"command":73},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill clade-local-dev-loop","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fclade-local-dev-loop\u002FSKILL.md",true,[],[78,87,96,105,111,117],{"skillNo":79,"name":80,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[84,85,86],"model","model hierarchy","model hierarchy skill",{"skillNo":88,"name":89,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[93,94,95],"MCP","zoom","zoom mcp",{"skillNo":97,"name":98,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[102,103,104,94],"sdk","zoom apps sdk","apps",{"skillNo":106,"name":107,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[107],{"skillNo":112,"name":113,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[113],{"skillNo":118,"name":119,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[119]]