AILocal-firstNotionIDESkillIndie Dev

I built a local-first AI brain Skill and realized I do not need Notion AI

···5 min read

The real problem: thinking and recording were split apart

I did not begin this project because I wanted another tool. I tried Notion AI, quickly used its 20 free actions, and then stopped to think about a different problem.

I do not actually think inside Notion. Ideas usually appear while I am coding, stuck in a debugging session, or discussing architecture with AI in an IDE. Notion AI assumes that I am already writing in Notion. The two activities begin in different places.

Switching tools was making ideas disappear

I finally admitted something I had ignored: when recording an idea requires switching tools, in my own experience, roughly 80% of those ideas disappear immediately. Finishing the code always feels more urgent, so even important thoughts are lost.

That led to the opposite question: what if I captured ideas directly in the IDE? What if AI helped organize them without taking control of the process?

I did not need another notes app

I already had enough note-taking tools. What I lacked was a system that could capture an idea immediately, let AI organize it, never write without confirmation, keep a human in control, and store the primary data locally.

That idea became two projects: keeponfirst-local-brain and its Global Skill, keeponfirst-local-brain-skill.

Why a Skill instead of an app?

I did not want another interface. I already spend my day in Antigravity, Cursor, and other AI IDE conversations, so I made it a Global Skill. I can capture an idea from any workspace, repository, or kind of project without leaving the place where the thought occurred.

Human in the loop is the one non-negotiable rule

Local Brain follows one rule: AI may propose, but it may not commit. Every record goes through the same flow. AI classifies it as a Decision, Idea, Worklog, or Backlog item, produces a structured draft, shows a preview, and waits for approval before writing. It then tries Notion first and always writes locally.

I eventually realized that the workflow resembles Git. AI opens a pull request, a person reviews it, and the change is merged only after approval. That was the moment I felt comfortable entrusting important decisions to the system.

Flow chart: type /kof-cap in the IDE, AI classifies and drafts, the preview offers confirm, edit or cancel, and after confirmation write_record.py tries Notion first and always writes a local .md and .json file
The path of one record from input to files. Cancel writes nothing; a Notion failure still writes locally. Based on SKILL.md, write_record.py and real record files in keeponfirst-local-brain. Drawn by KeepOnFirst.

A real record: one short line in, two files out

On January 16, 2026, I pushed this repo to GitHub. Then I typed one short line in Chinese: "record uploading this repo."

AI classified it as a Worklog and used the four-part worklog template: Activities, Learnings, Blockers and Next Steps. The saved Activities list has four items, including renaming the folder, updating how SKILL.md runs the script, and uploading the repo. The flow requires a preview and a confirmation before these are written.

The Learnings section records a real problem. Passing the draft to the script with --stdin had buffering problems in some shells. Using --input with a temporary file was more reliable. That lesson went straight into SKILL.md. The current steps write the draft to a temporary file and pass it with --input.

text
records/worklogs/
  20260116_155440_worklog_<title>.md    ← for people
  20260116_155440_worklog_<title>.json  ← for programs

The file name is timestamp, type and title, in a folder for that type. The .md file is for reading: it starts with the type, time and tags, and ends with the original input. The .json file holds the same content in fields such as type, title, source_text, final_body and tags. Search and migration read this file.

TypeUse it forDraft sections
DecisionA choice with trade-offsContext, Options Considered, Chosen, Rationale, Trade-offs
WorklogWhat you did and learned todayActivities, Learnings, Blockers, Next Steps
IdeaInspirations and possibilitiesDescription, Inspiration, Potential, Maturity
BacklogSomething to do laterDescription, Priority, Effort, Dependencies
NoteRaw text when no type fitsNo structure; saved as written
Five record types and their draft sections (from SKILL.md)

With /kof-cap, AI picks the type. To set it yourself, use a trigger such as /kof-decision or /kof-worklog. Either way, the preview step cannot be skipped.

SKILL.md holds two more rules. The first is language: when the project sets PRIMARY_LANGUAGE to zh-TW, titles and bodies are written in Traditional Chinese; otherwise they follow the input language. The second is older records: with Notion MCP connected, the skill searches for related records by keyword before drafting and lists them under the preview. This step is optional, and capture works without it.

Why local-first matters

People sometimes ask why I do not write directly to Notion if the records will be synchronized there anyway. The answer is simple: I am more willing to record important thoughts when the primary data stays on my own computer.

Local-first gives me psychological safety. A platform can change its policy, an API can fail, or I can replace the remote backend later without losing my exit. In this architecture, Notion is a useful remote interface, not the brain itself.

That sentence is concrete in the code. After you confirm, write_record.py tries Notion first. Whether that works or not, it writes both local files. If Notion cannot be reached, the script prints a warning. It also marks the record notion_sync_status: PENDING. A dropped network or an expired token does not lose the record.

The same rule, AI proposes and a person confirms before anything is written, later became how I build apps. Another piece explains why I stopped asking AI to build a whole app at once. Local Brain is the brake described there.

Related: Why I stopped asking AI to build the whole app

This repo also grew another tool: kof-notebooklm-mcp, which connects NotebookLM to the same workflow. It began as an internal tool inside Local Brain and was later published to PyPI on its own.

Related: From zero to PyPI, making NotebookLM programmable

What comes next

I am still testing what a truly low-friction capture flow looks like, including its triggers, syntax, and boundaries. Once a pattern proves worth using over time, I will write a more complete technical breakdown.

If this sounds useful, take a look at keeponfirst/keeponfirst-local-brain and tell me what you think.

Read the author’s original publication