second-brain-notion-api

Read and write Second Brain records in Notion via local API.

10|1|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/marcocello/dot-codex --skill second-brain-notion-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: second-brain-notion-api
Source: https://github.com/marcocello/dot-codex/tree/main/skills/second-brain-notion-api
Command: npx skills add https://github.com/marcocello/dot-codex --skill second-brain-notion-api

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill lets you safely read and update your Second Brain records in Notion without manually rebuilding API calls or guessing table schemas.

Core Features & Use Cases

  • Read and write records: List, create, and update tasks, deals, and ideas through the local Notion API.
  • Safety guardrails: Uses a local token file, avoids hardcoded credentials, and stops if the token is missing.
  • Schema-aware workflows: Targets the canonical Second Brain tables and tells you to confirm live data-source IDs before writes.
  • Use case: Quickly add a follow-up task, log a new deal, or capture an idea directly into the correct Notion table.

Quick Start

Ask the assistant to use the second-brain-notion-api skill to list the current tasks in your Second Brain.

Frequently Asked Questions about second-brain-notion-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read and write Notion records for tasks and ideas without manually building API calls?

You can read and write Notion records by using a local API wrapper that handles schema-safe property mapping for tasks, deals, and ideas. This approach eliminates the need to manually rebuild API calls or guess canonical table schemas, returning compact JSON results directly.

What is the safest way to connect a script to Notion tables without hardcoding API credentials?

The safest way to connect to Notion tables is using a local token file that the script reads at runtime. This method stops execution if the token is missing and avoids hardcoding credentials directly inside your scripts.

How do I create a new task or log a deal directly into a Notion Second Brain table?

To create a task or log a deal in Notion, you run a script that targets canonical Second Brain tables through API requests. You must confirm your live data-source IDs before executing writes to ensure records map to the correct properties.

Do I need to know the exact Notion table schema before updating Second Brain records?

You do not need to guess the Notion table schema, because the workflow applies schema-aware property handling for canonical tables. However, you must confirm live data-source IDs before writing to ensure updates target the correct tables.

Can I list current tasks from my Notion Second Brain through a local API wrapper?

Yes, you can list current tasks by asking the assistant to use the API wrapper to query your Notion Second Brain. The script processes Notion API requests and returns compact JSON results containing your active task records.

What happens if the local token file is missing when trying to update Notion records?

If the local token file is missing, the script execution stops immediately as a safety guardrail. This precaution prevents unauthorized or failed API requests and ensures your Notion records are only accessed with valid credentials.