notion
Qué hace
Esta skill conecta tu IA con Notion, la herramienta de notas y proyectos. Es para personas que guardan páginas y bases de datos en Notion y quieren que su IA las lea o las actualice.
Cuándo usarla
- ✓Cuando quieres que tu IA cree, lea o actualice páginas o bases de datos de Notion.
- ✓Cuando quieres subir archivos a una página de Notion.
- ✓Cuando necesitas conectar una integración de Notion para que tu IA acceda a una página.
Link de la skill
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/productivity/notion/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Añade una tarea nueva a la base de datos de mi proyecto en Notion, con fecha de vencimiento el próximo viernes.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill usa un token de integración de Notion. Puede llamar a la herramienta ntn donde esté instalada, o hacer solicitudes web sencillas con curl en cualquier sistema, incluido Windows.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Notion
Talk to Notion two ways. Same integration token works for both — pick by what's available.
◆ ntn CLI — Notion's official CLI. Shorter syntax, one-line file uploads, required for Workers. macOS + Linux only as of May 2026 (Windows support "coming soon"). Default when installed.
◆ HTTP + curl — works everywhere including Windows. Default fallback when ntn isn't installed.
Setup
1. Get an integration token (required for both paths)
- Create an integration at https://notion.so/my-integrations
- Copy the API key (starts with
ntn_orsecret_) - Store in
${HERMES_HOME:-~/.hermes}/.env:NOTION_API_KEY=ntn_your_key_here - Share target pages/databases with the integration in Notion: page menu
...→Connect to→ your integration name. Without this, the API returns 404 for that page even though it exists.
2. Install ntn (preferred path on macOS / Linux)
# Recommended
curl -fsSL https://ntn.dev | bash
# Or via npm (needs Node 22+, npm 10+)
npm install --global ntn
ntn --version # verify
Skip ntn login — use the integration token instead. This works headlessly, no browser needed:
export NOTION_API_TOKEN=$NOTION_API_KEY # ntn reads NOTION_API_TOKEN
export NOTION_KEYRING=0 # don't try to use the OS keychain
Add those exports to your shell profile (or to ${HERMES_HOME:-~/.hermes}/.env) so every session inherits them.
3. Choose path at runtime
if command -v ntn >/dev/null 2>&1; then
# use ntn
else
# fall back to curl
fi
Windows users: skip step 2 entirely until native ntn ships — Path B works fine. If you want CLI ergonomics now, install ntn inside WSL2.
API Basics
Notion-Version: 2025-09-03 is required on all HTTP requests. ntn handles this for you. In this version, what users call "databases" are called data sources in the API.
Path A — ntn CLI (preferred, macOS / Linux)
Raw API calls (shorthand for curl)
ntn api v1/users # GET
# POST with inline body
ntn api v1/pages parent[page_id]=abc123 \
properties[title][0][text][content]="Notes"
ntn api v1/pages/abc123 -X PATCH archived:=true # PATCH; := is non-string (bool/num/null)
Syntax notes:
key=value— string fieldskey[nested]=value— nested object fieldskey:=value— typed assignment (booleans, numbers, null, arrays)
Search
ntn api v1/search query="page title"
Read page metadata
ntn api v1/pages/{page_id}
Read page as Markdown (agent-friendly)
ntn api v1/pages/{page_id}/markdown
Read page content as blocks
ntn api v1/blocks/{page_id}/children
Create page from Markdown
ntn api v1/pages \
parent[page_id]=xxx \
properties[title][0][text][content]="Notes from meeting" \
markdown="# Agenda
- Q3 roadmap
- Hiring"
Patch a page with Markdown
ntn api v1/pages/{page_id}/markdown -X PATCH \
markdown="## Update
Shipped the prototype."
Query a database (data source)
ntn api v1/data_sources/{data_source_id}/query -X POST \
filter[property]=Status filter[select][equals]=Active
For complex queries with sorts, multiple filter clauses, or compound logic, pipe JSON in:
echo '{"filter": {"property": "Status", "select": {"equals": "Active"}}, "sorts": [{"property": "Date", "direction": "descending"}]}' | \
ntn api v1/data_sources/{data_source_id}/query -X POST --json -
File uploads (one-liner — biggest CLI win)
ntn files create < photo.png
ntn files create --external-url https://example.com/photo.png
ntn files list
Compare to the 3-step HTTP flow (create upload → PUT bytes → reference).
Useful env vars
| Var | Effect |
|---|---|
NOTION_API_TOKEN |
Auth token (overrides keychain) — set this to your integration token |
NOTION_KEYRING=0 |
File-based creds at ~/.config/notion/auth.json instead of OS keychain |
NOTION_WORKSPACE_ID |
Skip the workspace picker prompt |
Path B — HTTP + curl (cross-platform, default on Windows)
All requests share this pattern:
curl -s -X GET "https://api.notion.com/v1/..." \
-H "Authorization: Bearer $NOTION_API_KEY" \
-H "Notion-Version: 2025-09-03" \
-H "Content-Type: application/json"
On Windows the curl shipped with Windows 10+ works as-is. PowerShell users can also use Invoke-RestMethod.
Search
Preguntas frecuentes
¿Por qué la IA devuelve un error 404 para una página que sí puedo ver?
La skill indica que debes compartir la página con tu integración en Notion, mediante el menú Conectar a, o la API devolverá un 404.
¿La herramienta ntn funciona en Windows?
La skill indica que ntn es para macOS y Linux desde mayo de 2026, así que los usuarios de Windows deben usar el método con curl.
¿Dónde guardo el token?
La skill sugiere guardarlo en tu archivo .env de Hermes como NOTION_API_KEY.
Detalles
Descripción original del autor
Notion API + ntn CLI: pages, databases, markdown, Workers.
Popularidad
- Estrellas en GitHub
- 260 mil
- Posición en el ranking
- #541
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
agent-merge-conflict-arbiter
260 milResuelve un conflicto de fusión de git entre las ramas de dos agentes como tercera parte neutral, produciendo un único resultado fusionado para el repositorio.
antigravity-cli
260 milTe guía para instalar, actualizar y resolver problemas con la herramienta de línea de comandos Antigravity, incluidos sus plugins, el inicio de sesión y el entorno aislado.
blackbox
260 milPermite que tu agente entregue una tarea de programación a la herramienta de línea de comandos Blackbox AI, que ejecuta varios modelos de IA y elige el mejor resultado.
dynamic-workflow
260 milEnseña a tu agente a ejecutar grandes lotes de trabajo similar como un script guardado, de modo que solo los resultados verificados vuelvan a la conversación principal.
Skills parecidas
feishu-doc
394 milAyuda a tu agente a leer, crear y editar documentos en la nube de Feishu, incluidos texto, imágenes y tablas, usando la herramienta de documentos.
feishu-drive
394 milPermite que tu agente explore, organice y comente archivos de una carpeta de la nube de Feishu que se haya compartido con el bot.
feishu-perm
394 milAyuda a tu agente a revisar y cambiar quién puede acceder a un archivo de Feishu, eligiendo el permiso más pequeño que cumpla tu petición.