alpaca-skills

作者 alpacahq已验证

Agent skills for Alpaca's Trading API and Broker API: drop-in SKILL.md files for AI coding assistants

103
Stars
9
Forks
Python
语言
2026/8/24
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/alpacahq/alpaca-skills

快速入门

使用 alpaca-skills 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Alpaca Skills

Open agent skills for Alpaca's Trading API and Broker API. Each skill is a SKILL.md file with step-by-step instructions your AI coding assistant follows when you ask it to complete a task, such as running a historical backtest, onboarding Broker API accounts, moving money, placing orders, or consuming real-time events.

Skills provide shared instructions, guardrails, and reporting standards so agents produce more consistent results across runs.

Prerequisites

  • Alpaca CLI — install via Homebrew or Go:

    brew install alpacahq/tap/cli
    # or
    go install github.com/alpacahq/cli/cmd/alpaca@latest
    
  • Alpaca API credentials — paper, sandbox, or live keys as appropriate for the skill. Run alpaca profile login for CLI-backed workflows, or set ALPACA_API_KEY and ALPACA_SECRET_KEY when using API examples.

Install

Recommended: Skills CLI

Use the Skills CLI to install from this GitHub repository:

# Interactive install
npx skills add alpacahq/alpaca-skills

# Preview available skills
npx skills add alpacahq/alpaca-skills --list

# Install one specific skill
npx skills add alpacahq/alpaca-skills --skill alpaca-trading-backtest

Swap in any skill name from the table below.

Manual install

For agents that do not support the Skills CLI, point your agent at a skill directory, or copy/symlink it into your agent's skills folder.

AgentTypical path
CursorCopy or symlink a skill directory into .cursor/skills/ (project) or your user skills directory
Claude CodeCopy into ~/.claude/skills/
OtherReference the SKILL.md path directly in your agent prompt

Example (Cursor project skill):

mkdir -p .cursor/skills
cp -r path/to/alpaca-skills/skills/trading-api/backtest .cursor/skills/alpaca-trading-backtest

Available skills

NamePathTitleProduct
alpaca-trading-backtestskills/trading-api/backtest/Trading API BacktestingTrading API
alpaca-broker-integrationskills/broker-api/integration/Broker API IntegrationBroker API
alpaca-broker-account-onboardingskills/broker-api/account-onboarding/Account Onboarding & KYCBroker API
alpaca-broker-funding-transfersskills/broker-api/funding-transfers/Funding & TransfersBroker API
alpaca-broker-journalsskills/broker-api/journals/JournalsBroker API
alpaca-broker-trading-ordersskills/broker-api/trading-orders/Trading on Behalf of AccountsBroker API
alpaca-broker-market-dataskills/broker-api/market-data/Market DataBroker API
alpaca-broker-sse-eventsskills/broker-api/sse-events/Broker SSE EventsBroker API
alpaca-broker-reconciliation-idempotencyskills/broker-api/reconciliation-idempotency/Reconciliation & IdempotencyBroker API
alpaca-broker-rate-limits-resilienceskills/broker-api/rate-limits-resilience/Rate Limits & ResilienceBroker API
alpaca-broker-money-precisionskills/broker-api/money-precision/Money & Numeric PrecisionBroker API

Product namespacing uses the folder path (skills/trading-api/, skills/broker-api/) and the skill name field: alpaca-<product-scope>-<skill-name> (e.g. alpaca-trading-backtest, alpaca-broker-integration). Use trading or broker as the product scope — not api.

Related resources

Contributing

See CONTRIBUTING.md. Agent conventions for skill authors are in AGENTS.md.

License

Licensed under the Apache License 2.0. See LICENSE.

Disclosure

Insights generated by Alpaca Skill Libraries and connected AI agents are for educational and informational purposes only and should not be taken as investment advice. Alpaca does not recommend any specific securities or investment strategies. Please conduct your own due diligence before making any decisions. All firms mentioned operate independently and are not liable for one another.

Options trading is not suitable for all investors due to its inherent high risk, which can potentially result in significant losses. Please read Characteristics and Risks of Standardized Options (Options Disclosure Document) before investing in options.

Alpaca does not prepare, edit, endorse, or approve Third Party Content. Alpaca does not guarantee the accuracy, timeliness, completeness or usefulness of Third Party Content, and is not responsible or liable for any content, advertising, products, or other materials on or available from third party sites.

All investments involve risk, and the past performance of a security, or financial product does not guarantee future results or returns. There is no guarantee that any investment strategy will achieve its objectives. Please note that diversification does not ensure a profit, or protect against loss. There is always the potential of losing money when you invest in securities, or other financial products. Investors should consider their investment objectives and risks carefully before investing.

The algorithm's calculations are based on historical and real-time market data but may not account for all market factors, including sudden price moves, liquidity constraints, or execution delays. Model assumptions, such as volatility estimates and dividend treatments, can impact performance and accuracy. Trades generated by the algorithm are subject to brokerage execution processes, market liquidity, order priority, and timing delays. These factors may cause deviations from expected trade execution prices or times. Users are responsible for monitoring algorithmic activity and understanding the risks involved. Alpaca is not liable for any losses incurred through the use of this system.

Past hypothetical backtest results do not guarantee future returns, and actual results may vary from the analysis.

The Paper Trading API is offered by AlpacaDB, Inc. and does not require real money or permit a user to transact in real securities in the market. Providing use of the Paper Trading API is not an offer or solicitation to buy or sell securities, securities derivative or futures products of any kind, or any type of trading or investment advice, recommendation or strategy, given or in any manner endorsed by AlpacaDB, Inc. or any AlpacaDB, Inc. affiliate and the information made available through the Paper Trading API is not an offer or solicitation of any kind in any jurisdiction where AlpacaDB, Inc. or any AlpacaDB, Inc. affiliate (collectively, "Alpaca") is not authorized to do business.

Securities brokerage services are provided by Alpaca Securities LLC ("Alpaca Securities"), member FINRA/SIPC, a wholly-owned subsidiary of AlpacaDB, Inc. Technology and services are offered by AlpacaDB, Inc.

Cryptocurrency services are provided by Alpaca Crypto LLC ("Alpaca Crypto"), a FinCEN registered money services business (NMLS # 2160858), and a wholly-owned subsidiary of AlpacaDB, Inc. Alpaca Crypto is not a member of SIPC or FINRA. Cryptocurrencies are not stocks and your cryptocurrency investments are not protected by either FDIC or SIPC. Cryptocurrency assets are highly volatile and speculative, involving substantial risk of loss, and are not insured by the FDIC or any government agency. Customers should be aware of the various risks prior to engaging these services, including potential loss of principal, cybersecurity considerations, regulatory developments, and the evolving nature of digital asset technology. For additional information on the risks of cryptocurrency, please click here.

This is not an offer, solicitation of an offer, or advice to buy or sell securities or cryptocurrencies or open a brokerage account or cryptocurrency account in any jurisdiction where Alpaca Securities or Alpaca Crypto, respectively, are not registered or licensed, as applicable.

常见问题

What is alpaca-skills?

alpaca-skills is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by alpacahq. Agent skills for Alpaca's Trading API and Broker API: drop-in SKILL.md files for AI coding assistants. It has 103 GitHub stars.

Is alpaca-skills safe to use?

Yes. alpaca-skills passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install alpaca-skills?

Clone the repository with "git clone https://github.com/alpacahq/alpaca-skills" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is alpaca-skills written in?

alpaca-skills is primarily written in Python. It is open-source under alpacahq on GitHub, so you can review or fork the full source.

Are there alternatives to alpaca-skills?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh alpaca-skills against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情