AI Integration & Skills
This page is the starting point for using Finance CLI with coding agents and research agents. The package installation and the skill installation are separate on purpose: the package provides the finance executable, while the skill teaches an agent how to route research tasks to that executable.
1. Install Finance CLI
Section titled “1. Install Finance CLI”Install or update the CLI first:
python -m pip install -U finresearch-cliVerify the executable and local provider status:
finance --listfinance sources.status --output json2. Download AI Docs
Section titled “2. Download AI Docs”Agents should prefer the machine-readable files over scraping prose pages.
| File | Use |
|---|---|
llms.txt | Compact read order, routing rules, and trust reminders. |
llms-full.txt | Full routing context and common playbooks. |
tools.json | Canonical command schema, argument metadata, side effects, and citation fields. |
openapi.json | Adapter contract for MCP/plugin/tool wrappers. |
Agent Output Formats | Normalized records and compact renderers for LLM context compression. |
finance-cli-skills.zip | Local skill package for agents that support skills. |
3. Install The Skill
Section titled “3. Install The Skill”The Finance CLI skill is a compact routing guide for agents. It points them to the installed finance CLI, JSON output, tools.json schemas, and source-aware citation rules.
Use this one-click prompt in an agent that can manage local files:
Download https://tempestshaw.github.io/FinanceCLI/skills/finance-cli-skills.zip, extract it, copy the extracted skills/finance-cli folder into my local agent skills directory, verify that the copied folder contains SKILL.md, and then stop. Do not run pip install. Do not run finance commands during skill installation.Package installation remains separate:
python -m pip install -U finresearch-cliManual Install
Section titled “Manual Install”For Codex, install the skill folder into the local skills directory:
curl -L -o finance-cli-skills.zip https://tempestshaw.github.io/FinanceCLI/skills/finance-cli-skills.ziprm -rf /tmp/finance-cli-skillsmkdir -p /tmp/finance-cli-skillsunzip -q finance-cli-skills.zip -d /tmp/finance-cli-skillsmkdir -p "${CODEX_HOME:-$HOME/.codex}/skills"cp -R /tmp/finance-cli-skills/skills/finance-cli "${CODEX_HOME:-$HOME/.codex}/skills/"test -f "${CODEX_HOME:-$HOME/.codex}/skills/finance-cli/SKILL.md"For other agents that support local skills, copy the extracted skills/finance-cli folder into that agent’s skills directory.
Skill Overview
Section titled “Skill Overview”The skill is intentionally small:
| File | Purpose |
|---|---|
SKILL.md | Core routing rules for using finance <command> [arguments] --output json and the generated schema files. |
docs/ROUTING.md | Namespace and command-family routing hints. |
docs/PLAYBOOKS.md | Common multi-step workflows for filings, documents, market context, screens, and backtests. |
docs/TRUST.md | Result-envelope handling, citation policy, credentials, and calculator boundaries. |
The command schema truth remains tools.json. The skill links to schema files instead of duplicating them.
Usage Details
Section titled “Usage Details”- Use
finance --listto inspect commands in the installed version. - Use
finance sources.status --output jsonbefore assuming provider availability. - Use
tools.jsonfor arguments, defaults, enums, output schemas, side effects, and citation fields. - Preserve
ok,data,error, andwarningsfrom command output. - Use compact record output only after deciding that the full JSON envelope is not needed for audit or replay.
- Keep finance calculations research-oriented and source-aware.