본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

agentcli-go

gh-xj 제작

Coding Agents & IDEs
314clawskills.sh가 보고한 다운로드 수
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

agentcli-go framework reference for building Go CLI tools.

설명

이 스킬이 하는 일

agentcli-go is a shared Go library that provides scaffolding, command wiring, config loading, and lifecycle hooks for building CLI tools. It exposes a standard project layout, a cobra wrapper (cobrax), and a config precedence system (configx). The module is pre-1.0 and hosted at github.com/gh-xj/agentcli-go.

Bundles cobra setup, zerolog initialization, config precedence logic, and scaffolding into one reusable module so the same patterns don't need to be wired from scratch in each project.

사용 시점

  • Scaffolding a new Go CLI project with standard directory layout
  • Adding a typed subcommand to an existing CLI tool using a preset
  • Loading config from a file, environment variables, and flags with defined precedence
  • Running preflight and postflight hooks around a command's main logic
  • Diagnosing a CLI project's structure with the doctor check

예시 워크플로

입력

User asks: scaffold a new Go CLI tool named my-tool with a sync command

에이전트
  1. 1

    Run agentcli new --name my-tool --module github.com/me/my-tool to generate the project skeleton

  2. 2

    Review generated files: main.go, cmd/root.go, internal/app/, internal/config/, Taskfile.yml

  3. 3

    Run agentcli add command --name sync --preset file-sync to add the sync subcommand

  4. 4

    Wire configx.Load in internal/config/load.go with defaults, env prefix, and flag overrides

  5. 5

    Run task ci to confirm lint, tests, build, and smoke checks all pass

출력

A fully structured Go CLI project with the sync command wired and CI passing

설치

clawhub install gh-xj/agentcli-go

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크