[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6NVVX5NQKJC6R5NT1GQD8CD":3,"skill-same:01M6NVVX5NQKJC6R5NT1GQD8CD":49},{"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":22,"linkOnly":23,"markdownContent":24,"markdownBody":25,"frontMatter":26,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M6NVVX5NQKJC6R5NT1GQD8CD","opc-architecture",null,"OPC Architecture Understanding","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\u002Fopc-architecture\u002FSKILL.md",[],[19,20,21],"architecture","opc architecture","false","2026-11-10 10:12:30",false,"---\nname: opc-architecture\ndescription: OPC Architecture Understanding\nuser-invocable: false\n---\n\n# OPC Architecture Understanding\n\nOPC (Orchestrated Parallel Claude) extends Claude Code - it does NOT replace it.\n\n## Core Concept\n\nClaude Code CLI is the execution engine. OPC adds orchestration via:\n- **Hooks** - Intercept Claude Code events (PreToolUse, PostToolUse, SessionStart, etc.)\n- **Skills** - Load prompts into Claude Code\n- **Scripts** - Called by hooks\u002Fskills for coordination\n- **Database** - Store state between Claude Code instances\n\n## How Agents Work\n\nWhen you spawn an agent:\n1. Main Claude Code instance (your terminal) runs hook on Task tool\n2. Hook calls `subprocess.Popen([\"claude\", \"-p\", \"prompt\"])`\n3. A NEW Claude Code instance spawns as child process\n4. Child runs independently, reads\u002Fwrites to coordination DB\n5. Parent tracks child via PID in DB\n\n```\n$ claude                         ← Main Claude Code (your terminal)\n    ↓ Task tool triggers hook\n    ↓ subprocess.Popen([\"claude\", \"-p\", \"...\"])\n        ├── claude -p \"research...\"   ← Child agent 1\n        ├── claude -p \"implement...\"  ← Child agent 2\n        └── claude -p \"test...\"       ← Child agent 3\n```\n\n## What OPC Is NOT\n\n- OPC is NOT a separate application\n- OPC does NOT run without Claude Code\n- OPC does NOT intercept Claude API calls directly\n- OPC does NOT modify Claude Code's internal behavior\n\n## What OPC IS\n\n- OPC IS hooks that Claude Code loads from `.claude\u002Fhooks\u002F`\n- OPC IS skills that Claude Code loads from `.claude\u002Fskills\u002F`\n- OPC IS scripts that hooks\u002Fskills call for coordination\n- OPC IS a database backend for state across Claude Code instances\n\n## Key Files\n\n```\n.claude\u002F\n├── hooks\u002F           ← TypeScript hooks that Claude Code runs\n├── skills\u002F          ← SKILL.md prompts that Claude Code loads\n├── settings.json    ← Hook registration, Claude Code reads this\n└── cache\u002F           ← State files, agent outputs\n\nopc\u002F\n├── scripts\u002F         ← Python scripts called by hooks\n├── docker-compose.yml ← PostgreSQL, Redis, PgBouncer\n└── init-db.sql      ← Database schema\n```\n\n## Coordination Flow\n\n1. User runs `claude` in terminal\n2. Claude Code loads hooks from `.claude\u002Fsettings.json`\n3. User says \"spawn a research agent\"\n4. Claude uses Task tool\n5. PreToolUse hook fires, checks resources\n6. Hook spawns `claude -p \"research...\"` as subprocess\n7. Hook stores PID in PostgreSQL\n8. Child agent runs, writes output to `.claude\u002Fcache\u002Fagents\u002F\u003Cid>\u002F`\n9. Child completes, broadcasts \"done\" to PostgreSQL\n10. Parent checks DB, reads child's output file\n\n## Remember\n\n- Every \"agent\" is just another `claude -p` process\n- Hooks intercept events, they don't create new functionality\n- All coordination happens via files and PostgreSQL\n- Claude Code is always the execution engine\n","# OPC Architecture Understanding\n\nOPC (Orchestrated Parallel Claude) extends Claude Code - it does NOT replace it.\n\n## Core Concept\n\nClaude Code CLI is the execution engine. OPC adds orchestration via:\n- **Hooks** - Intercept Claude Code events (PreToolUse, PostToolUse, SessionStart, etc.)\n- **Skills** - Load prompts into Claude Code\n- **Scripts** - Called by hooks\u002Fskills for coordination\n- **Database** - Store state between Claude Code instances\n\n## How Agents Work\n\nWhen you spawn an agent:\n1. Main Claude Code instance (your terminal) runs hook on Task tool\n2. Hook calls `subprocess.Popen([\"claude\", \"-p\", \"prompt\"])`\n3. A NEW Claude Code instance spawns as child process\n4. Child runs independently, reads\u002Fwrites to coordination DB\n5. Parent tracks child via PID in DB\n\n```\n$ claude                         ← Main Claude Code (your terminal)\n    ↓ Task tool triggers hook\n    ↓ subprocess.Popen([\"claude\", \"-p\", \"...\"])\n        ├── claude -p \"research...\"   ← Child agent 1\n        ├── claude -p \"implement...\"  ← Child agent 2\n        └── claude -p \"test...\"       ← Child agent 3\n```\n\n## What OPC Is NOT\n\n- OPC is NOT a separate application\n- OPC does NOT run without Claude Code\n- OPC does NOT intercept Claude API calls directly\n- OPC does NOT modify Claude Code's internal behavior\n\n## What OPC IS\n\n- OPC IS hooks that Claude Code loads from `.claude\u002Fhooks\u002F`\n- OPC IS skills that Claude Code loads from `.claude\u002Fskills\u002F`\n- OPC IS scripts that hooks\u002Fskills call for coordination\n- OPC IS a database backend for state across Claude Code instances\n\n## Key Files\n\n```\n.claude\u002F\n├── hooks\u002F           ← TypeScript hooks that Claude Code runs\n├── skills\u002F          ← SKILL.md prompts that Claude Code loads\n├── settings.json    ← Hook registration, Claude Code reads this\n└── cache\u002F           ← State files, agent outputs\n\nopc\u002F\n├── scripts\u002F         ← Python scripts called by hooks\n├── docker-compose.yml ← PostgreSQL, Redis, PgBouncer\n└── init-db.sql      ← Database schema\n```\n\n## Coordination Flow\n\n1. User runs `claude` in terminal\n2. Claude Code loads hooks from `.claude\u002Fsettings.json`\n3. User says \"spawn a research agent\"\n4. Claude uses Task tool\n5. PreToolUse hook fires, checks resources\n6. Hook spawns `claude -p \"research...\"` as subprocess\n7. Hook stores PID in PostgreSQL\n8. Child agent runs, writes output to `.claude\u002Fcache\u002Fagents\u002F\u003Cid>\u002F`\n9. Child completes, broadcasts \"done\" to PostgreSQL\n10. Parent checks DB, reads child's output file\n\n## Remember\n\n- Every \"agent\" is just another `claude -p` process\n- Hooks intercept events, they don't create new functionality\n- All coordination happens via files and PostgreSQL\n- Claude Code is always the execution engine\n",{"name":5,"description":7,"user-invocable":23},"main","70e1c350500ee750987420bbae48837afa906b7e","skills\u002Fopc-architecture","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":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add rubicanjr\u002FFinCognis --skill opc-architecture",{"tool":41,"command":42},"bunx","bunx skills add rubicanjr\u002FFinCognis --skill opc-architecture",{"tool":44,"command":45},"pnpm","pnpm dlx skills add rubicanjr\u002FFinCognis --skill opc-architecture","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fopc-architecture\u002FSKILL.md",true,[],[50,71,79,99,129,148],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":61,"publishedAt":22},"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",[56],{"categoryNo":57,"categoryName":58,"taxonomyType":59,"taxonomyTypeDesc":60},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[62,63,64,65,66,67,68,69,70],"workflow router","workflow","router","orchestration","goals","goal","user","workflow orchestration","tasks",{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":22},"01M6NWS3RETSC0SHP16HP66E14","wiring","Wiring Verification","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fwiring\u002FSKILL.md",[],[73,78,21],"verification",{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":88,"publishedAt":22},"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",[85],{"categoryNo":86,"categoryName":87,"taxonomyType":59,"taxonomyTypeDesc":60},"01JBSEEDCAT000000000000015","视觉设计",[89,90,91,92,93,94,95,96,97,98],"websocket","patterns","websocket patterns","design","protocol","management","message","strategies","binary","connection",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":109,"publishedAt":22},"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",[105,108],{"categoryNo":106,"categoryName":107,"taxonomyType":59,"taxonomyTypeDesc":60},"01JBSEEDCAT000000000000009","前端开发",{"categoryNo":57,"categoryName":58,"taxonomyType":59,"taxonomyTypeDesc":60},[110,111,112,113,114,115,116,117,118,119,120,121,122,92,123,124,125,126,127,128],"visual","verdict","visual verdict","ui","across","revise","comparison","correctness","implementing","for","fixes","dimensions","frontend","development","qa","screenshot","returns","use","frontend development",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":22},"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",[],[136,137,78,138,139,140,141,142,143,144,145,146,147],"verification loop","loop","lint","review","security","pr","system","diff","build","tests","diff review","types",{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":22},"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",[],[155,156,157,158,90,159,160,161,162,96,163,164,165,166,167,119,168,169],"vector db patterns","vector db","db","vector","semantic search","search","embedding strategies","algorithms","chunking","semantic","retrieval","embedding","Hybrid Search","hybrid","rag"]