[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77ZTZ6M6H3H3T00SEM0JST0":3,"skill-same:01M77ZTZ6M6H3H3T00SEM0JST0":45},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M77ZTZ6M6H3H3T00SEM0JST0","constructs",null,"Use when maintaining the generated construct index at plugin\u002Fskills\u002Feffected-packages\u002Freferences\u002Fconstructs\u002F — regenerating it after a package's exports change, authoring intent annotations for new value-kind exports, or repairing a construct-index.bats failure (drift, stale annotation, missing intent). The index is generated; never hand-edit it.","spencerbeggs\u002Feffected","spencerbeggs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F109114?v=4","01M77ZTHB70K5Y2VVTRCFY50A5","C. Spencer Beggs","01M77ZTHCC41NXBT3X906K6QM1",8,"MIT","https:\u002F\u002Fgithub.com\u002Fspencerbeggs\u002Feffected\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fconstructs\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: constructs\ndescription: Use when maintaining the generated construct index at plugin\u002Fskills\u002Feffected-packages\u002Freferences\u002Fconstructs\u002F — regenerating it after a package's exports change, authoring intent annotations for new value-kind exports, or repairing a construct-index.bats failure (drift, stale annotation, missing intent). The index is generated; never hand-edit it.\n---\n\n# Maintaining the construct index\n\nThe construct index (effected#188) is one generated markdown table per kit\npackage under `plugin\u002Fskills\u002Feffected-packages\u002Freferences\u002Fconstructs\u002F`,\nrendered by `plugin\u002Fscripts\u002Fgenerate-constructs.mts` from each package's\nbuild-emitted doc model (`packages\u002F\u003Cdir>\u002Fdist\u002Fprod\u002Fnpm\u002Fmeta\u002F\u003Cdir>.api.json`)\njoined with `plugin\u002Fscripts\u002Fconstruct-annotations.json`. The generated files\nare never hand-edited — every change flows through the annotations file or the\nsource itself, then regeneration.\n\n`plugin\u002F__test__\u002Fconstruct-index.bats` enforces three things: the committed\nfiles match a fresh regeneration, no annotation names a construct that no\nlonger exists, and every value-kind export (Class \u002F Variable \u002F Function \u002F\nEnum) carries an intent annotation. Interfaces and type aliases ride on their\nTSDoc summary; annotating them is optional.\n\n## The loop\n\n1. `pnpm build --filter @effected\u002F\u003Cpkg>` for each package you changed — the\n   doc models must postdate the source. A missing model fails the generator\n   with exit 2 and a `build first:` message; a model older than any file in\n   its package's `src\u002F` fails with exit 3 and a `stale doc model:` message\n   naming the package, both timestamps and the rebuild command.\n2. `node plugin\u002Fscripts\u002Fgenerate-constructs.mts check --require-intent --only \u003Cpkg,...>` —\n   lists stale annotations and unannotated value constructs for those\n   packages (drop `--only` to check the whole kit; every model must then be\n   fresh).\n3. Author what it lists in `plugin\u002Fscripts\u002Fconstruct-annotations.json`\n   (shape below). Read the construct's source first — never write intent\n   keywords from the name alone.\n4. `node plugin\u002Fscripts\u002Fgenerate-constructs.mts generate --only \u003Cpkg,...>` —\n   rewrites only those packages' committed tables, leaving every other table\n   byte-identical. Name every package whose table the change touches,\n   including the other side of an `implements` link. A bare `generate` reads\n   every package's model, so a stale local build of an unrelated package\n   would otherwise rewrite its rows (effected#839).\n5. `pnpm build --filter @effected\u002Fai-plugins` — copies the regenerated tables\n   into both committed builds under `plugin\u002Fbuilds\u002F`. The pre-push gate\n   blocks a push whose builds lag the source.\n6. `bats plugin\u002F__test__\u002Fconstruct-index.bats` — must be green before commit.\n\n## Annotations file shape\n\n```json\n{\n \"\u003CpackageDir>\": {\n  \"\u003CConstructName>\": \"intent keywords as a plain string\",\n  \"\u003COtherName>\": {\n   \"intent\": \"intent keywords\",\n   \"implements\": \"\u003CpackageDir>.\u003CContractName>\"\n  }\n }\n}\n```\n\n`implements` is single-sided: annotate only the implementing construct; the\ngenerator inverts the link so the contract's row says \"implemented by …\" and\nthe implementation's row says \"implements …\" — both packages' files update\nfrom one entry.\n\n## Writing intent keywords\n\nThe intent column is what an agent greps when it knows the *goal* but not the\n*name* — that failure mode is the whole reason the index exists (four real\nmisses documented in #188). Rules:\n\n- Write the words a consumer would search: verbs plus objects. \"validate NTIA\n  minimum elements, check SBOM compliance\" — not \"NTIA report class\".\n- Never restate the construct's name; the name is already in the row.\n- Aim for 3–12 words, hard cap 14, lowercase, comma-separated phrases. Terse\n  beats complete.\n- Emphasis-active tokens — anything containing `*` or `_` (env-var patterns\n  like `GITHUB_*`, `snake_case` names) — must be wrapped in code spans. The\n  pre-commit markdown fixer rewrites bare emphasis-like sequences, and an\n  un-spanned token breaks the committed-equals-regenerated fixed point.\n- A schema-plus-class merged row gets ONE annotation covering both faces.\n- If two constructs are a contract\u002Fimplementation pair across packages, the\n  implementing side carries `implements` — check for the kit's known splits\n  (`commands`\u002F`workspaces`, `npm`\u002F`workspaces`, `sbom`\u002F`github-actions`).\n- A construct whose TSDoc summary already contains the searchable verbs still\n  needs an annotation if it is value-kind — the check does not parse prose.\n\n## Repairing a red construct-index.bats\n\n- \"has drifted\" — someone changed exports or annotations without\n  regenerating: run step 4 for the drifted packages and commit the result. Never hand-edit the tables.\n  If it goes red AGAIN after that regeneration+commit, the markdown fixer\n  mutated a cell at commit time — code-span the offending emphasis-active\n  token in the annotation (rule above) and regenerate once more. Never loop on\n  plain regeneration; that never converges against a fixer that keeps\n  rewriting the same token.\n- \"stale annotation\" — the export was renamed or removed: move or delete the\n  annotation entry, regenerate.\n- \"dangling implements\" — an `implements` target names a package or construct\n  that does not exist: fix or drop the `implements` field. `check` validates\n  every `implements` target, not just staleness of the annotated name itself.\n- \"missing intent annotation\" — a new value-kind export landed: author it\n  (rules above), regenerate.\n- \"build first\" (exit 2) — the doc models are missing: `pnpm build`, then\n  rerun.\n- \"stale doc model\" (exit 3) — a package's `src\u002F` is newer than its model:\n  run the `pnpm build --filter …` command the message prints, then rerun. If\n  the same package is still stale after that build, turbo replayed a cache\n  hit onto an unchanged model (the source was touched without changing — a\n  branch switch or rebase): rebuild it with `--force`.\n","# Maintaining the construct index\n\nThe construct index (effected#188) is one generated markdown table per kit\npackage under `plugin\u002Fskills\u002Feffected-packages\u002Freferences\u002Fconstructs\u002F`,\nrendered by `plugin\u002Fscripts\u002Fgenerate-constructs.mts` from each package's\nbuild-emitted doc model (`packages\u002F\u003Cdir>\u002Fdist\u002Fprod\u002Fnpm\u002Fmeta\u002F\u003Cdir>.api.json`)\njoined with `plugin\u002Fscripts\u002Fconstruct-annotations.json`. The generated files\nare never hand-edited — every change flows through the annotations file or the\nsource itself, then regeneration.\n\n`plugin\u002F__test__\u002Fconstruct-index.bats` enforces three things: the committed\nfiles match a fresh regeneration, no annotation names a construct that no\nlonger exists, and every value-kind export (Class \u002F Variable \u002F Function \u002F\nEnum) carries an intent annotation. Interfaces and type aliases ride on their\nTSDoc summary; annotating them is optional.\n\n## The loop\n\n1. `pnpm build --filter @effected\u002F\u003Cpkg>` for each package you changed — the\n   doc models must postdate the source. A missing model fails the generator\n   with exit 2 and a `build first:` message; a model older than any file in\n   its package's `src\u002F` fails with exit 3 and a `stale doc model:` message\n   naming the package, both timestamps and the rebuild command.\n2. `node plugin\u002Fscripts\u002Fgenerate-constructs.mts check --require-intent --only \u003Cpkg,...>` —\n   lists stale annotations and unannotated value constructs for those\n   packages (drop `--only` to check the whole kit; every model must then be\n   fresh).\n3. Author what it lists in `plugin\u002Fscripts\u002Fconstruct-annotations.json`\n   (shape below). Read the construct's source first — never write intent\n   keywords from the name alone.\n4. `node plugin\u002Fscripts\u002Fgenerate-constructs.mts generate --only \u003Cpkg,...>` —\n   rewrites only those packages' committed tables, leaving every other table\n   byte-identical. Name every package whose table the change touches,\n   including the other side of an `implements` link. A bare `generate` reads\n   every package's model, so a stale local build of an unrelated package\n   would otherwise rewrite its rows (effected#839).\n5. `pnpm build --filter @effected\u002Fai-plugins` — copies the regenerated tables\n   into both committed builds under `plugin\u002Fbuilds\u002F`. The pre-push gate\n   blocks a push whose builds lag the source.\n6. `bats plugin\u002F__test__\u002Fconstruct-index.bats` — must be green before commit.\n\n## Annotations file shape\n\n```json\n{\n \"\u003CpackageDir>\": {\n  \"\u003CConstructName>\": \"intent keywords as a plain string\",\n  \"\u003COtherName>\": {\n   \"intent\": \"intent keywords\",\n   \"implements\": \"\u003CpackageDir>.\u003CContractName>\"\n  }\n }\n}\n```\n\n`implements` is single-sided: annotate only the implementing construct; the\ngenerator inverts the link so the contract's row says \"implemented by …\" and\nthe implementation's row says \"implements …\" — both packages' files update\nfrom one entry.\n\n## Writing intent keywords\n\nThe intent column is what an agent greps when it knows the *goal* but not the\n*name* — that failure mode is the whole reason the index exists (four real\nmisses documented in #188). Rules:\n\n- Write the words a consumer would search: verbs plus objects. \"validate NTIA\n  minimum elements, check SBOM compliance\" — not \"NTIA report class\".\n- Never restate the construct's name; the name is already in the row.\n- Aim for 3–12 words, hard cap 14, lowercase, comma-separated phrases. Terse\n  beats complete.\n- Emphasis-active tokens — anything containing `*` or `_` (env-var patterns\n  like `GITHUB_*`, `snake_case` names) — must be wrapped in code spans. The\n  pre-commit markdown fixer rewrites bare emphasis-like sequences, and an\n  un-spanned token breaks the committed-equals-regenerated fixed point.\n- A schema-plus-class merged row gets ONE annotation covering both faces.\n- If two constructs are a contract\u002Fimplementation pair across packages, the\n  implementing side carries `implements` — check for the kit's known splits\n  (`commands`\u002F`workspaces`, `npm`\u002F`workspaces`, `sbom`\u002F`github-actions`).\n- A construct whose TSDoc summary already contains the searchable verbs still\n  needs an annotation if it is value-kind — the check does not parse prose.\n\n## Repairing a red construct-index.bats\n\n- \"has drifted\" — someone changed exports or annotations without\n  regenerating: run step 4 for the drifted packages and commit the result. Never hand-edit the tables.\n  If it goes red AGAIN after that regeneration+commit, the markdown fixer\n  mutated a cell at commit time — code-span the offending emphasis-active\n  token in the annotation (rule above) and regenerate once more. Never loop on\n  plain regeneration; that never converges against a fixer that keeps\n  rewriting the same token.\n- \"stale annotation\" — the export was renamed or removed: move or delete the\n  annotation entry, regenerate.\n- \"dangling implements\" — an `implements` target names a package or construct\n  that does not exist: fix or drop the `implements` field. `check` validates\n  every `implements` target, not just staleness of the annotated name itself.\n- \"missing intent annotation\" — a new value-kind export landed: author it\n  (rules above), regenerate.\n- \"build first\" (exit 2) — the doc models are missing: `pnpm build`, then\n  rerun.\n- \"stale doc model\" (exit 3) — a package's `src\u002F` is newer than its model:\n  run the `pnpm build --filter …` command the message prints, then rerun. If\n  the same package is still stale after that build, turbo replayed a cache\n  hit onto an unchanged model (the source was touched without changing — a\n  branch switch or rebase): rebuild it with `--force`.\n",{"name":5,"description":7},"main","11d6b3ae59538b0e16ad67c315ecb0c25fcb0125",".claude\u002Fskills\u002Fconstructs",2,"https:\u002F\u002Fgithub.com\u002Fspencerbeggs\u002Feffected","https:\u002F\u002Fgithub.com\u002Fspencerbeggs","2026-11-14 07:03:25",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add spencerbeggs\u002Feffected --skill constructs",{"tool":37,"command":38},"bunx","bunx skills add spencerbeggs\u002Feffected --skill constructs",{"tool":40,"command":41},"pnpm","pnpm dlx skills add spencerbeggs\u002Feffected --skill constructs","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fspencerbeggs\u002Feffected\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fconstructs\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M780NVTD800KMFV869YNZED6","testing-actions","Use when writing or reviewing tests for @effected\u002Fgithub-actions, @effected\u002Fgithub, @effected\u002Fsbom or @effected\u002Fcommands — stubbing the GitHub API, writing a service's layerTest or makeTest double, testing the pre\u002Fmain\u002Fpost lifecycle through Action.run, or debugging why a test hits the real network or hangs.","https:\u002F\u002Fgithub.com\u002Fspencerbeggs\u002Feffected\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Ftesting-actions\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M780NPDSGFC0FCP7696NW11J","supply-chain-attestation","Use when generating a CycloneDX SBOM, checking NTIA minimum elements, building an in-toto statement or a SLSA provenance predicate, signing into a Sigstore DSSE bundle, or uploading an attestation to GitHub.","https:\u002F\u002Fgithub.com\u002Fspencerbeggs\u002Feffected\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fsupply-chain-attestation\u002FSKILL.md",[],[],{"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},"01M780NGP4QNZDH8T8Q8WZ18SA","structuring-an-action","Use when laying out a new GitHub Action repository on the @effected suite, deciding where a piece of code belongs (an entry point, a step, a shared service, a shim), or reviewing an existing action's file structure against the canonical shape.","https:\u002F\u002Fgithub.com\u002Fspencerbeggs\u002Feffected\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fstructuring-an-action\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M780NCD52H1Y03FS83WJ8BT5","running-commands-and-tools","Use when running a subprocess in Effect v4, spawning a command, capturing stdout\u002Fstderr\u002Fexit code, checking whether a CLI tool is installed or which copy to run, running a package-manager script through the project's launcher, detaching a background process, or redacting a secret from argv or captured output.","https:\u002F\u002Fgithub.com\u002Fspencerbeggs\u002Feffected\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Frunning-commands-and-tools\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M780N823DWNRMSY5X2NT5MSR","release-and-publish","Use when publishing a package to npm, reading the npm registry from Effect v4, checking whether a version is already published, cutting a release tag or GitHub release from an action, applying a release-age gate, or deriving tracking tags for GitHub Actions distribution.","https:\u002F\u002Fgithub.com\u002Fspencerbeggs\u002Feffected\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Frelease-and-publish\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M780MXRF6H20KCESTSSFB3HQ","hardening-a-parser-port","Use when porting or writing a recursive-descent parser, lexer, or tree-walker over untrusted text in the @effected monorepo — the class of hardening the cloud reviewer scans for on every migration. Covers stack-overflow depth guards (on EVERY recursion surface, which a facade has N of — not two), numeric bound guards that must reject NaN and non-integers, code-point range checks scoped to formats with wide escapes, prototype-pollution, control-character rejection, and the invariant that malformed input must fail through the typed error channel, never as an unhandled defect.","https:\u002F\u002Fgithub.com\u002Fspencerbeggs\u002Feffected\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fhardening-a-parser-port\u002FSKILL.md",[],[]]