[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79DJ7S3JP0XNH8VHF4P6R06":3,"skill-same:01M79DJ7S3JP0XNH8VHF4P6R06":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M79DJ7S3JP0XNH8VHF4P6R06","inspire-code-typescript",null,"TypeScript conventions: how semantic types render as types, schemas and columns, how mapping tokens expand, and the declaration-only tree. Use when writing or testing TypeScript code.","Genomcore\u002Finspire","Genomcore","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F67845649?v=4","01M79DGNHB5DVE1Q8TC7F3K4FY","01M79DGNM14QF64G5NWT5X00SY",0,"MIT","https:\u002F\u002Fgithub.com\u002FGenomcore\u002Finspire\u002Fblob\u002Fmain\u002Fplugin\u002Fbase\u002Fskills\u002Finspire-code-typescript\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: inspire-code-typescript\ndescription: \"TypeScript conventions: how semantic types render as types, schemas and columns, how mapping tokens expand, and the declaration-only tree. Use when writing or testing TypeScript code.\"\nstack: typescript\nlayer: language\n---\n\nRules here use MUST, MUST NOT, SHOULD and MAY (RFC 2119). MUST and MUST NOT are\nrequired: code that breaks one is wrong. SHOULD is the default; depart from it only\nwith the reason written in the code or the commit. MAY is optional. A **Seed**\nsection is the project's own convention: code MUST follow it exactly as written\nuntil the project edits it.\n\nThe **language profile** for TypeScript: the one home for how a semantic type\nrenders at the implementation boundary, and for how this language yields a\ndeclaration-only tree. It carries no architecture — layering, tests, forbidden\npatterns and build commands belong to the framework profiles that declare\n`language: typescript` (see [`stack-skills.md`](..\u002F_references\u002Fstack-skills.md) § The composition axis).\n\nThe universal semantic vocabulary — what each type *means* and the predicate it\nmust satisfy — lives in\n[`inspire-domain\u002Freferences\u002Ftype-mapping.md`](..\u002Finspire-domain\u002Freferences\u002Ftype-mapping.md)\nand is stack-agnostic. This file renders it.\n\n## Rendering\n\nOne row per universal semantic type. SQL is Postgres (see *Engine notes*).\n\n| Semantic | TypeScript | OpenAPI 3 | SQL |\n|---|---|---|---|\n| `email` | `string` | `{type: string, format: email}` | `VARCHAR(255)` |\n| `uuid` | `string` | `{type: string, format: uuid}` | `UUID` |\n| `timestamp` | `string` | `{type: string, format: date-time}` | `TIMESTAMPTZ` |\n| `date` | `string` | `{type: string, format: date}` | `DATE` |\n| `password` | `string` | `{type: string, format: password}` | `TEXT` |\n| `string` | `string` | `{type: string}` | `TEXT` |\n| `integer` | `number` | `{type: integer}` | `INTEGER` |\n| `number` | `number` | `{type: number, format: double}` | `DOUBLE PRECISION` |\n| `boolean` | `boolean` | `{type: boolean}` | `BOOLEAN` |\n| `json` | `Record\u003Cstring, unknown>` | `{type: object}` | `JSONB` |\n| `enum\u003CA,B,C>` | `\"A\"\\|\"B\"\\|\"C\"` | `{type: string, enum: [A, B, C]}` | `TEXT CHECK (col IN (...))` |\n\n`enum\u003C…>` is parametric: the variants come from the descriptor, the shape from\nthis row.\n\n## Mapping tokens\n\nHow each `Mapping`-column token expands here. The token *meanings* are universal\nand defined in [type-mapping.md](..\u002Finspire-domain\u002Freferences\u002Ftype-mapping.md); only the expansions are this file's.\n\n| Token | TypeScript | SQL default |\n|---|---|---|\n| `uuid()` | `crypto.randomUUID()` | `DEFAULT gen_random_uuid()` |\n| `now()` | `new Date().toISOString()` | `DEFAULT NOW()` |\n| `today()` | `new Date().toISOString().slice(0, 10)` | `DEFAULT CURRENT_DATE` |\n| `current_user` | `ctx.user.id` | — (resolved in the app layer) |\n| `input.{field}` | `input.{field}` | — (bound at runtime) |\n| `hash({field})` | `await bcrypt.hash(input.{field}, 10)` | — (app layer) |\n| `from {R.{field}}` | `(await read(R, {pk})).{field}` | — (app layer) |\n| `matches {pattern}` | — (validator) | — |\n| `—` | — | — |\n\n## Project semantic types\n\nA project declares its own semantic types in\n`inspire_kb\u002F00_bootstrap\u002Fsemantic-types.md`,\nand every one of them carries a **universal base type**.\n\n- **No row here → render as the declared base type**, in all three targets. A\n  project type is never a rendering hole; the base type is the guarantee that it\n  always has one.\n- **A row here wins.** To give a project type its own rendering, add a row to\n  *Rendering* above (and to *Mapping tokens* if it introduces one), and point at\n  this profile from that type's `Rendering` column in\n  `00_bootstrap\u002Fsemantic-types.md`. Adding project rows is the expected way to\n  edit this file.\n- A project type declaring **no** base type and having **no** row here has no\n  rendering at all — an emanation-readiness refusal, not a silent `unknown`.\n\n## Engine notes\n\nThe SQL column above is **Postgres**, the seeded default stack's database. On\nanother engine, edit the SQL column in place rather than adding a parallel one —\none project runs one engine, and two columns would let them disagree. The usual\nsubstitutions: `UUID` → `CHAR(36)`, `TIMESTAMPTZ` → `DATETIME` \u002F\n`TIMESTAMP WITH TIME ZONE`, `JSONB` → `JSON`, `gen_random_uuid()` → the engine's\ngenerator, `TEXT CHECK (…)` → a native `ENUM` where one exists.\n\n## Compile stub\n\nThe form a declared-but-unimplemented method takes in this language. The contract\nphase emits one per method and the implementer replaces it.\n\n**A stub throws, and its message names every parameter:**\n\n```ts\nexport function find(input: FindInput): Promise\u003CStudy> {\n  throw new Error(`not implemented: find(${input.id})`)\n}\n```\n\nNaming them is not decoration — it is what makes the stub legal. **The framework\nprofiles lint with oxlint, whose `no-unused-vars` (in its default `correctness`\ncategory) reports a parameter a function never reads**, so a stub that ignores its\ninput is a lint finding. Reading it in the message is the escape that costs\nnothing and holds under any configuration: oxlint's default lets an `_` prefix\nthrough, but that renames the parameter the contract declared, and a project that\nsets its own `argsIgnorePattern` takes the prefix away.\n\n**And a stub is never a suppression.** The escape-hatch ratchet holds every\nceiling at zero, so an inline disable is not available to buy this — which is why\nthe idiom is the *form of the stub* rather than a relaxation of the gate.\nInterpolate something the parameter carries (an id, a key); where it carries\nnothing nameable, `String(param)` reads it.\n\n## Declaration-only tree\n\nHow this language produces the bodies-stripped tree the test phase is packed\nwith — signatures and types present, implementations absent. TypeScript fuses\nsignature and body in one file, so the stripping is an emission, not a copy:\n\n1. Type-check the target package with declaration emission only —\n   `tsgo --declaration --emitDeclarationOnly --outDir \u003Cdest>` (per package, using\n   the package's own `tsconfig`; a project that builds with another tool sets the\n   equivalent flag rather than hand-editing sources). tsgo refuses an `outDir`\n   with no `rootDir` when the sources sit below the `tsconfig`'s directory\n   (`TS5011`); pass `--rootDir` set to the package root, which also keeps every\n   emitted path matching its source.\n2. The emitted `.d.ts` files replace the `.ts` sources in the packed tree, path\n   for path. Nothing else moves: `package.json`, `tsconfig.json`, fixtures and\n   the test directory are copied as they are.\n3. **Emission is the gate.** A package that does not type-check emits nothing, so\n   a declaration-only tree that cannot be produced is a defect in the contract\n   phase's output — never a reason to pack the sources instead.\n\nWhat survives: exported functions, classes and their public method signatures;\n`interface`, `type`, `enum` and const declarations; generics; JSDoc, when\n`\"stripInternal\"` is off. What does not: every function body, private members,\nand **decorators** — so anything a framework encodes only in a decorator\n(a NestJS route, a DI token) is invisible in the packed tree. That is why the\nframework profiles declare their bindings as a convention rather than leaving\nthem to be read off the code: the convention is legible where the decorator is\nnot.\n","Rules here use MUST, MUST NOT, SHOULD and MAY (RFC 2119). MUST and MUST NOT are\nrequired: code that breaks one is wrong. SHOULD is the default; depart from it only\nwith the reason written in the code or the commit. MAY is optional. A **Seed**\nsection is the project's own convention: code MUST follow it exactly as written\nuntil the project edits it.\n\nThe **language profile** for TypeScript: the one home for how a semantic type\nrenders at the implementation boundary, and for how this language yields a\ndeclaration-only tree. It carries no architecture — layering, tests, forbidden\npatterns and build commands belong to the framework profiles that declare\n`language: typescript` (see [`stack-skills.md`](..\u002F_references\u002Fstack-skills.md) § The composition axis).\n\nThe universal semantic vocabulary — what each type *means* and the predicate it\nmust satisfy — lives in\n[`inspire-domain\u002Freferences\u002Ftype-mapping.md`](..\u002Finspire-domain\u002Freferences\u002Ftype-mapping.md)\nand is stack-agnostic. This file renders it.\n\n## Rendering\n\nOne row per universal semantic type. SQL is Postgres (see *Engine notes*).\n\n| Semantic | TypeScript | OpenAPI 3 | SQL |\n|---|---|---|---|\n| `email` | `string` | `{type: string, format: email}` | `VARCHAR(255)` |\n| `uuid` | `string` | `{type: string, format: uuid}` | `UUID` |\n| `timestamp` | `string` | `{type: string, format: date-time}` | `TIMESTAMPTZ` |\n| `date` | `string` | `{type: string, format: date}` | `DATE` |\n| `password` | `string` | `{type: string, format: password}` | `TEXT` |\n| `string` | `string` | `{type: string}` | `TEXT` |\n| `integer` | `number` | `{type: integer}` | `INTEGER` |\n| `number` | `number` | `{type: number, format: double}` | `DOUBLE PRECISION` |\n| `boolean` | `boolean` | `{type: boolean}` | `BOOLEAN` |\n| `json` | `Record\u003Cstring, unknown>` | `{type: object}` | `JSONB` |\n| `enum\u003CA,B,C>` | `\"A\"\\|\"B\"\\|\"C\"` | `{type: string, enum: [A, B, C]}` | `TEXT CHECK (col IN (...))` |\n\n`enum\u003C…>` is parametric: the variants come from the descriptor, the shape from\nthis row.\n\n## Mapping tokens\n\nHow each `Mapping`-column token expands here. The token *meanings* are universal\nand defined in [type-mapping.md](..\u002Finspire-domain\u002Freferences\u002Ftype-mapping.md); only the expansions are this file's.\n\n| Token | TypeScript | SQL default |\n|---|---|---|\n| `uuid()` | `crypto.randomUUID()` | `DEFAULT gen_random_uuid()` |\n| `now()` | `new Date().toISOString()` | `DEFAULT NOW()` |\n| `today()` | `new Date().toISOString().slice(0, 10)` | `DEFAULT CURRENT_DATE` |\n| `current_user` | `ctx.user.id` | — (resolved in the app layer) |\n| `input.{field}` | `input.{field}` | — (bound at runtime) |\n| `hash({field})` | `await bcrypt.hash(input.{field}, 10)` | — (app layer) |\n| `from {R.{field}}` | `(await read(R, {pk})).{field}` | — (app layer) |\n| `matches {pattern}` | — (validator) | — |\n| `—` | — | — |\n\n## Project semantic types\n\nA project declares its own semantic types in\n`inspire_kb\u002F00_bootstrap\u002Fsemantic-types.md`,\nand every one of them carries a **universal base type**.\n\n- **No row here → render as the declared base type**, in all three targets. A\n  project type is never a rendering hole; the base type is the guarantee that it\n  always has one.\n- **A row here wins.** To give a project type its own rendering, add a row to\n  *Rendering* above (and to *Mapping tokens* if it introduces one), and point at\n  this profile from that type's `Rendering` column in\n  `00_bootstrap\u002Fsemantic-types.md`. Adding project rows is the expected way to\n  edit this file.\n- A project type declaring **no** base type and having **no** row here has no\n  rendering at all — an emanation-readiness refusal, not a silent `unknown`.\n\n## Engine notes\n\nThe SQL column above is **Postgres**, the seeded default stack's database. On\nanother engine, edit the SQL column in place rather than adding a parallel one —\none project runs one engine, and two columns would let them disagree. The usual\nsubstitutions: `UUID` → `CHAR(36)`, `TIMESTAMPTZ` → `DATETIME` \u002F\n`TIMESTAMP WITH TIME ZONE`, `JSONB` → `JSON`, `gen_random_uuid()` → the engine's\ngenerator, `TEXT CHECK (…)` → a native `ENUM` where one exists.\n\n## Compile stub\n\nThe form a declared-but-unimplemented method takes in this language. The contract\nphase emits one per method and the implementer replaces it.\n\n**A stub throws, and its message names every parameter:**\n\n```ts\nexport function find(input: FindInput): Promise\u003CStudy> {\n  throw new Error(`not implemented: find(${input.id})`)\n}\n```\n\nNaming them is not decoration — it is what makes the stub legal. **The framework\nprofiles lint with oxlint, whose `no-unused-vars` (in its default `correctness`\ncategory) reports a parameter a function never reads**, so a stub that ignores its\ninput is a lint finding. Reading it in the message is the escape that costs\nnothing and holds under any configuration: oxlint's default lets an `_` prefix\nthrough, but that renames the parameter the contract declared, and a project that\nsets its own `argsIgnorePattern` takes the prefix away.\n\n**And a stub is never a suppression.** The escape-hatch ratchet holds every\nceiling at zero, so an inline disable is not available to buy this — which is why\nthe idiom is the *form of the stub* rather than a relaxation of the gate.\nInterpolate something the parameter carries (an id, a key); where it carries\nnothing nameable, `String(param)` reads it.\n\n## Declaration-only tree\n\nHow this language produces the bodies-stripped tree the test phase is packed\nwith — signatures and types present, implementations absent. TypeScript fuses\nsignature and body in one file, so the stripping is an emission, not a copy:\n\n1. Type-check the target package with declaration emission only —\n   `tsgo --declaration --emitDeclarationOnly --outDir \u003Cdest>` (per package, using\n   the package's own `tsconfig`; a project that builds with another tool sets the\n   equivalent flag rather than hand-editing sources). tsgo refuses an `outDir`\n   with no `rootDir` when the sources sit below the `tsconfig`'s directory\n   (`TS5011`); pass `--rootDir` set to the package root, which also keeps every\n   emitted path matching its source.\n2. The emitted `.d.ts` files replace the `.ts` sources in the packed tree, path\n   for path. Nothing else moves: `package.json`, `tsconfig.json`, fixtures and\n   the test directory are copied as they are.\n3. **Emission is the gate.** A package that does not type-check emits nothing, so\n   a declaration-only tree that cannot be produced is a defect in the contract\n   phase's output — never a reason to pack the sources instead.\n\nWhat survives: exported functions, classes and their public method signatures;\n`interface`, `type`, `enum` and const declarations; generics; JSDoc, when\n`\"stripInternal\"` is off. What does not: every function body, private members,\nand **decorators** — so anything a framework encodes only in a decorator\n(a NestJS route, a DI token) is invisible in the packed tree. That is why the\nframework profiles declare their bindings as a convention rather than leaving\nthem to be read off the code: the convention is legible where the decorator is\nnot.\n",{"name":5,"layer":23,"stack":24,"description":7},"language","typescript","main","bf5124558fc1203b1fe5aea2d2ae38cfba34939b","plugin\u002Fbase\u002Fskills\u002Finspire-code-typescript",1,"https:\u002F\u002Fgithub.com\u002FGenomcore\u002Finspire","https:\u002F\u002Finspire.openbims.dev","https:\u002F\u002Fgithub.com\u002FGenomcore","https:\u002F\u002Fgenomcore.com","2026-11-13 22:27:32",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add Genomcore\u002Finspire --skill inspire-code-typescript",{"tool":40,"command":41},"bunx","bunx skills add Genomcore\u002Finspire --skill inspire-code-typescript",{"tool":43,"command":44},"pnpm","pnpm dlx skills add Genomcore\u002Finspire --skill inspire-code-typescript","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FGenomcore\u002Finspire\u002Fblob\u002Fmain\u002Fplugin\u002Fbase\u002Fskills\u002Finspire-code-typescript\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":18},"01M79DMDSD4Z004V0CB01EYKT4","update","Update this project's INSPIRE runtime to the installed plugin's version: report drift, re-materialize unchanged files, and refuse to clobber local edits. Use after \u002Fplugin update inspire reports a newer base.","https:\u002F\u002Fgithub.com\u002FGenomcore\u002Finspire\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fupdate\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":18},"01M79DMAENSXPJJPWTRA9CMBV0","migrate","Move this project's knowledge base from the layered layout (01_adr, 02_modules, 03_features, 04_domain, 05_screens and the surface roster) to the concept layout under inspire_kb\u002F01_spec\u002F, where every artifact has a typed extension, and convert its [[wikilinks]] to relative Markdown links. Run once, on purpose, after \u002Finspire:update reports the layered layout or counts wikilinks. Rebuilds nothing that is already built.","https:\u002F\u002Fgithub.com\u002FGenomcore\u002Finspire\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fmigrate\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M79DM6HZ7YN9M3WGXVN64AW1","init","Install the INSPIRE runtime into this repository: materialize the skills, validators, hooks and knowledge-base skeleton, register the hooks, and freeze the runtime version. Run once per project. Use when setting up INSPIRE in a new or existing repo.","https:\u002F\u002Fgithub.com\u002FGenomcore\u002Finspire\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Finit\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M79DM28JSC3GWEJ82346VGW6","inspire-workspace","Workspace-level validation: the global pre-PR review (orchestrating module + cross-module checks) and vault-structure validation. Use for the required pre-merge gate and top-level structure checks. ADR lifecycle lives in \u002Finspire-adr; the task tracker in \u002Finspire-task.","https:\u002F\u002Fgithub.com\u002FGenomcore\u002Finspire\u002Fblob\u002Fmain\u002Fplugin\u002Fbase\u002Fskills\u002Finspire-workspace\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M79DKYPKA8TKJCW1GF0W2WAN","inspire-task","Task tracker: create \u002F update \u002F close \u002F list \u002F show tickets in inspire_kb\u002F99_tracker\u002F. A plain-file kanban (one Markdown file per ticket, no external tool) for tracking work, drift, and skill-feedback. Use to open, advance, close, or query tickets.","https:\u002F\u002Fgithub.com\u002FGenomcore\u002Finspire\u002Fblob\u002Fmain\u002Fplugin\u002Fbase\u002Fskills\u002Finspire-task\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M79DKTXQWFBW2P6VMQW3DYWX","inspire-spike","Vertical spikes: register and harvest external functional-prototype repos. A spike is a narrow, deep, throwaway build in its OWN repo that answers 'can we build it as we think?'. Use to register such a repo (name\u002Freference it, set up its learnings hygiene) and to capture its learnings into the vault as a gap analysis against the current project.","https:\u002F\u002Fgithub.com\u002FGenomcore\u002Finspire\u002Fblob\u002Fmain\u002Fplugin\u002Fbase\u002Fskills\u002Finspire-spike\u002FSKILL.md",[],[]]