agent-bank: Skill for OpenCode

.opencode/skill/0-finance-cli/SKILL.md

0-finance-cli is a skill for OpenCode from different-ai/agent-bank. It costs 16 tokens per session (427 once invoked), scanned A, original, MIT.

Development instructions for keeping the 0 Finance command-line tool in step with the product. A command-line tool is a program developers use by typing commands in a terminal.

In plain words
What is it for?
Use it when adding or changing CLI commands in the repository, updating their documentation, and checking that example output matches the real program.
Why use it?
It helps prevent product features and the command-line interface from drifting apart. It also covers the documentation and checks needed when commands, options, or login flows change.

Skill for OpenCode

Written for OpenCode: installed under .opencode/. Also seen: mentions OpenCode.

This is different-ai/agent-bank's own configuration. It tells OpenCode how to work on agent-bank itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent-bank configures →

Reuse

Borrowing it

Nothing to install: this file belongs to different-ai/agent-bank. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/different-ai/agent-bank/main/.opencode/skill/0-finance-cli/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/different-ai/agent-bank

Made for: OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for 0-finance-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/different-ai/agent-bank/0-finance-cli.svg)](https://agentmods.dev/skills/different-ai/agent-bank/0-finance-cli)
Your own site
<a href="https://agentmods.dev/skills/different-ai/agent-bank/0-finance-cli"><img src="https://agentmods.dev/badge/skills/different-ai/agent-bank/0-finance-cli.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 427 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.00427
Opus 5 $0.00008 $0.00214
Sonnet 5 $0.00003 $0.00085
Haiku 4.5 $0.00002 $0.00043

Measured 8d ago against content hash d1a519d440ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

0-finance-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.opencode/skill/0-finance-cli/SKILL.md · 52 lines

What it actually says

Purpose

Keep the 0 Finance CLI agent-native: every user-facing capability in 0 Finance should be mirrored in the CLI. If a feature is added to the product, add the corresponding CLI command and update docs.

When to Use

Use this skill whenever modifying the CLI in packages/cli (the agent-bank package) or adding new commands, flags, or authentication flows.

Workflow

  1. Identify the product capability being exposed.
  2. Add or update the matching CLI command in packages/cli/src/index.ts.
  3. Update CLI docs in packages/docs/cli/ (installation + reference).
  4. Update product docs or landing pages if the CLI entrypoint changes.
  5. Verify the CLI output examples match actual responses.

Testing

Run commands from packages/cli using either Bun or pnpm:

  • bun --cwd packages/cli run dev -- <command args>
  • pnpm --filter agent-bank exec tsx src/index.ts <command args>

Common Issues

  • pnpm --filter agent-bank dev -- ... injects a literal -- argument, which Commander treats as end-of-options; use pnpm --filter agent-bank exec tsx src/index.ts ... instead.
  • pnpm exec prints an extra undefined line on non-zero exits; this is a pnpm quirk. Use finance or Bun for cleaner stderr if needed.

Documentation Requirements

  • Update packages/docs/cli/reference.mdx when a command or option changes.
  • Update packages/docs/cli/installation.mdx when auth or install steps change.
  • Keep packages/docs/index.mdx quick start in sync with the CLI.

Completion Criteria

  • CLI functionality matches the product capability.
  • Docs reflect the latest CLI behavior.
  • If the CLI is user-facing, update the landing quick-start copy.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 52 lines · 16 tokens per session scan A d1a519d440ca

Subscribe to this mod's changes

0-finance-cli is a skill published in the GitHub repository different-ai/agent-bank (249 stars, last pushed 5mo ago), licensed MIT. It adds 16 tokens to every session and 427 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories