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.
npx skills add 2aronS/notion-md-agent --skill organize-databasegit clone --depth 1 https://github.com/2aronS/notion-md-agentWrote 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.
[](https://agentmods.dev/skills/2arons/notion-md-agent/organize-database)<a href="https://agentmods.dev/skills/2arons/notion-md-agent/organize-database"><img src="https://agentmods.dev/badge/skills/2arons/notion-md-agent/organize-database/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/2arons/notion-md-agent/organize-database"><img src="https://agentmods.dev/badge/skills/2arons/notion-md-agent/organize-database.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00021 | $0.00891 |
| Opus 5.5 | $0.00008 | $0.00356 |
| Sonnet 5.5 | $0.00004 | $0.00178 |
| Haiku 4.5 | $0.00002 | $0.00089 |
Grade A, and why
organize-database 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 3mo ago.
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.
This is a copy
100% identical to organize-database — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Organize Database
Transform unstructured Notion pages into a well-designed, queryable database.
Property Type Decision Guide
Choose the right property type -- LLMs frequently pick the wrong one:
| Data pattern | Correct type | Wrong choice (common mistake) |
|---|---|---|
| Fixed categories (status, priority) | select |
rich_text (loses filtering) |
| Multiple tags per item | multi_select |
select (only allows one) |
| References to other DBs | relation |
rich_text (breaks linking) |
| Computed from relations | rollup |
formula (can't aggregate across DBs) |
| True/false flags | checkbox |
select with Yes/No (over-engineered) |
| Long-form content | Page body (blocks) | rich_text property (2000 char limit) |
Property Format Reference
Every property value MUST use the correct nested format. The Notion API rejects flat values.
// WRONG -- flat values (API will error or silently fail)
{
"Tags": "engineering",
"Status": "In Progress",
"Description": "Some text"
}
// CORRECT -- properly typed nested objects
{
"Tags": { "multi_select": [{ "name": "engineering" }] },
"Status": { "select": { "name": "In Progress" } },
"Description": { "rich_text": [{ "text": { "content": "Some text" } }] },
"Name": { "title": [{ "text": { "content": "Page title" } }] },
"Done": { "checkbox": true },
"Due Date": { "date": { "start": "2026-03-23" } },
"URL": { "url": "https://example.com" },
"Count": { "number": 42 },
"Contact": { "email": "[email protected]" }
}
Key gotcha: rich_text is an ARRAY of text objects, never a plain string.
Migration Pattern
-
Audit existing content -- find the pages to organize:
pages(action="search", query="<topic>")to locate scattered pages- Read each page's blocks to understand content structure
- Identify common fields across pages (these become DB properties)
-
Design schema -- create the database with identified properties:
databases(action="create", parent_id="<parent_page_id>", title="...", properties={ "Name": { "title": {} }, "Category": { "select": { "options": [{ "name": "..." }] } }, "Tags": { "multi_select": { "options": [{ "name": "..." }] } }, ... })- Start with 5-7 properties max. Users can add more later.
- Always include a
selectfor status/category -- it enables Notion's board view.
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.
- 3mo ago First seen · 91 lines · 21 tokens per session scan A 1658d71e60aa
organize-database is a skill published in the GitHub repository 2aronS/notion-md-agent (9 stars, last pushed 6mo ago), licensed MIT. It adds 21 tokens to every session and 891 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to organize-database, differing in 0 lines, and is treated as a copy.
organize-database compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| organize-database2aronS/notion-md-agent | Skill | 9 | 6mo ago | MIT | A | 21 | Claude Code |
| search_contentvercel/eve | Skill | 6.1k | today | Apache-2.0 | A | 59 | Claude Code, Codex |
| mdvsedochi/mdvs | Skill | 27 | yesterday | MIT | A | 93 | Claude Code |
| Database OptimizationOpenLabor/openlabor | Skill | 5 | 1mo ago | MIT | A | 6 | Claude Code, Codex |
| organize-databasen24q02m/better-notion-mcp | Skill | 36 | 2mo ago | Apache-2.0 | A | 21 | Claude Code |
| obsidian-basesmichaeljauk/brain-starter | Skill | 5 | 25d ago | MIT | A | 63 | Claude Code |
| create-prprisma/orm | Skill | 48k | today | Apache-2.0 | A | 47 | Claude Code, Codex |