[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78F0V084SM4DVFFEWYPM3RZ":3,"skill-same:01M78F0V084SM4DVFFEWYPM3RZ":65},{"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},"01M78F0V084SM4DVFFEWYPM3RZ","typescript",null,"Use TypeScript types, narrowing and compiler checks to express real contracts without hiding runtime uncertainty.","kok-o\u002Fcontextos-agents","kok-o","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F173567992?v=4","01M78EV59TFZZ32P2FNN27BHW5","Nurkhan Esenbek","01M78EV5AFG9E8PEC10N3W7JNH",10,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fkok-o\u002Fcontextos-agents\u002Fblob\u002Fmain\u002Fcatalog\u002Fskills\u002Ftypescript\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: typescript\ndescription: Use TypeScript types, narrowing and compiler checks to express real\n  contracts without hiding runtime uncertainty.\n---\n\n# typescript\n\n## Overview\n\nUse TypeScript types, narrowing and compiler checks to express real contracts without hiding runtime uncertainty. Match guidance to the actual task and project; this document does not implement an automatic enforcer.\n\n## When to Use\n\nThe task affects TypeScript or explicitly asks for typed JavaScript tooling. A JavaScript-only project need not be migrated to TypeScript.\n\n## Rules & Patterns\n\nInspect compiler version, configuration and library types. Strengthen checks proportionately and account for migration cost rather than enabling every strict option during an unrelated edit.\n\nUse unknown at untrusted boundaries and validate the required shape before narrowing. Types disappear at runtime; a valid role field does not establish caller identity or authorization.\n\nPrefer useful inference and clear domain contracts. Explicit public return types, discriminated unions and readonly types help when they protect a real boundary. Choose interface or type according to the existing code and the construct needed.\n\nAvoid assertions that conceal a missing invariant. A justified assertion, non-null assertion or localized any may be needed for an inspected API or interop boundary; contain it and explain the invariant instead of applying a universal ban.\n\nKeep compiler guarantees distinct from runtime behavior. Readonly\u002Fas const do not deeply freeze arbitrary runtime objects. Run the project's typecheck and relevant behavior tests.\n\n## Code Examples\n\nThe original isUser block below validates every required field and rejects arrays. It checks data shape; separately authorize any protected operation. The other snippets are illustrative typing patterns, not a complete service.\n\n```json\n{\n  \"compilerOptions\": {\n    \"strict\": true,\n    \"noUncheckedIndexedAccess\": true,\n    \"noImplicitReturns\": true,\n    \"noFallthroughCasesInSwitch\": true\n  }\n}\n```\n\n```typescript\n\u002F\u002F Good\ninterface User {\n  id: string;\n  name: string;\n  role: 'admin' | 'user';\n}\n\n\u002F\u002F Unions\ntype Result\u003CT> = { ok: true; data: T } | { ok: false; error: string };\n```\n\n\u003C!-- example: typescript-user-guard -->\n```typescript\nexport interface User {\n  id: string;\n  name: string;\n  role: 'admin' | 'user';\n}\n\nexport function isUser(value: unknown): value is User {\n  return typeof value === 'object' && value !== null && !Array.isArray(value)\n    && 'id' in value && typeof value.id === 'string'\n    && 'name' in value && typeof value.name === 'string'\n    && 'role' in value && (value.role === 'admin' || value.role === 'user');\n}\n```\n\n```typescript\n\u002F\u002F Repository pattern\ninterface Repository\u003CT extends { id: string }> {\n  findById(id: string): Promise\u003CT | null>;\n  create(data: Omit\u003CT, 'id'>): Promise\u003CT>;\n  update(id: string, data: Partial\u003CT>): Promise\u003CT>;\n  delete(id: string): Promise\u003Cvoid>;\n}\n```\n\n## Validation Checklist\n\n- [ ] Typecheck against the installed configuration and dependencies.\n- [ ] Exercise runtime input validation and meaningful invalid cases where relevant.\n\n## Common Mistakes\n\nUsing as to hide unvalidated input; claiming typechecking proves authorization; rewriting valid types solely for stylistic uniformity.\n\n## Integration Notes\n\nOptional companion guidance: testing, security. Use it only when relevant and available; the skill does not install tools or authorize external actions.\n","# typescript\n\n## Overview\n\nUse TypeScript types, narrowing and compiler checks to express real contracts without hiding runtime uncertainty. Match guidance to the actual task and project; this document does not implement an automatic enforcer.\n\n## When to Use\n\nThe task affects TypeScript or explicitly asks for typed JavaScript tooling. A JavaScript-only project need not be migrated to TypeScript.\n\n## Rules & Patterns\n\nInspect compiler version, configuration and library types. Strengthen checks proportionately and account for migration cost rather than enabling every strict option during an unrelated edit.\n\nUse unknown at untrusted boundaries and validate the required shape before narrowing. Types disappear at runtime; a valid role field does not establish caller identity or authorization.\n\nPrefer useful inference and clear domain contracts. Explicit public return types, discriminated unions and readonly types help when they protect a real boundary. Choose interface or type according to the existing code and the construct needed.\n\nAvoid assertions that conceal a missing invariant. A justified assertion, non-null assertion or localized any may be needed for an inspected API or interop boundary; contain it and explain the invariant instead of applying a universal ban.\n\nKeep compiler guarantees distinct from runtime behavior. Readonly\u002Fas const do not deeply freeze arbitrary runtime objects. Run the project's typecheck and relevant behavior tests.\n\n## Code Examples\n\nThe original isUser block below validates every required field and rejects arrays. It checks data shape; separately authorize any protected operation. The other snippets are illustrative typing patterns, not a complete service.\n\n```json\n{\n  \"compilerOptions\": {\n    \"strict\": true,\n    \"noUncheckedIndexedAccess\": true,\n    \"noImplicitReturns\": true,\n    \"noFallthroughCasesInSwitch\": true\n  }\n}\n```\n\n```typescript\n\u002F\u002F Good\ninterface User {\n  id: string;\n  name: string;\n  role: 'admin' | 'user';\n}\n\n\u002F\u002F Unions\ntype Result\u003CT> = { ok: true; data: T } | { ok: false; error: string };\n```\n\n\u003C!-- example: typescript-user-guard -->\n```typescript\nexport interface User {\n  id: string;\n  name: string;\n  role: 'admin' | 'user';\n}\n\nexport function isUser(value: unknown): value is User {\n  return typeof value === 'object' && value !== null && !Array.isArray(value)\n    && 'id' in value && typeof value.id === 'string'\n    && 'name' in value && typeof value.name === 'string'\n    && 'role' in value && (value.role === 'admin' || value.role === 'user');\n}\n```\n\n```typescript\n\u002F\u002F Repository pattern\ninterface Repository\u003CT extends { id: string }> {\n  findById(id: string): Promise\u003CT | null>;\n  create(data: Omit\u003CT, 'id'>): Promise\u003CT>;\n  update(id: string, data: Partial\u003CT>): Promise\u003CT>;\n  delete(id: string): Promise\u003Cvoid>;\n}\n```\n\n## Validation Checklist\n\n- [ ] Typecheck against the installed configuration and dependencies.\n- [ ] Exercise runtime input validation and meaningful invalid cases where relevant.\n\n## Common Mistakes\n\nUsing as to hide unvalidated input; claiming typechecking proves authorization; rewriting valid types solely for stylistic uniformity.\n\n## Integration Notes\n\nOptional companion guidance: testing, security. Use it only when relevant and available; the skill does not install tools or authorize external actions.\n",{"name":5,"description":7},"main","7fb8666fa73d9b8f9707a47505553f0f1af474ea","catalog\u002Fskills\u002Ftypescript",1,"https:\u002F\u002Fgithub.com\u002Fkok-o\u002Fcontextos-agents","https:\u002F\u002Fgithub.com\u002Fkok-o","nurkhan.space","Software engineer focused on AI tooling and ML infrastructure. \r\n\r\n","2026-11-11 02:56:50",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add kok-o\u002Fcontextos-agents --skill typescript",{"tool":39,"command":40},"bunx","bunx skills add kok-o\u002Fcontextos-agents --skill typescript",{"tool":42,"command":43},"pnpm","pnpm dlx skills add kok-o\u002Fcontextos-agents --skill typescript","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkok-o\u002Fcontextos-agents\u002Fblob\u002Fmain\u002Fcatalog\u002Fskills\u002Ftypescript\u002FSKILL.md",true,[47,53,57,61],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"EXAMPLES.md","REFERENCE","参考文档",613,"https:\u002F\u002Fgithub.com\u002Fkok-o\u002Fcontextos-agents\u002Fblob\u002Fmain\u002Fcatalog\u002Fskills\u002Ftypescript\u002FEXAMPLES.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"skill.yaml",394,"https:\u002F\u002Fgithub.com\u002Fkok-o\u002Fcontextos-agents\u002Fblob\u002Fmain\u002Fcatalog\u002Fskills\u002Ftypescript\u002Fskill.yaml",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"TROUBLESHOOTING.md",319,"https:\u002F\u002Fgithub.com\u002Fkok-o\u002Fcontextos-agents\u002Fblob\u002Fmain\u002Fcatalog\u002Fskills\u002Ftypescript\u002FTROUBLESHOOTING.md",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"VALIDATION.json",198,"https:\u002F\u002Fgithub.com\u002Fkok-o\u002Fcontextos-agents\u002Fblob\u002Fmain\u002Fcatalog\u002Fskills\u002Ftypescript\u002FVALIDATION.json",[66,73,80,87,94,100],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M78F25RVZVK4KYXZZKW42DZH","scoped-frontend","Frontend component design and React guidelines","https:\u002F\u002Fgithub.com\u002Fkok-o\u002Fcontextos-agents\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fadapter-contracts\u002F.agents\u002Fcore\u002Fskills\u002Fscoped-frontend\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M78F23169Y0R4CB819166JZP","scoped-backend","Backend service architecture and API endpoints","https:\u002F\u002Fgithub.com\u002Fkok-o\u002Fcontextos-agents\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fadapter-contracts\u002F.agents\u002Fcore\u002Fskills\u002Fscoped-backend\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M78F1ZSMZAMY7S2ECNB065QR","engineering-workflow","Core software engineering lifecycle workflow","https:\u002F\u002Fgithub.com\u002Fkok-o\u002Fcontextos-agents\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fadapter-contracts\u002F.agents\u002Fcore\u002Fskills\u002Fengineering-workflow\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M78F1WWD36GB27TAS4TSM3MJ","team-auth","ContextOS skill for team-auth","https:\u002F\u002Fgithub.com\u002Fkok-o\u002Fcontextos-agents\u002Fblob\u002Fmain\u002Fscripts\u002Freadme-gif\u002Fevidence\u002Fexports\u002Fcodex\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M78F1TEZPGE4NCTPZRC7Q1KK","claude","https:\u002F\u002Fgithub.com\u002Fkok-o\u002Fcontextos-agents\u002Fblob\u002Fmain\u002Fscripts\u002Freadme-gif\u002Fevidence\u002Fexports\u002Fclaude\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M78F1Q8JG229RWD6ESVKT9R9","team-order","Team conventions for createOrder and item name normalization in src\u002Forder.ts.","https:\u002F\u002Fgithub.com\u002Fkok-o\u002Fcontextos-agents\u002Fblob\u002Fmain\u002Fexamples\u002Freadme-demo\u002Fteam-order\u002FSKILL.md",[],[]]