[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C29NJJZFPTCZDCJ3Y1ZKNA":3,"skill-same:01M6C29NJJZFPTCZDCJ3Y1ZKNA":106},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":55,"ownerDescription":56,"updatedAt":57,"install":58,"resources":71},"01M6C29NJJZFPTCZDCJ3Y1ZKNA","deepcode-cardinal-rules","Compass项目核心编码准则","Cardinal rules for the Compass project. Use when writing, reviewing, or architecting code to avoid common LLM coding mistakes. Covers harness-vs-app separation, dead code detection, and build-first discipline.","Compass 项目的核心准则。在编写、审查或设计代码架构时使用，以避免常见的 LLM 编码错误。涵盖 harness 与应用分离、死代码检测以及构建优先原则。","jtrefon\u002Fcompass","jtrefon","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F5500074?v=4","01M6C29JGV8F2SZSGM2D4EF4HK","Jacek Trefon","01M6C29JNAZPME93JJVBGVPFD1",3,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fjtrefon\u002Fcompass\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdeepcode-cardinal-rules\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8CAAMN19HMY7B3JXN2CBP29","工程实践准则","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42],"Rules","deepcode cardinal rules","writing","code","harness","detection","first","dead code","coding","common","use","discipline","2026-11-10 10:12:30",false,"---\nname: deepcode-cardinal-rules\ndescription: Cardinal rules for the Compass project. Use when writing, reviewing, or architecting code to avoid common LLM coding mistakes. Covers harness-vs-app separation, dead code detection, and build-first discipline.\n---\n\n# DeepCode Cardinal Rules\n\nThese rules MUST be followed in every session. Violations cause cascade failures.\n\n## Rule 1: Harness Orchestrates — Never Implements\n\n**The harness (test\u002Fverification code) calls production code. It never replaces it.**\n\n```\n✅ CORRECT: harness.swift\n   let tool = ReadFileTool(...)        \u002F\u002F production AITool\n   let result = try await tool.execute(args)\n   XCTAssert(result.contains(\"content\"))\n\n❌ WRONG: harness.swift\n   func readFile(path: String) -> String {\n       return FileManager.default.contents(atPath: path)  \u002F\u002F reimplementing tool logic\n   }\n```\n\n**Checklist before writing harness code:**\n- [ ] Does this logic already exist in the app target? If yes, CALL it, don't reimplement.\n- [ ] Am I creating a mock that replaces app behavior? Mocks are only for external dependencies (network, filesystem, AI service).\n- [ ] Is the harness creating its own `ToolDefinition` or `AITool`? Use the production ones.\n\n**Penalty:** Any harness code that duplicates app logic must be deleted and rewritten to call the app code.\n\n## Rule 2: Build Before Claiming Progress\n\n**Every change must compile before the next change is started.**\n\n```\n❌ WRONG:\n   Change file A → Change file B → Change file C → Build → FAIL (3x debugging)\n\n✅ CORRECT:\n   Change file A → Build → Change file B → Build → Change file C → Build\n```\n\n**Exception:** Documentation, markdown, and prompt files don't need compilation checks.\n\n## Rule 3: Dead Code Must Be Identified, Not Just Created\n\n**Before creating new code, inventory what already exists.**\n\nWhen asked to \"fix mode X\" or \"add feature Y\":\n1. Search for all files that reference the mode\u002Ffeature\n2. Trace the runtime path (who calls what)\n3. Identify dead vs live code\n4. Report findings before implementing\n\n**Test for dead code:** If a file has ZERO references from outside its directory subtree, it is dead.\n\n## Rule 4: One Production Path — One Working Path\n\n**There must never be two competing implementations of the same concern.**\n\n```\n❌ WRONG:\n   Services\u002FTooling\u002FToolExecutor.swift  (new, broken)\n   Services\u002FAIToolExecutor.swift        (old, working)\n\n✅ CORRECT:\n   Keep one working path. The other is either deleted or clearly marked as PHASE 2+.\n```\n\nWhen a duplicate exists:\n1. Route the new feature through the WORKING path\n2. Mark the dead code with a header comment: `\u002F\u002F PHASE 2+ — NOT ON RUNTIME PATH`\n3. Do NOT attempt to fix both paths simultaneously\n\n## Rule 5: Trace the Telemetry Before Diagnosing\n\n**When something doesn't work, look at what the system ACTUALLY did — not what you think it did.**\n\n1. Run the failing scenario\n2. Check `ai-trace.ndjson` — was the AI called? With what tools?\n3. Check `app.ndjson` — were there errors?\n4. Check `crash.ndjson` — did it crash?\n5. Check the session JSON — what mode was active? What messages exist?\n\nOnly after telemetry analysis, make code changes.\n","# DeepCode Cardinal Rules\n\nThese rules MUST be followed in every session. Violations cause cascade failures.\n\n## Rule 1: Harness Orchestrates — Never Implements\n\n**The harness (test\u002Fverification code) calls production code. It never replaces it.**\n\n```\n✅ CORRECT: harness.swift\n   let tool = ReadFileTool(...)        \u002F\u002F production AITool\n   let result = try await tool.execute(args)\n   XCTAssert(result.contains(\"content\"))\n\n❌ WRONG: harness.swift\n   func readFile(path: String) -> String {\n       return FileManager.default.contents(atPath: path)  \u002F\u002F reimplementing tool logic\n   }\n```\n\n**Checklist before writing harness code:**\n- [ ] Does this logic already exist in the app target? If yes, CALL it, don't reimplement.\n- [ ] Am I creating a mock that replaces app behavior? Mocks are only for external dependencies (network, filesystem, AI service).\n- [ ] Is the harness creating its own `ToolDefinition` or `AITool`? Use the production ones.\n\n**Penalty:** Any harness code that duplicates app logic must be deleted and rewritten to call the app code.\n\n## Rule 2: Build Before Claiming Progress\n\n**Every change must compile before the next change is started.**\n\n```\n❌ WRONG:\n   Change file A → Change file B → Change file C → Build → FAIL (3x debugging)\n\n✅ CORRECT:\n   Change file A → Build → Change file B → Build → Change file C → Build\n```\n\n**Exception:** Documentation, markdown, and prompt files don't need compilation checks.\n\n## Rule 3: Dead Code Must Be Identified, Not Just Created\n\n**Before creating new code, inventory what already exists.**\n\nWhen asked to \"fix mode X\" or \"add feature Y\":\n1. Search for all files that reference the mode\u002Ffeature\n2. Trace the runtime path (who calls what)\n3. Identify dead vs live code\n4. Report findings before implementing\n\n**Test for dead code:** If a file has ZERO references from outside its directory subtree, it is dead.\n\n## Rule 4: One Production Path — One Working Path\n\n**There must never be two competing implementations of the same concern.**\n\n```\n❌ WRONG:\n   Services\u002FTooling\u002FToolExecutor.swift  (new, broken)\n   Services\u002FAIToolExecutor.swift        (old, working)\n\n✅ CORRECT:\n   Keep one working path. The other is either deleted or clearly marked as PHASE 2+.\n```\n\nWhen a duplicate exists:\n1. Route the new feature through the WORKING path\n2. Mark the dead code with a header comment: `\u002F\u002F PHASE 2+ — NOT ON RUNTIME PATH`\n3. Do NOT attempt to fix both paths simultaneously\n\n## Rule 5: Trace the Telemetry Before Diagnosing\n\n**When something doesn't work, look at what the system ACTUALLY did — not what you think it did.**\n\n1. Run the failing scenario\n2. Check `ai-trace.ndjson` — was the AI called? With what tools?\n3. Check `app.ndjson` — were there errors?\n4. Check `crash.ndjson` — did it crash?\n5. Check the session JSON — what mode was active? What messages exist?\n\nOnly after telemetry analysis, make code changes.\n",{"name":5,"description":7},"main","cf1422d1df5cf1df987d1f299d74e0128a3c2b0b",".agents\u002Fskills\u002Fdeepcode-cardinal-rules",0,"https:\u002F\u002Fgithub.com\u002Fjtrefon\u002Fcompass","https:\u002F\u002Fjtrefon.github.io\u002Fcompass\u002F","https:\u002F\u002Fgithub.com\u002Fjtrefon","https:\u002F\u002Fwww.trefon.com","Visionary leader, technology enthusiast, innovator and disruptor. ","2026-11-14 08:47:15",{"source":9,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add jtrefon\u002Fcompass --skill deepcode-cardinal-rules",{"tool":64,"command":65},"bunx","bunx skills add jtrefon\u002Fcompass --skill deepcode-cardinal-rules",{"tool":67,"command":68},"pnpm","pnpm dlx skills add jtrefon\u002Fcompass --skill deepcode-cardinal-rules","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjtrefon\u002Fcompass\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdeepcode-cardinal-rules\u002FSKILL.md",true,[72,78,82,86,90,94,98,102],{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fconcurrent-request-distribution.md","REFERENCE","参考文档",2524,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fopenrouter-pack\u002Fskills\u002Fopenrouter-load-balancing\u002Freferences\u002Fconcurrent-request-distribution.md",{"path":79,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Fcredit-aware-load-balancing.md",2903,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fopenrouter-pack\u002Fskills\u002Fopenrouter-load-balancing\u002Freferences\u002Fcredit-aware-load-balancing.md",{"path":83,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Ferrors.md",323,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fopenrouter-pack\u002Fskills\u002Fopenrouter-load-balancing\u002Freferences\u002Ferrors.md",{"path":87,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fexamples.md",87,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fopenrouter-pack\u002Fskills\u002Fopenrouter-load-balancing\u002Freferences\u002Fexamples.md",{"path":91,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fhealth-based-routing.md",1704,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fopenrouter-pack\u002Fskills\u002Fopenrouter-load-balancing\u002Freferences\u002Fhealth-based-routing.md",{"path":95,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Fmodel-based-load-balancing.md",1303,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fopenrouter-pack\u002Fskills\u002Fopenrouter-load-balancing\u002Freferences\u002Fmodel-based-load-balancing.md",{"path":99,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Fmonitoring-load-distribution.md",1079,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fopenrouter-pack\u002Fskills\u002Fopenrouter-load-balancing\u002Freferences\u002Fmonitoring-load-distribution.md",{"path":103,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":104,"sourceHtmlUrl":105},"references\u002Fmulti-key-load-balancing.md",1695,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fopenrouter-pack\u002Fskills\u002Fopenrouter-load-balancing\u002Freferences\u002Fmulti-key-load-balancing.md",[107,141,159],{"skillNo":108,"name":109,"nameZh":110,"description":111,"descriptionZh":112,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":113,"categories":114,"keywords":121,"publishedAt":43},"01M6C29YMVJ69AY6GH9RPJHPDN","swift-mlx-lm","MLX Swift 本地大模型运行","MLX Swift LM - Run LLMs and VLMs on Apple Silicon using MLX. Covers local inference, streaming, wired memory coordination, tool calling, LoRA fine-tuning, embeddings, and model porting.","MLX Swift LM——使用 MLX 在 Apple Silicon 上运行大语言模型（LLM）和视觉语言模型（VLM）。涵盖本地推理、流式输出、wired memory 协调、工具调用、LoRA 微调、嵌入向量和模型移植。","https:\u002F\u002Fgithub.com\u002Fjtrefon\u002Fcompass\u002Fblob\u002Fmain\u002FVendor\u002Fmlx-swift-lm\u002Fskills\u002Fmlx-swift-lm\u002FSKILL.md",[115,118],{"categoryNo":116,"categoryName":117,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",{"categoryNo":119,"categoryName":120,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C7TWSEQ7QTRNCZXZP1RXM5","AI 模型推理与服务部署",[122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140],"swift mlx lm","mlx","mlx lm","swift","embeddings","coordination","model","tool","apple silicon","tuning","LoRA","Fine-Tuning","streaming","run","training","support","memory","inference","llms",{"skillNo":142,"name":143,"nameZh":144,"description":145,"descriptionZh":146,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":147,"categories":148,"keywords":153,"publishedAt":43},"01M6C29VZXCDYSM59W486YE7FK","codacy-fix-issues","Codacy本地分析问题修复","Find and fix issues in your project using Codacy local analysis","使用 Codacy 本地分析查找并修复项目中的问题。","https:\u002F\u002Fgithub.com\u002Fjtrefon\u002Fcompass\u002Fblob\u002Fmain\u002F.devin\u002Fskills\u002Fcodacy-fix-issues\u002FSKILL.md",[149,150],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":151,"categoryName":152,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[154,155,156,157,158],"codacy fix issues","fix","issues","find","analysis",{"skillNo":160,"name":161,"nameZh":162,"description":163,"descriptionZh":164,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":165,"categories":166,"keywords":171,"publishedAt":43},"01M6C29S7890889XGRX52Q7XN5","codacy-check-coverage","Codacy代码覆盖率检查","Check code coverage of your project using Codacy","使用 Codacy 检查项目的代码覆盖率。","https:\u002F\u002Fgithub.com\u002Fjtrefon\u002Fcompass\u002Fblob\u002Fmain\u002F.devin\u002Fskills\u002Fcodacy-check-coverage\u002FSKILL.md",[167,170],{"categoryNo":168,"categoryName":169,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":151,"categoryName":152,"taxonomyType":28,"taxonomyTypeDesc":29},[172,173,174,34],"check","coverage","codacy check coverage"]