{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/agentcli-go",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agentcli-go",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "agentcli-go",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-11T15:01:54.808Z",
      "expiresAt": "2026-05-18T15:01:54.808Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agentcli-go",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agentcli-go",
        "contentDisposition": "attachment; filename=\"agentcli-go-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "agentcli-go"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/agentcli-go",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "agentcli-go",
        "body": "Shared Go CLI helpers and framework modules.\n\nModule: github.com/gh-xj/agentcli-go\nRepo: github.com/gh-xj/agentcli-go | Versioning: v0.x.y (pre-1.0)"
      },
      {
        "title": "API Surface",
        "body": "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)"
      },
      {
        "title": "New project",
        "body": "agentcli new --name my-tool --module github.com/me/my-tool\n# or programmatically:\nagentcli.ScaffoldNew(\".\", \"my-tool\", \"github.com/me/my-tool\")\n\nGenerates: main.go, cmd/root.go, internal/app/, internal/config/, internal/io/, internal/tools/smokecheck/, pkg/version/, test/, Taskfile.yml, README.md"
      },
      {
        "title": "Add command",
        "body": "agentcli add command --name sync --preset file-sync\nagentcli add command --name deploy --desc \"run deploy checks\"\n\nPresets: file-sync, http-client, deploy-helper"
      },
      {
        "title": "Doctor check",
        "body": "agentcli doctor [--dir ./my-tool]\n# returns DoctorReport JSON with findings"
      },
      {
        "title": "Golden Project Layout",
        "body": "my-tool/\n├── main.go                          # os.Exit(cmd.Execute(os.Args[1:]))\n├── cmd/\n│   ├── root.go                      # cobrax.Execute(RootSpec{...})\n│   └── <command>.go                 # func <Name>Command() command\n├── internal/\n│   ├── app/{bootstrap,lifecycle,errors}.go\n│   ├── config/{schema,load}.go\n│   ├── io/output.go\n│   └── tools/smokecheck/main.go\n├── pkg/version/version.go\n├── test/\n│   ├── e2e/cli_test.go\n│   └── smoke/version.schema.json\n└── Taskfile.yml"
      },
      {
        "title": "cobrax Pattern",
        "body": "// cmd/root.go\nreturn cobrax.Execute(cobrax.RootSpec{\n    Use:   \"my-tool\",\n    Short: \"my-tool CLI\",\n    Meta:  agentcli.AppMeta{Name: \"my-tool\", Version: version.Version},\n    Commands: []cobrax.CommandSpec{\n        {Use: \"sync\", Short: \"sync files\", Run: SyncCommand().Run},\n    },\n}, args)\n\nPersistent flags auto-wired: --verbose/-v, --config, --json, --no-color\nValues accessible via app.Values[\"json\"], app.Values[\"config\"], etc."
      },
      {
        "title": "configx Pattern",
        "body": "raw, err := configx.Load(configx.Options{\n    Defaults: map[string]any{\"env\": \"default\"},\n    FilePath: configPath,   // optional JSON file\n    Env:      configx.NormalizeEnv(\"MYTOOL_\", os.Environ()),\n    Flags:    map[string]string{\"env\": flagVal},\n})\ncfg, err := configx.Decode[config.Config](raw)\n// Precedence: Defaults < File < Env < Flags"
      },
      {
        "title": "Taskfile Tasks",
        "body": "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"
      },
      {
        "title": "Rules",
        "body": "Flat package — everything in package agentcli, no sub-packages (except cobrax, configx)\nExported only — all functions PascalCase; this is a library\nNo business logic — generic utilities only; must be reused across 2+ projects to qualify\nlog.Fatal allowed in RequireArg, CheckDependency (CLI-oriented helpers)\nMinimal deps — zerolog, lo, cobra only; justify new additions"
      },
      {
        "title": "Out of Scope",
        "body": "Project-specific logic (put that in consuming projects)\nAdding functions used by only one project"
      }
    ],
    "body": "agentcli-go\n\nShared Go CLI helpers and framework modules.\n\nModule: github.com/gh-xj/agentcli-go Repo: github.com/gh-xj/agentcli-go | Versioning: v0.x.y (pre-1.0)\n\nAPI Surface\nFile\tExported Symbols\nlog.go\tInitLogger() — zerolog setup, respects -v/--verbose\nargs.go\tParseArgs(args), RequireArg(args, name), GetArg(args, name), HasFlag(args, name)\nexec.go\tRunCommand(name, args...), RunOsascript(script), Which(bin), CheckDependency(bin)\nfs.go\tFileExists(path), EnsureDir(path), GetBaseName(path)\ncore_context.go\tAppContext{Meta, Values}, NewAppContext(ctx)\nlifecycle.go\tHook interface (Preflight, Postflight), RunLifecycle(app, hook, run)\nerrors.go\tCLIError, ResolveExitCode(err), ExitSuccess, ExitUsage\nscaffold.go\tScaffoldNew(baseDir, name, module), ScaffoldAddCommand(rootDir, name, desc, preset), Doctor(rootDir) DoctorReport\ncobrax/cobrax.go\tExecute(RootSpec, args) int, NewRoot(RootSpec) *cobra.Command, CommandSpec, RootSpec\nconfigx/configx.go\tLoad(Options) map[string]any, Decode[T](raw), NormalizeEnv(prefix, environ)\nScaffold Workflows\nNew project\nagentcli new --name my-tool --module github.com/me/my-tool\n# or programmatically:\nagentcli.ScaffoldNew(\".\", \"my-tool\", \"github.com/me/my-tool\")\n\n\nGenerates: main.go, cmd/root.go, internal/app/, internal/config/, internal/io/, internal/tools/smokecheck/, pkg/version/, test/, Taskfile.yml, README.md\n\nAdd command\nagentcli add command --name sync --preset file-sync\nagentcli add command --name deploy --desc \"run deploy checks\"\n\n\nPresets: file-sync, http-client, deploy-helper\n\nDoctor check\nagentcli doctor [--dir ./my-tool]\n# returns DoctorReport JSON with findings\n\nGolden Project Layout\nmy-tool/\n├── main.go                          # os.Exit(cmd.Execute(os.Args[1:]))\n├── cmd/\n│   ├── root.go                      # cobrax.Execute(RootSpec{...})\n│   └── <command>.go                 # func <Name>Command() command\n├── internal/\n│   ├── app/{bootstrap,lifecycle,errors}.go\n│   ├── config/{schema,load}.go\n│   ├── io/output.go\n│   └── tools/smokecheck/main.go\n├── pkg/version/version.go\n├── test/\n│   ├── e2e/cli_test.go\n│   └── smoke/version.schema.json\n└── Taskfile.yml\n\ncobrax Pattern\n// cmd/root.go\nreturn cobrax.Execute(cobrax.RootSpec{\n    Use:   \"my-tool\",\n    Short: \"my-tool CLI\",\n    Meta:  agentcli.AppMeta{Name: \"my-tool\", Version: version.Version},\n    Commands: []cobrax.CommandSpec{\n        {Use: \"sync\", Short: \"sync files\", Run: SyncCommand().Run},\n    },\n}, args)\n\n\nPersistent flags auto-wired: --verbose/-v, --config, --json, --no-color Values accessible via app.Values[\"json\"], app.Values[\"config\"], etc.\n\nconfigx Pattern\nraw, err := configx.Load(configx.Options{\n    Defaults: map[string]any{\"env\": \"default\"},\n    FilePath: configPath,   // optional JSON file\n    Env:      configx.NormalizeEnv(\"MYTOOL_\", os.Environ()),\n    Flags:    map[string]string{\"env\": flagVal},\n})\ncfg, err := configx.Decode[config.Config](raw)\n// Precedence: Defaults < File < Env < Flags\n\nTaskfile Tasks\nTask\tPurpose\ntask ci\tCanonical CI: preflight + lint + test + build + smoke + schema checks\ntask verify\tLocal aggregate (wraps ci)\ntask lint\tgo vet + golangci-lint\ntask smoke\tDeterministic smoke tests (subset of unit tests)\ntask schema:check\tValidate JSON contracts against schemas\ntask docs:check\tEnsure skill docs match CLI help signatures\ntask fmt\tFormat all Go files\nRules\nFlat package — everything in package agentcli, no sub-packages (except cobrax, configx)\nExported only — all functions PascalCase; this is a library\nNo business logic — generic utilities only; must be reused across 2+ projects to qualify\nlog.Fatal allowed in RequireArg, CheckDependency (CLI-oriented helpers)\nMinimal deps — zerolog, lo, cobra only; justify new additions\nOut of Scope\nProject-specific logic (put that in consuming projects)\nAdding functions used by only one project"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/gh-xj/agentcli-go",
    "publisherUrl": "https://clawhub.ai/gh-xj/agentcli-go",
    "owner": "gh-xj",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}