[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BQDNMS1Z3X5RG34DPGGWP0":3,"skill-same:01M7BQDNMS1Z3X5RG34DPGGWP0":70},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7BQDNMS1Z3X5RG34DPGGWP0","go-naming",null,"Use when naming Go packages, types, functions, methods, variables, constants, or receiver names, including new types and exported APIs. Package organization belongs to go-packages.","h0rn3t\u002Fgolang-skills","h0rn3t","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1213719?v=4","01M7BQBDJ8D4P5W7EQHBD464BX","Eugene Shershen","01M7BQBDJXMTCKNCEDKVEYDRGA",7,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fh0rn3t\u002Fgolang-skills\u002Fblob\u002Fmain\u002Fskills\u002Fgo-naming\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: go-naming\ndescription: Use when naming Go packages, types, functions, methods, variables, constants, or receiver names, including new types and exported APIs. Package organization belongs to go-packages.\nallowed-tools: Bash(bash ${CLAUDE_SKILL_DIR}\u002Fscripts\u002F*)\n---\n\n# Go Naming Conventions\n\n## Resource Routing\n\n- `scripts\u002Fcheck-naming.sh` - Run when checking SCREAMING_SNAKE_CASE constants, `Get`-prefixed methods with no parameters, generic package names, or receivers named `this`\u002F`self`.\n- `scripts\u002Fcheck-naming-ast.go` - Implementation helper built and run by `check-naming.sh`; not run or read directly.\n- `references\u002FIDENTIFIERS.md` - Read for the conventions themselves — package, interface, receiver, constant, initialism, getter and type-suffix names — when a choice for an exported identifier or package-level symbol is in doubt.\n- `references\u002FREPETITION.md` - Read when names repeat package, receiver, type, or local context.\n- `references\u002FVARIABLES.md` - Read when choosing local variable names, receiver names, or loop identifiers.\n\n## Core Principle\n\nA name is read where it is used, never where it is declared: it does not\nrepeat the package, the receiver, or the surrounding context, and its length\ngrows with the distance between declaration and use. Go names are shorter\nthan in most languages. The reader knows the conventions — MixedCaps,\nlowercase packages, `-er` interfaces, short consistent receivers, no `Get`\nprefix, initialisms in one case — so this skill carries the decisions and\n`references\u002F` the rules. A package name is short, lowercase, and a single\nword; layer directories take the plural layer names `handlers`, `services`,\n`repositories`, `models`.\n\n---\n\n## Error Names\n\n> **Normative**: Sentinel errors are `ErrNotFound` when exported and\n> `errNotFound` when not; error types end in `Error` (`NotFoundError`), never\n> `ErrNotFoundError`. `errname` in the lint baseline enforces the `Err`\u002F`err`\n> prefix and the `Error` suffix; it accepts `ErrNotFoundError`, so a name with\n> both is a review item.\n\n---\n\n## Where Review Sends Names Back\n\n- **Repetition against context.** `widget.New()` not `widget.NewWidget()`;\n  `p.Name()` not `p.ProjectName()`; in package `sqldb`, `Connection` not\n  `DBConnection`. A generic package name — `util`, `common`, `helper`, and the\n  rest of [the list](references\u002FIDENTIFIERS.md#avoid-uninformative-names) — is\n  a finding; name the package for what it provides (`httpauth`, `stringutil`).\n  [REPETITION.md](references\u002FREPETITION.md) has the cases.\n- **`_` prefix on unexported globals** (Uber only; Google style does not use\n  it): new code writes `defaultPort`, not `_defaultPort`, including new code\n  with no neighbor to match. Only a package that already prefixes its globals\n  keeps doing so ([VARIABLES.md](references\u002FVARIABLES.md#unexported-globals)).\n- **Type in the name.** `users` not `userSlice`, `name` not `nameString`;\n  when functions differ only by type, the type goes at the end (`ParseInt`,\n  `ParseInt64`).\n- **A predeclared identifier as a name.** `error`, `string`, `len`, `cap`,\n  `append`, `copy`, `new`, `make` as a variable, parameter, or type name\n  compiles and hides the built-in for the rest of the scope (`predeclared` in\n  the gate reports it); [SHADOWING.md](..\u002Fgo-style-core\u002Freferences\u002FSHADOWING.md) owns detection.\n\n---\n\n## Validation\n\n> **Validation**: `bash \u003Cinstalled-skill-dir>\u002Fscripts\u002Fcheck-naming.sh`, run from the project, reports the four patterns its Resource Routing line names. Error names are `errname`'s, and revive `exported` reports a type or function whose name starts with the package's (`widget.WidgetThing`), both in the [go-linting](..\u002Fgo-linting\u002FSKILL.md) gate; `widget.NewWidget` and the rest of the repetition above have no check. Run the script once at the end of the task, beside that gate, which does not run it.\n\n## Related Skills\n\n- [go-interfaces](..\u002Fgo-interfaces\u002FSKILL.md): pointer versus value receivers; their names are [IDENTIFIERS.md](references\u002FIDENTIFIERS.md#receiver-names)'s Receiver Names.\n- [go-packages](..\u002Fgo-packages\u002FSKILL.md): splitting packages, import collisions; package names are [IDENTIFIERS.md](references\u002FIDENTIFIERS.md#package-names)'s Package Names.\n- [go-style-core](..\u002Fgo-style-core\u002FSKILL.md): shadowing of built-ins, clarity against concision; name length by scope is [VARIABLES.md](references\u002FVARIABLES.md#length-proportional-to-scope).\n","# Go Naming Conventions\n\n## Resource Routing\n\n- `scripts\u002Fcheck-naming.sh` - Run when checking SCREAMING_SNAKE_CASE constants, `Get`-prefixed methods with no parameters, generic package names, or receivers named `this`\u002F`self`.\n- `scripts\u002Fcheck-naming-ast.go` - Implementation helper built and run by `check-naming.sh`; not run or read directly.\n- `references\u002FIDENTIFIERS.md` - Read for the conventions themselves — package, interface, receiver, constant, initialism, getter and type-suffix names — when a choice for an exported identifier or package-level symbol is in doubt.\n- `references\u002FREPETITION.md` - Read when names repeat package, receiver, type, or local context.\n- `references\u002FVARIABLES.md` - Read when choosing local variable names, receiver names, or loop identifiers.\n\n## Core Principle\n\nA name is read where it is used, never where it is declared: it does not\nrepeat the package, the receiver, or the surrounding context, and its length\ngrows with the distance between declaration and use. Go names are shorter\nthan in most languages. The reader knows the conventions — MixedCaps,\nlowercase packages, `-er` interfaces, short consistent receivers, no `Get`\nprefix, initialisms in one case — so this skill carries the decisions and\n`references\u002F` the rules. A package name is short, lowercase, and a single\nword; layer directories take the plural layer names `handlers`, `services`,\n`repositories`, `models`.\n\n---\n\n## Error Names\n\n> **Normative**: Sentinel errors are `ErrNotFound` when exported and\n> `errNotFound` when not; error types end in `Error` (`NotFoundError`), never\n> `ErrNotFoundError`. `errname` in the lint baseline enforces the `Err`\u002F`err`\n> prefix and the `Error` suffix; it accepts `ErrNotFoundError`, so a name with\n> both is a review item.\n\n---\n\n## Where Review Sends Names Back\n\n- **Repetition against context.** `widget.New()` not `widget.NewWidget()`;\n  `p.Name()` not `p.ProjectName()`; in package `sqldb`, `Connection` not\n  `DBConnection`. A generic package name — `util`, `common`, `helper`, and the\n  rest of [the list](references\u002FIDENTIFIERS.md#avoid-uninformative-names) — is\n  a finding; name the package for what it provides (`httpauth`, `stringutil`).\n  [REPETITION.md](references\u002FREPETITION.md) has the cases.\n- **`_` prefix on unexported globals** (Uber only; Google style does not use\n  it): new code writes `defaultPort`, not `_defaultPort`, including new code\n  with no neighbor to match. Only a package that already prefixes its globals\n  keeps doing so ([VARIABLES.md](references\u002FVARIABLES.md#unexported-globals)).\n- **Type in the name.** `users` not `userSlice`, `name` not `nameString`;\n  when functions differ only by type, the type goes at the end (`ParseInt`,\n  `ParseInt64`).\n- **A predeclared identifier as a name.** `error`, `string`, `len`, `cap`,\n  `append`, `copy`, `new`, `make` as a variable, parameter, or type name\n  compiles and hides the built-in for the rest of the scope (`predeclared` in\n  the gate reports it); [SHADOWING.md](..\u002Fgo-style-core\u002Freferences\u002FSHADOWING.md) owns detection.\n\n---\n\n## Validation\n\n> **Validation**: `bash \u003Cinstalled-skill-dir>\u002Fscripts\u002Fcheck-naming.sh`, run from the project, reports the four patterns its Resource Routing line names. Error names are `errname`'s, and revive `exported` reports a type or function whose name starts with the package's (`widget.WidgetThing`), both in the [go-linting](..\u002Fgo-linting\u002FSKILL.md) gate; `widget.NewWidget` and the rest of the repetition above have no check. Run the script once at the end of the task, beside that gate, which does not run it.\n\n## Related Skills\n\n- [go-interfaces](..\u002Fgo-interfaces\u002FSKILL.md): pointer versus value receivers; their names are [IDENTIFIERS.md](references\u002FIDENTIFIERS.md#receiver-names)'s Receiver Names.\n- [go-packages](..\u002Fgo-packages\u002FSKILL.md): splitting packages, import collisions; package names are [IDENTIFIERS.md](references\u002FIDENTIFIERS.md#package-names)'s Package Names.\n- [go-style-core](..\u002Fgo-style-core\u002FSKILL.md): shadowing of built-ins, clarity against concision; name length by scope is [VARIABLES.md](references\u002FVARIABLES.md#length-proportional-to-scope).\n",{"name":5,"description":7,"allowed-tools":24},"Bash(bash ${CLAUDE_SKILL_DIR}\u002Fscripts\u002F*)","main","59ac8ac7a0dd394878aaa0a7a7ecbc227356739f","skills\u002Fgo-naming",2,"https:\u002F\u002Fgithub.com\u002Fh0rn3t\u002Fgolang-skills","https:\u002F\u002Fgithub.com\u002Fh0rn3t","2026-11-14 04:23:12",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add h0rn3t\u002Fgolang-skills --skill go-naming",{"tool":38,"command":39},"bunx","bunx skills add h0rn3t\u002Fgolang-skills --skill go-naming",{"tool":41,"command":42},"pnpm","pnpm dlx skills add h0rn3t\u002Fgolang-skills --skill go-naming","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fh0rn3t\u002Fgolang-skills\u002Fblob\u002Fmain\u002Fskills\u002Fgo-naming\u002FSKILL.md",true,[46,52,56,60,66],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002FIDENTIFIERS.md","REFERENCE","参考文档",5634,"https:\u002F\u002Fgithub.com\u002Fh0rn3t\u002Fgolang-skills\u002Fblob\u002Fmain\u002Fskills\u002Fgo-naming\u002Freferences\u002FIDENTIFIERS.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002FREPETITION.md",2160,"https:\u002F\u002Fgithub.com\u002Fh0rn3t\u002Fgolang-skills\u002Fblob\u002Fmain\u002Fskills\u002Fgo-naming\u002Freferences\u002FREPETITION.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002FVARIABLES.md",3239,"https:\u002F\u002Fgithub.com\u002Fh0rn3t\u002Fgolang-skills\u002Fblob\u002Fmain\u002Fskills\u002Fgo-naming\u002Freferences\u002FVARIABLES.md",{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"scripts\u002Fcheck-naming-ast.go","SCRIPT","脚本",9480,"https:\u002F\u002Fgithub.com\u002Fh0rn3t\u002Fgolang-skills\u002Fblob\u002Fmain\u002Fskills\u002Fgo-naming\u002Fscripts\u002Fcheck-naming-ast.go",{"path":67,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":68,"sourceHtmlUrl":69},"scripts\u002Fcheck-naming.sh",3875,"https:\u002F\u002Fgithub.com\u002Fh0rn3t\u002Fgolang-skills\u002Fblob\u002Fmain\u002Fskills\u002Fgo-naming\u002Fscripts\u002Fcheck-naming.sh",[71,78,85,92,99,106],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7BQEMJBPJWY6CCGVKW27SH0","go-troubleshooting","Use when investigating a bug or ticket in a Go service whose cause is unknown — wrong or missing results, tenant-specific behavior, a regression, stage\u002Fprod\u002FCI differences, a panic, hang, deadlock, leak, unexplained CPU\u002FRSS growth, or a flaky test. Also use for pasted stack traces, profiles, logs, or requests to find a Go issue's root cause, even without the word debug. Does not cover rewriting ticket text, implementing an already-diagnosed fix alone (use its topic skill), or optimizing a known bottleneck (see go-performance).","https:\u002F\u002Fgithub.com\u002Fh0rn3t\u002Fgolang-skills\u002Fblob\u002Fmain\u002Fskills\u002Fgo-troubleshooting\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7BQEFVSRHNDND750SB69WD8","go-testing","Use when writing, reviewing, or improving Go test code — including table-driven tests, subtests, parallel tests, test helpers, test doubles, and assertions with cmp.Diff. Also use when a user asks to write a test for a Go function, even if they don't mention specific patterns like table-driven tests or subtests. Does not cover benchmark performance testing (see go-performance).","https:\u002F\u002Fgithub.com\u002Fh0rn3t\u002Fgolang-skills\u002Fblob\u002Fmain\u002Fskills\u002Fgo-testing\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7BQEA2DRH6H6WFYNJYJJRQQ","go-style-core","Use when resolving Go style or language mechanics such as formatting, nesting, declarations, initialization, scope, shadowing, loops, switches, or enum zero values. API design, naming, errors, and tests have specialized skills.","https:\u002F\u002Fgithub.com\u002Fh0rn3t\u002Fgolang-skills\u002Fblob\u002Fmain\u002Fskills\u002Fgo-style-core\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7BQE3D1H45ANCXAWCS55CDK","go-security","Use when writing or reviewing Go code that touches untrusted input, secrets, or credentials — SQL, shell, or template injection, path traversal, SSRF, cookies and security headers, password hashing, TLS settings, token comparison, or what may appear in a log line. Also use when a handler accepts a file name, URL, or command argument from a client, or when asked to find \"vulnerabilities\", even if the user never says \"security\". Does not cover the os.Root and crypto\u002Frand mechanics (see go-defensive) or the dependency CVE scan in the gate (see go-linting).","https:\u002F\u002Fgithub.com\u002Fh0rn3t\u002Fgolang-skills\u002Fblob\u002Fmain\u002Fskills\u002Fgo-security\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M7BQDZYHG2YRJA3J26HFPKR7","go-resilience","Use when handling Go dependency failures or overload with retries, backoff\u002Fjitter, budgets, idempotency, duplicate delivery, circuit breakers, bulkheads, rate limits, backpressure, or degradation. Unknown root causes belong to go-troubleshooting.","https:\u002F\u002Fgithub.com\u002Fh0rn3t\u002Fgolang-skills\u002Fblob\u002Fmain\u002Fskills\u002Fgo-resilience\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M7BQDVG7DH2G9Z97Y8H3P3E9","go-performance","Use when optimizing slow or performance-critical Go code, allocations, string concatenation in loops, or benchmarks. Also use when writing or reviewing a cache, including implementing one from a stub — its key, its expiry, and how a miss loads. Concurrent code patterns belong to go-concurrency.","https:\u002F\u002Fgithub.com\u002Fh0rn3t\u002Fgolang-skills\u002Fblob\u002Fmain\u002Fskills\u002Fgo-performance\u002FSKILL.md",[],[]]