fn2

fn2 is a skill for Claude Code, Codex from fn2ai/fn2-skill. It costs 197 tokens per session (2,547 once invoked), scanned A, original, MIT.

A skill that connects a terminal assistant to FN2, a service that runs AI agents for researching public markets such as stocks and company filings.

In plain words
What is it for?
It is for starting, watching, and scheduling FN2 agents to answer questions about companies, stocks, earnings calls, and filings.
Why use it?
It handles the steps for signing in and managing research agents so you can run market investigations from the assistant.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also agents/openai.yaml present. Also seen: mentions Claude Code; mentions Codex.

Part of the fn2 plugin — 1 skill shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/fn2ai/fn2-skill/fn2
Any agent
npx skills add fn2ai/fn2-skill --skill fn2
Clone the repo
git clone --depth 1 https://github.com/fn2ai/fn2-skill

Made for: Claude Code, Codex.

Or install fn2, the plugin that ships this one along with the rest of its 1 skill.

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 fn2

README.md
[![agentmods](https://agentmods.dev/badge/skills/fn2ai/fn2-skill/fn2.svg)](https://agentmods.dev/skills/fn2ai/fn2-skill/fn2)
Your own site
<a href="https://agentmods.dev/skills/fn2ai/fn2-skill/fn2"><img src="https://agentmods.dev/badge/skills/fn2ai/fn2-skill/fn2.svg" alt="Measured on agentmods" height="20"></a>
Per session 197 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,547 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00197 $0.02547
Opus 5 $0.00098 $0.01273
Sonnet 5 $0.00039 $0.00509
Haiku 4.5 $0.00020 $0.00255

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

Security

Grade A, and why

fn2 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 5d ago.

The scan reads SKILL.md. This mod also ships 11 executable files (scripts/fn2cli/__init__.py, scripts/fn2cli/__main__.py, scripts/fn2cli/api.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/fn2/SKILL.md · 208 lines

How it starts

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

FN2 AI research agents, from your assistant

This skill drives the public fn2.ai API so you can start, watch, and schedule FN2 AI research agents without leaving Claude, Codex, or Pi. It is a single, dependency-free Python 3 helper: standard library only, no pip install, no build step.

First run: connect an account (no secret copying)

Connecting is a browser device flow: the CLI prints a short code, the user enters it at https://fn2.ai/start and clicks Approve. Drive it in two steps so the user is never left watching a silent terminal. Resolve the helper first as described in Locating the helper.

Step 1 — get the code (instant, foreground).

python3 "$FN2" auth login --no-wait
# Open https://fn2.ai/start
# Enter code XXXX-XXXX
# (opened in your browser)

This starts (or resumes) a sign-in, prints the URL and code, opens the user's browser itself whenever the machine has a display, and exits immediately.

Step 2 — relay the code, then wait in the background. Tell the user the code and the URL in chat right away, e.g.:

Your sign-in code is XXXX-XXXX. I opened https://fn2.ai/start — sign in (or create an account) and approve the code there. If no tab appeared, click the link.

Then run the finishing wait as a background task so the conversation is not blocked:

python3 "$FN2" auth login --no-browser    # resumes the same code, waits for approval

It completes the moment the user approves (codes live 15 minutes) and stores a scoped, revocable device credential: macOS Keychain when available, otherwise ~/.config/fn2/credentials.json with 0600 permissions. No key is ever pasted, printed, or sent to chat. Confirm with python3 "$FN2" auth status.

Two rules that matter more than the mechanics:

  • Never run bare auth login as a blocking foreground command in an assistant turn; it waits up to 15 minutes and hides the code exactly when the user needs it.
  • Never make the user dig the code out of a task log. The code and URL go into chat the moment Step 1 prints them.

Read the full file on GitHub · 208 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. 5d ago First seen · 208 lines · 197 tokens per session scan A f1de2bb253ba

Subscribe to this mod's changes

fn2 is a skill published in the GitHub repository fn2ai/fn2-skill (2 stars, last pushed 25d ago), licensed MIT. It adds 197 tokens to every session and 2,547 once invoked, about $0.0010 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-31.

Related

Other skills, from other repositories

jangbu-jongso

한국 종합소득세·법인세 신고 준비를 위한 서류 체크리스트 자동 생성 스킬. 개인사업자(일반·간이·면세)·프리랜서·1인 법인·겸업·성실신고확인대상 5가지 유형별로 필요 서류 목록을 제공하고, korean-jangbu-for에서 자동 생성 가능한 항목을 표시한다. 2026년 기준 기한표(토·일 자동 이연 반영) 포함 — 종소세 일반 2026-06-01, 성실신고 2026-06-30.

kimlawtech/korean-jangbu-for · 139 tokens

korean-jangbu-for

한국 스타트업·1인 법인 대표·프리랜서·개인사업자를 위한 장부 자동 생성 진입점 스킬. 호출 시 5개 하위 스킬(jangbu-import·jangbu-tag·jangbu-tax·jangbu-dash·jangbu-jongso)을 번호·문자 메뉴로 제시하고, 입력 즉시 해당 스킬 인터뷰로 직행한다. 엑셀·5대 은행 CSV·7대 카드사 명세서 PDF·영수증·세금계산서 지원, macOS Vision/PaddleOCR 로컬 처리, Level 2 민감정보 마스킹.

kimlawtech/korean-jangbu-for · 144 tokens

jangbu-import

원본 재무 데이터(엑셀·은행 CSV·카드 내역 CSV·영수증 이미지·세금계산서 PDF·카드명세서 PDF)를 표준 거래내역 13개 필드로 변환하는 스킬. PaddleOCR 로컬 처리로 영수증·세금계산서·카드명세서에서 거래 자동 추출, Level 2 민감정보 마스킹 적용.

kimlawtech/korean-jangbu-for · 97 tokens

jangbu-connect

홈택스·은행·카드사 데이터를 자동 수집하기 위한 CODEF API 자격증명 발급·설정 가이드 스킬. 사용자가 직접 CODEF(developer.codef.io)에 무료 가입해 받은 Client ID/Secret을 로컬(macOS Keychain 또는 /.jangbu/credentials.env)에 저장. BYOK(Bring Your Own Key) 방식, 외부 서버 전송 없음. 2026년 4월 기준.

kimlawtech/korean-jangbu-for · 98 tokens

jangbu-tag

표준 거래내역에 계정과목을 매핑하는 스킬. 룰 기반 분류 우선(80%+), 실패 건만 LLM fallback(마스킹 뷰), 사용자 확인 루프. 한국 거래처 100개 시드 룰 포함, 내부 계정 ↔ 국세청 표준계정 이중 구조.

kimlawtech/korean-jangbu-for · 80 tokens

jangbu-dash

스타트업·1인 법인 대표용 경영 리포트 자동 생성 스킬. 월별 손익 추이, 현금흐름(일별 net), cash burn rate(최근 N개월 평균 순지출), 비용 구조 분석. 공식 재무제표와 별개로 의사결정용 가공 리포트 제공.

kimlawtech/korean-jangbu-for · 79 tokens