[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B4DK9FQKQSHF7FWKJWKZ21":3,"skill-same:01M7B4DK9FQKQSHF7FWKJWKZ21":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},"01M7B4DK9FQKQSHF7FWKJWKZ21","web-api-integrated",null,"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.","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\u002Fweb-api-integrated\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: web-api-integrated\ndescription: 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.\n---\n\n# Skill: Web API Integrated\n\n## Context (Required)\n- Folder scope + code examples: `references\u002Fcontext.md`\n- Execution checklist: `templates\u002Fchecklist.md`\n\nIntegrate APIs into the frontend with a consistent architecture.\n\n## Workflow\n\n### 0. Read the API Contract\n- If the user provides an API contract (Postman, Swagger, OpenSpec specs), read and understand every endpoint: method, URL, payload, and response.\n- Check `openspec\u002Fchanges\u002F{slug}\u002Fspecs\u002F` for OpenSpec-based contracts.\n\n### 1. Create Zod Schema (`packages\u002Fschemas\u002F`)\n- Follow the pattern: type constants + labels array + `get{Type}Label()` + Zod schema + type alias\n- Read guide: `.agents\u002Fguides\u002Fshared-schema.md`\n\n### 2. Create Response Types (`packages\u002Ftypes\u002F`)\n- One file per response type, e.g. `packages\u002Ftypes\u002Fpayment-method-response.ts`\n- Import from frontend via `@openstate\u002Ftypes\u002Fpayment-method-response`\n- Re-export from `packages\u002Ftypes\u002Findex.ts` if needed from the root package\n\n### 3. Register Constants\n- Add URL to `apps\u002Fweb\u002Fconstants\u002Fapi-routers.ts` (use `:id` path variables)\n- Add query key to `apps\u002Fweb\u002Fconstants\u002Fquery-keys.ts` (flat strings)\n- Read guide: `.agents\u002Fguides\u002Fweb-constant.md`\n\n### 4. Create Custom Hooks (`apps\u002Fweb\u002Fhooks\u002Ftransactions\u002Fuse-{domain}\u002F`)\n- One folder per domain, one file per operation\n- Hooks call axios **directly** — no service function required\n- File order: `use-data-table.ts`, `use-get-one.ts`, `use-insert-one.ts`, `use-update-one.ts`, `use-delete-one.ts`, `index.ts`\n- Read guide: `.agents\u002Fguides\u002Fweb-hook.md`\n- See example: `.agents\u002Fexamples\u002Fweb-api-integrated\u002Fhooks\u002Fuse-examples\u002F`\n\n## Prohibitions\n\n- **FORBIDDEN** to call `axios`\u002F`fetch` directly inside JSX\u002FTSX components.\n- **FORBIDDEN** to use `any` as a type.\n- **FORBIDDEN** to skip Zod schema — every payload must be validated.\n- **FORBIDDEN** to hardcode API URLs — use `apiRouters` from constants.\n- **FORBIDDEN** to use functions for URL building — use `:id` path variable + `pathVariable()`.\n\n## Pre-Completion Checklist\n\n- [ ] Zod schema created in `packages\u002Fschemas\u002F` (full pattern: constants + labels + helper + schema + type)\n- [ ] Response type created in `packages\u002Ftypes\u002F` as a flat file per domain + re-export from root if needed\n- [ ] URL registered in `constants\u002Fapi-routers.ts` (`:id` path variables)\n- [ ] Query key registered in `constants\u002Fquery-keys.ts` (flat strings)\n- [ ] Custom hooks created: `useDataTable`, `useGetOne`, `useInsertOne`, `useUpdateOne`, `useDeleteOne`\n- [ ] `index.ts` re-exports all hooks\n- [ ] No direct `axios`\u002F`fetch` in components\n- [ ] No `any`\n- [ ] Every file ends with a newline (EOF)\n","# Skill: Web API Integrated\n\n## Context (Required)\n- Folder scope + code examples: `references\u002Fcontext.md`\n- Execution checklist: `templates\u002Fchecklist.md`\n\nIntegrate APIs into the frontend with a consistent architecture.\n\n## Workflow\n\n### 0. Read the API Contract\n- If the user provides an API contract (Postman, Swagger, OpenSpec specs), read and understand every endpoint: method, URL, payload, and response.\n- Check `openspec\u002Fchanges\u002F{slug}\u002Fspecs\u002F` for OpenSpec-based contracts.\n\n### 1. Create Zod Schema (`packages\u002Fschemas\u002F`)\n- Follow the pattern: type constants + labels array + `get{Type}Label()` + Zod schema + type alias\n- Read guide: `.agents\u002Fguides\u002Fshared-schema.md`\n\n### 2. Create Response Types (`packages\u002Ftypes\u002F`)\n- One file per response type, e.g. `packages\u002Ftypes\u002Fpayment-method-response.ts`\n- Import from frontend via `@openstate\u002Ftypes\u002Fpayment-method-response`\n- Re-export from `packages\u002Ftypes\u002Findex.ts` if needed from the root package\n\n### 3. Register Constants\n- Add URL to `apps\u002Fweb\u002Fconstants\u002Fapi-routers.ts` (use `:id` path variables)\n- Add query key to `apps\u002Fweb\u002Fconstants\u002Fquery-keys.ts` (flat strings)\n- Read guide: `.agents\u002Fguides\u002Fweb-constant.md`\n\n### 4. Create Custom Hooks (`apps\u002Fweb\u002Fhooks\u002Ftransactions\u002Fuse-{domain}\u002F`)\n- One folder per domain, one file per operation\n- Hooks call axios **directly** — no service function required\n- File order: `use-data-table.ts`, `use-get-one.ts`, `use-insert-one.ts`, `use-update-one.ts`, `use-delete-one.ts`, `index.ts`\n- Read guide: `.agents\u002Fguides\u002Fweb-hook.md`\n- See example: `.agents\u002Fexamples\u002Fweb-api-integrated\u002Fhooks\u002Fuse-examples\u002F`\n\n## Prohibitions\n\n- **FORBIDDEN** to call `axios`\u002F`fetch` directly inside JSX\u002FTSX components.\n- **FORBIDDEN** to use `any` as a type.\n- **FORBIDDEN** to skip Zod schema — every payload must be validated.\n- **FORBIDDEN** to hardcode API URLs — use `apiRouters` from constants.\n- **FORBIDDEN** to use functions for URL building — use `:id` path variable + `pathVariable()`.\n\n## Pre-Completion Checklist\n\n- [ ] Zod schema created in `packages\u002Fschemas\u002F` (full pattern: constants + labels + helper + schema + type)\n- [ ] Response type created in `packages\u002Ftypes\u002F` as a flat file per domain + re-export from root if needed\n- [ ] URL registered in `constants\u002Fapi-routers.ts` (`:id` path variables)\n- [ ] Query key registered in `constants\u002Fquery-keys.ts` (flat strings)\n- [ ] Custom hooks created: `useDataTable`, `useGetOne`, `useInsertOne`, `useUpdateOne`, `useDeleteOne`\n- [ ] `index.ts` re-exports all hooks\n- [ ] No direct `axios`\u002F`fetch` in components\n- [ ] No `any`\n- [ ] Every file ends with a newline (EOF)\n",{"name":5,"description":7},"main","e060e2bbccd2807300ada8189e092b68718e0359",".agents\u002Fskills\u002Fweb-api-integrated",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 web-api-integrated",{"tool":39,"command":40},"bunx","bunx skills add irosadie\u002Fopen-state --skill web-api-integrated",{"tool":42,"command":43},"pnpm","pnpm dlx skills add irosadie\u002Fopen-state --skill web-api-integrated","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Firosadie\u002Fopen-state\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweb-api-integrated\u002FSKILL.md",true,[47,53,57],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"agents\u002Fopenai.yaml","REFERENCE","参考文档",323,"https:\u002F\u002Fgithub.com\u002Firosadie\u002Fopen-state\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweb-api-integrated\u002Fagents\u002Fopenai.yaml",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fcontext.md",3430,"https:\u002F\u002Fgithub.com\u002Firosadie\u002Fopen-state\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweb-api-integrated\u002Freferences\u002Fcontext.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"templates\u002Fchecklist.md",1048,"https:\u002F\u002Fgithub.com\u002Firosadie\u002Fopen-state\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweb-api-integrated\u002Ftemplates\u002Fchecklist.md",[62,69,76,83,90,95],{"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":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":92,"categories":93,"keywords":94,"publishedAt":19},"01M7B4GR96WPQTF2V2KXVR7P9W","https:\u002F\u002Fgithub.com\u002Firosadie\u002Fopen-state\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fweb-api-integrated\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"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",[],[]]