[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79ZXKAV1SQJZ45CB4TT1JZG":3,"skill-same:01M79ZXKAV1SQJZ45CB4TT1JZG":59},{"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":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M79ZXKAV1SQJZ45CB4TT1JZG","go-linting",null,"Use when setting up linting for a Go project, configuring golangci-lint, or adding Go checks to a CI\u002FCD pipeline. Also use when starting a new Go project and deciding which linters to enable, even if the user only asks about \"code quality\" or \"static analysis\" without mentioning specific linter names. Does not cover code review process (see go-code-review).","kongnakornna\u002Fgolangapi","kongnakornna","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10528904?v=4","01M79Z5JQPPV5CWQHXS235Q9MD","Kongnakorn Jantakun","01M79Z5JRHJJJ6PR2DGQS4P985",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgolang-skills\u002Fskills\u002Fgo-linting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: go-linting\ndescription: Use when setting up linting for a Go project, configuring golangci-lint, or adding Go checks to a CI\u002FCD pipeline. Also use when starting a new Go project and deciding which linters to enable, even if the user only asks about \"code quality\" or \"static analysis\" without mentioning specific linter names. Does not cover code review process (see go-code-review).\nallowed-tools: Bash(bash:*)\n---\n\n# Go Linting\n\n## Core Principle\n\nMore important than any \"blessed\" set of linters: **lint consistently across a codebase**.\n\nConsistent linting helps catch common issues and establishes a high bar for code quality without being unnecessarily prescriptive.\n\n## Resource Routing\n\n- `scripts\u002Fsetup-lint.sh` - Run when generating a `.golangci.yml`, validating the first lint pass, or producing JSON metadata.\n- `assets\u002Fgolangci.yml` - Use as the v2 golangci-lint baseline for established projects.\n\n## Setup Procedure\n\n1. Create `.golangci.yml` with `scripts\u002Fsetup-lint.sh` or copy `assets\u002Fgolangci.yml`\n2. Run `golangci-lint run .\u002F...`\n3. If errors appear, fix them category by category (formatting first, then vet, then style)\n4. Re-run until clean\n\nAfter generating `.golangci.yml`, run `golangci-lint config verify --config .golangci.yml`\nto verify the configuration schema before relying on lint results.\n\n---\n\n## Minimum Recommended Linters\n\nThese linters catch the most common issues while maintaining a high quality bar:\n\n| Linter | Purpose |\n|--------|---------|\n| [errcheck](https:\u002F\u002Fgithub.com\u002Fkisielk\u002Ferrcheck) | Ensure errors are handled |\n| [goimports](https:\u002F\u002Fpkg.go.dev\u002Fgolang.org\u002Fx\u002Ftools\u002Fcmd\u002Fgoimports) | Format code and manage imports |\n| [revive](https:\u002F\u002Fgithub.com\u002Fmgechev\u002Frevive) | Common style mistakes (modern replacement for golint) |\n| [govet](https:\u002F\u002Fpkg.go.dev\u002Fcmd\u002Fvet) | Analyze code for common mistakes |\n| [staticcheck](https:\u002F\u002Fstaticcheck.dev) | Various static analysis checks |\n\n> **Note**: `revive` is the modern, faster successor to the now-deprecated `golint`.\n\n---\n\n## Lint Runner: golangci-lint\n\nUse [golangci-lint](https:\u002F\u002Fgithub.com\u002Fgolangci\u002Fgolangci-lint) as your lint runner. See the [example .golangci.yml](https:\u002F\u002Fgithub.com\u002Fuber-go\u002Fguide\u002Fblob\u002Fmaster\u002F.golangci.yml) from uber-go\u002Fguide.\n\n---\n\n## Example Configuration\n\nUse `assets\u002Fgolangci.yml` as the maintained example. It targets\ngolangci-lint v2 (verified with 2.10.1 on 2026-06-19), keeps `goimports`\nunder `formatters`, and enables the core linters plus common production\nadditions.\n\n### Running\n\n```bash\n# Install the version this skill's config is verified against\ngo install github.com\u002Fgolangci\u002Fgolangci-lint\u002Fv2\u002Fcmd\u002Fgolangci-lint@v2.10.1\n\n# Run all linters\ngolangci-lint run\n\n# Run on specific paths\ngolangci-lint run .\u002Fpkg\u002F...\n```\n\n---\n\n## Additional Recommended Linters\n\nBeyond the minimum set, consider these for production projects:\n\n| Linter | Purpose | When to enable |\n|--------|---------|----------------|\n| [gosec](https:\u002F\u002Fgithub.com\u002Fsecurego\u002Fgosec) | Security vulnerability detection | Always for services handling user input |\n| [ineffassign](https:\u002F\u002Fgithub.com\u002Fgordonklaus\u002Fineffassign) | Detect ineffectual assignments | Always — catches dead code |\n| [misspell](https:\u002F\u002Fgithub.com\u002Fclient9\u002Fmisspell) | Correct common misspellings in comments\u002Fstrings | Always |\n| [gocyclo](https:\u002F\u002Fgithub.com\u002Ffzipp\u002Fgocyclo) | Cyclomatic complexity threshold | When functions exceed ~15 complexity |\n| [exhaustive](https:\u002F\u002Fgithub.com\u002Fnishanths\u002Fexhaustive) | Ensure switch covers all enum values | When using iota enums |\n| [bodyclose](https:\u002F\u002Fgithub.com\u002Ftimakin\u002Fbodyclose) | Detect unclosed HTTP response bodies | Always for HTTP client code |\n\n---\n\n## Nolint Directives\n\nWhen suppressing a lint finding, always explain why:\n\n```go\n\u002F\u002Fnolint:errcheck \u002F\u002F fire-and-forget logging; error is not actionable\n_ = logger.Sync()\n```\n\nRules:\n- Use `\u002F\u002Fnolint:lintername` — never bare `\u002F\u002Fnolint`\n- Place the comment on the same line as the finding\n- Include a justification after `\u002F\u002F`\n\n---\n\n## CI\u002FCD Integration\n\nRun `golangci-lint run .\u002F...` in CI after tests. Pin the golangci-lint version\nused by CI so local and release behavior do not drift.\n\n### Pre-commit Hook\n\n```bash\n#!\u002Fbin\u002Fsh\n# .git\u002Fhooks\u002Fpre-commit\ngolangci-lint run --new-from-rev=HEAD~1\n```\n\nUse `--new-from-rev` to lint only changed code, keeping the feedback loop fast.\n\n---\n\n## Quick Reference\n\n| Task | Command\u002FAction |\n|------|----------------|\n| Install golangci-lint | `go install github.com\u002Fgolangci\u002Fgolangci-lint\u002Fv2\u002Fcmd\u002Fgolangci-lint@v2.10.1` |\n| Run linters | `golangci-lint run` |\n| Run on path | `golangci-lint run .\u002Fpkg\u002F...` |\n| Config file | `.golangci.yml` in project root |\n| CI integration | Run `golangci-lint run` in pipeline |\n| Nolint directives | `\u002F\u002Fnolint:name \u002F\u002F reason` — never bare `\u002F\u002Fnolint` |\n| CI integration | Use `golangci\u002Fgolangci-lint-action` for GitHub Actions |\n| Pre-commit | `golangci-lint run --new-from-rev=HEAD~1` |\n\n### Linter Selection Guidelines\n\n| When you need... | Use |\n|------------------|-----|\n| Error handling coverage | errcheck |\n| Import formatting | goimports |\n| Style consistency | revive |\n| Bug detection | govet, staticcheck |\n| All of the above | golangci-lint with config |\n\n---\n\n## Related Skills\n\n- **Style foundations**: See [go-style-core](..\u002Fgo-style-core\u002FSKILL.md) when resolving style questions that linters enforce (formatting, nesting, naming)\n- **Code review**: See [go-code-review](..\u002Fgo-code-review\u002FSKILL.md) when combining linter output with a manual review checklist\n- **Error handling**: See [go-error-handling](..\u002Fgo-error-handling\u002FSKILL.md) when errcheck flags unhandled errors and you need to decide how to handle them\n- **Testing**: See [go-testing](..\u002Fgo-testing\u002FSKILL.md) when running linters alongside tests in CI pipelines\n","# Go Linting\n\n## Core Principle\n\nMore important than any \"blessed\" set of linters: **lint consistently across a codebase**.\n\nConsistent linting helps catch common issues and establishes a high bar for code quality without being unnecessarily prescriptive.\n\n## Resource Routing\n\n- `scripts\u002Fsetup-lint.sh` - Run when generating a `.golangci.yml`, validating the first lint pass, or producing JSON metadata.\n- `assets\u002Fgolangci.yml` - Use as the v2 golangci-lint baseline for established projects.\n\n## Setup Procedure\n\n1. Create `.golangci.yml` with `scripts\u002Fsetup-lint.sh` or copy `assets\u002Fgolangci.yml`\n2. Run `golangci-lint run .\u002F...`\n3. If errors appear, fix them category by category (formatting first, then vet, then style)\n4. Re-run until clean\n\nAfter generating `.golangci.yml`, run `golangci-lint config verify --config .golangci.yml`\nto verify the configuration schema before relying on lint results.\n\n---\n\n## Minimum Recommended Linters\n\nThese linters catch the most common issues while maintaining a high quality bar:\n\n| Linter | Purpose |\n|--------|---------|\n| [errcheck](https:\u002F\u002Fgithub.com\u002Fkisielk\u002Ferrcheck) | Ensure errors are handled |\n| [goimports](https:\u002F\u002Fpkg.go.dev\u002Fgolang.org\u002Fx\u002Ftools\u002Fcmd\u002Fgoimports) | Format code and manage imports |\n| [revive](https:\u002F\u002Fgithub.com\u002Fmgechev\u002Frevive) | Common style mistakes (modern replacement for golint) |\n| [govet](https:\u002F\u002Fpkg.go.dev\u002Fcmd\u002Fvet) | Analyze code for common mistakes |\n| [staticcheck](https:\u002F\u002Fstaticcheck.dev) | Various static analysis checks |\n\n> **Note**: `revive` is the modern, faster successor to the now-deprecated `golint`.\n\n---\n\n## Lint Runner: golangci-lint\n\nUse [golangci-lint](https:\u002F\u002Fgithub.com\u002Fgolangci\u002Fgolangci-lint) as your lint runner. See the [example .golangci.yml](https:\u002F\u002Fgithub.com\u002Fuber-go\u002Fguide\u002Fblob\u002Fmaster\u002F.golangci.yml) from uber-go\u002Fguide.\n\n---\n\n## Example Configuration\n\nUse `assets\u002Fgolangci.yml` as the maintained example. It targets\ngolangci-lint v2 (verified with 2.10.1 on 2026-06-19), keeps `goimports`\nunder `formatters`, and enables the core linters plus common production\nadditions.\n\n### Running\n\n```bash\n# Install the version this skill's config is verified against\ngo install github.com\u002Fgolangci\u002Fgolangci-lint\u002Fv2\u002Fcmd\u002Fgolangci-lint@v2.10.1\n\n# Run all linters\ngolangci-lint run\n\n# Run on specific paths\ngolangci-lint run .\u002Fpkg\u002F...\n```\n\n---\n\n## Additional Recommended Linters\n\nBeyond the minimum set, consider these for production projects:\n\n| Linter | Purpose | When to enable |\n|--------|---------|----------------|\n| [gosec](https:\u002F\u002Fgithub.com\u002Fsecurego\u002Fgosec) | Security vulnerability detection | Always for services handling user input |\n| [ineffassign](https:\u002F\u002Fgithub.com\u002Fgordonklaus\u002Fineffassign) | Detect ineffectual assignments | Always — catches dead code |\n| [misspell](https:\u002F\u002Fgithub.com\u002Fclient9\u002Fmisspell) | Correct common misspellings in comments\u002Fstrings | Always |\n| [gocyclo](https:\u002F\u002Fgithub.com\u002Ffzipp\u002Fgocyclo) | Cyclomatic complexity threshold | When functions exceed ~15 complexity |\n| [exhaustive](https:\u002F\u002Fgithub.com\u002Fnishanths\u002Fexhaustive) | Ensure switch covers all enum values | When using iota enums |\n| [bodyclose](https:\u002F\u002Fgithub.com\u002Ftimakin\u002Fbodyclose) | Detect unclosed HTTP response bodies | Always for HTTP client code |\n\n---\n\n## Nolint Directives\n\nWhen suppressing a lint finding, always explain why:\n\n```go\n\u002F\u002Fnolint:errcheck \u002F\u002F fire-and-forget logging; error is not actionable\n_ = logger.Sync()\n```\n\nRules:\n- Use `\u002F\u002Fnolint:lintername` — never bare `\u002F\u002Fnolint`\n- Place the comment on the same line as the finding\n- Include a justification after `\u002F\u002F`\n\n---\n\n## CI\u002FCD Integration\n\nRun `golangci-lint run .\u002F...` in CI after tests. Pin the golangci-lint version\nused by CI so local and release behavior do not drift.\n\n### Pre-commit Hook\n\n```bash\n#!\u002Fbin\u002Fsh\n# .git\u002Fhooks\u002Fpre-commit\ngolangci-lint run --new-from-rev=HEAD~1\n```\n\nUse `--new-from-rev` to lint only changed code, keeping the feedback loop fast.\n\n---\n\n## Quick Reference\n\n| Task | Command\u002FAction |\n|------|----------------|\n| Install golangci-lint | `go install github.com\u002Fgolangci\u002Fgolangci-lint\u002Fv2\u002Fcmd\u002Fgolangci-lint@v2.10.1` |\n| Run linters | `golangci-lint run` |\n| Run on path | `golangci-lint run .\u002Fpkg\u002F...` |\n| Config file | `.golangci.yml` in project root |\n| CI integration | Run `golangci-lint run` in pipeline |\n| Nolint directives | `\u002F\u002Fnolint:name \u002F\u002F reason` — never bare `\u002F\u002Fnolint` |\n| CI integration | Use `golangci\u002Fgolangci-lint-action` for GitHub Actions |\n| Pre-commit | `golangci-lint run --new-from-rev=HEAD~1` |\n\n### Linter Selection Guidelines\n\n| When you need... | Use |\n|------------------|-----|\n| Error handling coverage | errcheck |\n| Import formatting | goimports |\n| Style consistency | revive |\n| Bug detection | govet, staticcheck |\n| All of the above | golangci-lint with config |\n\n---\n\n## Related Skills\n\n- **Style foundations**: See [go-style-core](..\u002Fgo-style-core\u002FSKILL.md) when resolving style questions that linters enforce (formatting, nesting, naming)\n- **Code review**: See [go-code-review](..\u002Fgo-code-review\u002FSKILL.md) when combining linter output with a manual review checklist\n- **Error handling**: See [go-error-handling](..\u002Fgo-error-handling\u002FSKILL.md) when errcheck flags unhandled errors and you need to decide how to handle them\n- **Testing**: See [go-testing](..\u002Fgo-testing\u002FSKILL.md) when running linters alongside tests in CI pipelines\n",{"name":5,"description":7,"allowed-tools":24},"Bash(bash:*)","main","19f4d52a98d557f3a645a2cfbbeb5bd54f28831d",".github\u002Fskills\u002Fgolang-skills\u002Fskills\u002Fgo-linting","https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi","https:\u002F\u002Fgithub.com\u002Fkongnakornna","http:\u002F\u002Fcmoniot.trueddns.com:52160","Technical Skills and Expertise\r\nLanguages and Frameworks\r\nFrontend: HTML, JavaScript, TypeScript, React, Vue, Angular, Next.js\r\nBackend: Node.js,Python,Golang","2026-10-06 23:01:46",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add kongnakornna\u002Fgolangapi --skill go-linting",{"tool":39,"command":40},"bunx","bunx skills add kongnakornna\u002Fgolangapi --skill go-linting",{"tool":42,"command":43},"pnpm","pnpm dlx skills add kongnakornna\u002Fgolangapi --skill go-linting","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgolang-skills\u002Fskills\u002Fgo-linting\u002FSKILL.md",true,[47,53],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"assets\u002Fgolangci.yml","ASSET","资产文件",616,"https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgolang-skills\u002Fskills\u002Fgo-linting\u002Fassets\u002Fgolangci.yml",{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"scripts\u002Fsetup-lint.sh","SCRIPT","脚本",4912,"https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgolang-skills\u002Fskills\u002Fgo-linting\u002Fscripts\u002Fsetup-lint.sh",[60,67,74,81,88,95],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7A0M9RJJ3383VEFYKABWV15","tb-writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftb-writing-plans\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7A0M4JKY4DEDRP1CBHT00WV","tb-using-git-worktrees","Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback","https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftb-using-git-worktrees\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7A0KZ5HRAQAAT2KXR6146Q7","tb-test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftb-test-driven-development\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7A0KW92W3F18E2MRP8H62P2","tb-subagent-driven-development","Use when executing implementation plans with independent tasks in the current session","https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftb-subagent-driven-development\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7A0KKYQCHYYRHA5J5BAP24M","tb-scrutinize","Outsider-perspective end-to-end review of a plan, PR, or code change. First questions intent and whether a simpler\u002Fmore elegant approach would achieve the same goal, then traces the actual code path (not just the diff) to verify the change does what it claims. Output is concise, actionable, and every call carries its rationale. Trigger on \u002Ftb-scrutinize and proactively whenever the user asks to review, audit, sanity-check, or get a second opinion on a plan, PR, diff, design doc, or proposed code change.","https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftb-scrutinize\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7A0KFDR1V3RW7SW1XNHP82P","tb-requesting-code-review","Use when completing tasks, implementing major features, or before merging to verify work meets requirements","https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftb-requesting-code-review\u002FSKILL.md",[],[]]