[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AD6DDF5QEW59ZDB4BSNKJ7":3,"skill-same:01M6AD6DDF5QEW59ZDB4BSNKJ7":79},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":50,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M6AD6DDF5QEW59ZDB4BSNKJ7","go-linters","Go 代码检查规则开发与验证","Add and validate custom Go analysis linters in gh-aw.","在 gh-aw 中添加并验证自定义 Go 分析 linter（代码静态检查工具）。","github\u002Fgh-aw","github","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9919?v=4","01M6AC83DS133TPXFSP1DHNCC6","GitHub","01M6AD3VCZ4WKQSFSRTPN7N9DN",5636,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgo-linters\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理","SCENARIO","使用场景",[31,32,33,34,35,36,37],"go","go linters","validate","analysis","gh","add","custom","2026-11-10 10:12:30",false,"---\nname: go-linters\ndescription: Add and validate custom Go analysis linters in gh-aw.\n---\n\n# Go Linters\n\nUse this guide when adding a new custom Go analysis linter in this repository.\n\nFor PR-driven linter generation (derive a rule from a specific pull request pattern), use `.github\u002Fskills\u002Fpr-to-go-linter\u002FSKILL.md`.\n\n## Where to add a new linter\n\n1. Create a new package under `pkg\u002Flinters\u002F\u003Clinter-name>\u002F`.\n2. Define an analyzer in that package (exported as `Analyzer`).\n3. Add tests in the same package using `analysistest` with fixtures under `testdata\u002Fsrc\u002F...`.\n4. Register the analyzer in `cmd\u002Flinters\u002Fmain.go` so it runs via the multichecker binary.\n\n## Build and test linters\n\n- Test only your linter package:\n  - `go test .\u002Fpkg\u002Flinters\u002F\u003Clinter-name>\u002F...`\n- Build the custom linter runner:\n  - `go build .\u002Fcmd\u002Flinters`\n- Run all custom linters across the repo:\n  - `make golint-custom`\n\n`make golint-custom` builds `cmd\u002Flinters` and runs it against `.\u002Fcmd\u002F...` and `.\u002Fpkg\u002F...`.\n\n## Common AST pitfalls\n\n### Unwrap parenthesized expressions\n\nExpressions wrapped in parentheses appear as `*ast.ParenExpr`. Unwrap expressions before\nasserting their AST type or comparing identifiers, so forms such as `(nil)` and `(err)` are\nhandled like `nil` and `err`. Use the shared helper:\n\n```go\nif ident, ok := astutil.UnwrapParenExpr(expr).(*ast.Ident); ok && ident.Name == \"nil\" {\n\t\u002F\u002F Handle nil.\n}\n```\n\n### Match all relevant statement shapes\n\nSemantically similar calls can appear in different statement nodes. A call that discards a\nresult may be a bare `*ast.ExprStmt` or part of an `*ast.AssignStmt`; filtering only for one\nshape misses the other. Include and handle each relevant node shape:\n\n```go\nnodeFilter := []ast.Node{(*ast.AssignStmt)(nil), (*ast.ExprStmt)(nil)}\nreturn analyzerutil.Preorder(pass, nodeFilter, func(n ast.Node) {\n\tswitch stmt := n.(type) {\n\tcase *ast.AssignStmt:\n\t\tanalyzeAssign(stmt)\n\tcase *ast.ExprStmt:\n\t\tanalyzeExpr(stmt)\n\t}\n})\n```\n\nBefore submitting a linter, check expression-shape assertions for parenthesis unwrapping and\nverify its node filter covers relevant equivalent syntax forms.\n\n## Coverage-aware perf gating\n\nFor linters that flag micro-optimizations (allocation\u002Fperf rules), only apply them on lines that\ntests actually exercise — \"hot paths\" — rather than on dead or rarely-executed code where the\noptimization brings no measurable benefit. Use the shared `pkg\u002Flinters\u002Finternal\u002Fcoverage` package:\n\n1. In your analyzer file, register a `-hot-threshold` flag in `init()` (not as a var initializer,\n   to avoid an `Analyzer`\u002F`run`\u002Fflag initialization cycle):\n\n   ```go\n   var hotThreshold *int\n\n   func init() {\n       hotThreshold = coverage.RegisterHotThresholdFlag(Analyzer)\n   }\n   ```\n\n2. Immediately before reporting a diagnostic, gate it with `coverage.ShouldApply`:\n\n   ```go\n   if !coverage.ShouldApply(pass, node.Pos(), *hotThreshold) {\n       return\n   }\n   ```\n\n`coverage.ShouldApply` is permissive by default: when no coverage profile is loaded via the\n`GH_AW_LINT_COVERAGE_PROFILE` environment variable, or when `hot-threshold` is `0`, it always\nreturns `true`, preserving pre-coverage-aware behavior. Only wire this into linters whose fix has\na genuine performance rationale (extra allocations, O(n²) behavior, etc.) — purely\nreadability\u002Fstyle linters should not be coverage-gated.\n\n### Generating the coverage profile\n\n```bash\ngo test -covermode=count -coverprofile=\u002Ftmp\u002Fcoverage.out .\u002F...\nexport GH_AW_LINT_COVERAGE_PROFILE=\u002Ftmp\u002Fcoverage.out\nmake golint-custom\n```\n\nThis profile is read once per linter-runner process. To lint only a specific subtree, scope\nthe `go test` and `golint-custom` commands to the same package path.\n","# Go Linters\n\nUse this guide when adding a new custom Go analysis linter in this repository.\n\nFor PR-driven linter generation (derive a rule from a specific pull request pattern), use `.github\u002Fskills\u002Fpr-to-go-linter\u002FSKILL.md`.\n\n## Where to add a new linter\n\n1. Create a new package under `pkg\u002Flinters\u002F\u003Clinter-name>\u002F`.\n2. Define an analyzer in that package (exported as `Analyzer`).\n3. Add tests in the same package using `analysistest` with fixtures under `testdata\u002Fsrc\u002F...`.\n4. Register the analyzer in `cmd\u002Flinters\u002Fmain.go` so it runs via the multichecker binary.\n\n## Build and test linters\n\n- Test only your linter package:\n  - `go test .\u002Fpkg\u002Flinters\u002F\u003Clinter-name>\u002F...`\n- Build the custom linter runner:\n  - `go build .\u002Fcmd\u002Flinters`\n- Run all custom linters across the repo:\n  - `make golint-custom`\n\n`make golint-custom` builds `cmd\u002Flinters` and runs it against `.\u002Fcmd\u002F...` and `.\u002Fpkg\u002F...`.\n\n## Common AST pitfalls\n\n### Unwrap parenthesized expressions\n\nExpressions wrapped in parentheses appear as `*ast.ParenExpr`. Unwrap expressions before\nasserting their AST type or comparing identifiers, so forms such as `(nil)` and `(err)` are\nhandled like `nil` and `err`. Use the shared helper:\n\n```go\nif ident, ok := astutil.UnwrapParenExpr(expr).(*ast.Ident); ok && ident.Name == \"nil\" {\n\t\u002F\u002F Handle nil.\n}\n```\n\n### Match all relevant statement shapes\n\nSemantically similar calls can appear in different statement nodes. A call that discards a\nresult may be a bare `*ast.ExprStmt` or part of an `*ast.AssignStmt`; filtering only for one\nshape misses the other. Include and handle each relevant node shape:\n\n```go\nnodeFilter := []ast.Node{(*ast.AssignStmt)(nil), (*ast.ExprStmt)(nil)}\nreturn analyzerutil.Preorder(pass, nodeFilter, func(n ast.Node) {\n\tswitch stmt := n.(type) {\n\tcase *ast.AssignStmt:\n\t\tanalyzeAssign(stmt)\n\tcase *ast.ExprStmt:\n\t\tanalyzeExpr(stmt)\n\t}\n})\n```\n\nBefore submitting a linter, check expression-shape assertions for parenthesis unwrapping and\nverify its node filter covers relevant equivalent syntax forms.\n\n## Coverage-aware perf gating\n\nFor linters that flag micro-optimizations (allocation\u002Fperf rules), only apply them on lines that\ntests actually exercise — \"hot paths\" — rather than on dead or rarely-executed code where the\noptimization brings no measurable benefit. Use the shared `pkg\u002Flinters\u002Finternal\u002Fcoverage` package:\n\n1. In your analyzer file, register a `-hot-threshold` flag in `init()` (not as a var initializer,\n   to avoid an `Analyzer`\u002F`run`\u002Fflag initialization cycle):\n\n   ```go\n   var hotThreshold *int\n\n   func init() {\n       hotThreshold = coverage.RegisterHotThresholdFlag(Analyzer)\n   }\n   ```\n\n2. Immediately before reporting a diagnostic, gate it with `coverage.ShouldApply`:\n\n   ```go\n   if !coverage.ShouldApply(pass, node.Pos(), *hotThreshold) {\n       return\n   }\n   ```\n\n`coverage.ShouldApply` is permissive by default: when no coverage profile is loaded via the\n`GH_AW_LINT_COVERAGE_PROFILE` environment variable, or when `hot-threshold` is `0`, it always\nreturns `true`, preserving pre-coverage-aware behavior. Only wire this into linters whose fix has\na genuine performance rationale (extra allocations, O(n²) behavior, etc.) — purely\nreadability\u002Fstyle linters should not be coverage-gated.\n\n### Generating the coverage profile\n\n```bash\ngo test -covermode=count -coverprofile=\u002Ftmp\u002Fcoverage.out .\u002F...\nexport GH_AW_LINT_COVERAGE_PROFILE=\u002Ftmp\u002Fcoverage.out\nmake golint-custom\n```\n\nThis profile is read once per linter-runner process. To lint only a specific subtree, scope\nthe `go test` and `golint-custom` commands to the same package path.\n",{"name":5,"description":7},"main","8541229759617347888641eba917d3b0ad66a984",".github\u002Fskills\u002Fgo-linters",626,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw","https:\u002F\u002Fgh.io\u002Fgh-aw","https:\u002F\u002Fgithub.com\u002Fgithub","https:\u002F\u002Fgithub.com\u002Fabout","How people build software.","2026-11-15 06:45:15",{"source":9,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add github\u002Fgh-aw --skill go-linters",{"tool":59,"command":60},"bunx","bunx skills add github\u002Fgh-aw --skill go-linters",{"tool":62,"command":63},"pnpm","pnpm dlx skills add github\u002Fgh-aw --skill go-linters","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgo-linters\u002FSKILL.md",true,[67,73],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fdecision-log-template.tsv","REFERENCE","参考文档",38,"https:\u002F\u002Fgithub.com\u002Fbnferguson\u002Fdotfiles\u002Fblob\u002Fmain\u002Fpstack\u002Fupstream\u002Fskills\u002Fshow-me-your-work\u002Freferences\u002Fdecision-log-template.tsv",{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"scripts\u002Flog.sh","SCRIPT","脚本",1377,"https:\u002F\u002Fgithub.com\u002Fbnferguson\u002Fdotfiles\u002Fblob\u002Fmain\u002Fpstack\u002Fupstream\u002Fskills\u002Fshow-me-your-work\u002Fscripts\u002Flog.sh",[80,88,96,122,144,177],{"skillNo":81,"name":82,"nameZh":17,"description":83,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":87},"01M7DQYVZ9W9DDXKQ9452SNP8J","cracktro","Edit, preview, and verify the standalone interactive talk deck in docs\u002Fpublic\u002Fcracktro (slides, SVG diagrams, transitions, WebAudio sound).","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fcracktro\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":89,"name":90,"nameZh":17,"description":91,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":95},"01M7612HQ4378TK8QZ5HPAF4KR","create-connector","Create or extend a declaration-only third-party connector, with narrow reads, separate safe outputs, optional protected triggers, and offline conformance evidence.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fcreate-connector\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":97,"name":98,"nameZh":99,"description":100,"descriptionZh":101,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":102,"categories":103,"keywords":108,"publishedAt":38},"01M6ADC942STTXHFV410J4DH0X","GitHub Agentic Workflows","GitHub 智能体工作流","GitHub Agentic Workflows (`gh-aw`) is a GitHub CLI extension for writing Agentic Workflows in markdown and compiling them to GitHub Actions.","GitHub Agentic Workflows（`gh-aw`）是一个 GitHub CLI 扩展，用于以 Markdown 编写 Agentic Workflows（智能体工作流）并将其编译为 GitHub Actions。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002FSKILL.md",[104,105],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":106,"categoryName":107,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发",[10,109,110,111,112,113,114,115,116,35,117,118,119,120,121],"github agentic workflows","agentic workflows","workflows","agentic","extension","markdown","github cli","cli","for","compiling","writing","github actions","actions",{"skillNo":123,"name":124,"nameZh":125,"description":126,"descriptionZh":127,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":128,"categories":129,"keywords":132,"publishedAt":38},"01M6ADC6ZXSA46N9XD6VNAP1MS","windows-compatibility","Windows 跨平台兼容处理","Cross-platform path handling and command patterns","跨平台路径处理和命令模式。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fwindows-compatibility\u002FSKILL.md",[130,131],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[133,134,135,136,137,138,139,140,141,142,143],"windows","windows compatibility","compatibility","command","git","bugs","platform","high","patterns","cross-platform","path",{"skillNo":145,"name":146,"nameZh":147,"description":148,"descriptionZh":149,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":150,"categories":151,"keywords":158,"publishedAt":38},"01M6ADC44957SVQF96R5YY247P","versioning-policy","Squad SDK 语义化版本规范","Semver versioning rules for Squad SDK and CLI — prevents prerelease version incidents","Squad SDK 和 CLI 的 Semver（语义化版本）版本规则——防止预发布版本事故。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fversioning-policy\u002FSKILL.md",[152,155],{"categoryNo":153,"categoryName":154,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQNXPY1AV6BSR5VKHDMWRH","部署与发布管理",{"categoryNo":156,"categoryName":157,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C78XMS93X21V52649FP9VH","发布经理",[159,160,161,162,163,116,164,165,166,167,168,169,170,171,117,172,173,174,175,176],"versioning","policy","versioning policy","gate","implementation","workspace","pr","sdk","release","ci","npm","semver","squad","incident","incidents","Rules","version","resolution",{"skillNo":178,"name":179,"nameZh":180,"description":181,"descriptionZh":182,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":183,"categories":184,"keywords":189,"publishedAt":38},"01M6ADC1PHMEAEVR87F8PDR89X","tiered-memory","智能体分层记忆管理","Three-tier agent memory model (hot\u002Fcold\u002Fwiki) for context reduction per spawn","三层智能体记忆模型（热\u002F冷\u002F维基），用于减少每次生成（spawn）时的上下文。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Ftiered-memory\u002FSKILL.md",[185,188],{"categoryNo":186,"categoryName":187,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",{"categoryNo":106,"categoryName":107,"taxonomyType":28,"taxonomyTypeDesc":29},[190,191,192,193,194,195,196,197,198,199,200,201,202,117,203,204],"tiered memory","memory","performance","design","agent memory","proposal","cold","model","wiki","spawn","memory-management","context","three","runtime","management"]