# Send agentcli-go to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "agentcli-go",
    "name": "agentcli-go",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/gh-xj/agentcli-go",
    "canonicalUrl": "https://clawhub.ai/gh-xj/agentcli-go",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/agentcli-go",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agentcli-go",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/agentcli-go"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/agentcli-go",
    "downloadUrl": "https://openagent3.xyz/downloads/agentcli-go",
    "agentUrl": "https://openagent3.xyz/skills/agentcli-go/agent",
    "manifestUrl": "https://openagent3.xyz/skills/agentcli-go/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/agentcli-go/agent.md"
  }
}
```
## Documentation

### agentcli-go

Shared Go CLI helpers and framework modules.

Module: github.com/gh-xj/agentcli-go
Repo: github.com/gh-xj/agentcli-go | Versioning: v0.x.y (pre-1.0)

### API Surface

FileExported Symbolslog.goInitLogger() — zerolog setup, respects -v/--verboseargs.goParseArgs(args), RequireArg(args, name), GetArg(args, name), HasFlag(args, name)exec.goRunCommand(name, args...), RunOsascript(script), Which(bin), CheckDependency(bin)fs.goFileExists(path), EnsureDir(path), GetBaseName(path)core_context.goAppContext{Meta, Values}, NewAppContext(ctx)lifecycle.goHook interface (Preflight, Postflight), RunLifecycle(app, hook, run)errors.goCLIError, ResolveExitCode(err), ExitSuccess, ExitUsagescaffold.goScaffoldNew(baseDir, name, module), ScaffoldAddCommand(rootDir, name, desc, preset), Doctor(rootDir) DoctorReportcobrax/cobrax.goExecute(RootSpec, args) int, NewRoot(RootSpec) *cobra.Command, CommandSpec, RootSpecconfigx/configx.goLoad(Options) map[string]any, Decode[T](raw), NormalizeEnv(prefix, environ)

### New project

agentcli new --name my-tool --module github.com/me/my-tool
# or programmatically:
agentcli.ScaffoldNew(".", "my-tool", "github.com/me/my-tool")

Generates: main.go, cmd/root.go, internal/app/, internal/config/, internal/io/, internal/tools/smokecheck/, pkg/version/, test/, Taskfile.yml, README.md

### Add command

agentcli add command --name sync --preset file-sync
agentcli add command --name deploy --desc "run deploy checks"

Presets: file-sync, http-client, deploy-helper

### Doctor check

agentcli doctor [--dir ./my-tool]
# returns DoctorReport JSON with findings

### Golden Project Layout

my-tool/
├── main.go                          # os.Exit(cmd.Execute(os.Args[1:]))
├── cmd/
│   ├── root.go                      # cobrax.Execute(RootSpec{...})
│   └── <command>.go                 # func <Name>Command() command
├── internal/
│   ├── app/{bootstrap,lifecycle,errors}.go
│   ├── config/{schema,load}.go
│   ├── io/output.go
│   └── tools/smokecheck/main.go
├── pkg/version/version.go
├── test/
│   ├── e2e/cli_test.go
│   └── smoke/version.schema.json
└── Taskfile.yml

### cobrax Pattern

// cmd/root.go
return cobrax.Execute(cobrax.RootSpec{
    Use:   "my-tool",
    Short: "my-tool CLI",
    Meta:  agentcli.AppMeta{Name: "my-tool", Version: version.Version},
    Commands: []cobrax.CommandSpec{
        {Use: "sync", Short: "sync files", Run: SyncCommand().Run},
    },
}, args)

Persistent flags auto-wired: --verbose/-v, --config, --json, --no-color
Values accessible via app.Values["json"], app.Values["config"], etc.

### configx Pattern

raw, err := configx.Load(configx.Options{
    Defaults: map[string]any{"env": "default"},
    FilePath: configPath,   // optional JSON file
    Env:      configx.NormalizeEnv("MYTOOL_", os.Environ()),
    Flags:    map[string]string{"env": flagVal},
})
cfg, err := configx.Decode[config.Config](raw)
// Precedence: Defaults < File < Env < Flags

### Taskfile Tasks

TaskPurposetask ciCanonical CI: preflight + lint + test + build + smoke + schema checkstask verifyLocal aggregate (wraps ci)task lintgo vet + golangci-linttask smokeDeterministic smoke tests (subset of unit tests)task schema:checkValidate JSON contracts against schemastask docs:checkEnsure skill docs match CLI help signaturestask fmtFormat all Go files

### Rules

Flat package — everything in package agentcli, no sub-packages (except cobrax, configx)
Exported only — all functions PascalCase; this is a library
No business logic — generic utilities only; must be reused across 2+ projects to qualify
log.Fatal allowed in RequireArg, CheckDependency (CLI-oriented helpers)
Minimal deps — zerolog, lo, cobra only; justify new additions

### Out of Scope

Project-specific logic (put that in consuming projects)
Adding functions used by only one project
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: gh-xj
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-05-07T17:22:31.273Z
- Expires at: 2026-05-14T17:22:31.273Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/agentcli-go)
- [Send to Agent page](https://openagent3.xyz/skills/agentcli-go/agent)
- [JSON manifest](https://openagent3.xyz/skills/agentcli-go/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/agentcli-go/agent.md)
- [Download page](https://openagent3.xyz/downloads/agentcli-go)