[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6PEWVJX33KBCJRY2EZSC1AJ":3,"skill-same:01M6PEWVJX33KBCJRY2EZSC1AJ":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":51,"install":52,"resources":65},"01M6PEWVJX33KBCJRY2EZSC1AJ","coding-standards",null,"Canonical cross-language coding standards reference. Shared rules embedded by reviewer agents. Activate when: viewing coding standards, checking naming rules, reviewing style baseline, consulting style guide, what are the rules.","r3dlex\u002Foh-my-githubcopilot","r3dlex","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F291373160?v=4","01M6PEFNGGBVB7SHAPWXFFX933","01M6PEFNMNKPP8K3C881MDS722",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fr3dlex\u002Foh-my-githubcopilot\u002Fblob\u002Fmain\u002Fvscode-omg\u002Fresources\u002Ftemplates\u002Fskills\u002Fcoding-standards\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"coding","standards","coding standards","activate","style guide","canonical","errors","naming","consulting","style","shared","patterns","language","functions","reference","embedded","anti-patterns","reviewer","Rules","baseline","2026-11-10 10:12:30",false,"---\nname: coding-standards\ndescription: >\n  Canonical cross-language coding standards reference. Shared rules embedded by reviewer agents.\n  Activate when: viewing coding standards, checking naming rules, reviewing style baseline,\n  consulting style guide, what are the rules.\nargument-hint: \"[optional: specific topic — naming | functions | errors | anti-patterns]\"\n---\n\n# Coding Standards\n\n> **D9 Canonical Reference.** This is the single source of truth for cross-language coding standards.\n> Language-specific reviewers (`@typescript-reviewer`, `@python-reviewer`, etc.) embed these rules.\n> Agents cite this skill as \"See also: \u002Fcoding-standards.\"\n\n## Naming Conventions\n\n### Variables & Functions\n| Language | Variables | Functions | Constants |\n|----------|-----------|-----------|-----------|\n| TypeScript \u002F JavaScript | `camelCase` | `camelCase` | `SCREAMING_SNAKE_CASE` |\n| Python | `snake_case` | `snake_case` | `SCREAMING_SNAKE_CASE` |\n| Go | `camelCase` | `camelCase` | `CamelCase` (exported) |\n| Rust | `snake_case` | `snake_case` | `SCREAMING_SNAKE_CASE` |\n| Java | `camelCase` | `camelCase` | `SCREAMING_SNAKE_CASE` |\n| C# | `camelCase` | `PascalCase` | `PascalCase` |\n| Swift | `camelCase` | `camelCase` | `camelCase` |\n\n### Classes \u002F Types \u002F Interfaces\n`PascalCase` — all languages, no exceptions.\n\n### Booleans\nPrefix with `is`, `has`, `can`, `should`: `isLoading`, `hasError`, `canEdit`, `shouldRefresh`.\n\n### Collections\nPlural nouns: `users`, `errors`, `items` — not `userList`, `errorArray`.\n\n### Avoid\n- Single-letter variables outside loop counters (`i`, `j`, `k` are OK in loops)\n- Abbreviations that save under 3 characters: `usr` → `user`, `mgr` → `manager`\n- Redundant type names: `UserInterface`, `UserClass`, `UserObject` → just `User`\n\n---\n\n## Function Design\n\n- **Max length:** 50 lines (firm guideline; > 80 lines is always a split target)\n- **Single responsibility:** one function, one job — if \"and\" appears in the description, split it\n- **Max parameters:** 3; beyond that, use an options\u002Fconfig object\n- **Cyclomatic complexity:** ≤ 10; > 15 is a mandatory refactor target\n- **Nesting depth:** ≤ 3 levels; use early returns to flatten\n\n### Early Return Pattern (preferred)\n```typescript\n\u002F\u002F BEFORE — deep nesting\nfunction handle(input) {\n  if (input) {\n    if (input.valid) {\n      return process(input);\n    }\n  }\n  return null;\n}\n\n\u002F\u002F AFTER — early returns\nfunction handle(input) {\n  if (!input || !input.valid) return null;\n  return process(input);\n}\n```\n\n---\n\n## Error Handling\n\n- **Never swallow errors silently:** `catch (e) {}` is always wrong\n- **Error messages must contain context:** `\"Failed to fetch user id=42\"` not `\"Error\"`\n- **Propagate or handle:** either handle the error at the right level OR re-throw it — never both and never neither\n- **Typed errors (TypeScript):** `class NotFoundError extends Error { constructor(id: string) ... }` not generic `new Error`\n- **Python exceptions:** catch specific exception types; bare `except:` is forbidden\n- **Go errors:** always check returned errors; use `errors.Is()`\u002F`errors.As()` for comparison\n- **Rust results:** use `?` for propagation; no `.unwrap()` in library code\n\n---\n\n## Code Structure\n\n### Immutability-First\n- `const` over `let` (JS\u002FTS); `val` over `var` (Swift\u002FKotlin); `final` where appropriate\n- Mark fields `readonly` when not reassigned after construction\n- Prefer immutable data structures for function arguments\n\n### No Magic Numbers\n```typescript\n\u002F\u002F BAD\nif (retries > 3) { ... }\nsetTimeout(fn, 5000);\n\n\u002F\u002F GOOD\nconst MAX_RETRIES = 3;\nconst POLL_INTERVAL_MS = 5000;\nif (retries > MAX_RETRIES) { ... }\nsetTimeout(fn, POLL_INTERVAL_MS);\n```\n\n### No Commented-Out Code\nIf it is dead → delete it (git history preserves it).\nIf it is needed soon → it should be in a branch.\nIf it explains a non-obvious decision → keep it as a comment, not commented-out code.\n\n---\n\n## Anti-Patterns Reference\n\n| Pattern | Severity | Reason |\n|---------|----------|--------|\n| Mutable global state | HIGH | Unpredictable side effects; hides dependencies |\n| Promise not awaited | HIGH | Unhandled async errors silently swallowed |\n| `any` in TypeScript | MEDIUM | Bypasses type safety across call boundaries |\n| `console.log` in production code | LOW | Log noise; potential data leak in sensitive contexts |\n| `TODO` without issue tracker reference | LOW | Becomes permanent tech debt |\n| God Object | HIGH | Single class with too many responsibilities |\n| Magic numbers inline | MEDIUM | Unclear intent; maintenance hazard |\n| Copy-paste logic | MEDIUM | Silent divergence over time |\n| Catching and re-throwing without context | MEDIUM | Stack traces lose meaning |\n| Nested ternary operators | MEDIUM | Unreadable; use if\u002Felse or switch instead |\n\n---\n\n## SOLID Principles Checklist\n\n- **S**ingle Responsibility: does this class\u002Ffunction do exactly one thing?\n- **O**pen\u002FClosed: extend via composition\u002Finterfaces, not inheritance modification?\n- **L**iskov Substitution: can a subtype always replace the base type without breaking callers?\n- **I**nterface Segregation: no fat interfaces — clients should not depend on methods they don't use?\n- **D**ependency Inversion: depend on abstractions (interfaces), not concretions?\n\n---\n\n## See Also\n\n- `@code-reviewer` — applies these rules during code review\n- `@typescript-reviewer`, `@python-reviewer`, etc. — language-specific rules with these as baseline\n- `@security-reviewer` — security-specific standards (OWASP, secrets, crypto)\n","# Coding Standards\n\n> **D9 Canonical Reference.** This is the single source of truth for cross-language coding standards.\n> Language-specific reviewers (`@typescript-reviewer`, `@python-reviewer`, etc.) embed these rules.\n> Agents cite this skill as \"See also: \u002Fcoding-standards.\"\n\n## Naming Conventions\n\n### Variables & Functions\n| Language | Variables | Functions | Constants |\n|----------|-----------|-----------|-----------|\n| TypeScript \u002F JavaScript | `camelCase` | `camelCase` | `SCREAMING_SNAKE_CASE` |\n| Python | `snake_case` | `snake_case` | `SCREAMING_SNAKE_CASE` |\n| Go | `camelCase` | `camelCase` | `CamelCase` (exported) |\n| Rust | `snake_case` | `snake_case` | `SCREAMING_SNAKE_CASE` |\n| Java | `camelCase` | `camelCase` | `SCREAMING_SNAKE_CASE` |\n| C# | `camelCase` | `PascalCase` | `PascalCase` |\n| Swift | `camelCase` | `camelCase` | `camelCase` |\n\n### Classes \u002F Types \u002F Interfaces\n`PascalCase` — all languages, no exceptions.\n\n### Booleans\nPrefix with `is`, `has`, `can`, `should`: `isLoading`, `hasError`, `canEdit`, `shouldRefresh`.\n\n### Collections\nPlural nouns: `users`, `errors`, `items` — not `userList`, `errorArray`.\n\n### Avoid\n- Single-letter variables outside loop counters (`i`, `j`, `k` are OK in loops)\n- Abbreviations that save under 3 characters: `usr` → `user`, `mgr` → `manager`\n- Redundant type names: `UserInterface`, `UserClass`, `UserObject` → just `User`\n\n---\n\n## Function Design\n\n- **Max length:** 50 lines (firm guideline; > 80 lines is always a split target)\n- **Single responsibility:** one function, one job — if \"and\" appears in the description, split it\n- **Max parameters:** 3; beyond that, use an options\u002Fconfig object\n- **Cyclomatic complexity:** ≤ 10; > 15 is a mandatory refactor target\n- **Nesting depth:** ≤ 3 levels; use early returns to flatten\n\n### Early Return Pattern (preferred)\n```typescript\n\u002F\u002F BEFORE — deep nesting\nfunction handle(input) {\n  if (input) {\n    if (input.valid) {\n      return process(input);\n    }\n  }\n  return null;\n}\n\n\u002F\u002F AFTER — early returns\nfunction handle(input) {\n  if (!input || !input.valid) return null;\n  return process(input);\n}\n```\n\n---\n\n## Error Handling\n\n- **Never swallow errors silently:** `catch (e) {}` is always wrong\n- **Error messages must contain context:** `\"Failed to fetch user id=42\"` not `\"Error\"`\n- **Propagate or handle:** either handle the error at the right level OR re-throw it — never both and never neither\n- **Typed errors (TypeScript):** `class NotFoundError extends Error { constructor(id: string) ... }` not generic `new Error`\n- **Python exceptions:** catch specific exception types; bare `except:` is forbidden\n- **Go errors:** always check returned errors; use `errors.Is()`\u002F`errors.As()` for comparison\n- **Rust results:** use `?` for propagation; no `.unwrap()` in library code\n\n---\n\n## Code Structure\n\n### Immutability-First\n- `const` over `let` (JS\u002FTS); `val` over `var` (Swift\u002FKotlin); `final` where appropriate\n- Mark fields `readonly` when not reassigned after construction\n- Prefer immutable data structures for function arguments\n\n### No Magic Numbers\n```typescript\n\u002F\u002F BAD\nif (retries > 3) { ... }\nsetTimeout(fn, 5000);\n\n\u002F\u002F GOOD\nconst MAX_RETRIES = 3;\nconst POLL_INTERVAL_MS = 5000;\nif (retries > MAX_RETRIES) { ... }\nsetTimeout(fn, POLL_INTERVAL_MS);\n```\n\n### No Commented-Out Code\nIf it is dead → delete it (git history preserves it).\nIf it is needed soon → it should be in a branch.\nIf it explains a non-obvious decision → keep it as a comment, not commented-out code.\n\n---\n\n## Anti-Patterns Reference\n\n| Pattern | Severity | Reason |\n|---------|----------|--------|\n| Mutable global state | HIGH | Unpredictable side effects; hides dependencies |\n| Promise not awaited | HIGH | Unhandled async errors silently swallowed |\n| `any` in TypeScript | MEDIUM | Bypasses type safety across call boundaries |\n| `console.log` in production code | LOW | Log noise; potential data leak in sensitive contexts |\n| `TODO` without issue tracker reference | LOW | Becomes permanent tech debt |\n| God Object | HIGH | Single class with too many responsibilities |\n| Magic numbers inline | MEDIUM | Unclear intent; maintenance hazard |\n| Copy-paste logic | MEDIUM | Silent divergence over time |\n| Catching and re-throwing without context | MEDIUM | Stack traces lose meaning |\n| Nested ternary operators | MEDIUM | Unreadable; use if\u002Felse or switch instead |\n\n---\n\n## SOLID Principles Checklist\n\n- **S**ingle Responsibility: does this class\u002Ffunction do exactly one thing?\n- **O**pen\u002FClosed: extend via composition\u002Finterfaces, not inheritance modification?\n- **L**iskov Substitution: can a subtype always replace the base type without breaking callers?\n- **I**nterface Segregation: no fat interfaces — clients should not depend on methods they don't use?\n- **D**ependency Inversion: depend on abstractions (interfaces), not concretions?\n\n---\n\n## See Also\n\n- `@code-reviewer` — applies these rules during code review\n- `@typescript-reviewer`, `@python-reviewer`, etc. — language-specific rules with these as baseline\n- `@security-reviewer` — security-specific standards (OWASP, secrets, crypto)\n",{"name":5,"description":43,"argument-hint":44},"Canonical cross-language coding standards reference. Shared rules embedded by reviewer agents. Activate when: viewing coding standards, checking naming rules, reviewing style baseline, consulting style guide, what are the rules.\n","[optional: specific topic — naming | functions | errors | anti-patterns]","main","55294682936bc69473eba70e93ffa88ede018e81","vscode-omg\u002Fresources\u002Ftemplates\u002Fskills\u002Fcoding-standards",0,"https:\u002F\u002Fgithub.com\u002Fr3dlex\u002Foh-my-githubcopilot","https:\u002F\u002Fgithub.com\u002Fr3dlex","2026-10-31 18:57:35",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add r3dlex\u002Foh-my-githubcopilot --skill coding-standards",{"tool":58,"command":59},"bunx","bunx skills add r3dlex\u002Foh-my-githubcopilot --skill coding-standards",{"tool":61,"command":62},"pnpm","pnpm dlx skills add r3dlex\u002Foh-my-githubcopilot --skill coding-standards","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fr3dlex\u002Foh-my-githubcopilot\u002Fblob\u002Fmain\u002Fvscode-omg\u002Fresources\u002Ftemplates\u002Fskills\u002Fcoding-standards\u002FSKILL.md",true,[],[67,73,79,85,91,99],{"skillNo":68,"name":69,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":38},"01M6PF2CTFS0AEXQXF2NFYT8J2","wiki","https:\u002F\u002Fgithub.com\u002Fr3dlex\u002Foh-my-githubcopilot\u002Fblob\u002Fmain\u002Fvscode-omp\u002Fresources\u002Ftemplates\u002F.copilot\u002Fskills\u002Fwiki\u002FSKILL.md",[],[69],{"skillNo":74,"name":75,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":38},"01M6PF2BFXJ97M6NKH7N42XZVZ","ultrawork","https:\u002F\u002Fgithub.com\u002Fr3dlex\u002Foh-my-githubcopilot\u002Fblob\u002Fmain\u002Fvscode-omp\u002Fresources\u002Ftemplates\u002F.copilot\u002Fskills\u002Fultrawork\u002FSKILL.md",[],[75],{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":38},"01M6PF2A38Y1CE5BVJ5HMTMBP6","trace","https:\u002F\u002Fgithub.com\u002Fr3dlex\u002Foh-my-githubcopilot\u002Fblob\u002Fmain\u002Fvscode-omp\u002Fresources\u002Ftemplates\u002F.copilot\u002Fskills\u002Ftrace\u002FSKILL.md",[],[81],{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":38},"01M6PF28P7S19AK5XJA41WS9V8","team","https:\u002F\u002Fgithub.com\u002Fr3dlex\u002Foh-my-githubcopilot\u002Fblob\u002Fmain\u002Fvscode-omp\u002Fresources\u002Ftemplates\u002F.copilot\u002Fskills\u002Fteam\u002FSKILL.md",[],[87],{"skillNo":92,"name":93,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":38},"01M6PF278EADT8W3EWDYA3C2H0","swe-bench","https:\u002F\u002Fgithub.com\u002Fr3dlex\u002Foh-my-githubcopilot\u002Fblob\u002Fmain\u002Fvscode-omp\u002Fresources\u002Ftemplates\u002F.copilot\u002Fskills\u002Fswe-bench\u002FSKILL.md",[],[97,98],"SWE","swe bench",{"skillNo":100,"name":101,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":38},"01M6PF25XW1TMP5Z1N89ZVJQDY","swarm","https:\u002F\u002Fgithub.com\u002Fr3dlex\u002Foh-my-githubcopilot\u002Fblob\u002Fmain\u002Fvscode-omp\u002Fresources\u002Ftemplates\u002F.copilot\u002Fskills\u002Fswarm\u002FSKILL.md",[],[101]]