[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M785G9Z9BP2FFJFVTSCRC2TP":3,"skill-same:01M785G9Z9BP2FFJFVTSCRC2TP":84},{"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":44,"commitSha":45,"skillDirectory":46,"forksCount":14,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":63},"01M785G9Z9BP2FFJFVTSCRC2TP","golang-lint",null,"Linting best practices and golangci-lint configuration for Golang projects — running linters, configuring .golangci.yml, suppressing warnings with nolint directives, interpreting lint output, and selecting linters. Use when configuring golangci-lint, asking about lint warnings or nolint suppressions, setting up code quality tooling, or choosing linters. Also use when the user mentions golangci-lint, go vet, staticcheck, or revive. Not for wiring a lint step into a GitHub Actions pipeline (→ See `samber\u002Fcc-skills-golang@golang-continuous-integration` skill).","gn00678465\u002Fapm-go","gn00678465","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F37042723?v=4","01M785CK18TS9AF7G28E00EYXZ","MADAO","01M785CK28RVWVYNVMJNJ48CQ7",0,"MIT","https:\u002F\u002Fgithub.com\u002Fgn00678465\u002Fapm-go\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgolang-lint\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: golang-lint\ndescription: \"Linting best practices and golangci-lint configuration for Golang projects — running linters, configuring .golangci.yml, suppressing warnings with nolint directives, interpreting lint output, and selecting linters. Use when configuring golangci-lint, asking about lint warnings or nolint suppressions, setting up code quality tooling, or choosing linters. Also use when the user mentions golangci-lint, go vet, staticcheck, or revive. Not for wiring a lint step into a GitHub Actions pipeline (→ See `samber\u002Fcc-skills-golang@golang-continuous-integration` skill).\"\nuser-invocable: true\nlicense: MIT\ncompatibility: Designed for Claude Code, Codex or similar harness, and for projects using Golang.\nmetadata:\n  author: samber\n  version: \"1.4.1\"\n  openclaw:\n    emoji: \"🧹\"\n    homepage: https:\u002F\u002Fgithub.com\u002Fsamber\u002Fcc-skills-golang\n    requires:\n      bins:\n        - go\n        - golangci-lint\n    install:\n      - kind: brew\n        formula: golangci-lint\n        bins: [golangci-lint]\nallowed-tools: Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent\npaths:\n  - \"**\u002F*.go\"\n  - \".golangci.yml\"\n---\n\n**Persona:** You are a Go code quality engineer. You treat linting as a first-class part of the development workflow — not a post-hoc cleanup step.\n\n**Orchestration mode:** Fan out the five sub-agents described in the \"Parallelizing Legacy Codebase Cleanup\" section (auto-fix, security linters, error handling, style\u002Fformatting, code quality) when adopting linting on a legacy codebase, so independent linter categories are fixed concurrently. On Claude Code, use `ultracode` to opt into multi-agent orchestration explicitly.\n\n**Modes:**\n\n- **Setup mode** — configuring `.golangci.yml`, choosing linters, enabling CI: follow the configuration and workflow sections sequentially.\n- **Coding mode** — writing new Go code: launch a background agent running `golangci-lint run --fix` on the modified files only while the main agent continues implementing the feature; surface results when it completes.\n- **Interpret\u002Ffix mode** — reading lint output, suppressing warnings, fixing issues on existing code: start from \"Interpreting Output\" and \"Suppressing Lint Warnings\"; use parallel sub-agents for large-scale legacy cleanup.\n\n**Dependencies:**\n\n- golangci-lint: `go install github.com\u002Fgolangci\u002Fgolangci-lint\u002Fcmd\u002Fgolangci-lint@latest`\n\n# Go Linting\n\n## Overview\n\n`golangci-lint` is the standard Go linting tool. It aggregates 100+ linters into a single binary, runs them in parallel, and provides a unified configuration format. Run it frequently during development and always in CI.\n\nEvery Go project MUST have a `.golangci.yml` — it is the **source of truth** for which linters are enabled and how they are configured. See the [recommended configuration](.\u002Fassets\u002F.golangci.yml) for a production-ready setup with 48 linters enabled.\n\n## Quick Reference\n\n```bash\n# Run all configured linters\ngolangci-lint run .\u002F...\n\n# Auto-fix issues where possible\ngolangci-lint run --fix .\u002F...\n\n# Format code (golangci-lint v2+)\ngolangci-lint fmt .\u002F...\n\n# Run a single linter only\ngolangci-lint run --enable-only govet .\u002F...\n\n# List all available linters\ngolangci-lint linters\n\n# Verbose output with timing info\ngolangci-lint run --verbose .\u002F...\n```\n\n## Configuration\n\nThe [recommended .golangci.yml](.\u002Fassets\u002F.golangci.yml) provides a production-ready setup with 33 linters. For configuration details, linter categories, and per-linter descriptions, see the **[linter reference](.\u002Freferences\u002Flinter-reference.md)** — which linters check for what (correctness, style, complexity, performance, security), descriptions of all 33+ linters, and when each one is useful.\n\n## Suppressing Lint Warnings\n\nUse `\u002F\u002Fnolint` directives sparingly — fix the root cause first.\n\n```go\n\u002F\u002F Good: specific linter + justification\n\u002F\u002Fnolint:errcheck \u002F\u002F fire-and-forget logging, error is not actionable\n_ = logger.Sync()\n\n\u002F\u002F Bad: blanket suppression without reason\n\u002F\u002Fnolint\n_ = logger.Sync()\n```\n\nRules:\n\n1. **\u002F\u002Fnolint directives MUST specify the linter name**: `\u002F\u002Fnolint:errcheck` not `\u002F\u002Fnolint`\n2. **\u002F\u002Fnolint directives MUST include a justification comment**: `\u002F\u002Fnolint:errcheck \u002F\u002F reason`\n3. **The `nolintlint` linter enforces both rules above** — it flags bare `\u002F\u002Fnolint` and missing reasons\n4. **NEVER suppress security linters** (gosec, bodyclose, sqlclosecheck) without a very strong reason\n\nFor comprehensive patterns and examples, see **[nolint directives](.\u002Freferences\u002Fnolint-directives.md)** — when to suppress, how to write justifications, patterns for per-line vs per-function suppression, and anti-patterns.\n\n## Development Workflow\n\n1. **Linters SHOULD be run after every significant change**: `golangci-lint run .\u002F...`\n2. **Auto-fix what you can**: `golangci-lint run --fix .\u002F...`\n3. **Format before committing**: `golangci-lint fmt .\u002F...`\n4. **Incremental adoption on legacy code**: set `issues.new-from-rev` in `.golangci.yml` to only lint new\u002Fchanged code, then gradually clean up old code\n\nMakefile targets (recommended):\n\n```makefile\nlint:\n\tgolangci-lint run .\u002F...\n\nlint-fix:\n\tgolangci-lint run --fix .\u002F...\n\nfmt:\n\tgolangci-lint fmt .\u002F...\n```\n\nFor CI pipeline setup (GitHub Actions with `golangci-lint-action`), see the `samber\u002Fcc-skills-golang@golang-continuous-integration` skill.\n\n## Interpreting Output\n\nEach issue follows this format:\n\n```\npath\u002Fto\u002Ffile.go:42:10: message describing the issue (linter-name)\n```\n\nThe linter name in parentheses tells you which linter flagged it. Use this to:\n\n- Look up the linter in the [reference](.\u002Freferences\u002Flinter-reference.md) to understand what it checks\n- Suppress with `\u002F\u002Fnolint:linter-name \u002F\u002F reason` if it's a false positive\n- Use `golangci-lint run --verbose` for additional context and timing\n\n## Common Issues\n\n| Problem | Solution |\n| --- | --- |\n| \"deadline exceeded\" | Set or increase `run.timeout` in `.golangci.yml`; golangci-lint v2 defaults to no timeout (`0`) |\n| Too many issues on legacy code | Set `issues.new-from-rev: HEAD~1` to lint only new code |\n| Linter not found | Check `golangci-lint linters` — linter may need a newer version |\n| Conflicts between linters | Disable the less useful one with a comment explaining why |\n| v1 config errors after upgrade | Run `golangci-lint migrate` to convert config format |\n| Slow on large repos | Reduce `run.concurrency` or exclude paths with `linters.exclusions.paths` \u002F `formatters.exclusions.paths` |\n\n## Parallelizing Legacy Codebase Cleanup\n\nWhen adopting linting on a legacy codebase, use up to 5 parallel sub-agents to fix independent linter categories simultaneously:\n\n- Sub-agent 1: Run `golangci-lint run --fix .\u002F...` for auto-fixable issues\n- Sub-agent 2: Fix security linter findings (bodyclose, sqlclosecheck, gosec)\n- Sub-agent 3: Fix error handling issues (errcheck, nilerr, wrapcheck)\n- Sub-agent 4: Fix style and formatting (gofumpt, goimports, revive)\n- Sub-agent 5: Fix code quality (gocritic, unused, ineffassign)\n\n## Cross-References\n\n- → See `samber\u002Fcc-skills-golang@golang-continuous-integration` skill for CI pipeline with golangci-lint-action\n- → See `samber\u002Fcc-skills-golang@golang-code-style` skill for style rules that linters enforce\n- → See `samber\u002Fcc-skills-golang@golang-security` skill for SAST tools beyond linting (gosec, govulncheck)\n- → See `samber\u002Fcc-skills-golang@golang-continuous-integration` skill for automated AI-driven code review in CI using these guidelines\n","**Persona:** You are a Go code quality engineer. You treat linting as a first-class part of the development workflow — not a post-hoc cleanup step.\n\n**Orchestration mode:** Fan out the five sub-agents described in the \"Parallelizing Legacy Codebase Cleanup\" section (auto-fix, security linters, error handling, style\u002Fformatting, code quality) when adopting linting on a legacy codebase, so independent linter categories are fixed concurrently. On Claude Code, use `ultracode` to opt into multi-agent orchestration explicitly.\n\n**Modes:**\n\n- **Setup mode** — configuring `.golangci.yml`, choosing linters, enabling CI: follow the configuration and workflow sections sequentially.\n- **Coding mode** — writing new Go code: launch a background agent running `golangci-lint run --fix` on the modified files only while the main agent continues implementing the feature; surface results when it completes.\n- **Interpret\u002Ffix mode** — reading lint output, suppressing warnings, fixing issues on existing code: start from \"Interpreting Output\" and \"Suppressing Lint Warnings\"; use parallel sub-agents for large-scale legacy cleanup.\n\n**Dependencies:**\n\n- golangci-lint: `go install github.com\u002Fgolangci\u002Fgolangci-lint\u002Fcmd\u002Fgolangci-lint@latest`\n\n# Go Linting\n\n## Overview\n\n`golangci-lint` is the standard Go linting tool. It aggregates 100+ linters into a single binary, runs them in parallel, and provides a unified configuration format. Run it frequently during development and always in CI.\n\nEvery Go project MUST have a `.golangci.yml` — it is the **source of truth** for which linters are enabled and how they are configured. See the [recommended configuration](.\u002Fassets\u002F.golangci.yml) for a production-ready setup with 48 linters enabled.\n\n## Quick Reference\n\n```bash\n# Run all configured linters\ngolangci-lint run .\u002F...\n\n# Auto-fix issues where possible\ngolangci-lint run --fix .\u002F...\n\n# Format code (golangci-lint v2+)\ngolangci-lint fmt .\u002F...\n\n# Run a single linter only\ngolangci-lint run --enable-only govet .\u002F...\n\n# List all available linters\ngolangci-lint linters\n\n# Verbose output with timing info\ngolangci-lint run --verbose .\u002F...\n```\n\n## Configuration\n\nThe [recommended .golangci.yml](.\u002Fassets\u002F.golangci.yml) provides a production-ready setup with 33 linters. For configuration details, linter categories, and per-linter descriptions, see the **[linter reference](.\u002Freferences\u002Flinter-reference.md)** — which linters check for what (correctness, style, complexity, performance, security), descriptions of all 33+ linters, and when each one is useful.\n\n## Suppressing Lint Warnings\n\nUse `\u002F\u002Fnolint` directives sparingly — fix the root cause first.\n\n```go\n\u002F\u002F Good: specific linter + justification\n\u002F\u002Fnolint:errcheck \u002F\u002F fire-and-forget logging, error is not actionable\n_ = logger.Sync()\n\n\u002F\u002F Bad: blanket suppression without reason\n\u002F\u002Fnolint\n_ = logger.Sync()\n```\n\nRules:\n\n1. **\u002F\u002Fnolint directives MUST specify the linter name**: `\u002F\u002Fnolint:errcheck` not `\u002F\u002Fnolint`\n2. **\u002F\u002Fnolint directives MUST include a justification comment**: `\u002F\u002Fnolint:errcheck \u002F\u002F reason`\n3. **The `nolintlint` linter enforces both rules above** — it flags bare `\u002F\u002Fnolint` and missing reasons\n4. **NEVER suppress security linters** (gosec, bodyclose, sqlclosecheck) without a very strong reason\n\nFor comprehensive patterns and examples, see **[nolint directives](.\u002Freferences\u002Fnolint-directives.md)** — when to suppress, how to write justifications, patterns for per-line vs per-function suppression, and anti-patterns.\n\n## Development Workflow\n\n1. **Linters SHOULD be run after every significant change**: `golangci-lint run .\u002F...`\n2. **Auto-fix what you can**: `golangci-lint run --fix .\u002F...`\n3. **Format before committing**: `golangci-lint fmt .\u002F...`\n4. **Incremental adoption on legacy code**: set `issues.new-from-rev` in `.golangci.yml` to only lint new\u002Fchanged code, then gradually clean up old code\n\nMakefile targets (recommended):\n\n```makefile\nlint:\n\tgolangci-lint run .\u002F...\n\nlint-fix:\n\tgolangci-lint run --fix .\u002F...\n\nfmt:\n\tgolangci-lint fmt .\u002F...\n```\n\nFor CI pipeline setup (GitHub Actions with `golangci-lint-action`), see the `samber\u002Fcc-skills-golang@golang-continuous-integration` skill.\n\n## Interpreting Output\n\nEach issue follows this format:\n\n```\npath\u002Fto\u002Ffile.go:42:10: message describing the issue (linter-name)\n```\n\nThe linter name in parentheses tells you which linter flagged it. Use this to:\n\n- Look up the linter in the [reference](.\u002Freferences\u002Flinter-reference.md) to understand what it checks\n- Suppress with `\u002F\u002Fnolint:linter-name \u002F\u002F reason` if it's a false positive\n- Use `golangci-lint run --verbose` for additional context and timing\n\n## Common Issues\n\n| Problem | Solution |\n| --- | --- |\n| \"deadline exceeded\" | Set or increase `run.timeout` in `.golangci.yml`; golangci-lint v2 defaults to no timeout (`0`) |\n| Too many issues on legacy code | Set `issues.new-from-rev: HEAD~1` to lint only new code |\n| Linter not found | Check `golangci-lint linters` — linter may need a newer version |\n| Conflicts between linters | Disable the less useful one with a comment explaining why |\n| v1 config errors after upgrade | Run `golangci-lint migrate` to convert config format |\n| Slow on large repos | Reduce `run.concurrency` or exclude paths with `linters.exclusions.paths` \u002F `formatters.exclusions.paths` |\n\n## Parallelizing Legacy Codebase Cleanup\n\nWhen adopting linting on a legacy codebase, use up to 5 parallel sub-agents to fix independent linter categories simultaneously:\n\n- Sub-agent 1: Run `golangci-lint run --fix .\u002F...` for auto-fixable issues\n- Sub-agent 2: Fix security linter findings (bodyclose, sqlclosecheck, gosec)\n- Sub-agent 3: Fix error handling issues (errcheck, nilerr, wrapcheck)\n- Sub-agent 4: Fix style and formatting (gofumpt, goimports, revive)\n- Sub-agent 5: Fix code quality (gocritic, unused, ineffassign)\n\n## Cross-References\n\n- → See `samber\u002Fcc-skills-golang@golang-continuous-integration` skill for CI pipeline with golangci-lint-action\n- → See `samber\u002Fcc-skills-golang@golang-code-style` skill for style rules that linters enforce\n- → See `samber\u002Fcc-skills-golang@golang-security` skill for SAST tools beyond linting (gosec, govulncheck)\n- → See `samber\u002Fcc-skills-golang@golang-continuous-integration` skill for automated AI-driven code review in CI using these guidelines\n",{"name":5,"paths":24,"license":15,"metadata":27,"description":7,"allowed-tools":41,"compatibility":42,"user-invocable":43},[25,26],"**\u002F*.go",".golangci.yml",{"author":28,"version":29,"openclaw":30},"samber","1.4.1",{"emoji":31,"install":32,"homepage":37,"requires":38},"🧹",[33],{"bins":34,"kind":36,"formula":35},[35],"golangci-lint","brew","https:\u002F\u002Fgithub.com\u002Fsamber\u002Fcc-skills-golang",{"bins":39},[40,35],"go","Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent","Designed for Claude Code, Codex or similar harness, and for projects using Golang.",true,"main","03de2fd4cce66781f4eba68a6d0613fc2001c30f",".claude\u002Fskills\u002Fgolang-lint","https:\u002F\u002Fgithub.com\u002Fgn00678465\u002Fapm-go","https:\u002F\u002Fgithub.com\u002Fgn00678465","まるでだめなおさん","2026-10-30 11:48:16",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":43},[53,56,59],{"tool":54,"command":55},"npx","npx skills add gn00678465\u002Fapm-go --skill golang-lint",{"tool":57,"command":58},"bunx","bunx skills add gn00678465\u002Fapm-go --skill golang-lint",{"tool":60,"command":61},"pnpm","pnpm dlx skills add gn00678465\u002Fapm-go --skill golang-lint","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgn00678465\u002Fapm-go\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgolang-lint\u002FSKILL.md",[64,70,76,80],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"assets\u002F.golangci.yml","ASSET","资产文件",7304,"https:\u002F\u002Fgithub.com\u002Fgn00678465\u002Fapm-go\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgolang-lint\u002Fassets\u002F.golangci.yml",{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"evals\u002Fevals.json","REFERENCE","参考文档",16136,"https:\u002F\u002Fgithub.com\u002Fgn00678465\u002Fapm-go\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgolang-lint\u002Fevals\u002Fevals.json",{"path":77,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Flinter-reference.md",8329,"https:\u002F\u002Fgithub.com\u002Fgn00678465\u002Fapm-go\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgolang-lint\u002Freferences\u002Flinter-reference.md",{"path":81,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fnolint-directives.md",2531,"https:\u002F\u002Fgithub.com\u002Fgn00678465\u002Fapm-go\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgolang-lint\u002Freferences\u002Fnolint-directives.md",[85,92,99,106,113,120],{"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},"01M785HBB3TCKJBY61ESV12P93","golang-troubleshooting","Troubleshoot Golang programs systematically - find and fix the root cause. Use when encountering bugs, crashes, deadlocks, races, or unexpected behavior in Go code. Covers debugging methodology, common Go pitfalls, test-driven debugging, pprof setup and capture, Delve, race detection, GODEBUG tracing, and production debugging. Start here for any 'something is wrong' situation. Not for interpreting profiles or benchmarking (→ See `samber\u002Fcc-skills-golang@golang-benchmark` skill), applying optimization patterns (→ See `samber\u002Fcc-skills-golang@golang-performance` skill), or designing new code (→ See `samber\u002Fcc-skills-golang@golang-safety` skill for defensive coding, `samber\u002Fcc-skills-golang@golang-concurrency` skill for concurrency design).","https:\u002F\u002Fgithub.com\u002Fgn00678465\u002Fapm-go\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgolang-troubleshooting\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},"01M785H2B0N08S730C7NG5JK9W","golang-testing","Production-ready Golang tests — table-driven tests, testify suites and mocks, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, code coverage, integration tests, idiomatic test naming. Use when writing or reviewing Go tests, choosing a testing approach, setting up Go test CI, or debugging flaky\u002Fslow tests. For testify-specific APIs see `samber\u002Fcc-skills-golang@golang-stretchr-testify`; for measurement methodology see `samber\u002Fcc-skills-golang@golang-benchmark`.","https:\u002F\u002Fgithub.com\u002Fgn00678465\u002Fapm-go\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgolang-testing\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},"01M785GSK4XRCCMQ4SKAAHE1PN","golang-spf13-cobra","Golang CLI command tree library using spf13\u002Fcobra — cobra.Command, RunE vs Run, PersistentPreRunE hook chain, Args validators (NoArgs, ExactArgs, MatchAll, custom), persistent vs local flags, command groups, ValidArgsFunction, RegisterFlagCompletionFunc, ShellCompDirective, usage\u002Fhelp template customization, man-page and markdown doc generation, and testing with SetArgs\u002FSetOut\u002FSetErr. Apply when using or adopting spf13\u002Fcobra, or when the codebase imports `github.com\u002Fspf13\u002Fcobra`. For configuration layering alongside cobra, see the `samber\u002Fcc-skills-golang@golang-spf13-viper` skill. For general CLI architecture (project layout, exit codes, signal handling, I\u002FO patterns), see `samber\u002Fcc-skills-golang@golang-cli`.","https:\u002F\u002Fgithub.com\u002Fgn00678465\u002Fapm-go\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgolang-spf13-cobra\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},"01M785GGB7M6KKVBGMHDHEABQK","golang-safety","Defensive Golang coding against accidental bugs — nil panics, typed-nil interfaces, `append` backing-array aliasing, silent int64-to-int32 truncation, float `==` comparison, `defer` inside loops, defensive copies of slices and maps, and usable zero values. Use when a Go program panics on a nil map write or nil pointer dereference, when reviewing code for nil-safety, numeric conversion overflow, or resource lifecycle, or when designing a type whose zero value must be safe. Not for designing concurrent access with goroutines, channels, or sync primitives (→ See `samber\u002Fcc-skills-golang@golang-concurrency` skill), not for exploitable vulnerabilities such as injection, weak crypto, or leaked secrets (→ See `samber\u002Fcc-skills-golang@golang-security` skill), and not for debugging an already-failing program (→ See `samber\u002Fcc-skills-golang@golang-troubleshooting` skill).","https:\u002F\u002Fgithub.com\u002Fgn00678465\u002Fapm-go\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgolang-safety\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M785G3EFKSP6AFFXAW2CE6GG","golang-error-handling","Idiomatic Golang error handling — creation, wrapping with %w, errors.Is\u002FAs, errors.Join, custom error types, sentinel errors, panic\u002Frecover, the single handling rule, structured logging with slog, HTTP request logging middleware, and samber\u002Foops for production errors. Built to make logs usable at scale with log aggregation 3rd-party tools. Apply when creating, wrapping, inspecting, or logging errors in Go code. For samber\u002Foops specifics → See `samber\u002Fcc-skills-golang@golang-samber-oops` skill; for slog handler ecosystem → See `samber\u002Fcc-skills-golang@golang-samber-slog` skill.","https:\u002F\u002Fgithub.com\u002Fgn00678465\u002Fapm-go\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgolang-error-handling\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":19},"01M785FVP5KNN9J0CZNRKSN00W","golang-concurrency","Golang concurrency design — goroutine lifecycle and leak prevention, channels and `select`, channel ownership and direction, `sync.Mutex`\u002F`RWMutex`\u002F`sync.Map`\u002F`sync.Once`\u002Fatomics, `errgroup`, `singleflight`, worker pools, and fan-out\u002Ffan-in pipelines. Use when writing or reviewing concurrent Go code, when choosing between channels and mutexes, when protecting a shared map or counter, or when a goroutine has no clear exit. Not for defensive coding unrelated to concurrency such as nil panics, slice aliasing, or numeric overflow (→ See `samber\u002Fcc-skills-golang@golang-safety` skill), and not for debugging a specific hung, crashing, or racing program after the fact (→ See `samber\u002Fcc-skills-golang@golang-troubleshooting` skill).","https:\u002F\u002Fgithub.com\u002Fgn00678465\u002Fapm-go\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgolang-concurrency\u002FSKILL.md",[],[]]