Mentore Manager – Notion Prototype
Work with the Prototype Mentore Manager Notion space using the Notion MCP. All actions are scoped to that prototype; other Notion content is out of scope.
When clarification is needed (e.g., which database, which page, ambiguous name), ask the user in chat before proceeding. Do not guess.
Scope (strict)
- In scope: Only content under the "Prototype Mentore Manager" page (by parent hierarchy). Only Notion databases whose title ends with:
(mm)– core Mentore Manager(mm biblio)– Library feature (avoids name clashes)
- Out of scope: Any page or database that is not under "Prototype Mentore Manager", or any database that does not end with
(mm)or(mm biblio). Ignore those.
Use Notion MCP tools: notion-search, notion-fetch, notion-update-data-source, notion-create-pages, notion-update-page, etc., as needed for each workflow.
1. Infer database schema
When: User says "infer db schema", "infer schema", or similar, and provides or identifies a Notion database.
Steps:
- Resolve the database
- If the user gave a name/URL, search with
notion-search(query typeinternal) scoped to the Prototype Mentore Manager context, or fetch by URL/ID. - Confirm the database title ends with
(mm)or(mm biblio). If not, tell the user it is out of scope.
- If the user gave a name/URL, search with
- Fetch the database
- Use
notion-fetchwith the database URL or ID to get the full schema: property names, types, and options (e.g. select/multi_select options, relation targets).
- Use
- Infer schema for code
- Map Notion property types to your app’s schema (e.g. Supabase/Postgres or app types):
- title → typically primary display / label
- rich_text → text/varchar
- number → integer/numeric
- select, multi_select → enum or lookup tables
- date → date/timestamptz
- relation → foreign keys / relations
- checkbox → boolean
- url, email, phone_number → appropriate column types
- Output a clear schema summary (tables, columns, types, relations) that can be used for migrations or type definitions. Note any ambiguities and ask the user if needed.
- Map Notion property types to your app’s schema (e.g. Supabase/Postgres or app types):
2. Review / analyze Notion (MVP readiness)
When: User says "review notion", "analyze notion", or wants a review of the prototype for the app.
Steps:
- Find the prototype root
- Search for "Prototype Mentore Manager" and fetch that page to confirm hierarchy and child pages/databases.
- List in-scope databases
- Identify all databases under that hierarchy whose titles end with
(mm)or(mm biblio). Fetch each to get structure.
- Identify all databases under that hierarchy whose titles end with
- Analyze and recommend
- Props: Missing or inconsistent properties (e.g. status, dates, assignees, relations).
- Page names / structure: Naming consistency, clarity, alignment with app screens/features.
- Databases (data sources): Gaps (e.g. missing entity types), redundant or duplicate concepts.
- Relations: Missing relations between databases, or relation direction/meaning that should be clarified for the app.
- Output
- Short executive summary.
- Bulleted recommendations per area (props, page names, databases, relations).
- Goal: MVP UX is ready in Notion and the codebase stays in sync on core concepts, schema, and relations.
3. Add or suggest props for a database
When: User says "add props", "what props would you add?", or similar, and refers to a specific database (by name or context).
Steps:
- Resolve and fetch the database
- Identify the database (must end with
(mm)or(mm biblio)and be under Prototype Mentore Manager). Fetch it withnotion-fetchto get current properties and types.
- Identify the database (must end with
- Analyze context
- Consider the database’s role in the app (e.g. courses, members, library items), what the system needs (e.g. status, dates, ownership), and what the user should see in the finished app.
- Suggest missing props
- List current props, then suggest new ones with:
- Property name
- Notion type (select, date, relation, etc.)
- Brief reason (system need vs user need).
- If the user asked to add props, use
notion-update-data-sourceto add properties; confirm with the user before applying changes. If the user asked what you would add, output recommendations only and offer to apply after validation.
- List current props, then suggest new ones with:
- Validate with the user
- Summarize changes or suggestions and ask for confirmation before creating or updating properties in Notion.
4. Implémenter un ticket (du Suivi de projet)
When: L'agent s'apprête à coder une fonctionnalité issue d'un ticket Notion (typiquement après avoir utilisé le skill suivi-de-projet pour identifier le ticket).
Règle fondamentale : avant d'écrire la moindre ligne de code, chercher et lire la page prototype correspondante dans Prototype Mentore Manager. Le prototype est la spécification vivante de l'UI, du schéma DB et des relations.
Steps:
-
Lire le ticket
- Fetch le ticket depuis Notion (via le skill
suivi-de-projet) : titre, description, type, projet associé. - Identifier le nom de la fonctionnalité / entité cible (ex. "CRM", "Clients", "Formations").
- Fetch le ticket depuis Notion (via le skill
-
Chercher la page prototype
notion-searchdans le scope Prototype Mentore Manager avec le nom de la fonctionnalité.- Confirmer que la page trouvée est bien sous "Prototype Mentore Manager" (vérifier
ancestor-path). - Si aucune page prototype n'est trouvée : demander à l'utilisateur plutôt que de supposer. Ne pas inventer de specs.
-
Lire les specs du prototype
notion-fetchsur la page prototype → lire le contenu : UI, flux, propriétés, bases de données liées ((mm)ou(mm biblio)).- Pour les bases de données liées : fetch leur schéma (propriétés, types, relations) — c'est la source de vérité pour le schéma Drizzle/Supabase.
-
Implémenter
- Coder la fonctionnalité en suivant le prototype (UI avec svelte5-stack, DB avec supabase-database-migration).
- Reproduire fidèlement les propriétés et relations telles qu'elles apparaissent dans le prototype.
-
Mettre à jour le ticket
- Après implémentation validée : utiliser le skill
suivi-de-projet(Workflow 4) pour passer le ticket à⏳ En coursau début, puis✅ Faitune fois terminé et testé.
- Après implémentation validée : utiliser le skill
-
Ajouter un récap sur le ticket
- Si l'utilisateur demande d'ajouter un récap (en français) sur la page Notion du ticket : ne jamais l'ajouter au contenu de la page. Toujours utiliser le skill
suivi-de-projet, Workflow 7 : ajouter un commentaire sur la page du ticket, avec un préfixe indiquant clairement que c'est l'agent qui laisse le récap, et en mentionnant Anthony.
- Si l'utilisateur demande d'ajouter un récap (en français) sur la page Notion du ticket : ne jamais l'ajouter au contenu de la page. Toujours utiliser le skill
Additional resources
- Trigger phrases, scope summary, and Notion→app type mapping: reference.md