[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77MW55SF4277TMS1Q7DM7W8":3,"skill-same:01M77MW55SF4277TMS1Q7DM7W8":75},{"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":37,"commitSha":38,"skillDirectory":39,"forksCount":14,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":42,"updatedAt":43,"install":44,"resources":56},"01M77MW55SF4277TMS1Q7DM7W8","golang-error-handling",null,"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.","sushichan044\u002Fmergeable-please","sushichan044","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F71284054?v=4","01M6CD61CFDCQYW4XTQ1CF5200","Kentaro Suzuki","01M77MTW96E9P0ZVAHK9FXG8TJ",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-error-handling\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: golang-error-handling\ndescription: \"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.\"\nuser-invocable: true\nlicense: MIT\ncompatibility: Designed for Claude Code or similar AI coding agents, and for projects using Golang.\nmetadata:\n  author: samber\n  version: \"1.2.0\"\n  openclaw:\n    emoji: \"⚠\"\n    homepage: https:\u002F\u002Fgithub.com\u002Fsamber\u002Fcc-skills-golang\n    requires:\n      bins:\n        - go\n    install: []\nallowed-tools: Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent\n---\n\n**Persona:** You are a Go reliability engineer. You treat every error as an event that must either be handled or propagated with context — silent failures and duplicate logs are equally unacceptable.\n\n**Modes:**\n\n- **Coding mode** — writing new error handling code. Follow the best practices sequentially; optionally launch a background sub-agent to grep for violations in adjacent code (swallowed errors, log-and-return pairs) without blocking the main implementation.\n- **Review mode** — reviewing a PR's error handling changes. Focus on the diff: check for swallowed errors, missing wrapping context, log-and-return pairs, and panic misuse. Sequential.\n- **Audit mode** — auditing existing error handling across a codebase. Use up to 5 parallel sub-agents, each targeting an independent category (creation, wrapping, single-handling rule, panic\u002Frecover, structured logging).\n\n> **Community default.** A company skill that explicitly supersedes `samber\u002Fcc-skills-golang@golang-error-handling` skill takes precedence.\n\n# Go Error Handling Best Practices\n\nThis skill guides the creation of robust, idiomatic error handling in Go applications. Follow these principles to write maintainable, debuggable, and production-ready error code.\n\n## Best Practices Summary\n\n1. **Returned errors MUST always be checked** — NEVER discard with `_`\n2. **Errors MUST be wrapped with context** using `fmt.Errorf(\"{context}: %w\", err)`\n3. **Error strings MUST be lowercase**, without trailing punctuation\n4. **Use `%w` internally, `%v` at system boundaries** to control error chain exposure\n5. **MUST use `errors.Is` for sentinel matching and `errors.As`\u002F`errors.AsType` for typed chain inspection** instead of direct comparison or bare type assertions. For Go 1.26+, prefer `errors.AsType[T](err)` when `T` implements `error`; use `errors.As(err, &target)` for Go \u003C1.26 or for non-error interface targets.\n6. **SHOULD use `errors.Join`** (Go 1.20+) to combine independent errors\n7. **Errors MUST be either logged OR returned**, NEVER both (single handling rule)\n8. **Use sentinel errors** for expected conditions, custom types for carrying data\n9. **NEVER use `panic` for expected error conditions** — reserve for truly unrecoverable states\n10. **SHOULD use `slog`** (Go 1.21+) for structured error logging — not `fmt.Println` or `log.Printf`\n11. **Use `samber\u002Foops`** for production errors needing stack traces, user\u002Ftenant context, or structured attributes\n12. **Log HTTP requests** with structured middleware capturing method, path, status, and duration\n13. **Use log levels** to indicate error severity\n14. **Never expose technical errors to users** — translate internal errors to user-friendly messages, log technical details separately\n15. **Keep log grouping low-cardinality** — at logging\u002FAPM boundaries, keep message templates stable and attach IDs, paths, line numbers, and counts as structured attributes. Error values may include useful operational context, but avoid putting high-cardinality data into the stable log message used for grouping.\n\n## Detailed Reference\n\n- **[Error Creation](.\u002Freferences\u002Ferror-creation.md)** — How to create errors that tell the story: error messages should be lowercase, no punctuation, and describe what happened without prescribing action. Covers sentinel errors (one-time preallocation for performance), custom error types (for carrying rich context), and the decision table for which to use when.\n\n- **[Error Wrapping and Inspection](.\u002Freferences\u002Ferror-wrapping.md)** — Why `fmt.Errorf(\"{context}: %w\", err)` beats `fmt.Errorf(\"{context}: %v\", err)` (chains vs concatenation). How to inspect chains with `errors.Is`, `errors.As`, and Go 1.26+ `errors.AsType` for type-safe error handling, and `errors.Join` for combining independent errors.\n\n- **[Error Handling Patterns and Logging](.\u002Freferences\u002Ferror-handling.md)** — The single handling rule: errors are either logged OR returned, NEVER both (prevents duplicate logs cluttering aggregators). Panic\u002Frecover design, `samber\u002Foops` for production errors, and `slog` structured logging integration for APM tools.\n\n## Parallelizing Error Handling Audits\n\nWhen auditing error handling across a large codebase, use up to 5 parallel sub-agents (via the Agent tool) — each targets an independent error category:\n\n- Sub-agent 1: Error creation — validate `errors.New`\u002F`fmt.Errorf` usage, low-cardinality messages, custom types\n- Sub-agent 2: Error wrapping — audit `%w` vs `%v`, verify `errors.Is`\u002F`errors.As` patterns\n- Sub-agent 3: Single handling rule — find log-and-return violations, swallowed errors, discarded errors (`_`)\n- Sub-agent 4: Panic\u002Frecover — audit `panic` usage, verify recovery at goroutine boundaries\n- Sub-agent 5: Structured logging — verify `slog` usage at error sites, check for PII in error messages\n\n## Cross-References\n\n- → See `samber\u002Fcc-skills-golang@golang-samber-oops` for full samber\u002Foops API, builder patterns, and logger integration\n- → See `samber\u002Fcc-skills-golang@golang-observability` for structured logging setup, log levels, and request logging middleware\n- → See `samber\u002Fcc-skills-golang@golang-safety` for nil interface trap and nil error comparison pitfalls\n- → See `samber\u002Fcc-skills-golang@golang-naming` for error naming conventions (ErrNotFound, PathError)\n- → See `samber\u002Fcc-skills-golang@golang-continuous-integration` skill for automated AI-driven code review in CI using these guidelines\n\n## References\n\n- [lmittmann\u002Ftint](https:\u002F\u002Fgithub.com\u002Flmittmann\u002Ftint)\n- [samber\u002Foops](https:\u002F\u002Fgithub.com\u002Fsamber\u002Foops)\n- [samber\u002Fslog-multi](https:\u002F\u002Fgithub.com\u002Fsamber\u002Fslog-multi)\n- [samber\u002Fslog-sampling](https:\u002F\u002Fgithub.com\u002Fsamber\u002Fslog-sampling)\n- [samber\u002Fslog-formatter](https:\u002F\u002Fgithub.com\u002Fsamber\u002Fslog-formatter)\n- [samber\u002Fslog-http](https:\u002F\u002Fgithub.com\u002Fsamber\u002Fslog-http)\n- [samber\u002Fslog-sentry](https:\u002F\u002Fgithub.com\u002Fsamber\u002Fslog-sentry)\n- [log\u002Fslog package](https:\u002F\u002Fpkg.go.dev\u002Flog\u002Fslog)\n","**Persona:** You are a Go reliability engineer. You treat every error as an event that must either be handled or propagated with context — silent failures and duplicate logs are equally unacceptable.\n\n**Modes:**\n\n- **Coding mode** — writing new error handling code. Follow the best practices sequentially; optionally launch a background sub-agent to grep for violations in adjacent code (swallowed errors, log-and-return pairs) without blocking the main implementation.\n- **Review mode** — reviewing a PR's error handling changes. Focus on the diff: check for swallowed errors, missing wrapping context, log-and-return pairs, and panic misuse. Sequential.\n- **Audit mode** — auditing existing error handling across a codebase. Use up to 5 parallel sub-agents, each targeting an independent category (creation, wrapping, single-handling rule, panic\u002Frecover, structured logging).\n\n> **Community default.** A company skill that explicitly supersedes `samber\u002Fcc-skills-golang@golang-error-handling` skill takes precedence.\n\n# Go Error Handling Best Practices\n\nThis skill guides the creation of robust, idiomatic error handling in Go applications. Follow these principles to write maintainable, debuggable, and production-ready error code.\n\n## Best Practices Summary\n\n1. **Returned errors MUST always be checked** — NEVER discard with `_`\n2. **Errors MUST be wrapped with context** using `fmt.Errorf(\"{context}: %w\", err)`\n3. **Error strings MUST be lowercase**, without trailing punctuation\n4. **Use `%w` internally, `%v` at system boundaries** to control error chain exposure\n5. **MUST use `errors.Is` for sentinel matching and `errors.As`\u002F`errors.AsType` for typed chain inspection** instead of direct comparison or bare type assertions. For Go 1.26+, prefer `errors.AsType[T](err)` when `T` implements `error`; use `errors.As(err, &target)` for Go \u003C1.26 or for non-error interface targets.\n6. **SHOULD use `errors.Join`** (Go 1.20+) to combine independent errors\n7. **Errors MUST be either logged OR returned**, NEVER both (single handling rule)\n8. **Use sentinel errors** for expected conditions, custom types for carrying data\n9. **NEVER use `panic` for expected error conditions** — reserve for truly unrecoverable states\n10. **SHOULD use `slog`** (Go 1.21+) for structured error logging — not `fmt.Println` or `log.Printf`\n11. **Use `samber\u002Foops`** for production errors needing stack traces, user\u002Ftenant context, or structured attributes\n12. **Log HTTP requests** with structured middleware capturing method, path, status, and duration\n13. **Use log levels** to indicate error severity\n14. **Never expose technical errors to users** — translate internal errors to user-friendly messages, log technical details separately\n15. **Keep log grouping low-cardinality** — at logging\u002FAPM boundaries, keep message templates stable and attach IDs, paths, line numbers, and counts as structured attributes. Error values may include useful operational context, but avoid putting high-cardinality data into the stable log message used for grouping.\n\n## Detailed Reference\n\n- **[Error Creation](.\u002Freferences\u002Ferror-creation.md)** — How to create errors that tell the story: error messages should be lowercase, no punctuation, and describe what happened without prescribing action. Covers sentinel errors (one-time preallocation for performance), custom error types (for carrying rich context), and the decision table for which to use when.\n\n- **[Error Wrapping and Inspection](.\u002Freferences\u002Ferror-wrapping.md)** — Why `fmt.Errorf(\"{context}: %w\", err)` beats `fmt.Errorf(\"{context}: %v\", err)` (chains vs concatenation). How to inspect chains with `errors.Is`, `errors.As`, and Go 1.26+ `errors.AsType` for type-safe error handling, and `errors.Join` for combining independent errors.\n\n- **[Error Handling Patterns and Logging](.\u002Freferences\u002Ferror-handling.md)** — The single handling rule: errors are either logged OR returned, NEVER both (prevents duplicate logs cluttering aggregators). Panic\u002Frecover design, `samber\u002Foops` for production errors, and `slog` structured logging integration for APM tools.\n\n## Parallelizing Error Handling Audits\n\nWhen auditing error handling across a large codebase, use up to 5 parallel sub-agents (via the Agent tool) — each targets an independent error category:\n\n- Sub-agent 1: Error creation — validate `errors.New`\u002F`fmt.Errorf` usage, low-cardinality messages, custom types\n- Sub-agent 2: Error wrapping — audit `%w` vs `%v`, verify `errors.Is`\u002F`errors.As` patterns\n- Sub-agent 3: Single handling rule — find log-and-return violations, swallowed errors, discarded errors (`_`)\n- Sub-agent 4: Panic\u002Frecover — audit `panic` usage, verify recovery at goroutine boundaries\n- Sub-agent 5: Structured logging — verify `slog` usage at error sites, check for PII in error messages\n\n## Cross-References\n\n- → See `samber\u002Fcc-skills-golang@golang-samber-oops` for full samber\u002Foops API, builder patterns, and logger integration\n- → See `samber\u002Fcc-skills-golang@golang-observability` for structured logging setup, log levels, and request logging middleware\n- → See `samber\u002Fcc-skills-golang@golang-safety` for nil interface trap and nil error comparison pitfalls\n- → See `samber\u002Fcc-skills-golang@golang-naming` for error naming conventions (ErrNotFound, PathError)\n- → See `samber\u002Fcc-skills-golang@golang-continuous-integration` skill for automated AI-driven code review in CI using these guidelines\n\n## References\n\n- [lmittmann\u002Ftint](https:\u002F\u002Fgithub.com\u002Flmittmann\u002Ftint)\n- [samber\u002Foops](https:\u002F\u002Fgithub.com\u002Fsamber\u002Foops)\n- [samber\u002Fslog-multi](https:\u002F\u002Fgithub.com\u002Fsamber\u002Fslog-multi)\n- [samber\u002Fslog-sampling](https:\u002F\u002Fgithub.com\u002Fsamber\u002Fslog-sampling)\n- [samber\u002Fslog-formatter](https:\u002F\u002Fgithub.com\u002Fsamber\u002Fslog-formatter)\n- [samber\u002Fslog-http](https:\u002F\u002Fgithub.com\u002Fsamber\u002Fslog-http)\n- [samber\u002Fslog-sentry](https:\u002F\u002Fgithub.com\u002Fsamber\u002Fslog-sentry)\n- [log\u002Fslog package](https:\u002F\u002Fpkg.go.dev\u002Flog\u002Fslog)\n",{"name":5,"license":15,"metadata":24,"description":7,"allowed-tools":34,"compatibility":35,"user-invocable":36},{"author":25,"version":26,"openclaw":27},"samber","1.2.0",{"emoji":28,"install":29,"homepage":30,"requires":31},"⚠",[],"https:\u002F\u002Fgithub.com\u002Fsamber\u002Fcc-skills-golang",{"bins":32},[33],"go","Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent","Designed for Claude Code or similar AI coding agents, and for projects using Golang.",true,"main","31f700aa9c9e5d7b2fd01b0e5317d543b5321edd",".agents\u002Fskills\u002Fgolang-error-handling","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please","https:\u002F\u002Fgithub.com\u002Fsushichan044","A software engineer with a passion for novels and music.","2026-07-27 19:13:11",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":36},[46,49,52],{"tool":47,"command":48},"npx","npx skills add sushichan044\u002Fmergeable-please --skill golang-error-handling",{"tool":50,"command":51},"bunx","bunx skills add sushichan044\u002Fmergeable-please --skill golang-error-handling",{"tool":53,"command":54},"pnpm","pnpm dlx skills add sushichan044\u002Fmergeable-please --skill golang-error-handling","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-error-handling\u002FSKILL.md",[57,63,67,71],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"evals\u002Fevals.json","REFERENCE","参考文档",15268,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-error-handling\u002Fevals\u002Fevals.json",{"path":64,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Ferror-creation.md",5607,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-error-handling\u002Freferences\u002Ferror-creation.md",{"path":68,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Ferror-handling.md",4275,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-error-handling\u002Freferences\u002Ferror-handling.md",{"path":72,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Ferror-wrapping.md",3026,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-error-handling\u002Freferences\u002Ferror-wrapping.md",[76,83,90,97,104,111],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M77MZJHND7VXTPF66H9VCNPM","mergeable-please","Drive a GitHub pull request toward mergeable. Run when asked to \"make a PR mergeable\", \"loop until the PR is ready\", \"fix the PR until CI\u002Fconflicts\u002Freviews pass\", or similar. Repeatedly runs `mergeable-please check`, resolves each reported blocker (conflicts, behind-base, failing\u002Fpending required CI, reviewer-loop goals), and loops until the tool reports satisfied.","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002Fskills\u002Fmergeable-please\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M77MY6QVZ5GZE04ZBSSJARQ3","golang-troubleshooting","Troubleshoot Golang programs systematically - find and fix the root cause. Use when encountering bugs, crashes, deadlocks, or unexpected behavior in Go code. Covers debugging methodology, common Go pitfalls, test-driven debugging, pprof setup and capture, Delve debugger, 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) or applying optimization patterns (→ See `samber\u002Fcc-skills-golang@golang-performance` skill).","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-troubleshooting\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M77MXZ5D1S2951R8HJFCTWJG","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\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-testing\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M77MXPRC35GB96PS0BHN15BN","golang-structs-interfaces","Golang struct and interface design patterns — composition, embedding, type assertions, type switches, interface segregation, dependency injection via interfaces, struct field tags, and pointer vs value receivers. Use this skill when designing Go types, defining or implementing interfaces, embedding structs or interfaces, writing type assertions or type switches, adding struct field tags for JSON\u002FYAML\u002FDB serialization, or choosing between pointer and value receivers. Also use when the user asks about \"accept interfaces, return structs\", compile-time interface checks, or composing small interfaces into larger ones.","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-structs-interfaces\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M77MXGQQ0VAA0N0V4HFPM8FV","golang-stretchr-testify","Comprehensive guide to stretchr\u002Ftestify for Golang testing. Covers assert, require, mock, and suite packages in depth. Use when writing tests with testify, creating mocks, setting up test suites, or choosing between assert and require. Covers testify assertions, mock expectations, argument matchers, call verification, suite lifecycle, and advanced patterns like Eventually, JSONEq, and custom matchers. Apply when the codebase imports github.com\u002Fstretchr\u002Ftestify.","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-stretchr-testify\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":19},"01M77MXA0301S3ZMGNQFA1XYPQ","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\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-spf13-cobra\u002FSKILL.md",[],[]]