macOSやLinuxのHomebrewについて、brewコマンドでの導入・更新から、FormulaやCask、Brewfile、サービス管理、開発者向け操作まで調べられるスキルです。
- Homebrewでソフトを導入・更新したいとき
- Brewfileで環境を管理したいとき
- FormulaやCaskを作成・更新したいとき
Goの`spf13/cobra`でCLIアプリを作る際に、コマンドやフラグ、引数検証、ヘルプ表示、シェル補完を設計する方法を調べられます。Viperとの設定連携も扱います。
Use when building CLI applications with spf13/cobra — creating commands, defining flags, argument validation, lifecycle hooks, help/usage customization, shell completions, or Viper integration. Triggers on: "cobra", "cobra command", "cobra flag", "cobra subcommand", "cobra completion", "cobra help", "cobra usage", "cobra hook", "cobra viper", "AddCommand", "PersistentFlags", "LocalFlags", "MarkFlagRequired", "RunE", "PreRun", "PostRun", "PersistentPreRun", "ValidArgs", "ValidArgsFunction", "RegisterFlagCompletionFunc", "ShellCompDirective", "ExactArgs", "NoArgs", "MinimumNArgs", "MatchAll", "MarkFlagsRequiredTogether", "MarkFlagsMutuallyExclusive", "cobra-cli", "cobra completion", "cobra active help", "cobra plugin".
実行スコア 未検証
インストール方法を見るspf13/cobraを使ったコマンドラインアプリの構築方法を調べられます。ルートコマンドやサブコマンドの追加、フラグの定義、必須・排他的なフラグの指定、引数の個数や値の検証などを扱います。実行前後のフック、ヘルプや使用方法の表示カスタマイズ、bash・zsh・fish・PowerShell向けの補完も参照できます。Viperと連携し、フラグや環境変数から設定を読み込む方法も含まれています。
GoでCLIを新しく作るときや、既存アプリにコマンドやフラグを追加するときに役立ちます。入力チェックやヘルプ表示を整えたい場合、シェル補完を用意したい場合、設定ファイルとコマンドラインの値を連携させたい場合にも向いています。
特記事項はありません。
この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Reference for building CLI applications with cobra. Covers the public API, common patterns, and best practices.
Load the reference that matches your task. When in doubt, load multiple references.
| Keywords | Reference |
|---|---|
| Command, AddCommand, subcommand, root command, project structure, command fields, Use, Short, Long, Example, Aliases, Deprecated, Hidden, GroupID, Run, RunE | references/commands.md |
| flag, PersistentFlags, LocalFlags, required flag, flag group, required together, mutually exclusive, one required, repeated flag, count flag, string slice, TraverseChildren, MarkFlagRequired, MarkPersistentFlagRequired | references/flags.md |
| argument, positional arg, Args, NoArgs, ArbitraryArgs, MinimumNArgs, MaximumNArgs, ExactArgs, RangeArgs, OnlyValidArgs, NoDuplicateArgs, MatchAll, ValidArgs, ArgAliases, custom validator | references/arguments.md |
| hook, lifecycle, PreRun, PostRun, PersistentPreRun, PersistentPostRun, PreRunE, PostRunE, EnableTraverseRunHooks, execution order, inherited hooks | references/hooks.md |
| help, usage, template, SetHelpFunc, SetHelpTemplate, SetUsageFunc, SetUsageTemplate, version, SetVersionTemplate, help command, command grouping, GroupID, SetHelpCommandGroupId, SetCompletionCommandGroupId, ErrPrefix | references/help-usage.md |
| completion, shell completion, ValidArgs, ValidArgsFunction, CompletionFunc, RegisterFlagCompletionFunc, ShellCompDirective, NoFileCompletions, FixedCompletions, active help, AppendActiveHelp, GetActiveHelpConfig, CompletionOptions, completion command, bash, zsh, fish, powershell | references/completions.md |
| viper, config, OnInitialize, BindPFlag, config file, 12-factor, initConfig, AutomaticEnv | references/viper-integration.md |
references/pflag.md.まだレビューはありません。使ってみた感想をお寄せください。
ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。
まだコメントはありません。最初のコメントを書いてみませんか。
macOSやLinuxのHomebrewについて、brewコマンドでの導入・更新から、FormulaやCask、Brewfile、サービス管理、開発者向け操作まで調べられるスキルです。
Go製TUIフレームワークBubble Teaの画面構成、入力・非同期処理、テスト、部品の組み合わせ方を調べ、端末アプリの実装や設計に活用できます。
BunのCLI、パッケージ管理、テスト、バンドル、実行時APIやシェルの使い方を調べ、JavaScript・TypeScriptの開発作業に活用できます。
GitButler CLIで仮想ブランチや積み重ねたブランチを管理し、変更の割り当て、コミット編集、競合解決、PR作成までのGit作業を進められます。
carapaceをCLIに組み込み、シェル補完のYAML仕様や独自アクションを作成し、シェル設定やMCP連携、補完値の説明まで扱うスキルです。
Rustプロジェクトのビルドやテストから、依存関係、ワークスペース、公開設定まで、`cargo`の使い方と設定を調べられるスキルです。