[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77MTYFDBAHY7GHZ3QMNTNHY":3,"skill-same:01M77MTYFDBAHY7GHZ3QMNTNHY":113},{"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},"01M77MTYFDBAHY7GHZ3QMNTNHY","golang-cli",null,"Golang CLI application development. Use when building, modifying, or reviewing a Go CLI tool — especially for command structure, flag handling, configuration layering, version embedding, exit codes, I\u002FO patterns, signal handling, shell completion, argument validation, and CLI unit testing. Also triggers when code uses cobra, viper, or urfave\u002Fcli. For cobra-specific APIs → See `samber\u002Fcc-skills-golang@golang-spf13-cobra` skill; for viper configuration layering → See `samber\u002Fcc-skills-golang@golang-spf13-viper` 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-cli\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: golang-cli\ndescription: \"Golang CLI application development. Use when building, modifying, or reviewing a Go CLI tool — especially for command structure, flag handling, configuration layering, version embedding, exit codes, I\u002FO patterns, signal handling, shell completion, argument validation, and CLI unit testing. Also triggers when code uses cobra, viper, or urfave\u002Fcli. For cobra-specific APIs → See `samber\u002Fcc-skills-golang@golang-spf13-cobra` skill; for viper configuration layering → See `samber\u002Fcc-skills-golang@golang-spf13-viper` 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 AskUserQuestion\n---\n\n**Persona:** You are a Go CLI engineer. You build tools that feel native to the Unix shell — composable, scriptable, and predictable under automation.\n\n**Modes:**\n\n- **Build** — creating a new CLI from scratch: follow the project structure, root command setup, flag binding, and version embedding sections sequentially.\n- **Extend** — adding subcommands, flags, or completions to an existing CLI: read the current command tree first, then apply changes consistent with the existing structure.\n- **Review** — auditing an existing CLI for correctness: check the Common Mistakes table, verify `SilenceUsage`\u002F`SilenceErrors`, flag-to-Viper binding, exit codes, and stdout\u002Fstderr discipline.\n\n# Go CLI Best Practices\n\nUse Cobra + Viper as the default stack for Go CLI applications. Cobra provides the command\u002Fsubcommand\u002Fflag structure and Viper handles configuration from files, environment variables, and flags with automatic layering. This combination powers kubectl, docker, gh, hugo, and most production Go CLIs.\n\nWhen using Cobra or Viper, refer to the library's official documentation and code examples for current API signatures.\n\nFor trivial single-purpose tools with no subcommands and few flags, stdlib `flag` is sufficient.\n\n## Quick Reference\n\n| Concern             | Package \u002F Tool                       |\n| ------------------- | ------------------------------------ |\n| Commands & flags    | `github.com\u002Fspf13\u002Fcobra`             |\n| Configuration       | `github.com\u002Fspf13\u002Fviper`             |\n| Flag parsing        | `github.com\u002Fspf13\u002Fpflag` (via Cobra) |\n| Colored output      | `github.com\u002Ffatih\u002Fcolor`             |\n| Table output        | `github.com\u002Folekukonko\u002Ftablewriter`  |\n| Interactive prompts | `github.com\u002Fcharmbracelet\u002Fbubbletea` |\n| Version injection   | `go build -ldflags`                  |\n| Distribution        | `goreleaser`                         |\n\n## Project Structure\n\nOrganize CLI commands in `cmd\u002Fmyapp\u002F` with one file per command. Keep `main.go` minimal — it only calls `Execute()`.\n\n```\nmyapp\u002F\n├── cmd\u002F\n│   └── myapp\u002F\n│       ├── main.go              # package main, only calls Execute()\n│       ├── root.go              # Root command + Viper init\n│       ├── serve.go             # \"serve\" subcommand\n│       ├── migrate.go           # \"migrate\" subcommand\n│       └── version.go           # \"version\" subcommand\n├── go.mod\n└── go.sum\n```\n\n`main.go` should be minimal — see [assets\u002Fexamples\u002Fmain.go](assets\u002Fexamples\u002Fmain.go).\n\n## Root Command Setup\n\nThe root command initializes Viper configuration and sets up global behavior via `PersistentPreRunE`. See [assets\u002Fexamples\u002Froot.go](assets\u002Fexamples\u002Froot.go).\n\nKey points:\n\n- `SilenceUsage: true` MUST be set — prevents printing the full usage text on every error\n- `SilenceErrors: true` MUST be set — lets you control error output format yourself\n- `PersistentPreRunE` runs before every subcommand, so config is always initialized\n- Logs go to stderr, output goes to stdout\n\n## Subcommands\n\nAdd subcommands by creating separate files in `cmd\u002Fmyapp\u002F` and registering them in `init()`. See [assets\u002Fexamples\u002Fserve.go](assets\u002Fexamples\u002Fserve.go) for a complete subcommand example including command groups.\n\n## Flags\n\nSee [assets\u002Fexamples\u002Fflags.go](assets\u002Fexamples\u002Fflags.go) for all flag patterns:\n\n### Persistent vs Local\n\n- **Persistent** flags are inherited by all subcommands (e.g., `--config`)\n- **Local** flags only apply to the command they're defined on (e.g., `--port`)\n\n### Required Flags\n\nUse `MarkFlagRequired`, `MarkFlagsMutuallyExclusive`, and `MarkFlagsOneRequired` for flag constraints.\n\n### Flag Validation with RegisterFlagCompletionFunc\n\nProvide completion suggestions for flag values.\n\n### Always Bind Flags to Viper\n\nThis ensures `viper.GetInt(\"port\")` returns the flag value, env var `MYAPP_PORT`, or config file value — whichever has highest precedence.\n\n## Argument Validation\n\nCobra provides built-in validators for positional arguments. See [assets\u002Fexamples\u002Fargs.go](assets\u002Fexamples\u002Fargs.go) for both built-in and custom validation examples.\n\n| Validator                   | Description                          |\n| --------------------------- | ------------------------------------ |\n| `cobra.NoArgs`              | Fails if any args provided           |\n| `cobra.ExactArgs(n)`        | Requires exactly n args              |\n| `cobra.MinimumNArgs(n)`     | Requires at least n args             |\n| `cobra.MaximumNArgs(n)`     | Allows at most n args                |\n| `cobra.RangeArgs(min, max)` | Requires between min and max         |\n| `cobra.ExactValidArgs(n)`   | Exactly n args, must be in ValidArgs |\n\n## Configuration with Viper\n\nViper resolves configuration values in this order (highest to lowest precedence):\n\n1. **CLI flags** (explicit user input)\n2. **Environment variables** (deployment config)\n3. **Config file** (persistent settings)\n4. **Defaults** (set in code)\n\nSee [assets\u002Fexamples\u002Fconfig.go](assets\u002Fexamples\u002Fconfig.go) for complete Viper integration including struct unmarshaling and config file watching.\n\n### Example Config File (.myapp.yaml)\n\n```yaml\nport: 8080\nhost: localhost\nlog-level: info\ndatabase:\n  dsn: postgres:\u002F\u002Flocalhost:5432\u002Fmyapp\n  max-conn: 25\n```\n\nWith the setup above, these are all equivalent:\n\n- Flag: `--port 9090`\n- Env var: `MYAPP_PORT=9090`\n- Config file: `port: 9090`\n\n## Version and Build Info\n\nVersion SHOULD be embedded at compile time using `ldflags`. See [assets\u002Fexamples\u002Fversion.go](assets\u002Fexamples\u002Fversion.go) for the version command and build instructions.\n\n## Exit Codes\n\nExit codes MUST follow Unix conventions:\n\n| Code  | Meaning           | When to Use                               |\n| ----- | ----------------- | ----------------------------------------- |\n| 0     | Success           | Operation completed normally              |\n| 1     | General error     | Runtime failure                           |\n| 2     | Usage error       | Invalid flags or arguments                |\n| 64-78 | BSD sysexits      | Specific error categories                 |\n| 126   | Cannot execute    | Permission denied                         |\n| 127   | Command not found | Missing dependency                        |\n| 128+N | Signal N          | Terminated by signal (e.g., 130 = SIGINT) |\n\nSee [assets\u002Fexamples\u002Fexit_codes.go](assets\u002Fexamples\u002Fexit_codes.go) for a pattern mapping errors to exit codes.\n\n## I\u002FO Patterns\n\nSee [assets\u002Fexamples\u002Foutput.go](assets\u002Fexamples\u002Foutput.go) for all I\u002FO patterns:\n\n- **stdout vs stderr**: NEVER write diagnostic output to stdout — stdout is for program output (pipeable), stderr for logs\u002Ferrors\u002Fdiagnostics\n- **Detecting pipe vs terminal**: check `os.ModeCharDevice` on stdout\n- **Machine-readable output**: support `--output` flag for table\u002Fjson\u002Fplain formats\n- **Colors**: use `fatih\u002Fcolor` which auto-disables when output is not a terminal\n\n## Signal Handling\n\nSignal handling MUST use `signal.NotifyContext` to propagate cancellation through context. See [assets\u002Fexamples\u002Fsignal.go](assets\u002Fexamples\u002Fsignal.go) for graceful HTTP server shutdown.\n\n## Shell Completions\n\nCobra generates completions for bash, zsh, fish, and PowerShell automatically. See [assets\u002Fexamples\u002Fcompletion.go](assets\u002Fexamples\u002Fcompletion.go) for both the completion command and custom flag\u002Fargument completions.\n\n## Testing CLI Commands\n\nTest commands by executing them programmatically and capturing output. See [assets\u002Fexamples\u002Fcli_test.go](assets\u002Fexamples\u002Fcli_test.go).\n\nUse `cmd.OutOrStdout()` and `cmd.ErrOrStderr()` in commands (instead of `os.Stdout` \u002F `os.Stderr`) so output can be captured in tests.\n\n## Common Mistakes\n\n| Mistake                           | Fix                                                                                                          |\n| --------------------------------- | ------------------------------------------------------------------------------------------------------------ |\n| Writing to `os.Stdout` directly   | Tests can't capture output. Use `cmd.OutOrStdout()` which tests can redirect to a buffer                     |\n| Calling `os.Exit()` inside `RunE` | Cobra's error handling, deferred functions, and cleanup code never run. Return an error, let `main()` decide |\n| Not binding flags to Viper        | Flags won't be configurable via env\u002Fconfig. Call `viper.BindPFlag` for every configurable flag               |\n| Missing `viper.SetEnvPrefix`      | `PORT` collides with other tools. Use a prefix (`MYAPP_PORT`) to namespace env vars                          |\n| Logging to stdout                 | Unix pipes chain stdout — logs corrupt the data stream for the next program. Logs go to stderr               |\n| Printing usage on every error     | Full help text on every error is noise. Set `SilenceUsage: true`, save full usage for `--help`               |\n| Config file required              | Users without a config file get a crash. Ignore `viper.ConfigFileNotFoundError` — config should be optional  |\n| Not using `PersistentPreRunE`     | Config initialization must happen before any subcommand. Use root's `PersistentPreRunE`                      |\n| Hardcoded version string          | Version gets out of sync with tags. Inject via `ldflags` at build time from git tags                         |\n| Not supporting `--output` format  | Scripts can't parse human-readable output. Add JSON\u002Ftable\u002Fplain for machine consumption                      |\n\n## Related Skills\n\nSee `samber\u002Fcc-skills-golang@golang-project-layout`, `samber\u002Fcc-skills-golang@golang-dependency-injection`, `samber\u002Fcc-skills-golang@golang-testing`, `samber\u002Fcc-skills-golang@golang-design-patterns` skills.\n","**Persona:** You are a Go CLI engineer. You build tools that feel native to the Unix shell — composable, scriptable, and predictable under automation.\n\n**Modes:**\n\n- **Build** — creating a new CLI from scratch: follow the project structure, root command setup, flag binding, and version embedding sections sequentially.\n- **Extend** — adding subcommands, flags, or completions to an existing CLI: read the current command tree first, then apply changes consistent with the existing structure.\n- **Review** — auditing an existing CLI for correctness: check the Common Mistakes table, verify `SilenceUsage`\u002F`SilenceErrors`, flag-to-Viper binding, exit codes, and stdout\u002Fstderr discipline.\n\n# Go CLI Best Practices\n\nUse Cobra + Viper as the default stack for Go CLI applications. Cobra provides the command\u002Fsubcommand\u002Fflag structure and Viper handles configuration from files, environment variables, and flags with automatic layering. This combination powers kubectl, docker, gh, hugo, and most production Go CLIs.\n\nWhen using Cobra or Viper, refer to the library's official documentation and code examples for current API signatures.\n\nFor trivial single-purpose tools with no subcommands and few flags, stdlib `flag` is sufficient.\n\n## Quick Reference\n\n| Concern             | Package \u002F Tool                       |\n| ------------------- | ------------------------------------ |\n| Commands & flags    | `github.com\u002Fspf13\u002Fcobra`             |\n| Configuration       | `github.com\u002Fspf13\u002Fviper`             |\n| Flag parsing        | `github.com\u002Fspf13\u002Fpflag` (via Cobra) |\n| Colored output      | `github.com\u002Ffatih\u002Fcolor`             |\n| Table output        | `github.com\u002Folekukonko\u002Ftablewriter`  |\n| Interactive prompts | `github.com\u002Fcharmbracelet\u002Fbubbletea` |\n| Version injection   | `go build -ldflags`                  |\n| Distribution        | `goreleaser`                         |\n\n## Project Structure\n\nOrganize CLI commands in `cmd\u002Fmyapp\u002F` with one file per command. Keep `main.go` minimal — it only calls `Execute()`.\n\n```\nmyapp\u002F\n├── cmd\u002F\n│   └── myapp\u002F\n│       ├── main.go              # package main, only calls Execute()\n│       ├── root.go              # Root command + Viper init\n│       ├── serve.go             # \"serve\" subcommand\n│       ├── migrate.go           # \"migrate\" subcommand\n│       └── version.go           # \"version\" subcommand\n├── go.mod\n└── go.sum\n```\n\n`main.go` should be minimal — see [assets\u002Fexamples\u002Fmain.go](assets\u002Fexamples\u002Fmain.go).\n\n## Root Command Setup\n\nThe root command initializes Viper configuration and sets up global behavior via `PersistentPreRunE`. See [assets\u002Fexamples\u002Froot.go](assets\u002Fexamples\u002Froot.go).\n\nKey points:\n\n- `SilenceUsage: true` MUST be set — prevents printing the full usage text on every error\n- `SilenceErrors: true` MUST be set — lets you control error output format yourself\n- `PersistentPreRunE` runs before every subcommand, so config is always initialized\n- Logs go to stderr, output goes to stdout\n\n## Subcommands\n\nAdd subcommands by creating separate files in `cmd\u002Fmyapp\u002F` and registering them in `init()`. See [assets\u002Fexamples\u002Fserve.go](assets\u002Fexamples\u002Fserve.go) for a complete subcommand example including command groups.\n\n## Flags\n\nSee [assets\u002Fexamples\u002Fflags.go](assets\u002Fexamples\u002Fflags.go) for all flag patterns:\n\n### Persistent vs Local\n\n- **Persistent** flags are inherited by all subcommands (e.g., `--config`)\n- **Local** flags only apply to the command they're defined on (e.g., `--port`)\n\n### Required Flags\n\nUse `MarkFlagRequired`, `MarkFlagsMutuallyExclusive`, and `MarkFlagsOneRequired` for flag constraints.\n\n### Flag Validation with RegisterFlagCompletionFunc\n\nProvide completion suggestions for flag values.\n\n### Always Bind Flags to Viper\n\nThis ensures `viper.GetInt(\"port\")` returns the flag value, env var `MYAPP_PORT`, or config file value — whichever has highest precedence.\n\n## Argument Validation\n\nCobra provides built-in validators for positional arguments. See [assets\u002Fexamples\u002Fargs.go](assets\u002Fexamples\u002Fargs.go) for both built-in and custom validation examples.\n\n| Validator                   | Description                          |\n| --------------------------- | ------------------------------------ |\n| `cobra.NoArgs`              | Fails if any args provided           |\n| `cobra.ExactArgs(n)`        | Requires exactly n args              |\n| `cobra.MinimumNArgs(n)`     | Requires at least n args             |\n| `cobra.MaximumNArgs(n)`     | Allows at most n args                |\n| `cobra.RangeArgs(min, max)` | Requires between min and max         |\n| `cobra.ExactValidArgs(n)`   | Exactly n args, must be in ValidArgs |\n\n## Configuration with Viper\n\nViper resolves configuration values in this order (highest to lowest precedence):\n\n1. **CLI flags** (explicit user input)\n2. **Environment variables** (deployment config)\n3. **Config file** (persistent settings)\n4. **Defaults** (set in code)\n\nSee [assets\u002Fexamples\u002Fconfig.go](assets\u002Fexamples\u002Fconfig.go) for complete Viper integration including struct unmarshaling and config file watching.\n\n### Example Config File (.myapp.yaml)\n\n```yaml\nport: 8080\nhost: localhost\nlog-level: info\ndatabase:\n  dsn: postgres:\u002F\u002Flocalhost:5432\u002Fmyapp\n  max-conn: 25\n```\n\nWith the setup above, these are all equivalent:\n\n- Flag: `--port 9090`\n- Env var: `MYAPP_PORT=9090`\n- Config file: `port: 9090`\n\n## Version and Build Info\n\nVersion SHOULD be embedded at compile time using `ldflags`. See [assets\u002Fexamples\u002Fversion.go](assets\u002Fexamples\u002Fversion.go) for the version command and build instructions.\n\n## Exit Codes\n\nExit codes MUST follow Unix conventions:\n\n| Code  | Meaning           | When to Use                               |\n| ----- | ----------------- | ----------------------------------------- |\n| 0     | Success           | Operation completed normally              |\n| 1     | General error     | Runtime failure                           |\n| 2     | Usage error       | Invalid flags or arguments                |\n| 64-78 | BSD sysexits      | Specific error categories                 |\n| 126   | Cannot execute    | Permission denied                         |\n| 127   | Command not found | Missing dependency                        |\n| 128+N | Signal N          | Terminated by signal (e.g., 130 = SIGINT) |\n\nSee [assets\u002Fexamples\u002Fexit_codes.go](assets\u002Fexamples\u002Fexit_codes.go) for a pattern mapping errors to exit codes.\n\n## I\u002FO Patterns\n\nSee [assets\u002Fexamples\u002Foutput.go](assets\u002Fexamples\u002Foutput.go) for all I\u002FO patterns:\n\n- **stdout vs stderr**: NEVER write diagnostic output to stdout — stdout is for program output (pipeable), stderr for logs\u002Ferrors\u002Fdiagnostics\n- **Detecting pipe vs terminal**: check `os.ModeCharDevice` on stdout\n- **Machine-readable output**: support `--output` flag for table\u002Fjson\u002Fplain formats\n- **Colors**: use `fatih\u002Fcolor` which auto-disables when output is not a terminal\n\n## Signal Handling\n\nSignal handling MUST use `signal.NotifyContext` to propagate cancellation through context. See [assets\u002Fexamples\u002Fsignal.go](assets\u002Fexamples\u002Fsignal.go) for graceful HTTP server shutdown.\n\n## Shell Completions\n\nCobra generates completions for bash, zsh, fish, and PowerShell automatically. See [assets\u002Fexamples\u002Fcompletion.go](assets\u002Fexamples\u002Fcompletion.go) for both the completion command and custom flag\u002Fargument completions.\n\n## Testing CLI Commands\n\nTest commands by executing them programmatically and capturing output. See [assets\u002Fexamples\u002Fcli_test.go](assets\u002Fexamples\u002Fcli_test.go).\n\nUse `cmd.OutOrStdout()` and `cmd.ErrOrStderr()` in commands (instead of `os.Stdout` \u002F `os.Stderr`) so output can be captured in tests.\n\n## Common Mistakes\n\n| Mistake                           | Fix                                                                                                          |\n| --------------------------------- | ------------------------------------------------------------------------------------------------------------ |\n| Writing to `os.Stdout` directly   | Tests can't capture output. Use `cmd.OutOrStdout()` which tests can redirect to a buffer                     |\n| Calling `os.Exit()` inside `RunE` | Cobra's error handling, deferred functions, and cleanup code never run. Return an error, let `main()` decide |\n| Not binding flags to Viper        | Flags won't be configurable via env\u002Fconfig. Call `viper.BindPFlag` for every configurable flag               |\n| Missing `viper.SetEnvPrefix`      | `PORT` collides with other tools. Use a prefix (`MYAPP_PORT`) to namespace env vars                          |\n| Logging to stdout                 | Unix pipes chain stdout — logs corrupt the data stream for the next program. Logs go to stderr               |\n| Printing usage on every error     | Full help text on every error is noise. Set `SilenceUsage: true`, save full usage for `--help`               |\n| Config file required              | Users without a config file get a crash. Ignore `viper.ConfigFileNotFoundError` — config should be optional  |\n| Not using `PersistentPreRunE`     | Config initialization must happen before any subcommand. Use root's `PersistentPreRunE`                      |\n| Hardcoded version string          | Version gets out of sync with tags. Inject via `ldflags` at build time from git tags                         |\n| Not supporting `--output` format  | Scripts can't parse human-readable output. Add JSON\u002Ftable\u002Fplain for machine consumption                      |\n\n## Related Skills\n\nSee `samber\u002Fcc-skills-golang@golang-project-layout`, `samber\u002Fcc-skills-golang@golang-dependency-injection`, `samber\u002Fcc-skills-golang@golang-testing`, `samber\u002Fcc-skills-golang@golang-design-patterns` skills.\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 AskUserQuestion","Designed for Claude Code or similar AI coding agents, and for projects using Golang.",true,"main","31f700aa9c9e5d7b2fd01b0e5317d543b5321edd",".agents\u002Fskills\u002Fgolang-cli","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-cli",{"tool":50,"command":51},"bunx","bunx skills add sushichan044\u002Fmergeable-please --skill golang-cli",{"tool":53,"command":54},"pnpm","pnpm dlx skills add sushichan044\u002Fmergeable-please --skill golang-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-cli\u002FSKILL.md",[57,63,67,71,75,79,83,87,91,95,99,103,107],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"assets\u002Fexamples\u002Fargs.go","SCRIPT","脚本",1020,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-cli\u002Fassets\u002Fexamples\u002Fargs.go",{"path":64,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":65,"sourceHtmlUrl":66},"assets\u002Fexamples\u002Fcli_test.go",1258,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-cli\u002Fassets\u002Fexamples\u002Fcli_test.go",{"path":68,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":69,"sourceHtmlUrl":70},"assets\u002Fexamples\u002Fcompletion.go",1657,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-cli\u002Fassets\u002Fexamples\u002Fcompletion.go",{"path":72,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":73,"sourceHtmlUrl":74},"assets\u002Fexamples\u002Fconfig.go",1764,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-cli\u002Fassets\u002Fexamples\u002Fconfig.go",{"path":76,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":77,"sourceHtmlUrl":78},"assets\u002Fexamples\u002Fexit_codes.go",494,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-cli\u002Fassets\u002Fexamples\u002Fexit_codes.go",{"path":80,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":81,"sourceHtmlUrl":82},"assets\u002Fexamples\u002Fflags.go",1322,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-cli\u002Fassets\u002Fexamples\u002Fflags.go",{"path":84,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":85,"sourceHtmlUrl":86},"assets\u002Fexamples\u002Fmain.go",120,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-cli\u002Fassets\u002Fexamples\u002Fmain.go",{"path":88,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":89,"sourceHtmlUrl":90},"assets\u002Fexamples\u002Foutput.go",1791,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-cli\u002Fassets\u002Fexamples\u002Foutput.go",{"path":92,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":93,"sourceHtmlUrl":94},"assets\u002Fexamples\u002Froot.go",1803,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-cli\u002Fassets\u002Fexamples\u002Froot.go",{"path":96,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":97,"sourceHtmlUrl":98},"assets\u002Fexamples\u002Fserve.go",735,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-cli\u002Fassets\u002Fexamples\u002Fserve.go",{"path":100,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":101,"sourceHtmlUrl":102},"assets\u002Fexamples\u002Fsignal.go",831,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-cli\u002Fassets\u002Fexamples\u002Fsignal.go",{"path":104,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":105,"sourceHtmlUrl":106},"assets\u002Fexamples\u002Fversion.go",871,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-cli\u002Fassets\u002Fexamples\u002Fversion.go",{"path":108,"resourceType":109,"resourceTypeDesc":110,"sizeBytes":111,"sourceHtmlUrl":112},"evals\u002Fevals.json","REFERENCE","参考文档",16416,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-cli\u002Fevals\u002Fevals.json",[114,121,128,135,142,149],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"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":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"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":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"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":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"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":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"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":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"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",[],[]]