[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71KQZ640W3AQ707NFDANCMW":3,"skill-same:01M71KQZ640W3AQ707NFDANCMW":48},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":21,"linkOnly":22,"markdownContent":23,"markdownBody":24,"frontMatter":25,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M71KQZ640W3AQ707NFDANCMW","set-context",null,"tbeack\u002Ffsad_training","tbeack","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F206807984?v=4","01M6K7Q3C3VRTCVC55T71A1SY9","Theo Beack","01M71KPJZ6H9P6B793RT1JXX9R",4,"MIT","https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_training\u002Fblob\u002Fmain\u002Fskills\u002Fset-context\u002FSKILL.md",[],[18,19,20],"SET","context","set context","2026-11-10 10:56:23",false,"---\nname: set-context\ndescription: Gather codebase and initiative context before planning starts — runs a graphify build or query when graphify is available locally, falls back to a manual repo sweep otherwise, then asks targeted questions and writes a single context.md. Invocable standalone or as fsad-harness:plan's mandatory Phase 0. Use when the user says \"set context\", \"gather context\", or as the first step of fsad-harness:plan.\nargument-hint: `[target repo path]`\n---\n\n# fsad-harness:set-context — Context-Gathering Subskill\n\nGather everything a downstream planning pass needs — codebase shape plus the initiative's own\nboundaries — and emit it as a single `context.md` file. Nothing else reads or writes to disk in\nthis skill besides that one file (and, when graphify runs, whatever `graphify-out\u002F` it produces).\n\n## Invocation model — read this first\n\n**This skill runs inline**, in the same conversational turn as the interactive user, for every\npiece of user-facing interaction below: every targeted question in Step 3, and any question\ngraphify itself needs answered (its corpus-size subfolder prompt, its package-install notice).\n\nInvoking graphify's build **may** be dispatched via the `Agent` tool as a subagent when that's\nuseful — e.g. to isolate a long-running corpus scan while you keep the turn free. But if that\nsubagent hits graphify's own interactive pause (its >2,000,000-word \u002F >500-file subfolder\nquestion) or its package-install step, **it must stop and report back to this inline turn rather\nthan resolve the question itself** — you relay it to the user, get the answer, and resume the\nsubagent with it. A subagent that cannot relay is not a valid way to invoke graphify from this\nskill; if you can't guarantee that relay (e.g. no way to resume the dispatched agent with an\nanswer), run graphify inline instead.\n\n## Step 1 — Resolve the target\n\nDetermine the target repo\u002Fscope:\n- If an explicit path argument was given, use it.\n- Otherwise use the current working directory.\n\nConfirm the resolved path to the user in one line before continuing: *\"Gathering context for\n`{target}`.\"*\n\n## Step 2 — Codebase context: graphify or manual sweep\n\n1. Check whether `{target}\u002Fgraphify-out\u002Fgraph.json` already exists.\n   - **Exists** — this is a **query**, not a build. Run `graphify query \"What is this codebase's\n     overall architecture and module structure?\"` against it. Record the answer's key points in\n     `context.md` under Codebase Context, and note explicitly that this came from an existing\n     graph (`graphify-out\u002F` was already present — no build was run).\n   - **Does not exist** — check whether the `graphify` skill is installed locally\n     (`~\u002F.claude\u002Fskills\u002Fgraphify\u002FSKILL.md`).\n     - **Installed** — offer to run a graphify build against `{target}` (or dispatch it via\n       `Agent` per the invocation model above). **Tell the user before graphify installs\n       anything or before its corpus-size question could fire** — don't let either happen\n       silently:\n       - Graphify's own Step 1 checks whether its `graphifyy` package is installed and installs it\n         via `uv tool install` \u002F `pip install` if missing. Say so before triggering that step:\n         *\"graphify needs its package installed first if this is the first time it's run on this\n         machine — that'll happen automatically.\"*\n       - If graphify's corpus-size check trips (>2,000,000 words or >500 files), it will ask which\n         subfolder to scope to. Surface that question to the user directly the moment it fires —\n         do not let it silently stall this \"mandatory, non-skippable\" step.\n       - Once the build finishes, record a summary of what it found in `context.md` under Codebase\n         Context, and note that this came from a fresh build.\n     - **Not installed, or the user declines the offered build** — fall back to a manual context\n       sweep: repo structure (top-level layout), existing docs (README, CLAUDE.md, ADRs), package\n       manifests (package.json \u002F pyproject.toml \u002F etc.), recent git history (`git log\n       --oneline -20`), and any existing `planning\u002F` artifacts. Record findings under Codebase\n       Context and note explicitly that no graphify graph was used.\n\n## Step 3 — Targeted questions\n\nAsk the user each of the following that graphify or the manual sweep couldn't already answer.\nAsk **one at a time**, not as a form. Record every answer in `context.md` — a question asked but\nnever carried into the file is not actually gathered.\n\n1. **Initiative slug\u002Fname** — the name used to derive the output directory (see `fsad-harness:plan`'s Step\n   4 slug-transform algorithm: lowercase, non-alphanumeric runs collapsed to a single hyphen,\n   leading\u002Ftrailing hyphens trimmed — e.g. \"Auth Service Refactor!\" → `auth-service-refactor`).\n2. **Scope boundaries** — what's in scope for this initiative, and what's explicitly out.\n3. **Non-negotiable constraints** — technical, business, timeline, or behavior-preservation\n   constraints that must hold no matter what the plan proposes.\n4. **Stakeholders** — who cares about this initiative's outcome, and who needs to sign off.\n5. **Target repo** — confirm whether the plan ships to this same repo or a different one (this\n   matters when the plan is authored in one repo but targets another — don't assume they're the\n   same without asking).\n6. **Versioning\u002Frelease conventions** — the target repo's versioning scheme and release process,\n   if not already discoverable from the codebase sweep above.\n\nIf the user says \"use your best judgment\" for any of these, record a stated assumption in\n`context.md` rather than blocking — but always record something; never leave a question answered\nonly in the conversation and not in the file.\n\n## Step 4 — Emit context.md\n\nWrite a single structured `context.md` to `planning\u002Fplan\u002F\u003Cslug>\u002F` (using the slug from Step 3.1\nand the transform above), or to a scratch location — e.g. the repo root — if that directory\ndoesn't exist yet (it's created once the initiative is confirmed, in `fsad-harness:plan`'s Phase 0).\n\n**Why a file, not an in-memory handoff:** every downstream drafting agent (`fsad-harness:plan`'s Phase\n1-4.5) is a separately-dispatched `Agent`-tool subagent with no memory of this skill's own turn —\nonly a file survives across that boundary. Every downstream drafting agent's dispatch prompt must\nreference this file's path rather than re-deriving context independently; that's on `fsad-harness:plan`,\nnot this skill, but it's why this file's shape has to be complete on its own.\n\nTemplate:\n\n```markdown\n# Context — {initiative name}\n\n## Codebase Context\n[Summary from graphify query, graphify build, or manual sweep — and which of the three produced\nit]\n\n## Initiative\n- **Slug:** {slug}\n- **Scope boundaries:** {answer}\n- **Non-negotiable constraints:** {answer}\n- **Stakeholders:** {answer}\n- **Target repo:** {answer}\n- **Versioning\u002Frelease conventions:** {answer}\n```\n\nConfirm the written path to the user: *\"Context gathered and written to `{path}`.\"*\n\n## Guardrails\n\n- **Never run interactively-blocking work as a fire-and-forget subagent.** If graphify's build is\n  dispatched via `Agent`, it must be able to relay a pause back to this turn — otherwise run it\n  inline.\n- **Never let graphify install a package or ask its subfolder question without telling the user\n  first.** Both are disclosed pre-emptively in Step 2, not discovered after the fact.\n- **One question at a time** in Step 3 — never dump the six questions as a form.\n- **Always write `context.md`**, even when falling back to a stated assumption — a question with\n  no corresponding line in the file did not happen as far as any downstream agent is concerned.\n- **Never invent a graph.** If `graphify-out\u002Fgraph.json` doesn't exist and graphify isn't\n  installed (or the user declines), go straight to the manual sweep — don't guess at codebase\n  structure.\n","# fsad-harness:set-context — Context-Gathering Subskill\n\nGather everything a downstream planning pass needs — codebase shape plus the initiative's own\nboundaries — and emit it as a single `context.md` file. Nothing else reads or writes to disk in\nthis skill besides that one file (and, when graphify runs, whatever `graphify-out\u002F` it produces).\n\n## Invocation model — read this first\n\n**This skill runs inline**, in the same conversational turn as the interactive user, for every\npiece of user-facing interaction below: every targeted question in Step 3, and any question\ngraphify itself needs answered (its corpus-size subfolder prompt, its package-install notice).\n\nInvoking graphify's build **may** be dispatched via the `Agent` tool as a subagent when that's\nuseful — e.g. to isolate a long-running corpus scan while you keep the turn free. But if that\nsubagent hits graphify's own interactive pause (its >2,000,000-word \u002F >500-file subfolder\nquestion) or its package-install step, **it must stop and report back to this inline turn rather\nthan resolve the question itself** — you relay it to the user, get the answer, and resume the\nsubagent with it. A subagent that cannot relay is not a valid way to invoke graphify from this\nskill; if you can't guarantee that relay (e.g. no way to resume the dispatched agent with an\nanswer), run graphify inline instead.\n\n## Step 1 — Resolve the target\n\nDetermine the target repo\u002Fscope:\n- If an explicit path argument was given, use it.\n- Otherwise use the current working directory.\n\nConfirm the resolved path to the user in one line before continuing: *\"Gathering context for\n`{target}`.\"*\n\n## Step 2 — Codebase context: graphify or manual sweep\n\n1. Check whether `{target}\u002Fgraphify-out\u002Fgraph.json` already exists.\n   - **Exists** — this is a **query**, not a build. Run `graphify query \"What is this codebase's\n     overall architecture and module structure?\"` against it. Record the answer's key points in\n     `context.md` under Codebase Context, and note explicitly that this came from an existing\n     graph (`graphify-out\u002F` was already present — no build was run).\n   - **Does not exist** — check whether the `graphify` skill is installed locally\n     (`~\u002F.claude\u002Fskills\u002Fgraphify\u002FSKILL.md`).\n     - **Installed** — offer to run a graphify build against `{target}` (or dispatch it via\n       `Agent` per the invocation model above). **Tell the user before graphify installs\n       anything or before its corpus-size question could fire** — don't let either happen\n       silently:\n       - Graphify's own Step 1 checks whether its `graphifyy` package is installed and installs it\n         via `uv tool install` \u002F `pip install` if missing. Say so before triggering that step:\n         *\"graphify needs its package installed first if this is the first time it's run on this\n         machine — that'll happen automatically.\"*\n       - If graphify's corpus-size check trips (>2,000,000 words or >500 files), it will ask which\n         subfolder to scope to. Surface that question to the user directly the moment it fires —\n         do not let it silently stall this \"mandatory, non-skippable\" step.\n       - Once the build finishes, record a summary of what it found in `context.md` under Codebase\n         Context, and note that this came from a fresh build.\n     - **Not installed, or the user declines the offered build** — fall back to a manual context\n       sweep: repo structure (top-level layout), existing docs (README, CLAUDE.md, ADRs), package\n       manifests (package.json \u002F pyproject.toml \u002F etc.), recent git history (`git log\n       --oneline -20`), and any existing `planning\u002F` artifacts. Record findings under Codebase\n       Context and note explicitly that no graphify graph was used.\n\n## Step 3 — Targeted questions\n\nAsk the user each of the following that graphify or the manual sweep couldn't already answer.\nAsk **one at a time**, not as a form. Record every answer in `context.md` — a question asked but\nnever carried into the file is not actually gathered.\n\n1. **Initiative slug\u002Fname** — the name used to derive the output directory (see `fsad-harness:plan`'s Step\n   4 slug-transform algorithm: lowercase, non-alphanumeric runs collapsed to a single hyphen,\n   leading\u002Ftrailing hyphens trimmed — e.g. \"Auth Service Refactor!\" → `auth-service-refactor`).\n2. **Scope boundaries** — what's in scope for this initiative, and what's explicitly out.\n3. **Non-negotiable constraints** — technical, business, timeline, or behavior-preservation\n   constraints that must hold no matter what the plan proposes.\n4. **Stakeholders** — who cares about this initiative's outcome, and who needs to sign off.\n5. **Target repo** — confirm whether the plan ships to this same repo or a different one (this\n   matters when the plan is authored in one repo but targets another — don't assume they're the\n   same without asking).\n6. **Versioning\u002Frelease conventions** — the target repo's versioning scheme and release process,\n   if not already discoverable from the codebase sweep above.\n\nIf the user says \"use your best judgment\" for any of these, record a stated assumption in\n`context.md` rather than blocking — but always record something; never leave a question answered\nonly in the conversation and not in the file.\n\n## Step 4 — Emit context.md\n\nWrite a single structured `context.md` to `planning\u002Fplan\u002F\u003Cslug>\u002F` (using the slug from Step 3.1\nand the transform above), or to a scratch location — e.g. the repo root — if that directory\ndoesn't exist yet (it's created once the initiative is confirmed, in `fsad-harness:plan`'s Phase 0).\n\n**Why a file, not an in-memory handoff:** every downstream drafting agent (`fsad-harness:plan`'s Phase\n1-4.5) is a separately-dispatched `Agent`-tool subagent with no memory of this skill's own turn —\nonly a file survives across that boundary. Every downstream drafting agent's dispatch prompt must\nreference this file's path rather than re-deriving context independently; that's on `fsad-harness:plan`,\nnot this skill, but it's why this file's shape has to be complete on its own.\n\nTemplate:\n\n```markdown\n# Context — {initiative name}\n\n## Codebase Context\n[Summary from graphify query, graphify build, or manual sweep — and which of the three produced\nit]\n\n## Initiative\n- **Slug:** {slug}\n- **Scope boundaries:** {answer}\n- **Non-negotiable constraints:** {answer}\n- **Stakeholders:** {answer}\n- **Target repo:** {answer}\n- **Versioning\u002Frelease conventions:** {answer}\n```\n\nConfirm the written path to the user: *\"Context gathered and written to `{path}`.\"*\n\n## Guardrails\n\n- **Never run interactively-blocking work as a fire-and-forget subagent.** If graphify's build is\n  dispatched via `Agent`, it must be able to relay a pause back to this turn — otherwise run it\n  inline.\n- **Never let graphify install a package or ask its subfolder question without telling the user\n  first.** Both are disclosed pre-emptively in Step 2, not discovered after the fact.\n- **One question at a time** in Step 3 — never dump the six questions as a form.\n- **Always write `context.md`**, even when falling back to a stated assumption — a question with\n  no corresponding line in the file did not happen as far as any downstream agent is concerned.\n- **Never invent a graph.** If `graphify-out\u002Fgraph.json` doesn't exist and graphify isn't\n  installed (or the user declines), go straight to the manual sweep — don't guess at codebase\n  structure.\n",{},"main","e32e0d2b9fad831f2915fc773e03fd68d98c8c1e","skills\u002Fset-context",0,"https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_training","https:\u002F\u002Ffsad-training.vercel.app","https:\u002F\u002Fgithub.com\u002Ftbeack","2026-10-12 21:23:30",{"source":7,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add tbeack\u002Ffsad_training --skill set-context",{"tool":40,"command":41},"bunx","bunx skills add tbeack\u002Ffsad_training --skill set-context",{"tool":43,"command":44},"pnpm","pnpm dlx skills add tbeack\u002Ffsad_training --skill set-context","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_training\u002Fblob\u002Fmain\u002Fskills\u002Fset-context\u002FSKILL.md",true,[],[49,58,67,89,110,119],{"skillNo":50,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":21},"01M71KR8NEVXYHFZ9YF9PBEMH9","verify-ac","https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_training\u002Fblob\u002Fmain\u002Fskills\u002Fverify-ac\u002FSKILL.md",[],[55,56,57],"verify ac","ac","verify",{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":21},"01M71KR6NR71VM37PJX36EM18X","spec-review","https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_training\u002Fblob\u002Fmain\u002Fskills\u002Fspec-review\u002FSKILL.md",[],[64,65,66],"spec","review","spec review",{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":21},"01M71KR55DS0Q45W9YF0516AX4","ship","Short alias for \u002Ffsad-harness:ship-it. Wrap up finished work, cut a version, commit, push, and open a PR.","https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_training\u002Fblob\u002Fmain\u002Fskills\u002Fship\u002FSKILL.md",[],[69,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88],"for","pr","cut","short","up","wrap","open","wrap up","version","commit","it","push","work","alias","harness",{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":21},"01M71KR0YNJ99YAJGEDPHZTTTQ","ship-it","Wrap up a finished round of work — verify README and CHANGELOG are current, cut a version if warranted, move completed task files into the completed\u002F folder, then create a feature branch if needed, commit, push, and open a PR. Run after `\u002Ffsad-harness:do-task` has marked one or more tasks done. Takes no arguments.","https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_training\u002Fblob\u002Fmain\u002Fskills\u002Fship-it\u002FSKILL.md",[],[84,96,69,97,98,99,100,101,78,102,86,103,104,83,105,106,107,108,109,80],"ship it","move","parse","checkout","branch","ls","gh pr","create","log","tasks","Bash","done","files","remote",{"skillNo":111,"name":112,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":21},"01M71KQV6HR3HP3G2K0BFC011Y","sec-review-team","https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_training\u002Fblob\u002Fmain\u002Fskills\u002Fsec-review-team\u002FSKILL.md",[],[116,65,117,118],"team","sec review team","review team",{"skillNo":120,"name":121,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":21},"01M71KQQREFKM53TYCAB13FABN","sec-review-fixes","https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_training\u002Fblob\u002Fmain\u002Fskills\u002Fsec-review-fixes\u002FSKILL.md",[],[65,125,126,127],"fixes","review fixes","sec review fixes"]