Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

alpaca-cli-regenerate

Skill by alpacahq

Keeps the Alpaca CLI in sync with upstream OpenAPI specs. It pulls specs, runs the code generator, registers new operations and runs all checks. Built for contributors to the Alpaca CLI repository.

  • Score 74
  • 218 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install alpaca-cli-regenerate

Built from the published package, never by AI.

git clone --depth 1 https://github.com/alpacahq/cli /tmp/cli && mkdir -p ~/.claude/skills && cp -r /tmp/cli/.agents/skills/alpaca-cli-regenerate ~/.claude/skills/alpaca-cli-regenerate

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install alpaca-cli-regenerate in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

alpaca-cli-regenerate is a skill for keeping the Alpaca CLI in sync with upstream OpenAPI specs. It runs make spec-update to download the trading and market data specs from docs.alpaca.markets into api/specs/. It then runs make generate, which writes typed structs, API clients, op metadata and the Cobra command tree. The skill also covers fixing generator failures for unregistered operations, updating golden test files and running make check.

The skill is aimed at contributors to the Alpaca CLI repository. It lists the phases in order and says to stop and fix problems before moving on. Generated *.gen.go files should not be edited directly. Changes go into the specs or the generator instead. The skill also points to integration tests and docs updates when commands or flags change.

Written from the project's SKILL.md and checked against it.

What it can do

  • Pull latest specsDownloads the trading and market data OpenAPI specs with make spec-update.
  • Generate codeRuns make generate to write types, API clients, op metadata and the command tree.
  • Fix generator failuresExplains how to register new operations in cmdRegistry or cmdSkip and fix body field collisions.
  • Update golden filesRefreshes command tree and op metadata golden files with the -update test flag.
  • Run all checksRuns make check, which covers golangci-lint, race-enabled tests and go build.
  • Verify completenessReviews git diff output against a checklist covering specs, generated files, tests and docs.

What you need

  • Network access to docs.alpaca.markets for make spec-update
  • Make
  • Go toolchain for go run and go test
  • API keys for make test-integration

Try asking

  • Pull the latest Alpaca specs and regenerate the CLI
  • Register the new FooBar operation in the command registry
  • Update the golden files and run make check

Good to know

  • make spec-update needs network access and may need full network permissions in a sandbox
  • Spec files in api/specs/ should not be edited locally; fix bugs upstream
  • Integration tests need API keys
  • Some endpoints are unavailable on paper and need a special test pattern

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/alpaca-cli-regenerate/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to alpaca-cli-regenerate

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

alpaca-cli-regenerate: common questions

Which specs does this skill pull?

It downloads trading-api.json and market-data-api.json from docs.alpaca.markets/openapi/ into api/specs/.

Can I edit the generated Go files?

No. The source says never to edit *.gen.go files directly. Change the specs or the generator and re-run make generate.

What do I do when a new operation is not registered?

Add an entry for it to cmdRegistry with examples, or add it to cmdSkip with a reason. The generator fails without one of these.

How do I install alpaca-cli-regenerate?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is alpaca-cli-regenerate free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is alpaca-cli-regenerate safe to use?

It scores 74 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to alpaca-cli-regenerate?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

alpaca-cli-regenerate Install

Add to stack

Loading.