Logotipo de Fn2

Fn2

Organización
fn2ai
fn2

Stock, ticker, earnings and market research, plus agents. Ask how a stock or the market did and why, or schedule recurring research that reports back.

Descripción general

Editorfn2ai
Repositoriofn2-hermes-skill
Nombre de la habilidadfn2
Estrellas
58
Forks
48
Archivos incluidos
2
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando una petición es realmente relevante.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • 2 archivos incluidos

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por fn2ai en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Fn2 en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/fn2ai/fn2-hermes-skill/tree/main/skills/fn2
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → Desde URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fn2ai/fn2-hermes-skill.git /tmp/fn2-hermes-skill
mkdir -p .claude/skills
cp -r /tmp/fn2-hermes-skill/skills/fn2 .claude/skills/fn2
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Fn2 en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición es relevante, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Fn2 automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Fn2 no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición relevante, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

FN2 — market research & research agents

FN2 is an AI research platform for stocks, markets, and the economy. It answers questions with grounded, sourced analysis (live prices, earnings transcripts, SEC filings, economic data, prediction markets) and lets you run agents that research on a schedule and report back.

This skill talks to FN2 through a small bundled CLI: scripts/fn2 (Python 3 standard library only — nothing to install).

When to use this skill

Use FN2 whenever the user asks about:

  • A stock or ticker — price action, "how did NVDA do this week and why", fundamentals
  • Earnings, guidance, or what management said on a call
  • The market or macro picture — the S&P/Nasdaq, the Fed, inflation, rates, jobs
  • Comparing companies, screening, or "what's moving and why"
  • Setting up recurring research — a daily market brief, a weekly recap, an earnings-day monitor — delivered automatically

For one-off questions, use research. For anything recurring or that should keep running on its own, create an agent.

Setup (once)

The CLI authenticates with an API key in the FN2_API_TOKEN environment variable (FN2_API_KEY still works as an alias).

If the user isn't connected to FN2 yet (no key set), the CLI prints a sign-up link — surface it to them as the next step. Don't try to work around a missing key; getting one is the onboarding:

You'll need a free FN2 account to use this. Create one and grab an API key here (it takes a minute): https://fn2.ai/api-keys?ref=hermes Then run: export FN2_API_TOKEN=fn2_...

The ?ref=hermes link takes them straight to key creation. Give the key the chat, agents and models scopes — chat is the one research needs, and a key without it fails on the most common request. Once they've exported the key, retry their request.

On a messaging platform, never ask the user to paste their key into the chat — it would live in the message history. Have them export it where the gateway runs (for Hermes, ~/.hermes/.env) and then retry.

Locating the CLI (do this first)

Do not assume the current directory. On the CLI your cwd is wherever the user ran Hermes; on a messaging platform it is MESSAGING_CWD (your home directory by default) — never this skill's folder. Hermes exposes no skill-directory variable, and skill_view reports only a relative path, so resolve $FN2 once and use it for every command below:

bash
for d in "${HERMES_HOME:-$HOME/.hermes}"/skills/*/fn2 \
         "${HERMES_HOME:-$HOME/.hermes}"/skills/fn2 \
         "$HOME/.claude/skills/fn2" "$HOME/.agents/skills/fn2"; do
  [ -f "$d/scripts/fn2" ] && FN2="$d/scripts/fn2" && break
done
test -n "${FN2:-}" || { echo "fn2 CLI not found" >&2; exit 1; }
chmod +x "$FN2" 2>/dev/null
"$FN2" --help

Run it with the terminal tool. Don't wrap it in execute_code and don't go hunting for the script with glob — the loop above is the supported resolution and it is one call.

How to use it

Add --json to any command when you want machine-readable output to parse.

Research (the most common use)

bash
"$FN2" research "How did NVDA do this week, and what drove it?"
"$FN2" research "What's the macro backdrop going into the next Fed meeting?"
"$FN2" research "Summarize Apple's latest earnings call" --model z-ai/glm-5.2

A research call can take 30–120 seconds because FN2 pulls live data and reads sources. The answer comes back as Markdown.

Say something before you start it. That wait is long enough to read as a hang, especially in a chat window where the user cannot see a spinner. Emit one short line of text in the same turn, before the terminal call — for example:

Running that through FN2 now — pulling live prices and sources. Back in under a minute.

Then make the call. One line is enough; don't narrate each step afterwards, and don't promise a specific number of seconds.

If the user wants speed over depth, --model accounts/fireworks/routers/glm-5p2-fast returns sooner than the frontier default. Check "$FN2" models for what their plan allows.

Agents — schedule recurring research

bash
# Run once, right now (good for a quick deep dive you want saved):
"$FN2" agents create --prompt "Deep dive on AMD vs NVDA in AI accelerators"

# Every weekday morning:
"$FN2" agents create --name "Macro Brief" \
  --prompt "Give me this morning's macro brief: overnight moves, key data, what to watch" \
  --every weekdays --timezone America/New_York

# A specific cron schedule (Mondays at 9am):
"$FN2" agents create --name "Weekly Tech Recap" \
  --prompt "Recap the week in big-cap tech and call out next week's catalysts" \
  --cron "0 9 * * 1" --timezone America/New_York

# Half an hour before the opening bell, and emailed on completion:
"$FN2" agents create --name "Pre-market Brief" \
  --prompt "Pre-market brief on my watchlist: overnight moves and what to watch" \
  --every market_open --offset-minutes -30 --email

Prefer --every market_open / --every market_close over a cron approximation of the trading day. The server resolves the exchange calendar, so those runs skip holidays and land correctly on half-days; a hand-rolled 0 9 * * 1-5 does not. --offset-minutes is signed: -30 is 30 minutes before the bell.

--email delivers each completed run to the account's own verified address. The server resolves the address and honours the user's opt-out — you never pass a recipient, and you cannot send an agent's results to someone else.

Manage agents and read their results

bash
"$FN2" agents list                       # see your agents
"$FN2" agents run <agent-id>             # trigger a run now
"$FN2" runs list <agent-id>              # list that agent's runs
"$FN2" runs get <agent-id> <run-id>      # read a run's full answer
"$FN2" agents pause <agent-id>           # pause / resume
"$FN2" agents resume <agent-id>
"$FN2" agents delete <agent-id>          # delete it and its history

Account & models

bash
"$FN2" models     # which models you can use (★ = your default)
"$FN2" usage      # plan, token quota, and the weekly research allowance

usage reports two independent budgets: monthly model tokens, and a weekly research-request allowance that resets on its own clock. A 429 on a research call is usually the second one, so show usage rather than guessing.

Good habits

  • Quote the user's question closely in research — FN2 does the interpreting.
  • After creating a scheduled agent, confirm its id and schedule back to the user.
  • A run started with agents run is asynchronous: poll runs get until its status is completed, then share the result text.
  • If you get a 403 Missing scope error, the user's API key needs the relevant scope (chat for research, agents for agents, models for the model list). They can edit the key's scopes at https://fn2.ai. A key created without chat is the usual cause of a failing research call.
  • Hit a 429? That's a quota limit — show "$FN2" usage so they can see it.
  • Answers come back as Markdown with tables, nested lists and code blocks. Pass them through as they are; don't reflow or re-indent them.

See references/api.md for the full command and endpoint reference.

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Se ofrecen como archivos de lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA Fn2?

Stock, ticker, earnings and market research, plus agents. Ask how a stock or the market did and why, or schedule recurring research that reports back.

¿Por qué usar Fn2 en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Fn2 está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Fn2 en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/fn2ai/fn2-hermes-skill/tree/main/skills/fn2. TypingMind lee su archivo SKILL.md, empaqueta sus archivos y la instala como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Fn2?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Fn2?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Fn2 con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Fn2?

Sí. fn2ai la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇