[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BVCGD4V5B7R4BCS8NGQEE8":3,"skill-same:01M6BVCGD4V5B7R4BCS8NGQEE8":66},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":17,"ownerHtmlUrl":49,"ownerBlogUrl":50,"ownerDescription":17,"updatedAt":51,"install":52,"resources":65},"01M6BVCGD4V5B7R4BCS8NGQEE8","code-comments","代码注释编写与审查","Write code comments that comment the non-obvious and delete the rest. Use when writing or editing comments in source code, adding explanatory comments to a change, or when the user asks to add, trim, or review comments. Steers toward brief, intent-focused comments and away from backstory, justification, or restating the code.","编写代码注释时，只注释非显而易见之处，删掉其余注释。在编写或编辑源代码注释、为改动添加解释性注释，或用户要求添加、精简、审查注释时使用。引导生成简短、以意图为中心的注释，避免背景故事、辩解理由或复述代码。","SamFleming\u002Fdotfiles","SamFleming","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F573318?v=4","01M6BVCCB0H1C12FM8T54ZH5R4","Sam Fleming","01M6BVCCF0G9K0TXCYZ894P432",2,"MIT",null,"https:\u002F\u002Fgithub.com\u002FSamFleming\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fhome\u002Fclaude\u002F.claude\u002Fskills\u002Fcode-comments\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QVANT4709358VEJK53E","代码实现","SCENARIO","使用场景",[31,32,33,34,35,36,37,38],"code","code comments","writing","review","change","delete","brief","REST","2026-11-10 10:12:30",false,"---\nname: code-comments\ndescription: \"Write code comments that comment the non-obvious and delete the rest. Use when writing or editing comments in source code, adding explanatory comments to a change, or when the user asks to add, trim, or review comments. Steers toward brief, intent-focused comments and away from backstory, justification, or restating the code.\"\n---\n\n# Code comments\n\nComment the non-obvious; delete the rest. A comment is a cost (it rots, it adds noise); it has to buy more than it costs.\n\n## A comment earns its place only if it says something the code can't\n- Intent that isn't visible in the code itself\n- A non-obvious decision or trade-off: *why here, why this way, not the obvious alternative*\n- A constraint, invariant, or gotcha that will bite a later editor\n- A pointer to context the reader needs (spec, ticket) as a link, not a retelling\n\n## Never\n- Restate what the code plainly does (`\u002F\u002F increment i`) or echo the function\u002Fvariable name\n- Narrate the backstory or justify the change: what was broken, what you investigated, why it matters. That's PR \u002F commit \u002F ticket territory, not source.\n- Leave a comment the next edit will quietly make false\n\n## The test\nBefore keeping a comment, ask: **does this describe what the code does or why it's here, or is it justifying the change \u002F telling a story?** A story or a justification gets cut, or moved to the commit or PR.\n\n## Style\n- Usually one line. Say the thing and stop.\n- Match the file's existing comment density and idiom; don't import a different house style.\n- Prefer *why* over *what*. The what is in the code and rots fast; the why rots slowly.\n- Rich context (root cause, the investigation, environment-specific findings) belongs in the PR, ticket, or commit message, not the source.\n\n## Worked example: trim to the one non-obvious fact\n\nA `collectDefaultMetrics()` call added to a shared metrics module:\n\n```\nv1 (7 lines): full backstory — idle process serves empty \u002Fmetrics, looks\n              identical to a broken endpoint, makes the partner metric a\n              clean signal…                                    → an essay\nv2 (2 lines): \"…so an idle process still exposes a non-empty \u002Fmetrics;\n              every other metric here is labelled…\"            → still justifying the change\nv3 (1 line):  \"Here, not per-app, so every app importing these metrics\n              also gets the process_*\u002Fnodejs_* baseline.\"      → the one non-obvious fact: placement\n```\n\nEach trim drops a layer of justification until only the thing a reader can't infer from the code remains: *why the call lives in this shared module*.\n","# Code comments\n\nComment the non-obvious; delete the rest. A comment is a cost (it rots, it adds noise); it has to buy more than it costs.\n\n## A comment earns its place only if it says something the code can't\n- Intent that isn't visible in the code itself\n- A non-obvious decision or trade-off: *why here, why this way, not the obvious alternative*\n- A constraint, invariant, or gotcha that will bite a later editor\n- A pointer to context the reader needs (spec, ticket) as a link, not a retelling\n\n## Never\n- Restate what the code plainly does (`\u002F\u002F increment i`) or echo the function\u002Fvariable name\n- Narrate the backstory or justify the change: what was broken, what you investigated, why it matters. That's PR \u002F commit \u002F ticket territory, not source.\n- Leave a comment the next edit will quietly make false\n\n## The test\nBefore keeping a comment, ask: **does this describe what the code does or why it's here, or is it justifying the change \u002F telling a story?** A story or a justification gets cut, or moved to the commit or PR.\n\n## Style\n- Usually one line. Say the thing and stop.\n- Match the file's existing comment density and idiom; don't import a different house style.\n- Prefer *why* over *what*. The what is in the code and rots fast; the why rots slowly.\n- Rich context (root cause, the investigation, environment-specific findings) belongs in the PR, ticket, or commit message, not the source.\n\n## Worked example: trim to the one non-obvious fact\n\nA `collectDefaultMetrics()` call added to a shared metrics module:\n\n```\nv1 (7 lines): full backstory — idle process serves empty \u002Fmetrics, looks\n              identical to a broken endpoint, makes the partner metric a\n              clean signal…                                    → an essay\nv2 (2 lines): \"…so an idle process still exposes a non-empty \u002Fmetrics;\n              every other metric here is labelled…\"            → still justifying the change\nv3 (1 line):  \"Here, not per-app, so every app importing these metrics\n              also gets the process_*\u002Fnodejs_* baseline.\"      → the one non-obvious fact: placement\n```\n\nEach trim drops a layer of justification until only the thing a reader can't infer from the code remains: *why the call lives in this shared module*.\n",{"name":5,"description":7},"master","dc8003d37a723360f1d73b2889ca447ff4a16844","home\u002Fclaude\u002F.claude\u002Fskills\u002Fcode-comments",1,"https:\u002F\u002Fgithub.com\u002FSamFleming\u002Fdotfiles","https:\u002F\u002Fgithub.com\u002FSamFleming","samfleming.me","2026-10-26 07:52:31",{"source":9,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add SamFleming\u002Fdotfiles --skill code-comments",{"tool":58,"command":59},"bunx","bunx skills add SamFleming\u002Fdotfiles --skill code-comments",{"tool":61,"command":62},"pnpm","pnpm dlx skills add SamFleming\u002Fdotfiles --skill code-comments","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSamFleming\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fhome\u002Fclaude\u002F.claude\u002Fskills\u002Fcode-comments\u002FSKILL.md",true,[],[67,82,101,120,133,147],{"skillNo":68,"name":69,"nameZh":70,"description":71,"descriptionZh":72,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":73,"categories":74,"keywords":79,"publishedAt":39},"01M6BVCYMF5PJ3GTNS7477TNVB","zoom-out","宏观视角上下文梳理","Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.","让智能体（agent）拉远视角，提供更广泛的上下文或更高层次的视角。当你不熟悉某段代码，或需要理解它如何融入整体大局时使用。","https:\u002F\u002Fgithub.com\u002FSamFleming\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fhome\u002Fclaude\u002F.claude\u002Fskills\u002Fzoom-out\u002FSKILL.md",[75,78],{"categoryNo":76,"categoryName":77,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TKQDF2K4KQS863Q79P4","开发参考",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[80,31,81],"zoom out","how",{"skillNo":83,"name":84,"nameZh":85,"description":86,"descriptionZh":87,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":88,"categories":89,"keywords":94,"publishedAt":39},"01M6BVCWXARRXMPJEA3R0J1Y0D","tdd","测试驱动开发（TDD）","Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions \"red-green-refactor\", or wants integration tests.","测试驱动开发。当用户希望以测试优先的方式构建功能或修复缺陷、提到“红-绿-重构”（red-green-refactor），或需要集成测试时使用。","https:\u002F\u002Fgithub.com\u002FSamFleming\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fhome\u002Fclaude\u002F.claude\u002Fskills\u002Ftdd\u002FSKILL.md",[90,91],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":92,"categoryName":93,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[84,95,96,97,98,99,100],"test","integration tests","development","integration","refactor","first",{"skillNo":102,"name":103,"nameZh":104,"description":105,"descriptionZh":106,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":107,"categories":108,"keywords":115,"publishedAt":39},"01M6BVCVC4JQ7PFX29NS7N20E1","improve-codebase-architecture","代码库架构优化","Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.","扫描代码库以发现架构深化改进的机会，以可视化 HTML 报告的形式呈现，然后针对你选定的某一项进行深入剖析（严格审视）。","https:\u002F\u002Fgithub.com\u002FSamFleming\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fhome\u002Fclaude\u002F.claude\u002Fskills\u002Fimprove-codebase-architecture\u002FSKILL.md",[109,112],{"categoryNo":110,"categoryName":111,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QTSZKB08EAW9P9ZCDNQ","设计评审与架构优化",{"categoryNo":113,"categoryName":114,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C4ZVS0ZJKF2T2G58PW5VR2","系统架构师",[116,117,118,119],"improve","architecture","improve codebase architecture","report",{"skillNo":121,"name":122,"nameZh":123,"description":124,"descriptionZh":125,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":126,"categories":127,"keywords":132,"publishedAt":39},"01M6BVCT2AD4MTJ3GENDX15XMS","handoff","会话交接文档生成","Compact the current conversation into a handoff document for another agent to pick up.","将当前对话精简为一份交接文档，供另一个智能体接手继续工作。","https:\u002F\u002Fgithub.com\u002FSamFleming\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fhome\u002Fclaude\u002F.claude\u002Fskills\u002Fhandoff\u002FSKILL.md",[128,129],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":130,"categoryName":131,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTBRVQZ06FQWD8P64214B2","会话上下文交接",[122],{"skillNo":134,"name":135,"nameZh":136,"description":137,"descriptionZh":138,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":139,"categories":140,"keywords":145,"publishedAt":39},"01M6BVCRZMCZYCK99DZKV81YFB","grilling","方案压力质询","Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.","对用户提出的计划、决策或想法进行不留情面的连续追问。当用户想要压力测试自己的思路，或使用任何'grill'触发短语时使用。","https:\u002F\u002Fgithub.com\u002FSamFleming\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fhome\u002Fclaude\u002F.claude\u002Fskills\u002Fgrilling\u002FSKILL.md",[141,142],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":143,"categoryName":144,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTBRV70X1T1B33XJ0GW1TW","方案质询与决策压力测试",[135,146,95],"plan",{"skillNo":148,"name":149,"nameZh":150,"description":151,"descriptionZh":152,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":153,"categories":154,"keywords":157,"publishedAt":39},"01M6BVCQCMATEZ7Z7WWFTGMJSH","grill-with-docs","方案质询与文档生成","A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.","一场不留情面的连续追问式访谈，用于打磨计划或设计，同时在此过程中创建文档（ADR 和术语表）。","https:\u002F\u002Fgithub.com\u002FSamFleming\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fhome\u002Fclaude\u002F.claude\u002Fskills\u002Fgrill-with-docs\u002FSKILL.md",[155,156],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":143,"categoryName":144,"taxonomyType":28,"taxonomyTypeDesc":29},[158,159,146,160,161],"docs","grill with docs","go","design"]