[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75MVN6GACAC87SV9RBPBMKH":3,"skill-same:01M75MVN6GACAC87SV9RBPBMKH":67},{"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":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M75MVN6GACAC87SV9RBPBMKH","typeorm",null,"Use when defining TypeORM entities, writing migrations, or building repository\u002Fquery-builder code in TypeScript. Covers entity and relation decorators, the Data Mapper pattern, migrations, the query builder, transactions, and multi-database configuration.","whimzyLive\u002Fnightshift-ai","whimzyLive","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F22066605?v=4","01M75MMH22XX6R3NTAFHD7HEN7","Rushi Patel","01M75MMH32DHVVC61XRSHWVEV2",3,"MIT","https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fskills\u002Ftypeorm\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: typeorm\ndescription: Use when defining TypeORM entities, writing migrations, or building repository\u002Fquery-builder code in TypeScript. Covers entity and relation decorators, the Data Mapper pattern, migrations, the query builder, transactions, and multi-database configuration.\n---\n\n# TypeORM Development Guidelines\n\nYou are an expert in TypeORM, TypeScript, and database design with a focus on the Data Mapper pattern and enterprise application architecture.\n\n## Core Principles\n\n- TypeORM supports both Active Record and Data Mapper patterns\n- Uses TypeScript decorators for entity and column definitions\n- Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, and more\n- Works in Node.js, Browser, Ionic, Cordova, React Native, NativeScript, Expo, and Electron\n- First-class support for database migrations\n\n## TypeScript Configuration\n\nRequired settings in tsconfig.json:\n\n```json\n{\n  \"compilerOptions\": {\n    \"experimentalDecorators\": true,\n    \"emitDecoratorMetadata\": true,\n    \"strict\": true,\n    \"target\": \"ES2020\",\n    \"module\": \"commonjs\",\n    \"moduleResolution\": \"node\"\n  }\n}\n```\n\n`experimentalDecorators` and `emitDecoratorMetadata` are both mandatory — without\nthem decorators won't compile and column metadata won't resolve.\n\n## Entity Definition\n\nA representative entity uses a generated primary key, typed `@Column`s, and the\nmanaged timestamp columns:\n\n```typescript\nimport {\n  Entity,\n  PrimaryGeneratedColumn,\n  Column,\n  CreateDateColumn,\n  UpdateDateColumn,\n} from 'typeorm';\n\n@Entity('users')\nexport class User {\n  @PrimaryGeneratedColumn()\n  id!: number;\n\n  @Column({ type: 'varchar', length: 255, unique: true })\n  email!: string;\n\n  @Column({ type: 'varchar', length: 255, nullable: true })\n  name!: string | null;\n\n  @Column({ type: 'boolean', default: true })\n  isActive!: boolean;\n\n  @CreateDateColumn()\n  createdAt!: Date;\n\n  @UpdateDateColumn()\n  updatedAt!: Date;\n}\n```\n\nFor the full primary-key options (UUID, custom, composite), the complete column\ndecorator\u002Foption set (numeric, enum, JSON, soft-delete, version), and all relation\ntypes (one-to-one, one-to-many\u002Fmany-to-one, many-to-many), see\n[reference.md](reference.md).\n\n## Data Source Configuration\n\n```typescript\n\u002F\u002F data-source.ts\nimport { DataSource } from 'typeorm';\nimport { User } from '.\u002Fentities\u002FUser';\nimport { Post } from '.\u002Fentities\u002FPost';\n\nexport const AppDataSource = new DataSource({\n  type: 'postgres',\n  host: process.env.DB_HOST || 'localhost',\n  port: parseInt(process.env.DB_PORT || '5432'),\n  username: process.env.DB_USERNAME,\n  password: process.env.DB_PASSWORD,\n  database: process.env.DB_NAME,\n\n  \u002F\u002F Entity configuration\n  entities: [User, Post],\n  \u002F\u002F Or use glob pattern: entities: [\"src\u002Fentities\u002F**\u002F*.ts\"]\n\n  \u002F\u002F Migrations\n  migrations: ['src\u002Fmigrations\u002F**\u002F*.ts'],\n\n  \u002F\u002F Synchronize - NEVER use in production\n  synchronize: false,\n\n  \u002F\u002F Logging\n  logging: process.env.NODE_ENV === 'development',\n\n  \u002F\u002F Connection pool\n  poolSize: 10,\n\n  \u002F\u002F SSL (for production)\n  ssl:\n    process.env.NODE_ENV === 'production'\n      ? { rejectUnauthorized: false }\n      : false,\n});\n\n\u002F\u002F Initialize connection\nAppDataSource.initialize()\n  .then(() => console.log('Data Source initialized'))\n  .catch((error) => console.error('Error initializing Data Source:', error));\n```\n\n## Quick Guidance\n\n- **Get a repository** with `AppDataSource.getRepository(Entity)`, then use\n  `find`, `findOne`, `create`, `save`, `update`, `delete`, and `softDelete`.\n- **Load relations explicitly** with `relations: ['posts']` (or a\n  `leftJoinAndSelect` in the query builder) instead of `eager: true`, to avoid\n  N+1 query storms.\n- **Never use `synchronize: true` in production** — generate and run migrations\n  for every schema change.\n- **Index** columns you frequently filter or look up via `@Index()`.\n- **Always `release()`** a manually created `QueryRunner` in a `finally` block.\n\nFull API detail — repository methods, custom repositories, the query builder,\nmigrations, transactions, framework integration, and best practices — lives in\nthe reference.\n\n## Additional resources\n\n- For the full entity\u002Frelation\u002Fquery-builder\u002Fmigration reference, see [reference.md](reference.md)\n- To scaffold a new entity file, run [scripts\u002Fnew-entity.sh](scripts\u002Fnew-entity.sh) `\u003CEntityName>`\n- To scaffold a new timestamped migration, run [scripts\u002Fnew-migration.sh](scripts\u002Fnew-migration.sh) `\u003CMigrationName>`\n","# TypeORM Development Guidelines\n\nYou are an expert in TypeORM, TypeScript, and database design with a focus on the Data Mapper pattern and enterprise application architecture.\n\n## Core Principles\n\n- TypeORM supports both Active Record and Data Mapper patterns\n- Uses TypeScript decorators for entity and column definitions\n- Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, and more\n- Works in Node.js, Browser, Ionic, Cordova, React Native, NativeScript, Expo, and Electron\n- First-class support for database migrations\n\n## TypeScript Configuration\n\nRequired settings in tsconfig.json:\n\n```json\n{\n  \"compilerOptions\": {\n    \"experimentalDecorators\": true,\n    \"emitDecoratorMetadata\": true,\n    \"strict\": true,\n    \"target\": \"ES2020\",\n    \"module\": \"commonjs\",\n    \"moduleResolution\": \"node\"\n  }\n}\n```\n\n`experimentalDecorators` and `emitDecoratorMetadata` are both mandatory — without\nthem decorators won't compile and column metadata won't resolve.\n\n## Entity Definition\n\nA representative entity uses a generated primary key, typed `@Column`s, and the\nmanaged timestamp columns:\n\n```typescript\nimport {\n  Entity,\n  PrimaryGeneratedColumn,\n  Column,\n  CreateDateColumn,\n  UpdateDateColumn,\n} from 'typeorm';\n\n@Entity('users')\nexport class User {\n  @PrimaryGeneratedColumn()\n  id!: number;\n\n  @Column({ type: 'varchar', length: 255, unique: true })\n  email!: string;\n\n  @Column({ type: 'varchar', length: 255, nullable: true })\n  name!: string | null;\n\n  @Column({ type: 'boolean', default: true })\n  isActive!: boolean;\n\n  @CreateDateColumn()\n  createdAt!: Date;\n\n  @UpdateDateColumn()\n  updatedAt!: Date;\n}\n```\n\nFor the full primary-key options (UUID, custom, composite), the complete column\ndecorator\u002Foption set (numeric, enum, JSON, soft-delete, version), and all relation\ntypes (one-to-one, one-to-many\u002Fmany-to-one, many-to-many), see\n[reference.md](reference.md).\n\n## Data Source Configuration\n\n```typescript\n\u002F\u002F data-source.ts\nimport { DataSource } from 'typeorm';\nimport { User } from '.\u002Fentities\u002FUser';\nimport { Post } from '.\u002Fentities\u002FPost';\n\nexport const AppDataSource = new DataSource({\n  type: 'postgres',\n  host: process.env.DB_HOST || 'localhost',\n  port: parseInt(process.env.DB_PORT || '5432'),\n  username: process.env.DB_USERNAME,\n  password: process.env.DB_PASSWORD,\n  database: process.env.DB_NAME,\n\n  \u002F\u002F Entity configuration\n  entities: [User, Post],\n  \u002F\u002F Or use glob pattern: entities: [\"src\u002Fentities\u002F**\u002F*.ts\"]\n\n  \u002F\u002F Migrations\n  migrations: ['src\u002Fmigrations\u002F**\u002F*.ts'],\n\n  \u002F\u002F Synchronize - NEVER use in production\n  synchronize: false,\n\n  \u002F\u002F Logging\n  logging: process.env.NODE_ENV === 'development',\n\n  \u002F\u002F Connection pool\n  poolSize: 10,\n\n  \u002F\u002F SSL (for production)\n  ssl:\n    process.env.NODE_ENV === 'production'\n      ? { rejectUnauthorized: false }\n      : false,\n});\n\n\u002F\u002F Initialize connection\nAppDataSource.initialize()\n  .then(() => console.log('Data Source initialized'))\n  .catch((error) => console.error('Error initializing Data Source:', error));\n```\n\n## Quick Guidance\n\n- **Get a repository** with `AppDataSource.getRepository(Entity)`, then use\n  `find`, `findOne`, `create`, `save`, `update`, `delete`, and `softDelete`.\n- **Load relations explicitly** with `relations: ['posts']` (or a\n  `leftJoinAndSelect` in the query builder) instead of `eager: true`, to avoid\n  N+1 query storms.\n- **Never use `synchronize: true` in production** — generate and run migrations\n  for every schema change.\n- **Index** columns you frequently filter or look up via `@Index()`.\n- **Always `release()`** a manually created `QueryRunner` in a `finally` block.\n\nFull API detail — repository methods, custom repositories, the query builder,\nmigrations, transactions, framework integration, and best practices — lives in\nthe reference.\n\n## Additional resources\n\n- For the full entity\u002Frelation\u002Fquery-builder\u002Fmigration reference, see [reference.md](reference.md)\n- To scaffold a new entity file, run [scripts\u002Fnew-entity.sh](scripts\u002Fnew-entity.sh) `\u003CEntityName>`\n- To scaffold a new timestamped migration, run [scripts\u002Fnew-migration.sh](scripts\u002Fnew-migration.sh) `\u003CMigrationName>`\n",{"name":5,"description":7},"main","7d4ebd573a4218d5e92eced411b259f34e9203fe","skills\u002Ftypeorm",0,"https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai","https:\u002F\u002Fwithnightshift.com\u002F","https:\u002F\u002Fgithub.com\u002FwhimzyLive","Creator of @typedorm","2026-11-14 22:45:42",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add whimzyLive\u002Fnightshift-ai --skill typeorm",{"tool":39,"command":40},"bunx","bunx skills add whimzyLive\u002Fnightshift-ai --skill typeorm",{"tool":42,"command":43},"pnpm","pnpm dlx skills add whimzyLive\u002Fnightshift-ai --skill typeorm","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fskills\u002Ftypeorm\u002FSKILL.md",true,[47,53,57,63],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"evals\u002Fevals.json","REFERENCE","参考文档",3230,"https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fskills\u002Ftypeorm\u002Fevals\u002Fevals.json",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"reference.md",12908,"https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fskills\u002Ftypeorm\u002Freference.md",{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"scripts\u002Fnew-entity.sh","SCRIPT","脚本",1543,"https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fskills\u002Ftypeorm\u002Fscripts\u002Fnew-entity.sh",{"path":64,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":65,"sourceHtmlUrl":66},"scripts\u002Fnew-migration.sh",2109,"https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fskills\u002Ftypeorm\u002Fscripts\u002Fnew-migration.sh",[68,76,83,90,97,104],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":75},"01M7BCEWYHDS1FWAJ6G4CD9P54","designing-in-patterns","Use when designing, planning or auditing UI against a component library — naming surfaces with the repo's pattern vocabulary, deciding reuse versus extend versus new, exploring compositions, or writing the reuse table (component-plan.md, a spec's `## Reuse`, a UI audit). Carries the design method; the repo's own vocabulary, bundle and board rules come from project-context and the designer override.","https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Fdesigning-in-patterns\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"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},"01M75MTEZV8SAZNS20YDSB7KG2","hono-api","Use when building or extending REST APIs with Hono + @hono\u002Fzod-openapi. Covers schema-first route declaration with createRoute, feature-grouped composable routers, a class-based service layer behind interfaces, the strategy pattern for multi-event webhooks, typed request validation, and auto-generated OpenAPI docs.","https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fskills\u002Fhono-api\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},"01M75MTB91SB6HPB3ZRT20F950","electrodb","Use when defining DynamoDB entities, modeling indexes, or writing queries\u002Fmutations with the ElectroDB ORM. Covers entity schema, access patterns, CRUD operations, update expressions, and single-table design patterns.","https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fskills\u002Felectrodb\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M75MT7KT9A3XYX38TX5MY6MA","atomic-design","Use when structuring or decomposing any frontend UI into reusable components, regardless of framework. Applies Brad Frost's atomic design methodology — atoms, molecules, organisms, templates, and pages — to guide consistent component hierarchy, naming, and composition decisions.","https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fskills\u002Fatomic-design\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M75MSTQ54EY0K29PKBF212K1","writing-docs","Use when writing, restructuring, or reviewing any prose documentation — a tutorial, how-to guide, reference page, or explanation\u002Fconceptual doc — for a public docs site (e.g. Mintlify MDX, docs\u002F, README material), a getting-started guide, an API\u002FCLI reference page, or a \"why we built it this way\" conceptual page. Applies the Diátaxis framework (see https:\u002F\u002Fdiataxis.fr\u002F) — every document belongs to exactly one of the four quadrants (tutorial \u002F how-to guide \u002F reference \u002F explanation), and mixing quadrants inside one document is the single most common documentation failure. Covers the four-quadrant compass for picking the right form, per-quadrant structure templates, an anti-pattern list for quadrant drift, and generic voice\u002Fcraft rules — repo-specific voice and target output format (e.g. Mintlify MDX) are resolved from the repo's docs-manifest (falling back to project-context), never hardcoded here.","https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Fwriting-docs\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M75MSM0Z0AHA6YS4Q5E6R65T","writing-adrs","Use when authoring an Architecture Decision Record (ADR) — a short document that captures one significant, hard-to-reverse technical or architectural decision, its context, and its consequences. Triggered by the sdlc ADR pipeline (the knowledge-engineer agent behind \u002Fsdlc:docs seed adr and \u002Fsdlc:docs distill) when generating an ADR from a story, and by anyone hand-authoring an ADR under docs\u002Fadr\u002F today. Covers why ADRs are kept short and inverted-pyramid, the required sections (Title, Status, Decision, Context, Alternatives Considered, Consequences), the proposed→accepted→superseded (or →rejected) status lifecycle and the never-edit-only-supersede immutability rule, the NNNN-decision-slug.md filename convention, and the ADR frontmatter fields (status, agents, source-stories) the pipeline reads to route a generated ADR into docs\u002Fadr\u002Findex.md.","https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Fwriting-adrs\u002FSKILL.md",[],[]]