zayarlyn-prehack-sixseven-typescript-instructions.ocm.json json Copy{
"ocm": "1",
"id": "zayarlyn-prehack-sixseven-typescript-instructions",
"kind": "skill",
"name": "typescript",
"description": "TypeScript rules",
"publisher": "zayarlyn",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"TypeScript rules"
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/zayarlyn/prehack-sixseven",
"path": ".github/instructions/typescript.instructions.md",
"ref": "59a3667d7c3455f859a79708c436f5f6df5446be",
"url": "https://github.com/zayarlyn/prehack-sixseven/blob/59a3667d7c3455f859a79708c436f5f6df5446be/.github/instructions/typescript.instructions.md",
"key": "zayarlyn/prehack-sixseven/.github/instructions/typescript.instructions.md"
},
"applies_to": "**/*.ts,**/*.tsx"
},
"instructions": "## TypeScript rules\n\n- Always use strict TypeScript — no implicit any\n- Always type function parameters and return values explicitly on service functions\n- Use types from @swap/types for shared shapes (User, Item, Transaction, etc)\n- Use zod infer for request/response types in the backend\n- Prefix unused variables with underscore (\\_unusedVar)\n- Never use non-null assertion (!) — handle nulls explicitly\n- Never use `as any` — use proper types or unknown",
"cost": {
"context_tokens": 114
}
}