[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EXDNP3DKJ987Y40CQNT3D5":3,"skill-same:01M7EXDNP3DKJ987Y40CQNT3D5":47},{"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":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7EXDNP3DKJ987Y40CQNT3D5","add-a-package",null,"Use when adding a new package under packages\u002F (or an app under apps\u002F). Covers the placement check, the dependency direction, public API, wiring, tests, and docs.","IntraverseGame\u002Fse-client-kit","IntraverseGame","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F106401126?v=4","01M7EXDHS7CGXX7G1CM6ZR69AG","Intraverse","01M7EXDHSXGC8ZJRQY5E0XCH6H",2,"MIT","https:\u002F\u002Fgithub.com\u002FIntraverseGame\u002Fse-client-kit\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fadd-a-package\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: add-a-package\ndescription: Use when adding a new package under packages\u002F (or an app under apps\u002F). Covers the placement check, the dependency direction, public API, wiring, tests, and docs.\n---\n\n# add-a-package\n\n## Prerequisites\n\n- An agreed spec (or accepted RFC) for the capability — see\n  [prd-to-spec](..\u002Fprd-to-spec\u002FSKILL.md).\n- Read [.ai\u002Fmemories\u002Farchitecture.md](..\u002F..\u002Fmemories\u002Farchitecture.md).\n- The toolchain exists (pnpm workspace, wireit scripts, oxlint and stylelint, Vitest, tsx for `tools\u002F`). Copy\n  the shape of an existing package under `packages\u002F`: `package.json` with the\n  `build` (`tsdown`) and `typecheck` (`tsc -p tsconfig.json`) wireit scripts (and\n  `test` once it has its first real test), `tsconfig.json` (with `declaration`\n  and `isolatedDeclarations` for a library: every export needs an explicit type),\n  and `tsdown.config.ts` (see `tsdown.base.ts`; add each entry point).\n\n## Workflow\n\n0. **Decide it is a package.** It must have one reason to exist, a public API\n   other code can use without its internals, and a place in the dependency\n   direction. If it is a helper of one package, keep it inside that package; no\n   `utils` or `common` package; name the concern. A package that holds a\n   credential is the shell's concern: new credential-handling code goes in the\n   shell, never in a leaf or an app.\n1. **Place it in the graph.** Today: `contracts` (data only) is a leaf; `snapshot` and\n   `play-client` depend on it; `signing` has no kit dependency at run time;\n   `shell` depends on `signing`, `snapshot`, and `play-client`; the `wrapper` app\n   depends on `shell`. Never put logic in `contracts`; data vendored from the\n   backend goes there, and only tests import its test-only entry.\n   State which packages the new one may import and which may import it; the\n   graph stays acyclic, a package never imports an app. Record the placement in\n   the packages' spec and in the architecture memory.\n2. **Layout:** `packages\u002F\u003Cname>\u002F` with `src\u002F` (internals), `src\u002Findex.ts` (the\n   only public entry point, holding only `export ... from` re-exports; no other\n   `index.ts` anywhere in the package), `test\u002F`, `package.json`, and a `tsconfig` that\n   extends the shared strict base. `package.json` has an `exports` map to the\n   entry point only, `\"type\": \"module\"`, an explicit `files` list that selects\n   only its `dist` output (`[\"dist\"]`; never `src`, `.wireit`, `*.tsbuildinfo`,\n   or a config file; npm adds `package.json` and the README itself), and no\n   lifecycle scripts. `tools\u002Fpackage-files.test.ts` and\n   `pnpm check:package-files` fail without it; add the new library to the\n   `dependencies` of the root `check:package-files` script.\n3. **Dependencies:** a workspace dependency on another kit package is allowed\n   only along the dependency direction. A third-party runtime dependency needs\n   an ADR first; a development tool needs a recorded decision. Pin per the\n   lockfile policy; never add a lifecycle script.\n4. **Enforce the direction:** add the package to the import-restriction rules of\n   the lint configuration so a forbidden import fails: a pair of `overrides`\n   entries in `.oxlintrc.json` (one for the package, one for its test files)\n   carrying a `no-restricted-imports` rule, and the package's name added to the\n   restricted groups of the others. Add a negative case to\n   `tools\u002Ffixtures\u002Fimport-direction-cases.ts` (the dependency-direction cases;\n   the other rule cases are in `lint-rule-cases.ts` and `style-rule-cases.ts`) proving the rule fires, and add the package\n   to the root `build` and `typecheck` wireit dependencies (and `test` when it\n   gets its first test), and to `packages\u002F*\u002Ftsdown.config.ts` coverage of the\n   root `tsconfig.json`. **Wire the graph:** a package resolves another through\n   its `exports`, which point at `dist\u002F`, so its `build`, `typecheck`, and `test`\n   wireit scripts list the `build` of every kit package it imports (and of\n   `contracts` when its tests import the test-only entry) in `dependencies`;\n   otherwise they may see a missing or stale `dist\u002F`. Add the new package's\n   `build` to the `dependencies` of each package or app that will import it.\n5. **API and types:** strict TypeScript, no `any`, named exports (ADR-001), `type`\n   over `interface` and arrow functions over `function` (AGENTS.md), no\n   side effects at import. Money amounts are strings or `bigint`. Errors are\n   typed. Nothing in the package logs or stores a key or token.\n6. **Build gotcha (`contracts`):** use named re-exports in its runtime source;\n   `export * as ns` makes rolldown emit an unmapped helper chunk that\n   `pnpm check:build-output` rejects.\n7. **Tests:** unit tests, vector replay for wire or crypto formats, and the\n   check that the public entry point exports exactly what the spec lists.\n8. **Release:** a changeset; mark the package private until it is meant to be\n   published; if it is published, its `exports`, provenance, and license are\n   set per the release runbook (planned).\n9. **Docs:** a spec for its contract (with its **Boundary** section), the\n   package map in `.ai\u002Fmemories\u002Farchitecture.md` and `overview.md`, the README\n   package list, and the package's own `README.md`. The README is public\n   documentation that ships to npm: write it for a consumer (what it is, when to\n   use it, install line, entry points, guarantees), with links only into this repository\n   (absolute `https:\u002F\u002Fgithub.com\u002FIntraverseGame\u002Fse-client-kit\u002Fblob\u002Fmain\u002F...`; any\n   other host fails) and\n   no contributor material; copy the shape of an existing one. Add the npm\n   metadata to the library's `package.json` (`description`, `keywords`,\n   `license`, `repository` with `directory`, `bugs`, `homepage`).\n   `tools\u002Freadmes.test.ts` fails without the README or if it breaks the rules.\n\n## Constraints\n\n- No new runtime dependency without an ADR; no `util`\u002F`common`\u002F`helpers` package.\n- Never import another package's internals; use its public entry point.\n- Public repository: no secrets, internal hostnames, or unpublished backend\n  internals in the new package or its fixtures.\n\n## Useful commands\n\n```sh\npnpm check\npnpm lint\n```\n\n## Expected output\n\nA building, linted, tested package with a public entry point, an enforced place\nin the dependency direction, and updated specs and memories.\n\n## References\n\n- [AGENTS.md#architecture-rules](..\u002F..\u002F..\u002FAGENTS.md#architecture-rules),\n  [reviewer agent](..\u002F..\u002Fagents\u002Freviewer.md)\n","# add-a-package\n\n## Prerequisites\n\n- An agreed spec (or accepted RFC) for the capability — see\n  [prd-to-spec](..\u002Fprd-to-spec\u002FSKILL.md).\n- Read [.ai\u002Fmemories\u002Farchitecture.md](..\u002F..\u002Fmemories\u002Farchitecture.md).\n- The toolchain exists (pnpm workspace, wireit scripts, oxlint and stylelint, Vitest, tsx for `tools\u002F`). Copy\n  the shape of an existing package under `packages\u002F`: `package.json` with the\n  `build` (`tsdown`) and `typecheck` (`tsc -p tsconfig.json`) wireit scripts (and\n  `test` once it has its first real test), `tsconfig.json` (with `declaration`\n  and `isolatedDeclarations` for a library: every export needs an explicit type),\n  and `tsdown.config.ts` (see `tsdown.base.ts`; add each entry point).\n\n## Workflow\n\n0. **Decide it is a package.** It must have one reason to exist, a public API\n   other code can use without its internals, and a place in the dependency\n   direction. If it is a helper of one package, keep it inside that package; no\n   `utils` or `common` package; name the concern. A package that holds a\n   credential is the shell's concern: new credential-handling code goes in the\n   shell, never in a leaf or an app.\n1. **Place it in the graph.** Today: `contracts` (data only) is a leaf; `snapshot` and\n   `play-client` depend on it; `signing` has no kit dependency at run time;\n   `shell` depends on `signing`, `snapshot`, and `play-client`; the `wrapper` app\n   depends on `shell`. Never put logic in `contracts`; data vendored from the\n   backend goes there, and only tests import its test-only entry.\n   State which packages the new one may import and which may import it; the\n   graph stays acyclic, a package never imports an app. Record the placement in\n   the packages' spec and in the architecture memory.\n2. **Layout:** `packages\u002F\u003Cname>\u002F` with `src\u002F` (internals), `src\u002Findex.ts` (the\n   only public entry point, holding only `export ... from` re-exports; no other\n   `index.ts` anywhere in the package), `test\u002F`, `package.json`, and a `tsconfig` that\n   extends the shared strict base. `package.json` has an `exports` map to the\n   entry point only, `\"type\": \"module\"`, an explicit `files` list that selects\n   only its `dist` output (`[\"dist\"]`; never `src`, `.wireit`, `*.tsbuildinfo`,\n   or a config file; npm adds `package.json` and the README itself), and no\n   lifecycle scripts. `tools\u002Fpackage-files.test.ts` and\n   `pnpm check:package-files` fail without it; add the new library to the\n   `dependencies` of the root `check:package-files` script.\n3. **Dependencies:** a workspace dependency on another kit package is allowed\n   only along the dependency direction. A third-party runtime dependency needs\n   an ADR first; a development tool needs a recorded decision. Pin per the\n   lockfile policy; never add a lifecycle script.\n4. **Enforce the direction:** add the package to the import-restriction rules of\n   the lint configuration so a forbidden import fails: a pair of `overrides`\n   entries in `.oxlintrc.json` (one for the package, one for its test files)\n   carrying a `no-restricted-imports` rule, and the package's name added to the\n   restricted groups of the others. Add a negative case to\n   `tools\u002Ffixtures\u002Fimport-direction-cases.ts` (the dependency-direction cases;\n   the other rule cases are in `lint-rule-cases.ts` and `style-rule-cases.ts`) proving the rule fires, and add the package\n   to the root `build` and `typecheck` wireit dependencies (and `test` when it\n   gets its first test), and to `packages\u002F*\u002Ftsdown.config.ts` coverage of the\n   root `tsconfig.json`. **Wire the graph:** a package resolves another through\n   its `exports`, which point at `dist\u002F`, so its `build`, `typecheck`, and `test`\n   wireit scripts list the `build` of every kit package it imports (and of\n   `contracts` when its tests import the test-only entry) in `dependencies`;\n   otherwise they may see a missing or stale `dist\u002F`. Add the new package's\n   `build` to the `dependencies` of each package or app that will import it.\n5. **API and types:** strict TypeScript, no `any`, named exports (ADR-001), `type`\n   over `interface` and arrow functions over `function` (AGENTS.md), no\n   side effects at import. Money amounts are strings or `bigint`. Errors are\n   typed. Nothing in the package logs or stores a key or token.\n6. **Build gotcha (`contracts`):** use named re-exports in its runtime source;\n   `export * as ns` makes rolldown emit an unmapped helper chunk that\n   `pnpm check:build-output` rejects.\n7. **Tests:** unit tests, vector replay for wire or crypto formats, and the\n   check that the public entry point exports exactly what the spec lists.\n8. **Release:** a changeset; mark the package private until it is meant to be\n   published; if it is published, its `exports`, provenance, and license are\n   set per the release runbook (planned).\n9. **Docs:** a spec for its contract (with its **Boundary** section), the\n   package map in `.ai\u002Fmemories\u002Farchitecture.md` and `overview.md`, the README\n   package list, and the package's own `README.md`. The README is public\n   documentation that ships to npm: write it for a consumer (what it is, when to\n   use it, install line, entry points, guarantees), with links only into this repository\n   (absolute `https:\u002F\u002Fgithub.com\u002FIntraverseGame\u002Fse-client-kit\u002Fblob\u002Fmain\u002F...`; any\n   other host fails) and\n   no contributor material; copy the shape of an existing one. Add the npm\n   metadata to the library's `package.json` (`description`, `keywords`,\n   `license`, `repository` with `directory`, `bugs`, `homepage`).\n   `tools\u002Freadmes.test.ts` fails without the README or if it breaks the rules.\n\n## Constraints\n\n- No new runtime dependency without an ADR; no `util`\u002F`common`\u002F`helpers` package.\n- Never import another package's internals; use its public entry point.\n- Public repository: no secrets, internal hostnames, or unpublished backend\n  internals in the new package or its fixtures.\n\n## Useful commands\n\n```sh\npnpm check\npnpm lint\n```\n\n## Expected output\n\nA building, linted, tested package with a public entry point, an enforced place\nin the dependency direction, and updated specs and memories.\n\n## References\n\n- [AGENTS.md#architecture-rules](..\u002F..\u002F..\u002FAGENTS.md#architecture-rules),\n  [reviewer agent](..\u002F..\u002Fagents\u002Freviewer.md)\n",{"name":5,"description":7},"main","4b537f4ee2a8df7dba4156583d62922c0c87399c",".ai\u002Fskills\u002Fadd-a-package",0,"https:\u002F\u002Fgithub.com\u002FIntraverseGame\u002Fse-client-kit","https:\u002F\u002Fgithub.com\u002FIntraverseGame","https:\u002F\u002Fplay.intraverse.io","Intraverse is a platform creating engagement through cross-community.","2026-11-14 02:21:01",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add IntraverseGame\u002Fse-client-kit --skill add-a-package",{"tool":39,"command":40},"bunx","bunx skills add IntraverseGame\u002Fse-client-kit --skill add-a-package",{"tool":42,"command":43},"pnpm","pnpm dlx skills add IntraverseGame\u002Fse-client-kit --skill add-a-package","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FIntraverseGame\u002Fse-client-kit\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fadd-a-package\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7EXECT0MKSVJ78TDP62R8CZ","\u003Cskill-name>","Use when \u003Csituation>. One or two sentences.","https:\u002F\u002Fgithub.com\u002FIntraverseGame\u002Fse-client-kit\u002Fblob\u002Fmain\u002F.ai\u002Ftemplates\u002Fskill.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7EXE9STPWRCHBKPMRXBA4JE","write-tests","Use when adding or changing behavior, signing code, contracts, or the UI. Chooses the right test level and applies the repository's test rules.","https:\u002F\u002Fgithub.com\u002FIntraverseGame\u002Fse-client-kit\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fwrite-tests\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7EXE5SGQEC80S64WMVGKRCZ","spec-drift-sync","Use before merging any non-trivial change. Reconciles code with specs, and code\u002Fspecs with memories, runbooks, and telemetry docs (Spec Drift Synchronization).","https:\u002F\u002Fgithub.com\u002FIntraverseGame\u002Fse-client-kit\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fspec-drift-sync\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7EXE14F7TDGXT5JM4AH0ZVG","shepherd-a-pull-request","Use when reviewing a pull request on GitHub, following up on a review after new pushes, or answering review comments on your own pull request. The `gh` procedure behind the pr-shepherd agent, with draft-then-confirm posting.","https:\u002F\u002Fgithub.com\u002FIntraverseGame\u002Fse-client-kit\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fshepherd-a-pull-request\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7EXDWWNJK06KPEQNDBVAZT3","prd-to-spec","Use when given a rough PRD, feature request, or raw requirement. Turns it into a spec update, an RFC when the change is significant or contested, and an ADR for hard-to-reverse decisions.","https:\u002F\u002Fgithub.com\u002FIntraverseGame\u002Fse-client-kit\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fprd-to-spec\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7EXDR4HNXMM66VPME60Q63Q","ask-the-human","Use when you hit an open question, a decision that is not yours to make, a gap or ambiguity in a spec, or a draft that needs a human's confirmation. Asks through the host's structured-question tool with concrete options and a recommendation, instead of guessing or burying the question in prose.","https:\u002F\u002Fgithub.com\u002FIntraverseGame\u002Fse-client-kit\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fask-the-human\u002FSKILL.md",[],[]]