This is my SPECS
==== SPECS =========
<specs>
Using the Notion MCP, create the databases from my plan's data schema.
- Create one parent page "<APP NAME> Workspace"; put everything inside it.
- Create in dependency order, relations and rollups/formulas last. Use exact
Notion types. Two-way relations where useful.
- Add helper properties only if the plan's logic or the tracking needs them:
Archived (checkbox), Seed (checkbox). If the plan implies time tracking,
activity history or notifications and has no database for them, create a
minimal one (e.g. Time Entries, Activity Log).
- Select/status colors: closest Notion colors to my palette.
- No emojis in any names or icons. Leave icons unset.
- Never touch existing content outside the parent page.
- Decide ambiguities yourself, don't ask.
Output ONLY: (1) parent page ID, (2) one table: Database | ID | properties as
"name:type" comma-separated | relations, (3) schema additions beyond my plan,
(4) manual fixes needed. No other commentary.
Using the Notion MCP, seed the databases from Step 1.
- Small coherent dataset: 8 to 12 rows in main databases, 3 to 5 in lookups.
- Cover every select/status option at least once. Dates spread across the
last 30 and next 30 days (some overdue, some due today). Vary numbers so
charts look meaningful. Include one row with empty optional fields and one
with many relations.
- Realistic names, @example.com emails, no lorem ipsum, no emojis.
- Insert in dependency order, link relations, tick Seed on every row.
- Batch inserts where possible. Only one count check per database.
Output ONLY: table Database | rows inserted | failures.
Use the Notion MCP tools to actually create the views in Notion. Do not write
a spec for another app.
STEP 0: DISCOVER
- Call notion-fetch on each database in my plan to get its data source ID,
real property names/types and existing views.
- Do not create anything that already exists (match by name and type).
Update the existing view instead (notion-update-view).
RULES
- Use real property names only. No emojis anywhere.
- Colors: Notion color names only (blue, green, red, yellow, orange, purple,
gray), never hex.
- Icons: Notion's built-in icons only.
- Do not modify or delete existing properties or data.
- You may add formula properties only when a view needs one (overdue,
days remaining). Name them clearly and list them in the final report.
- No AI features. Do not ask me questions unless a property you need is
missing; in that case, use the closest match and note it.
VIEWS CREATION (notion-create-view, per database)
- Table: All, Active, Archived, My items (Assignee = me), Overdue, Recent
(sorted by Last edited, descending).
- Board: grouped by each Status / Select property.
- Calendar: one per date property.
- Timeline: for start/end date ranges.
- Gallery: only if the database has a cover or image.
- List: for lookup-style databases.
- For each view, set filter, sort, group and visible properties. Name views
as "<Type> - <Purpose>". Set the best default view first.
STEP 4: LEAN SPEC.md (Notion MCP read-only, then one file)
Write ONE enhanced SPEC.md for my app. A coding AI agent (Claude Code, Codex,
Antigravity) will get ONLY this file and must build the app from it with no
questions.
=== INPUT (do not ask me to paste anything) ===
- My SPECS: already in this chat (Step 1).
- Workspace: read the parent page created in Step 1 with notion-fetch.
Fetch each database ONCE, schema only (properties, types, relations,
select options, view names, IDs, data source IDs). Do NOT read rows, do
not re-fetch, do not search. Never create, edit or delete in Notion.
- Design: style keywords [calm, minimal, professional]. Derive the tokens
yourself (light + dark), do not pause or ask me.
Optional overrides: primary #__ accent #__ fonts [__].
=== RULES ===
- Stack: React JS + TypeScript, TanStack Query, Tailwind CSS. Pick the rest
(Vite, router, charts, virtualization, drag and drop, forms, backend proxy,
tests), one line of justification each.
- Backend proxy holds the Notion token (never in the browser), queues
requests at 3 req/s, exposes a typed REST API.
- Notion feeling: keyboard-first, inline editing, views (table, board,
calendar, timeline, gallery, list), peek panel, command palette, optimistic
updates with undo.
- Full CRUD on every database (create, read, update, archive, restore,
duplicate, bulk). Formula and rollup are read-only.
- Add only what fixes real Notion limits: charts, dashboard, saved and global
filters, bulk actions, undo, notifications, virtualization, validation.
- Seed = true rows are demo data: hidden by a toggle, purge with
confirmation.
- Light + dark + system theme, WCAG AA, Font Awesome Free icons, no emojis,
no hex in components (tokens only), NO AI features.
- Tag changes: [FIXED] corrected from my SPECS, [ADDED] missing. Untagged =
original. Decide ambiguities yourself, log them as assumptions.
- BE COMPACT: tables and checklists only, one line per cell, no prose, no
repeated information, no diagrams except 3 short Mermaid flows. Target
under 4,000 words.
=== SPEC.md SECTIONS ===
0. Agent rules: build order, definition of done, no questions, no AI, token
never exposed, tokens only.
1. Overview: goal, users, scope, out of scope (5 lines).
2. Fixes and additions log: ID | Tag | Change | Reason.
3. Data model per database: ID, data source ID, then Property | Type |
Editable | Required | Default | Relation. Then computed fields: Field |
Database | Logic.
4. CRUD matrix: Database | C | R | U | Archive | Restore | Duplicate | Bulk |
Endpoint.
5. User stories: US-001... | Role | Story | Acceptance criteria | Tag.
6. Core flows (max 8): FL-001... | Trigger | Steps | Failure states (empty,
error, offline, conflict, rate limited). Mermaid for the 3 main ones.
7. Business rules: BR-001... | Rule | Trigger | Edge case.
8. Routes and pages: route | page | data | main components.
9. Components: name | props (TS) | data hook | states | keyboard.
10. Views (real ones from Notion): VW-001... | Database | Name | Type |
Filter | Sort | Group | Default | Notion query JSON (one line).
11. Notion limits solved: Limit | App solution | API constraint.
12. Charts and dashboard: chart JSON per chart (id, db, type, x, y,
aggregation, color_tokens), widget grid per breakpoint, where layouts
persist.
13. Smart filters: SF-001... | Name | Scope | Conditions | Shared or personal.
14. Notion integration: proxy endpoints (method | path | purpose), property
mapping, pagination, rate-limit queue, retry, optimistic rollback, sync,
cache keys, what the API cannot do.
15. Design system: light/dark tokens as CSS variables + Tailwind mapping,
fonts, radius, AA check, icon map.
16. Shortcuts: global, view, cell, palette.
17. Project setup: folder tree, packages, scripts, .env.example (names only),
run/test/build commands.
18. Build roadmap: M1..Mn in dependency order. Per milestone: goal, tasks
(checklist), stories covered, acceptance test.
19. Assumptions and open questions: one line each.
End the file with: "SPEC.md complete. Fixed: N. Added: N. Open: N."
In chat, reply with that line and the file only. Do not start coding.
.