[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C6DP5A1VF99QKXG3XW7RRR":3,"skill-same:01M6C6DP5A1VF99QKXG3XW7RRR":83},{"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":52,"linkOnly":53,"markdownContent":54,"markdownBody":55,"frontMatter":56,"refName":61,"commitSha":62,"skillDirectory":63,"forksCount":64,"repositoryHtmlUrl":65,"repositoryHomepageUrl":17,"ownerHtmlUrl":66,"ownerBlogUrl":17,"ownerDescription":67,"updatedAt":68,"install":69,"resources":82},"01M6C6DP5A1VF99QKXG3XW7RRR","design-pseudocode","伪代码设计与逐步细化","Design a routine by stepwise refinement — pseudocode the intent before coding, then promote it to comments. Use when designing a complex function or non-trivial algorithm.","通过逐步细化来设计例程——编码前先用伪代码表达设计意图，随后将其提升为代码注释。在设计复杂函数或非简单算法时使用。","laurigates\u002Fclaude-plugins","laurigates","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F13014001?v=4","01M6C59YHWS9C7KMXKSRX1YXNP","Lauri Gates","01M6C59YP2APG9YAM4DWYQYGFJ",60,"MIT",null,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fsoftware-design-plugin\u002Fskills\u002Fdesign-pseudocode\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,39,40,41,42,43,44,45,46,47,48,49,50,51],"design pseudocode","pseudocode","design","use","2026","when","for","refinement","comments","free","intent","diff","read","grep","coding","text","Bash","promote","file","git","change","2026-11-10 10:12:30",false,"---\nname: design-pseudocode\ndescription: Design a routine by stepwise refinement — pseudocode the intent before coding, then promote it to comments. Use when designing a complex function or non-trivial algorithm.\nargs: \"[target or description]\"\nargument-hint: \"a routine to design (free text), or a stub file|diff; omit for current change\"\nallowed-tools: Read, Grep, Glob, Bash(git diff *), TodoWrite\ncreated: 2026-06-23\nmodified: 2026-06-23\nreviewed: 2026-06-23\n---\n\n# Design by Pseudocode\n\nFrom *Code Complete* (McConnell), the Pseudocode Programming Process: before\nwriting a non-trivial routine, design it in **pseudocode** — intent-level English\nstatements, one per step — refining top-down until each line is obvious to\ntranslate into code. You catch the hard cases, the wrong decomposition, and the\nmissing error path *while editing prose*, which is an order of magnitude cheaper\nthan catching them while editing code. The finished pseudocode then becomes the\nroutine's comments, so the design survives as documentation.\n\nThis is a *pre-implementation* design technique: it decides a routine's internal\nstructure, names its steps, and surfaces its edge cases before a single line of\nreal code is committed.\n\n## When to Use This Skill\n\n| Use this skill when... | Use something else instead when... |\n|---|---|\n| Designing a complex routine or non-trivial algorithm before coding | Verifying whole-project *premises* before a wave → `agent-patterns-plugin:verify-before-plan` |\n| The decomposition isn't obvious and you want to fail cheap in prose | Choosing a structural design pattern → `software-design-plugin:design-patterns` |\n| Naming steps + edge cases up front, then keeping them as comments | A multi-file refactor plan → `workflow-orchestration-plugin:workflow-checkpoint-refactor` |\n| Reviewing whether a stub's intended logic is sound before it's built | Reviewing already-written code → `code-quality-plugin:code-review` |\n\n## Core Principle\n\n| Step | What you do | What it buys |\n|---|---|---|\n| **1. Intent** | State the routine's contract: inputs, output, one-line job | A clear target before mechanism |\n| **2. Refine** | Decompose into intent-level steps; refine each until trivial | The decomposition is judged in prose |\n| **3. Check edges** | Walk error paths, empty\u002Fboundary inputs, failure modes | Missing cases found before code |\n| **4. Promote** | Each pseudocode line becomes a comment; fill code beneath | Design survives as documentation |\n\nPseudocode is **intent, not syntax**: \"find the first overdue invoice\" — not\n`for (i=0; i\u003Cn; i++)`. If a line is already code-shaped, it's too low; if you\ncan't translate a line directly to a few statements, it's too high — refine it.\n\n## Parameters\n\nParse `$ARGUMENTS`:\n\n- **Target or description** (optional) — a free-text description of the routine to\n  design, **or** a stub file\u002Fdiff whose intended logic to work out. If absent,\n  default to the current change (`git diff HEAD`) and design the routine it\n  stubs.\n\n## Execution\n\nExecute this pseudocode design pass:\n\n### Step 1: State the contract\n\nOne line each: what the routine takes, what it returns\u002Fguarantees, and its single\njob. If it has more than one job, that's a decomposition signal — design the\npieces separately (pairs well with `software-design-plugin:design-by-contract`).\n\n### Step 2: Refine top-down\n\nWrite the routine as a short list of **intent-level** steps. Refine any step that\nisn't obvious-to-code into sub-steps. Stop when every line maps to a few\nstatements. Resist writing real syntax — the value is judging the *shape* before\ncommitting to it.\n\n### Step 3: Walk the edges\n\nAgainst the pseudocode, walk: empty\u002Fnull\u002Fboundary inputs, the failure of each\nexternal call, and the postcondition under each path. Add the handling as\npseudocode lines. A case you can't place is a sign the decomposition is wrong —\nrevise the steps, not just patch the end.\n\n### Step 4: Promote to comments and report\n\nEmit the refined pseudocode as the routine's comment skeleton (each line a\ncomment, code to be filled beneath). Report: the contract, the step\ndecomposition, the edge cases surfaced, and any decomposition smell (a step doing\ntwo jobs, a missing error path) found during refinement.\n\n## Anti-patterns\n\n| Mistake | Correct approach |\n|---|---|\n| Writing real code and calling it pseudocode | Intent-level English; if it's syntax, raise the altitude |\n| Pseudocode so vague a step hides a whole algorithm | If a line won't translate to a few statements, refine it |\n| Skipping the edge-case walk | Step 3 is where pseudocode pays for itself |\n| Throwing the pseudocode away after coding | Promote it to comments — the design becomes the docs |\n\n## Quick Reference\n\n| Altitude check | Verdict |\n|---|---|\n| Line reads as `for\u002Fif\u002Fwhile (...)` | Too low — that's code |\n| Line maps to 1-5 statements of intent | Just right |\n| Line hides a whole sub-algorithm | Too high — refine it |\n| A step does two distinct jobs | Decompose into separate routines |\n\n## Related\n\n- `software-design-plugin:design-by-contract` — Step 1's contract is the\n  precondition\u002Fpostcondition pair, made explicit\n- `software-design-plugin:design-patterns` — when refinement reveals recurring\n  variation, a pattern may be the right step structure\n- `code-quality-plugin:code-review` — reviews the code *after*; this designs it\n  *before*\n- `agent-patterns-plugin:verify-before-plan` — the project-scale sibling:\n  verify premises before a multi-agent plan, as this refines a routine before code\n","# Design by Pseudocode\n\nFrom *Code Complete* (McConnell), the Pseudocode Programming Process: before\nwriting a non-trivial routine, design it in **pseudocode** — intent-level English\nstatements, one per step — refining top-down until each line is obvious to\ntranslate into code. You catch the hard cases, the wrong decomposition, and the\nmissing error path *while editing prose*, which is an order of magnitude cheaper\nthan catching them while editing code. The finished pseudocode then becomes the\nroutine's comments, so the design survives as documentation.\n\nThis is a *pre-implementation* design technique: it decides a routine's internal\nstructure, names its steps, and surfaces its edge cases before a single line of\nreal code is committed.\n\n## When to Use This Skill\n\n| Use this skill when... | Use something else instead when... |\n|---|---|\n| Designing a complex routine or non-trivial algorithm before coding | Verifying whole-project *premises* before a wave → `agent-patterns-plugin:verify-before-plan` |\n| The decomposition isn't obvious and you want to fail cheap in prose | Choosing a structural design pattern → `software-design-plugin:design-patterns` |\n| Naming steps + edge cases up front, then keeping them as comments | A multi-file refactor plan → `workflow-orchestration-plugin:workflow-checkpoint-refactor` |\n| Reviewing whether a stub's intended logic is sound before it's built | Reviewing already-written code → `code-quality-plugin:code-review` |\n\n## Core Principle\n\n| Step | What you do | What it buys |\n|---|---|---|\n| **1. Intent** | State the routine's contract: inputs, output, one-line job | A clear target before mechanism |\n| **2. Refine** | Decompose into intent-level steps; refine each until trivial | The decomposition is judged in prose |\n| **3. Check edges** | Walk error paths, empty\u002Fboundary inputs, failure modes | Missing cases found before code |\n| **4. Promote** | Each pseudocode line becomes a comment; fill code beneath | Design survives as documentation |\n\nPseudocode is **intent, not syntax**: \"find the first overdue invoice\" — not\n`for (i=0; i\u003Cn; i++)`. If a line is already code-shaped, it's too low; if you\ncan't translate a line directly to a few statements, it's too high — refine it.\n\n## Parameters\n\nParse `$ARGUMENTS`:\n\n- **Target or description** (optional) — a free-text description of the routine to\n  design, **or** a stub file\u002Fdiff whose intended logic to work out. If absent,\n  default to the current change (`git diff HEAD`) and design the routine it\n  stubs.\n\n## Execution\n\nExecute this pseudocode design pass:\n\n### Step 1: State the contract\n\nOne line each: what the routine takes, what it returns\u002Fguarantees, and its single\njob. If it has more than one job, that's a decomposition signal — design the\npieces separately (pairs well with `software-design-plugin:design-by-contract`).\n\n### Step 2: Refine top-down\n\nWrite the routine as a short list of **intent-level** steps. Refine any step that\nisn't obvious-to-code into sub-steps. Stop when every line maps to a few\nstatements. Resist writing real syntax — the value is judging the *shape* before\ncommitting to it.\n\n### Step 3: Walk the edges\n\nAgainst the pseudocode, walk: empty\u002Fnull\u002Fboundary inputs, the failure of each\nexternal call, and the postcondition under each path. Add the handling as\npseudocode lines. A case you can't place is a sign the decomposition is wrong —\nrevise the steps, not just patch the end.\n\n### Step 4: Promote to comments and report\n\nEmit the refined pseudocode as the routine's comment skeleton (each line a\ncomment, code to be filled beneath). Report: the contract, the step\ndecomposition, the edge cases surfaced, and any decomposition smell (a step doing\ntwo jobs, a missing error path) found during refinement.\n\n## Anti-patterns\n\n| Mistake | Correct approach |\n|---|---|\n| Writing real code and calling it pseudocode | Intent-level English; if it's syntax, raise the altitude |\n| Pseudocode so vague a step hides a whole algorithm | If a line won't translate to a few statements, refine it |\n| Skipping the edge-case walk | Step 3 is where pseudocode pays for itself |\n| Throwing the pseudocode away after coding | Promote it to comments — the design becomes the docs |\n\n## Quick Reference\n\n| Altitude check | Verdict |\n|---|---|\n| Line reads as `for\u002Fif\u002Fwhile (...)` | Too low — that's code |\n| Line maps to 1-5 statements of intent | Just right |\n| Line hides a whole sub-algorithm | Too high — refine it |\n| A step does two distinct jobs | Decompose into separate routines |\n\n## Related\n\n- `software-design-plugin:design-by-contract` — Step 1's contract is the\n  precondition\u002Fpostcondition pair, made explicit\n- `software-design-plugin:design-patterns` — when refinement reveals recurring\n  variation, a pattern may be the right step structure\n- `code-quality-plugin:code-review` — reviews the code *after*; this designs it\n  *before*\n- `agent-patterns-plugin:verify-before-plan` — the project-scale sibling:\n  verify premises before a multi-agent plan, as this refines a routine before code\n",{"args":57,"name":5,"created":58,"modified":58,"reviewed":58,"description":7,"allowed-tools":59,"argument-hint":60},"[target or description]",1782172800000,"Read, Grep, Glob, Bash(git diff *), TodoWrite","a routine to design (free text), or a stub file|diff; omit for current change","main","bdd0582f1a2ba53d21061835bfd72d45f2f954f4","software-design-plugin\u002Fskills\u002Fdesign-pseudocode",6,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins","https:\u002F\u002Fgithub.com\u002Flaurigates","Linux enthusiast, cloud engineer, neovim addict, electronics hobbyist.","2026-11-15 03:36:11",{"source":9,"skillName":5,"commands":70,"prompt":80,"zipAvailable":81},[71,74,77],{"tool":72,"command":73},"npx","npx skills add laurigates\u002Fclaude-plugins --skill design-pseudocode",{"tool":75,"command":76},"bunx","bunx skills add laurigates\u002Fclaude-plugins --skill design-pseudocode",{"tool":78,"command":79},"pnpm","pnpm dlx skills add laurigates\u002Fclaude-plugins --skill design-pseudocode","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fsoftware-design-plugin\u002Fskills\u002Fdesign-pseudocode\u002FSKILL.md",true,[],[84,92,112,133,149,172],{"skillNo":85,"name":86,"nameZh":17,"description":87,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":91},"01M7DS1CAJ1ESDX08PENF01J0S","session-workflow-capture","Workflow-tool scripts and workflow friction from this session, filed as issues here or in the plugins repo. Use when a session ran Workflow scripts.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fsession-plugin\u002Fskills\u002Fsession-workflow-capture\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":93,"name":94,"nameZh":17,"description":95,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":52},"01M70PFHMH9ADY0CRE6047Y4B2","kitty-show-image","Show the user an image with a note on what to judge, via a file send or a labelled kitty tab. Use when the user must see an image, or icat fails with no \u002Fdev\u002Ftty.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-show-image\u002FSKILL.md",[],[99,100,101,102,103,104,105,106,107,108,34,36,47,49,46,109,110,111,35,43],"show","kitty show image","image","kitty","show image","ls","get","send","open","dev","with","xdg","via",{"skillNo":113,"name":114,"nameZh":17,"description":115,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":52},"01M70PFEN18HKQ4RCQ1VPGMPTB","kitty-session-persistence","Snapshot and restore kitty terminal sessions on macOS. Use when surviving WindowServer hangs without losing tabs, configuring snapshots, or restoring after a force-reboot.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-session-persistence\u002FSKILL.md",[],[102,119,120,121,122,123,36,47,124,125,126,35,43,127,128,129,130,131,132,34],"kitty session persistence","session","persistence","false","snapshots","uname","reboot","terminal","write","edit","snapshot","macos","sessions","restore",{"skillNo":134,"name":135,"nameZh":17,"description":136,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":52},"01M70PFC77XGXCVQ1543VGZHYR","kitty-remote-control","Safe kitty remote control from an agent — read panes with kitty @ ls\u002Fget-text, notify, and never mutate the live terminal unasked. Use when running inside kitty.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-remote-control\u002FSKILL.md",[],[140,141,102,142,143,104,144,145,105,146,147,34,36,148,47,46,109,126,35,43],"kitty remote control","remote","control","remote control","running","never","panes","notify","query",{"skillNo":150,"name":151,"nameZh":17,"description":152,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":52},"01M70P6WVMCT5JG4SACTM69AF9","docs-reference-check","Dangling doc-reference gate: flag markdown naming repo paths or relative links that no longer exist. Use when docs cite moved\u002Fdeleted files, or wiring a doc-drift lint.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fdocumentation-plugin\u002Fskills\u002Fdocs-reference-check\u002FSKILL.md",[],[156,157,158,159,160,161,162,163,164,165,34,36,47,166,49,167,168,169,170,171],"docs reference check","check","reference check","reference","docs","links","python3","repo","files","auto","drift","lint","wiring","chezmoi","references","cp",{"skillNo":173,"name":174,"nameZh":175,"description":176,"descriptionZh":177,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":178,"categories":179,"keywords":186,"publishedAt":52},"01M6C6NDE7DAQGNWSF22J5CJ0Z","youtube-upload","YouTube 视频上传与编辑","Upload a video to YouTube via the Data API v3 and edit its title, description, tags or thumbnail afterwards. Use when publishing or retitling a YouTube video.","通过 Data API v3 将视频上传到 YouTube，并在之后编辑其标题、描述、标签或缩略图。适用于发布 YouTube 视频或修改其标题。","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fyoutube-plugin\u002Fskills\u002Fyoutube-upload\u002FSKILL.md",[180,183],{"categoryNo":181,"categoryName":182,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQV98WRP4APE9VKKKKJ6FV","社交媒体与内容平台管理",{"categoryNo":184,"categoryName":185,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C55A3R2M9C8CAKG3W16HTA","内容创作者",[187,188,189,190,162,191,43,192,128,193,194,195,34,47,49,196,197,36,198,199,200,111,35],"youtube upload","upload","youtube","Video","run","uv run","publishing","data","uv","api","v3","tags","id","title"]