[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78D0KFNWB12TWH13M28DBQG":3,"skill-same:01M78D0KFNWB12TWH13M28DBQG":59},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M78D0KFNWB12TWH13M28DBQG","graft",null,"Use when you need to locate, understand, or assess the blast radius of code in a repo that has a graft\u002F index — \"where is X handled\", \"what does this file expose\", \"who calls this before I rename it\", or first-time orientation in an unfamiliar tree. Answers come from the context graph as ranked file:line hits instead of a grep sweep. NOT for editing code, and NOT for repos with no graft\u002F index (build one first, or use \u002Fsearch).","atretyak1985\u002Fswarmery","atretyak1985","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1436737?v=4","01M78CTSX57YH0EYY9YGH0TWKX","Andrii Tretiak","01M78CTSXRPJPYQ7GNPMP45TYX",8,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Fplugins\u002Fgraft-pack\u002Fskills\u002Fgraft\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: graft\ndescription: \"Use when you need to locate, understand, or assess the blast radius of code in a repo that has a graft\u002F index — \\\"where is X handled\\\", \\\"what does this file expose\\\", \\\"who calls this before I rename it\\\", or first-time orientation in an unfamiliar tree. Answers come from the context graph as ranked file:line hits instead of a grep sweep. NOT for editing code, and NOT for repos with no graft\u002F index (build one first, or use \u002Fsearch).\"\ndocs:\n  status: draft\n  updated: 2026-09-09\n---\n\n# graft\n\n`graft` is a context graph over the repo: every file and symbol as a node, `calls`\u002F`imports`\u002F`contains` as edges, kept next to the code in `graft\u002F`. Its whole point is that finding code should cost one ranked answer, not a widening sequence of greps.\n\nRequires the `graft` CLI on the machine (`npm i -g @nanonets\u002Fgraft`). No API key and no model call for anything below — every command here is a local graph read.\n\n## Pick the command from the question\n\n| The question you actually have | Command |\n|---|---|\n| \"How does X work?\" \u002F \"Where is X handled?\" | `graft ask \"\u003Cquestion>\" --source -n 5` |\n| \"Every place this string\u002Fpattern appears\" | `graft grep \"\u003Cpattern>\"` |\n| \"What does this file expose?\" | `graft skeleton \u003Cpath>` |\n| \"Who calls this?\" — before a rename or delete | `graft callers \u003Csymbol> --depth 2` |\n| \"What does this call?\" | `graft callers \u003Csymbol> --direction out` |\n| \"I have never seen this repo\" | `graft map` |\n\n`--source` is the flag that matters on `ask`: it inlines the code at each hit, so the\nanswer replaces opening the files rather than pointing at them. Reach for `--full`\nonly when a crux excerpt genuinely cut something you need.\n\n## Rules\n\n1. **No index, no graft.** If `graft\u002F` is absent, say so and use `\u002Fsearch`; do not build one mid-task without asking.\n2. **`ask` before `grep`.** `ask` is ranked and graph-aware; `grep` is exhaustive and unranked. Use `grep` when you need *every* occurrence, not to start a hunt.\n3. **Depth is a claim about risk.** On `callers`, `d=1` breaks, `d=2` probably breaks, deeper is a maybe. `--depth all` gives the full closure for a delete.\n4. **Confidence is not decoration.** `extracted` edges come from the syntax tree; `inferred` edges were resolved heuristically — verify one before calling it a break.\n5. **A stale graph lies by omission.** New callers it never saw read as \"safe to change\". `graft check` fails on staleness; a plain `graft build` is incremental.\n6. Never report tokens saved. The graph is how you work, not a result to announce.\n\nNarrow any command to a subtree with `--in \u003Cpath>`, and add `--json` when you need to\nparse rather than read.\n\nSee `references\u002Fcommands.md` for the full flag surface and `references\u002Fgraph-shape.md`\nfor the on-disk format the hooks read.\n\n# How to use\n\n## What it does\n\nTurns \"where is this handled?\" into one ranked answer with exact `file:line` locators, read from a context graph built from the repository's own syntax trees. It also answers who calls a symbol, what a file exposes, and what the repo's shape is — each from the same local graph, with no model call and no API key.\n\n## When to use it\n\n- You need to find code in a repo that has a `graft\u002F` index and you would otherwise start grepping for a name you are guessing at.\n- You are about to rename, change the signature of, or delete a symbol and need its callers before you touch it.\n- You want a file's API surface without reading the file.\n- You have just landed in an unfamiliar repository and need orientation before picking a starting point.\n\n## When not to use it\n\n- The repo has no `graft\u002F` directory — there is no graph to read, so use `\u002Fsearch` instead.\n- You want to edit code; this skill only reads.\n- You need a rendered architecture diagram rather than locators — use `\u002Farchitecture-map`.\n\n## How to invoke\n\n```\ngraft ask \"where are inbound webhooks verified\" --source -n 5\n```\n\nRun the CLI directly from the repository root. The skill is guidance for choosing the right subcommand, not a wrapper — there is no `\u002Fgraft` command to type. The pack's two hooks call the same CLI for you on prompts and after edits.\n\n## Inputs\n\n- **question or symbol** — required. A plain-language question for `ask`, a bare or qualified symbol name for `callers`, a repo-relative path for `skeleton`, a regex for `grep`.\n- **`--in \u003Cpath>`** — optional path prefix that narrows matches to one subtree before scoring.\n- **`--depth \u003Cn|all>`** — optional on `callers`; how many hops of blast radius to walk.\n\n## What you get back\n\nRanked hits printed to the terminal, each with a `file:LSTART-LEND` pointer, the enclosing symbol's signature, and — with `--source` — the code itself, so the output is usually the answer rather than a lead. `callers` returns the dependents grouped by hop distance with an `extracted`\u002F`inferred` confidence tag per edge. Every command takes `--json` for the same content as a parseable object. Nothing is written and no file is modified.\n\n## Worked example\n\n```\ngraft callers OrderStatus --depth 2\n\n→ d=1  src\u002Forders\u002Froute.ts:45     createOrder          [calls, extracted]\n  d=1  src\u002Forders\u002Fschema.ts:12    OrderPayload         [imports, extracted]\n  d=2  src\u002Fapi\u002Fwebhooks.ts:88     handleStatusUpdate   [calls, inferred]\n```\n\nYou learn before editing that two call sites break immediately, that a third is a\nheuristic match worth opening, and that the rename is a three-file change rather\nthan the one-file change it looked like.\n\n## Related\n\n- `\u002Fimpact` — full cross-repo blast-radius report; prefers `graft callers` when the CLI is present.\n- `\u002Fsearch` — plain ripgrep, for repos with no graph.\n- `\u002Farchitecture-map` — rendered architecture overview rather than locators.\n","# graft\n\n`graft` is a context graph over the repo: every file and symbol as a node, `calls`\u002F`imports`\u002F`contains` as edges, kept next to the code in `graft\u002F`. Its whole point is that finding code should cost one ranked answer, not a widening sequence of greps.\n\nRequires the `graft` CLI on the machine (`npm i -g @nanonets\u002Fgraft`). No API key and no model call for anything below — every command here is a local graph read.\n\n## Pick the command from the question\n\n| The question you actually have | Command |\n|---|---|\n| \"How does X work?\" \u002F \"Where is X handled?\" | `graft ask \"\u003Cquestion>\" --source -n 5` |\n| \"Every place this string\u002Fpattern appears\" | `graft grep \"\u003Cpattern>\"` |\n| \"What does this file expose?\" | `graft skeleton \u003Cpath>` |\n| \"Who calls this?\" — before a rename or delete | `graft callers \u003Csymbol> --depth 2` |\n| \"What does this call?\" | `graft callers \u003Csymbol> --direction out` |\n| \"I have never seen this repo\" | `graft map` |\n\n`--source` is the flag that matters on `ask`: it inlines the code at each hit, so the\nanswer replaces opening the files rather than pointing at them. Reach for `--full`\nonly when a crux excerpt genuinely cut something you need.\n\n## Rules\n\n1. **No index, no graft.** If `graft\u002F` is absent, say so and use `\u002Fsearch`; do not build one mid-task without asking.\n2. **`ask` before `grep`.** `ask` is ranked and graph-aware; `grep` is exhaustive and unranked. Use `grep` when you need *every* occurrence, not to start a hunt.\n3. **Depth is a claim about risk.** On `callers`, `d=1` breaks, `d=2` probably breaks, deeper is a maybe. `--depth all` gives the full closure for a delete.\n4. **Confidence is not decoration.** `extracted` edges come from the syntax tree; `inferred` edges were resolved heuristically — verify one before calling it a break.\n5. **A stale graph lies by omission.** New callers it never saw read as \"safe to change\". `graft check` fails on staleness; a plain `graft build` is incremental.\n6. Never report tokens saved. The graph is how you work, not a result to announce.\n\nNarrow any command to a subtree with `--in \u003Cpath>`, and add `--json` when you need to\nparse rather than read.\n\nSee `references\u002Fcommands.md` for the full flag surface and `references\u002Fgraph-shape.md`\nfor the on-disk format the hooks read.\n\n# How to use\n\n## What it does\n\nTurns \"where is this handled?\" into one ranked answer with exact `file:line` locators, read from a context graph built from the repository's own syntax trees. It also answers who calls a symbol, what a file exposes, and what the repo's shape is — each from the same local graph, with no model call and no API key.\n\n## When to use it\n\n- You need to find code in a repo that has a `graft\u002F` index and you would otherwise start grepping for a name you are guessing at.\n- You are about to rename, change the signature of, or delete a symbol and need its callers before you touch it.\n- You want a file's API surface without reading the file.\n- You have just landed in an unfamiliar repository and need orientation before picking a starting point.\n\n## When not to use it\n\n- The repo has no `graft\u002F` directory — there is no graph to read, so use `\u002Fsearch` instead.\n- You want to edit code; this skill only reads.\n- You need a rendered architecture diagram rather than locators — use `\u002Farchitecture-map`.\n\n## How to invoke\n\n```\ngraft ask \"where are inbound webhooks verified\" --source -n 5\n```\n\nRun the CLI directly from the repository root. The skill is guidance for choosing the right subcommand, not a wrapper — there is no `\u002Fgraft` command to type. The pack's two hooks call the same CLI for you on prompts and after edits.\n\n## Inputs\n\n- **question or symbol** — required. A plain-language question for `ask`, a bare or qualified symbol name for `callers`, a repo-relative path for `skeleton`, a regex for `grep`.\n- **`--in \u003Cpath>`** — optional path prefix that narrows matches to one subtree before scoring.\n- **`--depth \u003Cn|all>`** — optional on `callers`; how many hops of blast radius to walk.\n\n## What you get back\n\nRanked hits printed to the terminal, each with a `file:LSTART-LEND` pointer, the enclosing symbol's signature, and — with `--source` — the code itself, so the output is usually the answer rather than a lead. `callers` returns the dependents grouped by hop distance with an `extracted`\u002F`inferred` confidence tag per edge. Every command takes `--json` for the same content as a parseable object. Nothing is written and no file is modified.\n\n## Worked example\n\n```\ngraft callers OrderStatus --depth 2\n\n→ d=1  src\u002Forders\u002Froute.ts:45     createOrder          [calls, extracted]\n  d=1  src\u002Forders\u002Fschema.ts:12    OrderPayload         [imports, extracted]\n  d=2  src\u002Fapi\u002Fwebhooks.ts:88     handleStatusUpdate   [calls, inferred]\n```\n\nYou learn before editing that two call sites break immediately, that a third is a\nheuristic match worth opening, and that the rename is a three-file change rather\nthan the one-file change it looked like.\n\n## Related\n\n- `\u002Fimpact` — full cross-repo blast-radius report; prefers `graft callers` when the CLI is present.\n- `\u002Fsearch` — plain ripgrep, for repos with no graph.\n- `\u002Farchitecture-map` — rendered architecture overview rather than locators.\n",{"docs":24,"name":5,"description":7},{"status":25,"updated":26},"draft",1788912000000,"main","2d9e918cc79c9b17b59356780ff0a3da38a3e98a","plugins\u002Fgraft-pack\u002Fskills\u002Fgraft",5,"https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery","https:\u002F\u002Fatretyak1985.github.io\u002Fswarmery\u002F","https:\u002F\u002Fgithub.com\u002Fatretyak1985","2026-11-11 04:29:12",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add atretyak1985\u002Fswarmery --skill graft",{"tool":41,"command":42},"bunx","bunx skills add atretyak1985\u002Fswarmery --skill graft",{"tool":44,"command":45},"pnpm","pnpm dlx skills add atretyak1985\u002Fswarmery --skill graft","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Fplugins\u002Fgraft-pack\u002Fskills\u002Fgraft\u002FSKILL.md",true,[49,55],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fcommands.md","REFERENCE","参考文档",4259,"https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Fplugins\u002Fgraft-pack\u002Fskills\u002Fgraft\u002Freferences\u002Fcommands.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fgraph-shape.md",5251,"https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Fplugins\u002Fgraft-pack\u002Fskills\u002Fgraft\u002Freferences\u002Fgraph-shape.md",[60,67,73,80,87,94],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M78D4T1FFWFW19Z44AHH5BSY","short-desc","Too short.","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fshort-desc\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M78D4S0TWT42WXFJHC1DBN0R","no-frontmatter","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fno-frontmatter\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M78D4Q14P8DJ4W78N62F3EG2","global-skill","Fixture global skill (minimal user-scope shape, format doc §2.3).","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fglobal-skill\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M78D4N1JHGQJQ7EZ43KY5SV3","documented-skill","Fixture skill whose usage guide deliberately omits the Worked example subsection.","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fdocumented-skill\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M78D4KVNZ03GBKGDFJZWW5FJ","z","NOT auto-discovered — only skills\u002F is scanned for plugins (§2.2).","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fplugins\u002Fcache\u002Fmkt\u002Ftoolpack\u002F1.0.0\u002Fworkflow-skills\u002Fz\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M78D4JMBRZWK51HFE5RZJGHC","y","Plugin skill y from toolpack — stored as \"toolpack:y\".","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fplugins\u002Fcache\u002Fmkt\u002Ftoolpack\u002F1.0.0\u002Fskills\u002Fy\u002FSKILL.md",[],[]]