AI Integration & Skills
Ask your agent to investigate a company, read its filings, or check a financial calculation. Finance CLI provides the tools and source evidence; the skill helps your agent choose commands and handle the results.
You need an agent that can run terminal commands on your computer. The CLI supplies data retrieval and calculations, while your existing agent supplies the model and reasoning. Downloading the skill alone does not install the CLI.
Get started: Install the CLI → add the skill → ask your first question.
Download the Finance CLI skill
Ask your first research question
Section titled “Ask your first research question”Once setup is complete, paste this into your agent:
Use Finance CLI to research Apple's latest annual filing. Explain itsbusiness and three disclosed risks. Cite the filing date and source foreach finding. Retrieve more evidence when excerpts are truncated, andreport missing data or source errors.The agent can discover the filing, read the relevant sections, and follow up with other commands. You should receive an explanation tied to filing evidence. Review the cited sources: the skill guides source handling, but does not guarantee that an agent’s interpretation is correct.
For another task, ask it to compare financial statement rows for companies you specify, or calculate growth from verified period values. See worked examples.
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.
Copy this setup prompt into 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.