[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B4CEPRA9S33V6SV86N96J8":3,"skill-same:01M7B4CEPRA9S33V6SV86N96J8":61},{"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},"01M7B4CEPRA9S33V6SV86N96J8","db-sqlc-schema",null,"Write or modify SQL migration files (goose) and sqlc query files, then regenerate Go code. Use for database model, relation, index, enum changes, or schema-to-domain-layer sync.","irosadie\u002Fopen-state","irosadie","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F25891018?v=4","01M6D9VT1T5RGGX753ARTN5J8N","Imron Rosadi","01M7B4C1HZ5R8XE60RF7GDHD9K",3,"MIT","https:\u002F\u002Fgithub.com\u002Firosadie\u002Fopen-state\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdb-sqlc-schema\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: db-sqlc-schema\ndescription: Write or modify SQL migration files (goose) and sqlc query files, then regenerate Go code. Use for database model, relation, index, enum changes, or schema-to-domain-layer sync.\n---\n\n# Skill: DB sqlc Schema\n\n## Context (Required)\n- Folder scope + code samples: `references\u002Fcontext.md`\n- Execution checklist: `templates\u002Fchecklist.md`\n\nApply schema changes minimally and safely. Goose manages migrations, sqlc generates type-safe Go from SQL queries.\n\n## Naming Conventions\n\n### Tables\n| Category | Table Prefix |\n|---|---|\n| Master \u002F reference data | `master_` |\n| Transaction \u002F business data | `business_` |\n| Membership data | `member_` |\n| User \u002F auth data | `users`, `auth_*` |\n| System config data | `configurations` |\n\n### Columns\n- snake_case always\n- Boolean fields — prefix `is_` or `has_`\n- Enum-like fields — use `VARCHAR` + Go const, not PostgreSQL ENUM (prefer consistency)\n\n### Required Standard Columns\n```sql\nid         UUID        PRIMARY KEY DEFAULT gen_random_uuid(),\ncreated_at TIMESTAMP(6) NOT NULL DEFAULT NOW(),\nupdated_at TIMESTAMP(6) NOT NULL DEFAULT NOW()\n```\n\n## Workflow\n\n1. Write goose migration SQL in `apps\u002Fapi\u002Fdb\u002Fmigrations\u002F`\n2. Write or update sqlc query in `apps\u002Fapi\u002Fdb\u002Fqueries\u002F`\n3. Run: `sqlc generate` from `apps\u002Fapi\u002F`\n4. Update domain entity + repository interface if schema changes affect them\n5. Update `pgx_{domain}_repository.go` to use new generated query\n\n## Goose Migration Format\n\n```sql\n-- +goose Up\nCREATE TABLE master_categories (\n  id         UUID         PRIMARY KEY DEFAULT gen_random_uuid(),\n  name       VARCHAR(100) NOT NULL,\n  is_active  BOOLEAN      NOT NULL DEFAULT TRUE,\n  created_at TIMESTAMP(6) NOT NULL DEFAULT NOW(),\n  updated_at TIMESTAMP(6) NOT NULL DEFAULT NOW()\n);\n\n-- +goose Down\nDROP TABLE IF EXISTS master_categories;\n```\n\n## sqlc Query Format\n\n```sql\n-- name: FindCategoryByID :one\nSELECT id, name, is_active, created_at, updated_at\nFROM master_categories\nWHERE id = $1;\n\n-- name: CreateCategory :one\nINSERT INTO master_categories (name, is_active)\nVALUES ($1, $2)\nRETURNING id, name, is_active, created_at, updated_at;\n\n-- name: ListCategories :many\nSELECT id, name, is_active, created_at, updated_at\nFROM master_categories\nORDER BY created_at DESC;\n```\n\n## Prohibitions\n\n- **NEVER** edit files in `internal\u002Finfrastructure\u002Fdb\u002F` — they are sqlc-generated. Always regenerate.\n- **NEVER** rename a table or column without a clear migration that handles the rename.\n- **NEVER** drop an existing column without documenting the migration impact.\n- **NEVER** use PostgreSQL ENUM type — use VARCHAR with Go typed constants instead.\n- **NEVER** add a migration without a corresponding `-- +goose Down` block.\n\n## Pre-Completion Checklist\n\n- [ ] Migration file created with sequential filename (`000XX_description.sql`)\n- [ ] `-- +goose Up` and `-- +goose Down` blocks present\n- [ ] Standard columns present: id, created_at, updated_at\n- [ ] sqlc query file created\u002Fupdated\n- [ ] `sqlc generate` run — no errors\n- [ ] Domain entity updated if shape changed\n- [ ] Repository interface updated if new queries added\n- [ ] pgx repository implementation updated\n- [ ] `go build .\u002F...` passes\n- [ ] All files end with a newline (EOF)\n","# Skill: DB sqlc Schema\n\n## Context (Required)\n- Folder scope + code samples: `references\u002Fcontext.md`\n- Execution checklist: `templates\u002Fchecklist.md`\n\nApply schema changes minimally and safely. Goose manages migrations, sqlc generates type-safe Go from SQL queries.\n\n## Naming Conventions\n\n### Tables\n| Category | Table Prefix |\n|---|---|\n| Master \u002F reference data | `master_` |\n| Transaction \u002F business data | `business_` |\n| Membership data | `member_` |\n| User \u002F auth data | `users`, `auth_*` |\n| System config data | `configurations` |\n\n### Columns\n- snake_case always\n- Boolean fields — prefix `is_` or `has_`\n- Enum-like fields — use `VARCHAR` + Go const, not PostgreSQL ENUM (prefer consistency)\n\n### Required Standard Columns\n```sql\nid         UUID        PRIMARY KEY DEFAULT gen_random_uuid(),\ncreated_at TIMESTAMP(6) NOT NULL DEFAULT NOW(),\nupdated_at TIMESTAMP(6) NOT NULL DEFAULT NOW()\n```\n\n## Workflow\n\n1. Write goose migration SQL in `apps\u002Fapi\u002Fdb\u002Fmigrations\u002F`\n2. Write or update sqlc query in `apps\u002Fapi\u002Fdb\u002Fqueries\u002F`\n3. Run: `sqlc generate` from `apps\u002Fapi\u002F`\n4. Update domain entity + repository interface if schema changes affect them\n5. Update `pgx_{domain}_repository.go` to use new generated query\n\n## Goose Migration Format\n\n```sql\n-- +goose Up\nCREATE TABLE master_categories (\n  id         UUID         PRIMARY KEY DEFAULT gen_random_uuid(),\n  name       VARCHAR(100) NOT NULL,\n  is_active  BOOLEAN      NOT NULL DEFAULT TRUE,\n  created_at TIMESTAMP(6) NOT NULL DEFAULT NOW(),\n  updated_at TIMESTAMP(6) NOT NULL DEFAULT NOW()\n);\n\n-- +goose Down\nDROP TABLE IF EXISTS master_categories;\n```\n\n## sqlc Query Format\n\n```sql\n-- name: FindCategoryByID :one\nSELECT id, name, is_active, created_at, updated_at\nFROM master_categories\nWHERE id = $1;\n\n-- name: CreateCategory :one\nINSERT INTO master_categories (name, is_active)\nVALUES ($1, $2)\nRETURNING id, name, is_active, created_at, updated_at;\n\n-- name: ListCategories :many\nSELECT id, name, is_active, created_at, updated_at\nFROM master_categories\nORDER BY created_at DESC;\n```\n\n## Prohibitions\n\n- **NEVER** edit files in `internal\u002Finfrastructure\u002Fdb\u002F` — they are sqlc-generated. Always regenerate.\n- **NEVER** rename a table or column without a clear migration that handles the rename.\n- **NEVER** drop an existing column without documenting the migration impact.\n- **NEVER** use PostgreSQL ENUM type — use VARCHAR with Go typed constants instead.\n- **NEVER** add a migration without a corresponding `-- +goose Down` block.\n\n## Pre-Completion Checklist\n\n- [ ] Migration file created with sequential filename (`000XX_description.sql`)\n- [ ] `-- +goose Up` and `-- +goose Down` blocks present\n- [ ] Standard columns present: id, created_at, updated_at\n- [ ] sqlc query file created\u002Fupdated\n- [ ] `sqlc generate` run — no errors\n- [ ] Domain entity updated if shape changed\n- [ ] Repository interface updated if new queries added\n- [ ] pgx repository implementation updated\n- [ ] `go build .\u002F...` passes\n- [ ] All files end with a newline (EOF)\n",{"name":5,"description":7},"main","e060e2bbccd2807300ada8189e092b68718e0359",".agents\u002Fskills\u002Fdb-sqlc-schema",0,"https:\u002F\u002Fgithub.com\u002Firosadie\u002Fopen-state","https:\u002F\u002Fgithub.com\u002Firosadie","http:\u002F\u002Fimronrosadi.com","The Hatless Engineer 👨‍💻","2026-09-06 12:39:29",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add irosadie\u002Fopen-state --skill db-sqlc-schema",{"tool":39,"command":40},"bunx","bunx skills add irosadie\u002Fopen-state --skill db-sqlc-schema",{"tool":42,"command":43},"pnpm","pnpm dlx skills add irosadie\u002Fopen-state --skill db-sqlc-schema","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Firosadie\u002Fopen-state\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdb-sqlc-schema\u002FSKILL.md",true,[47,53,57],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"agents\u002Fopenai.yaml","REFERENCE","参考文档",317,"https:\u002F\u002Fgithub.com\u002Firosadie\u002Fopen-state\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdb-sqlc-schema\u002Fagents\u002Fopenai.yaml",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fcontext.md",1618,"https:\u002F\u002Fgithub.com\u002Firosadie\u002Fopen-state\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdb-sqlc-schema\u002Freferences\u002Fcontext.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"templates\u002Fchecklist.md",976,"https:\u002F\u002Fgithub.com\u002Firosadie\u002Fopen-state\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdb-sqlc-schema\u002Ftemplates\u002Fchecklist.md",[62,69,76,83,90,97],{"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},"01M7B4H1NMAN0SQQ767BJNSA53","web-slicing","Convert screenshot\u002FFigma designs into pixel-perfect frontend UI with reusable components. Use when the task focuses on visual and layout implementation.","https:\u002F\u002Fgithub.com\u002Firosadie\u002Fopen-state\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fweb-slicing\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},"01M7B4GZ1FCD08JC4YZ7H7ZARH","web-seo-geo-friendly","Optimize public Next.js App Router pages for SEO and GEO (Generative Engine Optimization). Use when the user explicitly requests SEO\u002FGEO optimization on public pages.","https:\u002F\u002Fgithub.com\u002Firosadie\u002Fopen-state\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fweb-seo-geo-friendly\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},"01M7B4GWT5RGPSW001QN2757QV","web-code-review","Review frontend code with a firm senior-lead standard, focusing on bugs, regressions, architecture risks, and test gaps in apps\u002Fweb and the shared contracts the frontend depends on.","https:\u002F\u002Fgithub.com\u002Firosadie\u002Fopen-state\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fweb-code-review\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},"01M7B4GTKEZZ7DFNA0X6BBY3A2","web-bugfix","Fix frontend bugs with minimum-touch changes, keep other surfaces stable, and sync schema, types, hooks, constants, tests, and related docs when impacted.","https:\u002F\u002Fgithub.com\u002Firosadie\u002Fopen-state\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fweb-bugfix\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},"01M7B4GR96WPQTF2V2KXVR7P9W","web-api-integrated","Integrate API endpoints into the frontend with Zod schemas, response types, constants, and react-query hooks. Use when implementing endpoints from an API contract, Postman, or Swagger.","https:\u002F\u002Fgithub.com\u002Firosadie\u002Fopen-state\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fweb-api-integrated\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},"01M7B4GNDTB3T51TP737R07VQS","skill-creator","Create a new skill from scratch with full structure — SKILL.md, references, templates, openai.yaml, Claude\u002FOpenCode wrappers, and registration in manifest + AGENTS.md + CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Firosadie\u002Fopen-state\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fskill-creator\u002FSKILL.md",[],[]]