[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FS6MBB9F3Z6V0YPEBB0TD2":3,"skill-same:01M6FS6MBB9F3Z6V0YPEBB0TD2":92},{"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":22,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":65,"commitSha":66,"skillDirectory":67,"forksCount":68,"repositoryHtmlUrl":69,"repositoryHomepageUrl":6,"ownerHtmlUrl":70,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":71,"install":72,"resources":85},"01M6FS6MBB9F3Z6V0YPEBB0TD2","go-linter-configuration",null,"Configure and troubleshoot golangci-lint for Go projects. Handle import resolution issues, type-checking problems, and optimize configurations for both local and CI environments.","kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Firook661\u002Fgo-linter-configuration\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000007","代码审查","SCENARIO","使用场景",[23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"configuration","go linter configuration","go","linter","https","ci","configure","projects","curl","issues","lint","optimize","local","resolution","type","env","import","script","dl","linux","2026-11-10 10:12:30",false,"---\nname: go-linter-configuration\ndescription: \"Configure and troubleshoot golangci-lint for Go projects. Handle import resolution issues, type-checking problems, and optimize configurations for both local and CI environments.\"\nmetadata:\n  {\n    \"openclaw\":\n      {\n        \"emoji\": \"?\",\n        \"requires\": { \"bins\": [\"go\", \"golangci-lint\"] },\n        \"install\":\n          [\n            {\n              \"id\": \"golang\",\n              \"kind\": \"script\",\n              \"script\": \"curl -L https:\u002F\u002Fgolang.org\u002Fdl\u002Fgo1.21.5.linux-amd64.tar.gz | tar -C \u002Fusr\u002Flocal -xzf -\",\n              \"bins\": [\"go\"],\n              \"label\": \"Install Go\",\n            },\n            {\n              \"id\": \"golangci\",\n              \"kind\": \"script\",\n              \"script\": \"curl -sSfL https:\u002F\u002Fraw.githubusercontent.com\u002Fgolangci\u002Fgolangci-lint\u002Fmaster\u002Finstall.sh | sh -s -- -b $(go env GOPATH)\u002Fbin v1.59.1\",\n              \"bins\": [\"golangci-lint\"],\n              \"label\": \"Install golangci-lint\",\n            },\n          ],\n      },\n  }\n---\n\n# Go Linter Configuration Skill\n\nConfigure and troubleshoot golangci-lint for Go projects. This skill helps handle import resolution issues, type-checking problems, and optimize configurations for both local and CI environments.\n\n## Installation\n\nInstall golangci-lint:\n\n```bash\ngo install github.com\u002Fgolangci\u002Fgolangci-lint\u002Fcmd\u002Fgolangci-lint@latest\n```\n\nOr use the official installation script:\n\n```bash\ncurl -sSfL https:\u002F\u002Fraw.githubusercontent.com\u002Fgolangci\u002Fgolangci-lint\u002Fmaster\u002Finstall.sh | sh -s -- -b $(go env GOPATH)\u002Fbin v1.59.1\n```\n\n## Basic Usage\n\nRun linter on entire project:\n\n```bash\ngolangci-lint run .\u002F...\n```\n\nRun with specific configuration:\n\n```bash\ngolangci-lint run --config .golangci.yml .\u002F...\n```\n\n## Configuration File (.golangci.yml)\n\n### Minimal Configuration (for CI environments with import issues)\n```yaml\nrun:\n  timeout: 5m\n  tests: false\n  build-tags: []\n\nlinters:\n  disable-all: true\n  enable:\n    - gofmt          # Format checking only\n\nlinters-settings:\n  gofmt:\n    simplify: true\n\nissues:\n  exclude-use-default: false\n  max-issues-per-linter: 50\n  max-same-issues: 3\n\noutput:\n  format: tab\n```\n\n### Standard Configuration (for local development)\n```yaml\nrun:\n  timeout: 5m\n  tests: true\n  build-tags: []\n\nlinters:\n  enable:\n    - gofmt\n    - govet\n    - errcheck\n    - staticcheck\n    - unused\n    - gosimple\n    - ineffassign\n\nlinters-settings:\n  govet:\n    enable:\n      - shadow\n  errcheck:\n    check-type-assertions: true\n  staticcheck:\n    checks: [\"all\"]\n\nissues:\n  exclude-use-default: false\n  max-issues-per-linter: 50\n  max-same-issues: 3\n\noutput:\n  format: tab\n```\n\n## Troubleshooting Common Issues\n\n### \"undefined: package\" Errors\nProblem: Linter reports undefined references to imported packages\nSolution: Use minimal configuration with `disable-all: true` and only enable basic linters like `gofmt`\n\n### Import Resolution Problems\nProblem: CI environment cannot resolve dependencies properly\nSolution: \n1. Ensure go.mod and go.sum are up to date\n2. Use `go mod download` before running linter in CI\n3. Consider using simpler linters in CI environment\n\n### Type-Checking Failures\nProblem: Linter fails during type checking phase\nSolution:\n1. Temporarily disable complex linters that require type checking\n2. Use `--fast` flag for quicker, less intensive checks\n3. Verify all imports are properly declared\n\n## CI\u002FCD Optimization\n\nFor GitHub Actions workflow:\n\n```yaml\nname: Code Quality\n\non:\n  push:\n    branches: [ main, master ]\n  pull_request:\n    branches: [ main, master ]\n\njobs:\n  lint:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions\u002Fcheckout@v4\n\n    - name: Set up Go\n      uses: actions\u002Fsetup-go@v4\n      with:\n        go-version: '1.21'\n        cache: true\n\n    - name: Download dependencies\n      run: go mod download\n\n    - name: Install golangci-lint\n      run: |\n        curl -sSfL https:\u002F\u002Fraw.githubusercontent.com\u002Fgolangci\u002Fgolangci-lint\u002Fmaster\u002Finstall.sh | sh -s -- -b $(go env GOPATH)\u002Fbin v1.59.1\n\n    - name: Lint\n      run: golangci-lint run --config .golangci.yml .\u002F...\n```\n\n## Linter Selection Guidelines\n\n- **gofmt**: For formatting consistency\n- **govet**: For semantic errors\n- **errcheck**: For unchecked errors\n- **staticcheck**: For static analysis\n- **unused**: For dead code detection\n- **gosimple**: For simplification suggestions\n- **ineffassign**: For ineffective assignments\n\nChoose linters based on project needs and CI performance requirements.","# Go Linter Configuration Skill\n\nConfigure and troubleshoot golangci-lint for Go projects. This skill helps handle import resolution issues, type-checking problems, and optimize configurations for both local and CI environments.\n\n## Installation\n\nInstall golangci-lint:\n\n```bash\ngo install github.com\u002Fgolangci\u002Fgolangci-lint\u002Fcmd\u002Fgolangci-lint@latest\n```\n\nOr use the official installation script:\n\n```bash\ncurl -sSfL https:\u002F\u002Fraw.githubusercontent.com\u002Fgolangci\u002Fgolangci-lint\u002Fmaster\u002Finstall.sh | sh -s -- -b $(go env GOPATH)\u002Fbin v1.59.1\n```\n\n## Basic Usage\n\nRun linter on entire project:\n\n```bash\ngolangci-lint run .\u002F...\n```\n\nRun with specific configuration:\n\n```bash\ngolangci-lint run --config .golangci.yml .\u002F...\n```\n\n## Configuration File (.golangci.yml)\n\n### Minimal Configuration (for CI environments with import issues)\n```yaml\nrun:\n  timeout: 5m\n  tests: false\n  build-tags: []\n\nlinters:\n  disable-all: true\n  enable:\n    - gofmt          # Format checking only\n\nlinters-settings:\n  gofmt:\n    simplify: true\n\nissues:\n  exclude-use-default: false\n  max-issues-per-linter: 50\n  max-same-issues: 3\n\noutput:\n  format: tab\n```\n\n### Standard Configuration (for local development)\n```yaml\nrun:\n  timeout: 5m\n  tests: true\n  build-tags: []\n\nlinters:\n  enable:\n    - gofmt\n    - govet\n    - errcheck\n    - staticcheck\n    - unused\n    - gosimple\n    - ineffassign\n\nlinters-settings:\n  govet:\n    enable:\n      - shadow\n  errcheck:\n    check-type-assertions: true\n  staticcheck:\n    checks: [\"all\"]\n\nissues:\n  exclude-use-default: false\n  max-issues-per-linter: 50\n  max-same-issues: 3\n\noutput:\n  format: tab\n```\n\n## Troubleshooting Common Issues\n\n### \"undefined: package\" Errors\nProblem: Linter reports undefined references to imported packages\nSolution: Use minimal configuration with `disable-all: true` and only enable basic linters like `gofmt`\n\n### Import Resolution Problems\nProblem: CI environment cannot resolve dependencies properly\nSolution: \n1. Ensure go.mod and go.sum are up to date\n2. Use `go mod download` before running linter in CI\n3. Consider using simpler linters in CI environment\n\n### Type-Checking Failures\nProblem: Linter fails during type checking phase\nSolution:\n1. Temporarily disable complex linters that require type checking\n2. Use `--fast` flag for quicker, less intensive checks\n3. Verify all imports are properly declared\n\n## CI\u002FCD Optimization\n\nFor GitHub Actions workflow:\n\n```yaml\nname: Code Quality\n\non:\n  push:\n    branches: [ main, master ]\n  pull_request:\n    branches: [ main, master ]\n\njobs:\n  lint:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions\u002Fcheckout@v4\n\n    - name: Set up Go\n      uses: actions\u002Fsetup-go@v4\n      with:\n        go-version: '1.21'\n        cache: true\n\n    - name: Download dependencies\n      run: go mod download\n\n    - name: Install golangci-lint\n      run: |\n        curl -sSfL https:\u002F\u002Fraw.githubusercontent.com\u002Fgolangci\u002Fgolangci-lint\u002Fmaster\u002Finstall.sh | sh -s -- -b $(go env GOPATH)\u002Fbin v1.59.1\n\n    - name: Lint\n      run: golangci-lint run --config .golangci.yml .\u002F...\n```\n\n## Linter Selection Guidelines\n\n- **gofmt**: For formatting consistency\n- **govet**: For semantic errors\n- **errcheck**: For unchecked errors\n- **staticcheck**: For static analysis\n- **unused**: For dead code detection\n- **gosimple**: For simplification suggestions\n- **ineffassign**: For ineffective assignments\n\nChoose linters based on project needs and CI performance requirements.",{"name":5,"metadata":48,"description":7},{"openclaw":49},{"emoji":50,"install":51,"requires":63},"?",[52,57],{"id":53,"bins":54,"kind":40,"label":55,"script":56},"golang",[25],"Install Go","curl -L https:\u002F\u002Fgolang.org\u002Fdl\u002Fgo1.21.5.linux-amd64.tar.gz | tar -C \u002Fusr\u002Flocal -xzf -",{"id":58,"bins":59,"kind":40,"label":61,"script":62},"golangci",[60],"golangci-lint","Install golangci-lint","curl -sSfL https:\u002F\u002Fraw.githubusercontent.com\u002Fgolangci\u002Fgolangci-lint\u002Fmaster\u002Finstall.sh | sh -s -- -b $(go env GOPATH)\u002Fbin v1.59.1",{"bins":64},[25,60],"main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Firook661\u002Fgo-linter-configuration",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":8,"skillName":5,"commands":73,"prompt":83,"zipAvailable":84},[74,77,80],{"tool":75,"command":76},"npx","npx skills add kbarbel640-del\u002Fskills --skill go-linter-configuration",{"tool":78,"command":79},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill go-linter-configuration",{"tool":81,"command":82},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill go-linter-configuration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Firook661\u002Fgo-linter-configuration\u002FSKILL.md",true,[86],{"path":87,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":90,"sourceHtmlUrl":91},"_meta.json","REFERENCE","参考文档",300,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Firook661\u002Fgo-linter-configuration\u002F_meta.json",[93,123,150,171,177,196],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":104,"publishedAt":43},"01M6G8J55967D6281ACMKAKTEQ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[99],{"categoryNo":100,"categoryName":101,"taxonomyType":102,"taxonomyTypeDesc":103},"01JBSEEDCAT000000000000036","内容创作者","PROFESSION","适用职业",[105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,27,121,122],"crowd prompting","prompting","api","with","tokens","domain","world","prompts","operations","instructions","text","tool","system","improve","productivity","marketplace","content","ai agents",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":132,"publishedAt":43},"01M6G8J0PKPAYVET6BWE8W4C26","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[129],{"categoryNo":130,"categoryName":131,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发",[133,107,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,112,149],"dilemm ai","arena","analyze","browser","openclaw agent","create","automation","browser automation","bot","openclaw","design","strategy","headless","compete","submit","matchmaking","use",{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":159,"publishedAt":43},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[156],{"categoryNo":157,"categoryName":158,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000021","资料检索与研究",[160,161,162,163,164,165,166,108,167,147,149,168,107,169,170],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http","via",{"skillNo":172,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":176,"publishedAt":43},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[175],{"categoryNo":157,"categoryName":158,"taxonomyType":20,"taxonomyTypeDesc":21},[163,162,161,160,170,165,166,108,164,147,149,167,168,107,169],{"skillNo":178,"name":179,"nameZh":6,"description":180,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":181,"categories":182,"keywords":183,"publishedAt":43},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[184,185,186,187,188,189,190,42,191,192,193,194,195],"git","summary","git summary","commits","repository","win32","status","contributors","true","quick","get","branches",{"skillNo":197,"name":198,"nameZh":6,"description":199,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":200,"categories":201,"keywords":206,"publishedAt":43},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[202,203],{"categoryNo":130,"categoryName":131,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":204,"categoryName":205,"taxonomyType":102,"taxonomyTypeDesc":103},"01JBSEEDCAT000000000000037","律师与法务",[207,208,209,210,108,211,212,65,213,168,214,215,30,216,217,27,218,219,220],"agent constitution","constitution","contracts","tree","query","base","log","check","Rules","compliance","actions","state","governance","github"]