[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6NT5FXHFDQMZQC1X1JG3A7W":3,"skill-same:01M6NT5FXHFDQMZQC1X1JG3A7W":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":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":14,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":44,"updatedAt":45,"install":46,"resources":59},"01M6NT5FXHFDQMZQC1X1JG3A7W","agentica-claude-proxy",null,"Guide for integrating Agentica SDK with Claude Code CLI proxy","rubicanjr\u002FFinCognis","rubicanjr","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F234912519?v=4","01M6NT156NND8J474G34SB3923","Rubi","01M6NT15B70RWXE1N3YV0BZY8A",0,"MIT","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fagentica-claude-proxy\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30],"proxy","agentica claude proxy","cli","sdk","code","Bash","read","guide","false","claude code cli","with","for","2026-11-10 10:12:30",false,"---\nname: agentica-claude-proxy\ndescription: Guide for integrating Agentica SDK with Claude Code CLI proxy\nallowed-tools: [Read, Bash]\nuser-invocable: false\n---\n\n# Agentica-Claude Code Proxy Integration\n\nUse this skill when developing or debugging the Agentica-Claude proxy integration.\n\n## When to Use\n\n- Setting up Agentica agents to use Claude Code tools\n- Debugging agent hallucination issues\n- Fixing permission errors in file operations\n- Understanding the REPL response format\n\n## Architecture Overview\n\n```\nAgentica Agent → S_M_BASE_URL → Claude Proxy → claude -p → Claude CLI (with tools)\n                 (localhost:2345)   (localhost:8080)\n```\n\n## Critical Requirements\n\n### 1. --allowedTools Flag (REQUIRED)\n\nClaude CLI in `-p` mode restricts file operations. You MUST add:\n\n```python\nsubprocess.run([\n    \"claude\", \"-p\", prompt,\n    \"--append-system-prompt\", system_prompt,\n    \"--allowedTools\", \"Read\", \"Write\", \"Edit\", \"Bash\",  # REQUIRED\n])\n```\n\nWithout this, agents will report \"permission denied\" for Write\u002FEdit operations.\n\n### 2. SSE Streaming Format (REQUIRED)\n\nAgentica expects SSE streaming, not plain JSON:\n\n```python\n# Response format\nyield f\"data: {json.dumps(chunk)}\\n\\n\"\nyield \"data: [DONE]\\n\\n\"\n```\n\n### 3. REPL Response Format (REQUIRED)\n\nAgents MUST return results as Python code blocks with a return statement:\n\n```python\nreturn \"your result here\"\n```\n\nAgentica's REPL parser extracts code between \\`\\`\\`python and \\`\\`\\`.\n\n## Anti-Hallucination Prompt Engineering\n\nAgents will hallucinate success without actually using tools unless you explicitly warn them:\n\n```\n## ANTI-HALLUCINATION WARNING\n\n**STOP AND READ THIS CAREFULLY:**\n\nYou have access to these tools: Read, Write, Edit, Bash\n\nWhen the task asks you to create\u002Fmodify\u002Frun something:\n1. FIRST: Actually invoke the tool (Read, Write, Edit, or Bash)\n2. SECOND: Wait for the tool result\n3. THIRD: Then return your answer based on what actually happened\n\n**DO NOT** skip the tool invocation and just claim success!\n\nIf you didn't invoke a tool, you CANNOT claim the action succeeded.\n```\n\n## Path Sandboxing\n\nBoth Claude Code and Agentica have sandboxes:\n\n- `\u002Ftmp\u002F` paths are blocked by Claude Code\n- Files outside project directory blocked by Agentica\n\n**Solution:** Use project-relative paths like `workspace\u002F` instead of `\u002Ftmp\u002F`\n\n## Debugging\n\n### Check Agent Logs\n\n```bash\ncat logs\u002Fagent-\u003CN>.log\n```\n\nNote: Logs only show final conversational response, not tool invocations.\n\n### Test Proxy Directly\n\n```bash\ncurl -s http:\u002F\u002Flocalhost:8080\u002Fv1\u002Fchat\u002Fcompletions \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"model\": \"claude\", \"messages\": [{\"role\": \"user\", \"content\": \"Create file at workspace\u002Ftest.txt\"}], \"stream\": false}'\n```\n\n### Verify File Operations\n\n```bash\n# After agent claims to create file\nls -la workspace\u002Ftest.txt\ncat workspace\u002Ftest.txt\n```\n\n## Server Commands\n\n### Start Servers\n\n```bash\n# Terminal 1: Proxy\nuv run python scripts\u002Fagentica\u002Fclaude_proxy.py --port 8080\n\n# Terminal 2: Agentica Server\ncd workspace\u002Fagentica-research\u002Fagentica-server\nINFERENCE_ENDPOINT_URL=http:\u002F\u002Flocalhost:8080\u002Fv1\u002Fchat\u002Fcompletions uv run agentica-server --port 2345\n```\n\n### Use Swarm\n\n```bash\nS_M_BASE_URL=http:\u002F\u002Flocalhost:2345 uv run python your_script.py\n```\n\n### Health Checks\n\n```bash\ncurl http:\u002F\u002Flocalhost:8080\u002Fhealth  # Proxy\ncurl http:\u002F\u002Flocalhost:2345\u002Fhealth  # Agentica\n```\n\n## Reference Files\n\n- Proxy implementation: `scripts\u002Fagentica\u002Fclaude_proxy.py`\n- REPL_BASELINE prompt: `scripts\u002Fagentica\u002Fclaude_proxy.py:49-155`\n- Comprehensive test: `workspace\u002Ftest_swarm_all_tools.py`\n- DependencySwarm: `scripts\u002Fagentica\u002Fdependency_swarm.py`\n\n## Common Errors\n\n| Error | Cause | Fix |\n|-------|-------|-----|\n| \"Permission denied\" | Missing --allowedTools | Add `--allowedTools Read Write Edit Bash` |\n| Agent claims success but file not created | Hallucination | Add anti-hallucination prompt section |\n| \"Cannot access \u002Ftmp\u002F...\" | Sandbox restriction | Use project-relative paths |\n| \"APIConnectionError\" | Wrong response format | Use SSE streaming (data: {...}\\n\\n) |\n| \"NameError: view_file\" | Agent using REPL functions | Add REPL_BASELINE with native tool examples |\n","# Agentica-Claude Code Proxy Integration\n\nUse this skill when developing or debugging the Agentica-Claude proxy integration.\n\n## When to Use\n\n- Setting up Agentica agents to use Claude Code tools\n- Debugging agent hallucination issues\n- Fixing permission errors in file operations\n- Understanding the REPL response format\n\n## Architecture Overview\n\n```\nAgentica Agent → S_M_BASE_URL → Claude Proxy → claude -p → Claude CLI (with tools)\n                 (localhost:2345)   (localhost:8080)\n```\n\n## Critical Requirements\n\n### 1. --allowedTools Flag (REQUIRED)\n\nClaude CLI in `-p` mode restricts file operations. You MUST add:\n\n```python\nsubprocess.run([\n    \"claude\", \"-p\", prompt,\n    \"--append-system-prompt\", system_prompt,\n    \"--allowedTools\", \"Read\", \"Write\", \"Edit\", \"Bash\",  # REQUIRED\n])\n```\n\nWithout this, agents will report \"permission denied\" for Write\u002FEdit operations.\n\n### 2. SSE Streaming Format (REQUIRED)\n\nAgentica expects SSE streaming, not plain JSON:\n\n```python\n# Response format\nyield f\"data: {json.dumps(chunk)}\\n\\n\"\nyield \"data: [DONE]\\n\\n\"\n```\n\n### 3. REPL Response Format (REQUIRED)\n\nAgents MUST return results as Python code blocks with a return statement:\n\n```python\nreturn \"your result here\"\n```\n\nAgentica's REPL parser extracts code between \\`\\`\\`python and \\`\\`\\`.\n\n## Anti-Hallucination Prompt Engineering\n\nAgents will hallucinate success without actually using tools unless you explicitly warn them:\n\n```\n## ANTI-HALLUCINATION WARNING\n\n**STOP AND READ THIS CAREFULLY:**\n\nYou have access to these tools: Read, Write, Edit, Bash\n\nWhen the task asks you to create\u002Fmodify\u002Frun something:\n1. FIRST: Actually invoke the tool (Read, Write, Edit, or Bash)\n2. SECOND: Wait for the tool result\n3. THIRD: Then return your answer based on what actually happened\n\n**DO NOT** skip the tool invocation and just claim success!\n\nIf you didn't invoke a tool, you CANNOT claim the action succeeded.\n```\n\n## Path Sandboxing\n\nBoth Claude Code and Agentica have sandboxes:\n\n- `\u002Ftmp\u002F` paths are blocked by Claude Code\n- Files outside project directory blocked by Agentica\n\n**Solution:** Use project-relative paths like `workspace\u002F` instead of `\u002Ftmp\u002F`\n\n## Debugging\n\n### Check Agent Logs\n\n```bash\ncat logs\u002Fagent-\u003CN>.log\n```\n\nNote: Logs only show final conversational response, not tool invocations.\n\n### Test Proxy Directly\n\n```bash\ncurl -s http:\u002F\u002Flocalhost:8080\u002Fv1\u002Fchat\u002Fcompletions \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"model\": \"claude\", \"messages\": [{\"role\": \"user\", \"content\": \"Create file at workspace\u002Ftest.txt\"}], \"stream\": false}'\n```\n\n### Verify File Operations\n\n```bash\n# After agent claims to create file\nls -la workspace\u002Ftest.txt\ncat workspace\u002Ftest.txt\n```\n\n## Server Commands\n\n### Start Servers\n\n```bash\n# Terminal 1: Proxy\nuv run python scripts\u002Fagentica\u002Fclaude_proxy.py --port 8080\n\n# Terminal 2: Agentica Server\ncd workspace\u002Fagentica-research\u002Fagentica-server\nINFERENCE_ENDPOINT_URL=http:\u002F\u002Flocalhost:8080\u002Fv1\u002Fchat\u002Fcompletions uv run agentica-server --port 2345\n```\n\n### Use Swarm\n\n```bash\nS_M_BASE_URL=http:\u002F\u002Flocalhost:2345 uv run python your_script.py\n```\n\n### Health Checks\n\n```bash\ncurl http:\u002F\u002Flocalhost:8080\u002Fhealth  # Proxy\ncurl http:\u002F\u002Flocalhost:2345\u002Fhealth  # Agentica\n```\n\n## Reference Files\n\n- Proxy implementation: `scripts\u002Fagentica\u002Fclaude_proxy.py`\n- REPL_BASELINE prompt: `scripts\u002Fagentica\u002Fclaude_proxy.py:49-155`\n- Comprehensive test: `workspace\u002Ftest_swarm_all_tools.py`\n- DependencySwarm: `scripts\u002Fagentica\u002Fdependency_swarm.py`\n\n## Common Errors\n\n| Error | Cause | Fix |\n|-------|-------|-----|\n| \"Permission denied\" | Missing --allowedTools | Add `--allowedTools Read Write Edit Bash` |\n| Agent claims success but file not created | Hallucination | Add anti-hallucination prompt section |\n| \"Cannot access \u002Ftmp\u002F...\" | Sandbox restriction | Use project-relative paths |\n| \"APIConnectionError\" | Wrong response format | Use SSE streaming (data: {...}\\n\\n) |\n| \"NameError: view_file\" | Agent using REPL functions | Add REPL_BASELINE with native tool examples |\n",{"name":5,"description":7,"allowed-tools":36,"user-invocable":32},[37,24],"Read","main","70e1c350500ee750987420bbae48837afa906b7e","skills\u002Fagentica-claude-proxy","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis","https:\u002F\u002Fgithub.com\u002Frubicanjr","linktr.ee\u002Ffinanskodu","Industrial Engineer & CIO @FinansKodu. Architecting AI-driven financial agents and autonomous workflows. 🏗️ Building systems, not just prompts.","2026-06-09 13:50:15",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add rubicanjr\u002FFinCognis --skill agentica-claude-proxy",{"tool":52,"command":53},"bunx","bunx skills add rubicanjr\u002FFinCognis --skill agentica-claude-proxy",{"tool":55,"command":56},"pnpm","pnpm dlx skills add rubicanjr\u002FFinCognis --skill agentica-claude-proxy","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fagentica-claude-proxy\u002FSKILL.md",true,[],[61,82,90,110,139,158],{"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":72,"publishedAt":31},"01M6NWS9DAXJTADT4T5MB49X8W","workflow-router","Goal-based workflow orchestration - routes tasks to specialist agents based on user goals","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow-router\u002FSKILL.md",[67],{"categoryNo":68,"categoryName":69,"taxonomyType":70,"taxonomyTypeDesc":71},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[73,74,75,76,77,78,79,80,81],"workflow router","workflow","router","orchestration","goals","goal","user","workflow orchestration","tasks",{"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":31},"01M6NWS3RETSC0SHP16HP66E14","wiring","Wiring Verification","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fwiring\u002FSKILL.md",[],[84,89,27],"verification",{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":99,"publishedAt":31},"01M6NWS0XW9CVQZBDA1EGW0TWC","websocket-patterns","Connection management, room patterns, reconnection strategies, message buffering, and binary protocol design.","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fwebsocket-patterns\u002Fskill.md",[96],{"categoryNo":97,"categoryName":98,"taxonomyType":70,"taxonomyTypeDesc":71},"01JBSEEDCAT000000000000015","视觉设计",[100,101,102,103,104,105,106,107,108,109],"websocket","patterns","websocket patterns","design","protocol","management","message","strategies","binary","connection",{"skillNo":111,"name":112,"nameZh":6,"description":113,"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":120,"publishedAt":31},"01M6NWRDQDX9ZNETAWRRMQWV52","visual-verdict","Screenshot comparison QA for frontend development. Takes a screenshot of the current implementation, scores it across multiple visual dimensions, and returns a structured PASS\u002FREVISE\u002FFAIL verdict with concrete fixes. Use when implementing UI from a design reference or verifying visual correctness.","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fvisual-verdict\u002FSKILL.md",[116,119],{"categoryNo":117,"categoryName":118,"taxonomyType":70,"taxonomyTypeDesc":71},"01JBSEEDCAT000000000000009","前端开发",{"categoryNo":68,"categoryName":69,"taxonomyType":70,"taxonomyTypeDesc":71},[121,122,123,124,125,126,127,128,129,30,130,131,132,103,133,134,135,136,137,138],"visual","verdict","visual verdict","ui","across","revise","comparison","correctness","implementing","fixes","dimensions","frontend","development","qa","screenshot","returns","use","frontend development",{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":31},"01M6NWR8HSNRS7MNDK2J02QYMN","verification-loop","Comprehensive verification system covering build, types, lint, tests, security, and diff review before a PR.","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[146,147,89,148,149,150,151,152,153,154,155,156,157],"verification loop","loop","lint","review","security","pr","system","diff","build","tests","diff review","types",{"skillNo":159,"name":160,"nameZh":6,"description":161,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":162,"categories":163,"keywords":164,"publishedAt":31},"01M6NWR4HHSFR0VR5EXFRWA747","vector-db-patterns","Embedding strategies, ANN algorithms, hybrid search, RAG chunking strategies, and reranking for semantic search and retrieval.","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fvector-db-patterns\u002Fskill.md",[],[165,166,167,168,101,169,170,171,172,107,173,174,175,176,177,30,178,179],"vector db patterns","vector db","db","vector","semantic search","search","embedding strategies","algorithms","chunking","semantic","retrieval","embedding","Hybrid Search","hybrid","rag"]