[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EJ73Y7J7SY3PRKHD2W5DQ5":3,"skill-same:01M7EJ73Y7J7SY3PRKHD2W5DQ5":56},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":45},"01M7EJ73Y7J7SY3PRKHD2W5DQ5","parallel-work",null,"Fan out independent work: one worktree per writer, overlaps serialized, results integrated and re-tested.","MustaMohamed\u002Fkern","MustaMohamed","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F15794995?v=4","01M7EJ6B5WMZ90S24CP66DFA3E","Mustafa Mohamed","01M7EJ6B6D2C3Y50VM9NK4ZB2W",0,"MIT","https:\u002F\u002Fgithub.com\u002FMustaMohamed\u002Fkern\u002Fblob\u002Fmain\u002Fskills\u002Fparallel-work\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: parallel-work\ndescription: \"Fan out independent work: one worktree per writer, overlaps serialized, results integrated and re-tested.\"\ndisable-model-invocation: true\n---\n\n# parallel-work\n\nRun independent units at once, never two writers in one tree. Reached by its kernel row, execute-plan step 4, diagnose when racing hypotheses, or `\u002Fkern:parallel-work`.\n\n## Steps\n\n0. Defer: if the kern settings block names an override for this job, follow that skill instead, say so in one line, and stop.\n1. Classify each unit independent, related or shared-state. Build the overlap list from each unit's files and `shared_services` (none set: any unit running migrations or DB-backed tests overlaps). Overlapping units run serially. Small units are no reason to skip a fan-out the user asked for. Separate a shared write target before anything serializes on it. With 3 or more writers doing one kind of change, run one pilot unit first and read its result first. A unit you cannot classify is a stop.\n2. Frame the run: the done predicate; partition or race (a race declares its selection rule up front and integrates only the winner); at most `parallel.max` workers at once, the rest wait; a model and effort named in every dispatch (`model.implementer`, `model.investigator`). Record the main checkout's branch with `git rev-parse --abbrev-ref HEAD`. A script exit this skill does not name stops that unit; report its output.\n3. Per writer: create its worktree with `bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fwt-fork \u003Csource-wt> \u003Cslug>` to carry earlier uncommitted work, else `wt-new \u003Cslug> --detach`; each prints the path, and any non-zero exit: say why and ask, never share a tree. The base ref is `origin\u002F\u003Cbase_branch>` for wt-new, the source's HEAD for wt-fork. Record its starting tree with `bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fwt-snap \u003Cwt>`. Write the brief with the Write tool to `\u003Ctmp>\u002Fbrief-\u003Cworker>.md` (`\u003Ctmp>` is what `bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fkern-dir tmp` prints) from `references\u002Fbrief-template.md`, its VERIFY starting with the entry check `bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fwt-check \u003Cwt> \u003Cbase-ref>` and then the focused baseline; resolve `${CLAUDE_PLUGIN_ROOT}` to the absolute root in all a worker receives (its Read substitutes nothing). Run `bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fbrief-check \u003Cbrief>`: anything but `brief-check: ok` means do not spawn; fix each printed line and rerun. A reader gets no worktree and no brief: its prompt holds the question, scope, sources and a return budget (`kern:investigator`, or Explore).\n4. Spawn every worker in one message. A writer is `kern:implementer`, given the brief path, WT, base ref, a report path under `\u003Ctmp>`, the absolute path of `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fimplement\u002FSKILL.md`, rulings and standing orders. Never poll a worker or resume it to check liveness.\n5. Drain each worker to PASS, ISSUES or BLOCKED. `kern:implementer`, by its `Status:` line (none: BLOCKED): DONE is PASS, DONE_WITH_CONCERNS is ISSUES, BLOCKED and NEEDS_CONTEXT are BLOCKED. `kern:investigator`: an answer where every fact carries a citation and a label, with an empty or \"none\" could-not-trace list, is PASS; an uncited fact or a \"could not trace\" list is ISSUES; no answer, or a return that names a command it needs run, is BLOCKED. Missing evidence (no test output, no report file) gets one respawn naming it, then a gap. A worker silent past its TIMEBOX: check read-only whether its report file exists and whether `wt-snap` prints another tree, record a gap with what you found, and never resume it; a silent reader, which has neither, is re-asked once, then BLOCKED. Accept a late return, after its gap was recorded, only while its unit is still open in the caller's ledger, if any, and no other worker took it; else leave its tree unapplied and note that in its gap. Account for every worker; a gap is not a pass.\n6. Integrate one worker at a time. `bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fwt-diff \u003Cwt> \u003Cstarting-tree> --out \u003Cdir>\u002F\u003Cworker>.diff --allow \u003Cpath>` with one `--allow` per writable SCOPE path (a directory ends in `\u002F`, a prefix in `*`); `\u003Cdir>` is the caller's ledger `reviews\u002F` folder, else `bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fkern-dir reviews` prints it. It prints the package path, the tree, then changed paths; the patch is `\u003Cdir>\u002F\u003Cworker>.diff.patch`. Exit 3 is no change: a gap. Exit 4 is a write outside SCOPE: ISSUES, apply nothing, stop. Then `bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fwt-apply \u003Cdir>\u002F\u003Cworker>.diff.patch \u003Cintegration-wt>` (the caller's, else a `wt-new` one) prints `applied`, and only then record wt-diff's second line; exit 3 is a conflict with nothing applied: stop, no tree recorded. After the last patch run `test.full` there (`kern-get`, else `kern-detect`; both exit 3: ask), name each red test as before or after, and spot-check one claim per worker against its diff.\n7. Report a table with columns `worker | verdict | files | evidence | gaps`, serial units with their reason, each recorded tree in evidence. Assert the main branch still matches step 2's.\n8. Teardown follows `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fparallel-work\u002Freferences\u002Fworktrees.md`: `wt-audit` filtered to this run's worktrees, `--force` only when all five preconditions there hold, every removal only on the user's yes.\n\n## Inputs\n\n| Key | Default | Use |\n|---|---|---|\n| `base_branch` | detected | worktree base |\n| `worktree.dir`, `worktree.setup` | `.claude\u002Fworktrees` under MAIN; none | location; setup |\n| `shared_services` | none | serialization |\n| `parallel.max` | 3 | workers at once |\n| `model.implementer`, `model.investigator` | `sonnet`, `opus` | worker models |\n\n## Outputs\n\nPackages and patches in step 6's `\u003Cdir>` (default `WORK\u002Freviews\u002F`); briefs and reports in `WORK\u002Ftmp\u002F`.\n\n## Stops and autopilot\n\nStops at steps 1, 3, 6, 7 and 8 (a unit or worktree that will not pass, a conflict, a gap, teardown). An AskUserQuestion answer records no prompt line, so Guard G20 denies it; ask in chat. Autopilot is on per the latest kern signal (an `autopilot ON:` reminder or a `kern mode:` line with `autopilot=on`), else the kernel's \"Autopilot:\" line; a turn with no mode line changes nothing. When on, each stop waits for a typed reply, with the data and a recommendation: an unclassifiable unit or a brief that will not pass holds that unit while the rest continue, a conflicted or out-of-SCOPE worker stays unapplied, the gap stands. Teardown never runs under autopilot (G1 denies `git worktree remove --force`); the worktrees are listed instead.\n","# parallel-work\n\nRun independent units at once, never two writers in one tree. Reached by its kernel row, execute-plan step 4, diagnose when racing hypotheses, or `\u002Fkern:parallel-work`.\n\n## Steps\n\n0. Defer: if the kern settings block names an override for this job, follow that skill instead, say so in one line, and stop.\n1. Classify each unit independent, related or shared-state. Build the overlap list from each unit's files and `shared_services` (none set: any unit running migrations or DB-backed tests overlaps). Overlapping units run serially. Small units are no reason to skip a fan-out the user asked for. Separate a shared write target before anything serializes on it. With 3 or more writers doing one kind of change, run one pilot unit first and read its result first. A unit you cannot classify is a stop.\n2. Frame the run: the done predicate; partition or race (a race declares its selection rule up front and integrates only the winner); at most `parallel.max` workers at once, the rest wait; a model and effort named in every dispatch (`model.implementer`, `model.investigator`). Record the main checkout's branch with `git rev-parse --abbrev-ref HEAD`. A script exit this skill does not name stops that unit; report its output.\n3. Per writer: create its worktree with `bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fwt-fork \u003Csource-wt> \u003Cslug>` to carry earlier uncommitted work, else `wt-new \u003Cslug> --detach`; each prints the path, and any non-zero exit: say why and ask, never share a tree. The base ref is `origin\u002F\u003Cbase_branch>` for wt-new, the source's HEAD for wt-fork. Record its starting tree with `bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fwt-snap \u003Cwt>`. Write the brief with the Write tool to `\u003Ctmp>\u002Fbrief-\u003Cworker>.md` (`\u003Ctmp>` is what `bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fkern-dir tmp` prints) from `references\u002Fbrief-template.md`, its VERIFY starting with the entry check `bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fwt-check \u003Cwt> \u003Cbase-ref>` and then the focused baseline; resolve `${CLAUDE_PLUGIN_ROOT}` to the absolute root in all a worker receives (its Read substitutes nothing). Run `bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fbrief-check \u003Cbrief>`: anything but `brief-check: ok` means do not spawn; fix each printed line and rerun. A reader gets no worktree and no brief: its prompt holds the question, scope, sources and a return budget (`kern:investigator`, or Explore).\n4. Spawn every worker in one message. A writer is `kern:implementer`, given the brief path, WT, base ref, a report path under `\u003Ctmp>`, the absolute path of `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fimplement\u002FSKILL.md`, rulings and standing orders. Never poll a worker or resume it to check liveness.\n5. Drain each worker to PASS, ISSUES or BLOCKED. `kern:implementer`, by its `Status:` line (none: BLOCKED): DONE is PASS, DONE_WITH_CONCERNS is ISSUES, BLOCKED and NEEDS_CONTEXT are BLOCKED. `kern:investigator`: an answer where every fact carries a citation and a label, with an empty or \"none\" could-not-trace list, is PASS; an uncited fact or a \"could not trace\" list is ISSUES; no answer, or a return that names a command it needs run, is BLOCKED. Missing evidence (no test output, no report file) gets one respawn naming it, then a gap. A worker silent past its TIMEBOX: check read-only whether its report file exists and whether `wt-snap` prints another tree, record a gap with what you found, and never resume it; a silent reader, which has neither, is re-asked once, then BLOCKED. Accept a late return, after its gap was recorded, only while its unit is still open in the caller's ledger, if any, and no other worker took it; else leave its tree unapplied and note that in its gap. Account for every worker; a gap is not a pass.\n6. Integrate one worker at a time. `bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fwt-diff \u003Cwt> \u003Cstarting-tree> --out \u003Cdir>\u002F\u003Cworker>.diff --allow \u003Cpath>` with one `--allow` per writable SCOPE path (a directory ends in `\u002F`, a prefix in `*`); `\u003Cdir>` is the caller's ledger `reviews\u002F` folder, else `bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fkern-dir reviews` prints it. It prints the package path, the tree, then changed paths; the patch is `\u003Cdir>\u002F\u003Cworker>.diff.patch`. Exit 3 is no change: a gap. Exit 4 is a write outside SCOPE: ISSUES, apply nothing, stop. Then `bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fwt-apply \u003Cdir>\u002F\u003Cworker>.diff.patch \u003Cintegration-wt>` (the caller's, else a `wt-new` one) prints `applied`, and only then record wt-diff's second line; exit 3 is a conflict with nothing applied: stop, no tree recorded. After the last patch run `test.full` there (`kern-get`, else `kern-detect`; both exit 3: ask), name each red test as before or after, and spot-check one claim per worker against its diff.\n7. Report a table with columns `worker | verdict | files | evidence | gaps`, serial units with their reason, each recorded tree in evidence. Assert the main branch still matches step 2's.\n8. Teardown follows `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fparallel-work\u002Freferences\u002Fworktrees.md`: `wt-audit` filtered to this run's worktrees, `--force` only when all five preconditions there hold, every removal only on the user's yes.\n\n## Inputs\n\n| Key | Default | Use |\n|---|---|---|\n| `base_branch` | detected | worktree base |\n| `worktree.dir`, `worktree.setup` | `.claude\u002Fworktrees` under MAIN; none | location; setup |\n| `shared_services` | none | serialization |\n| `parallel.max` | 3 | workers at once |\n| `model.implementer`, `model.investigator` | `sonnet`, `opus` | worker models |\n\n## Outputs\n\nPackages and patches in step 6's `\u003Cdir>` (default `WORK\u002Freviews\u002F`); briefs and reports in `WORK\u002Ftmp\u002F`.\n\n## Stops and autopilot\n\nStops at steps 1, 3, 6, 7 and 8 (a unit or worktree that will not pass, a conflict, a gap, teardown). An AskUserQuestion answer records no prompt line, so Guard G20 denies it; ask in chat. Autopilot is on per the latest kern signal (an `autopilot ON:` reminder or a `kern mode:` line with `autopilot=on`), else the kernel's \"Autopilot:\" line; a turn with no mode line changes nothing. When on, each stop waits for a typed reply, with the data and a recommendation: an unclassifiable unit or a brief that will not pass holds that unit while the rest continue, a conflicted or out-of-SCOPE worker stays unapplied, the gap stands. Teardown never runs under autopilot (G1 denies `git worktree remove --force`); the worktrees are listed instead.\n",{"name":5,"description":7,"disable-model-invocation":24},true,"main","566793b007864157e244f69e86c4e72712117985","skills\u002Fparallel-work","https:\u002F\u002Fgithub.com\u002FMustaMohamed\u002Fkern","https:\u002F\u002Fgithub.com\u002FMustaMohamed","https:\u002F\u002Fmustamohamed.github.io\u002FResume\u002F","Software Engineer @MusalaSoft and ACMer. I focus on open-source technologies and projects. I'm working mainly with .Net Core, NodeJS and React.","2026-11-09 20:40:55",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":24},[35,38,41],{"tool":36,"command":37},"npx","npx skills add MustaMohamed\u002Fkern --skill parallel-work",{"tool":39,"command":40},"bunx","bunx skills add MustaMohamed\u002Fkern --skill parallel-work",{"tool":42,"command":43},"pnpm","pnpm dlx skills add MustaMohamed\u002Fkern --skill parallel-work","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMustaMohamed\u002Fkern\u002Fblob\u002Fmain\u002Fskills\u002Fparallel-work\u002FSKILL.md",[46,52],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fbrief-template.md","REFERENCE","参考文档",1579,"https:\u002F\u002Fgithub.com\u002FMustaMohamed\u002Fkern\u002Fblob\u002Fmain\u002Fskills\u002Fparallel-work\u002Freferences\u002Fbrief-template.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fworktrees.md",2182,"https:\u002F\u002Fgithub.com\u002FMustaMohamed\u002Fkern\u002Fblob\u002Fmain\u002Fskills\u002Fparallel-work\u002Freferences\u002Fworktrees.md",[57,64,71,78,85,92],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7EJ7NBAV9N8T2TC3ZMRHTPR","unslop","Rules for prose others read: artifact shapes, document rules and the catalog of AI-writing tells.","https:\u002F\u002Fgithub.com\u002FMustaMohamed\u002Fkern\u002Fblob\u002Fmain\u002Fskills\u002Funslop\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7EJ7HG7GGWG7BRD1D0Q6MCV","technical-writing","Write docs, PR bodies, issues and commit messages a tired engineer understands on the first read.","https:\u002F\u002Fgithub.com\u002FMustaMohamed\u002Fkern\u002Fblob\u002Fmain\u002Fskills\u002Ftechnical-writing\u002FSKILL.md",[],[],{"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":19},"01M7EJ7E78Z0Y0HMKQ9RYQN7E7","self-review","Check your own diff before a PR: deterministic checks, blast radius, probes, a fresh doubt pass, then a verdict.","https:\u002F\u002Fgithub.com\u002FMustaMohamed\u002Fkern\u002Fblob\u002Fmain\u002Fskills\u002Fself-review\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7EJ7A0S8CGQWG55QR0KWGX0","recall","Use when starting or resuming work and state must be rebuilt first: \"where did I leave off\", \"catch me up on X\", \"what remains\", \"I got lost in these PRs\", a session after days away, or \"recall chat\" for this thread since my last message. Not for one named session.","https:\u002F\u002Fgithub.com\u002FMustaMohamed\u002Fkern\u002Fblob\u002Fmain\u002Fskills\u002Frecall\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7EJ77EMJVXHDRZCKVZ3B94V","prove-it","Use before saying work is done, fixed, passing or verified; before a commit, push or PR; and when a subagent reports success. Runs the proving command fresh, reads all output, checks each acceptance line, and labels other claims measured, inferred or guess.","https:\u002F\u002Fgithub.com\u002FMustaMohamed\u002Fkern\u002Fblob\u002Fmain\u002Fskills\u002Fprove-it\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7EJ75P5KZG3T8D649D6N90W","plan","Turn an approved spec into ordered tasks with exact files, test-first steps, verify commands and blocking edges.","https:\u002F\u002Fgithub.com\u002FMustaMohamed\u002Fkern\u002Fblob\u002Fmain\u002Fskills\u002Fplan\u002FSKILL.md",[],[]]