agent-bank: Skill for OpenCode

.opencode/skill/ai-email-pipeline/SKILL.md

ai-email-pipeline is a skill for OpenCode from different-ai/agent-bank. It costs 0 tokens per session (2,216 once invoked), scanned A, original, MIT.

Instructions for handling an AI email workflow for 0 Finance, from receiving an email and its attachments to preparing financial actions and sending a reply. The workflow keeps conversation state and records actions such as invoices and transfers.

In plain words
What is it for?
Use it to read inbound email data, extract invoice details, create or update invoices, manage bank accounts, propose transfers, and send replies or invoices.
Why use it?
It gives the agent a defined way to process email without treating the conversation as a simple fixed sequence. It also identifies when to wait for confirmation, continue, or report an error.

Skill for OpenCode

Written for OpenCode: installed under .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/ai-email-pipeline/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 ai-email-pipeline

README.md
[![agentmods](https://agentmods.dev/badge/skills/different-ai/agent-bank/ai-email-pipeline/github.svg)](https://agentmods.dev/skills/different-ai/agent-bank/ai-email-pipeline)
Your own site
<a href="https://agentmods.dev/skills/different-ai/agent-bank/ai-email-pipeline"><img src="https://agentmods.dev/badge/skills/different-ai/agent-bank/ai-email-pipeline/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ai-email-pipeline

Your own site · 80×15
<a href="https://agentmods.dev/skills/different-ai/agent-bank/ai-email-pipeline"><img src="https://agentmods.dev/badge/skills/different-ai/agent-bank/ai-email-pipeline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,216 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00000 $0.02216
Opus 5 $0.00000 $0.01108
Sonnet 5 $0.00000 $0.00443
Haiku 4.5 $0.00000 $0.00222

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

Security

Grade A, and why

ai-email-pipeline scanned grade A with 1 finding 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 11d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

const response = await fetch(att.blobUrl);
.opencode/skill/ai-email-pipeline/SKILL.md · 300 lines

How it starts

The opening of the file, as written. The whole thing — 300 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI Email Pipeline

Skill Contract

Purpose

  • Run the inbound/outbound AI email workflow for 0 Finance.

Inputs

  • Inbound webhook payload (Resend or SES).
  • Session state + attachments.
  • Workspace mapping + AI email handle.

Outputs

  • Updated session state, created/updated invoices/transfers, outbound replies.

Entities + CRUD Coverage

  • Session: create/get/update via packages/web/src/lib/ai-email/session.ts; delete not supported.
  • Message: create (append), read (history), update (follow-up), delete not supported.
  • Attachment: create (persist), read (load), update not used, delete not supported.
  • Invoice draft: create/update/send via tools.

Tools Used (Atomic)

  • extractInvoiceDetails, createInvoice, updateInvoice, requestConfirmation, sendReplyToUser.
  • sendInvoiceToRecipient, getBalance, listSavedBankAccounts, createBankAccount, proposeTransfer.

Completion Signals

  • complete when a reply is sent or a pending action is finalized.
  • continue when awaiting user confirmation or clarification.
  • error on provider failures or invalid webhook signatures.

Credentials & Config

  • Resend: RESEND_API_KEY, RESEND_WEBHOOK_SECRET.
  • SES: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION.
  • EMAIL_PROVIDER = resend or ses.
  • AI_EMAIL_INBOUND_DOMAIN default zerofinance.ai.

Missing Credential Behavior

  • If provider credentials are missing, ask the user and stop.

Canonical Inbox

Core Mental Model

The AI email system is a conversation, not a state machine.

Every email is a message in an ongoing conversation. The LLM reads the full context and decides what to do. There are no hardcoded shortcuts, no regex parsing for intent, no branching logic outside the AI.

Architecture Principle

Email arrives → Parse attachments → Build message history → Send to LLM → LLM calls tools → Done

That's it. The LLM handles:

  • Understanding user intent ("yes", "no I mean...", "actually change it to...")
  • Deciding which tools to call
  • Generating responses
  • Handling corrections and clarifications

Read the full file on GitHub · 300 lines

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. 11d ago First seen · 300 lines · 0 tokens per session scan A aa9f1bebc609

Subscribe to this mod's changes

ai-email-pipeline is a skill published in the GitHub repository different-ai/agent-bank (249 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,216 tokens. A static security scan graded it A with 1 finding (makes network calls). 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

sector-rotation

An analysis framework for comparing industries in the Chinese A-share stock market, using business conditions, price momentum, valuation, and money flows. It produces rankings and higher- or lower-allocation suggestions.

HKUDS/Vibe-Trading · 39 tokens

strategy-pivot-designer

Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.

tradermonty/claude-trading-skills · 28 tokens

twitter-reader

Read Twitter/X for financial research using opencli (read-only). Use this skill whenever the user wants to read their Twitter feed, search for financial tweets, view bookmarks, look up user profiles, or gather market sentiment from Twitter/X. Triggers include: "check my feed", "search Twitter for", "show my…

himself65/finance-skills · 161 tokens

chenhao-limit-up

A framework for judging Chinese A-share stocks that have reached the daily price-rise limit, using market mood, sector leadership, and trading momentum.

questflowai/investorskills · 44 tokens

trading-risk-gate

Unified pre-trade safety gate: Ruin check (Law #1), ergodicity audit, and win-rate dominance validation. Absorbs: ergodicity-check, law-of-ruin, win-rate-dominance.

winstonkoh87/Athena-Public · 53 tokens

furusato

A Japanese hometown-tax donation manager for furusato nozei, a system where donations to municipalities can qualify for an income-tax or local-tax deduction. It reads donation receipts, stores donation records, and calculates deduction limits.

kazukinagata/shinkoku · 102 tokens