Index of every page on this site: llms.txt
All skills
zenstudiolab avatar

/repo-to-notion-architect

@032d25b
Run it yourself

Run this skill whenever a user asks you to "map this repo to Notion", "design a Notion workspace for this project", "set up Notion for this codebase", or "figure out what should go in Notion vs the repo". Also trigger when the user says "I want to use Notion to track this project" and you are inside a local repository. Do NOT trigger on generic Notion questions unrelated to a local codebase. This skill produces a structured Notion workspace design grounded in shell-discovered repo topology, explicit classification heuristics, and a canonical-source decision matrix — never a naive folder mirror.

Use this Skill: https://skilld.dev/gh/zenstudiolab/skills/repo-to-notion-architect

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesnotion-templates.md

≈2.7k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Notion Templates

Database schemas, page templates, and view configurations for repo-to-notion-architect. These are defaults — adapt based on repo complexity and --scale flag.


Database Schemas

DB: Projects

Purpose: One record per top-level Project, Surface, or Service component.

Property Type Values / Config
Name Title component name
Type Select Project, Surface, Service, Library, Infra, Shared
Status Status Not started → In Progress → Launched → Archived
Repo path Text relative path from repo root
Deployed URL URL live URL if applicable
Tech stack Multi-select e.g., Next.js, Supabase, TypeScript
Owner Person leave empty for solo
Canonical source Select Repo, Notion, Both
Parent product Relation → Projects (self) for submodules or nested projects
Features Relation → Features backlink
Docs Relation → Docs Index backlink

Views:

  • All Projects — Table, no filter, sort by Status asc
  • Active — Board, grouped by Status
  • By Type — Table, grouped by Type, sort by Name asc
  • Registry — Gallery, no filter, sort by Name asc

DB: Features

Purpose: One record per significant feature, epic, or capability being built.

Property Type Values / Config
Name Title feature name
Status Status Backlog → In Design → In Dev → In Review → Done
Project Relation → Projects required
Priority Select P0, P1, P2, P3
Size Select XS, S, M, L, XL
Milestone Text version or sprint label
Tasks Relation → Tasks backlink
Plan doc Relation → Plans linked implementation plan
Review Relation → Reviews linked design/code review

Views:

  • Kanban — Board, no filter, grouped by Status
  • Active sprint — Table, filter Status != Done AND != Backlog, sort Priority asc
  • Backlog — Table, filter Status = Backlog, sort Size asc
  • By project — Table, grouped by Project, sort Status asc

DB: Tasks

Purpose: One record per concrete unit of work (maps roughly to a PR or commit cluster).

Note for solo builders: Tasks DB is optional. Add it only when features regularly have >5 sub-steps. Otherwise, Features are granular enough.

Property Type Values / Config
Name Title task description
Status Status Todo → In Progress → Done → Blocked
Feature Relation → Features required
Assignee Person
PR link URL GitHub/GitLab PR URL
Effort Number hours estimate
Blocked by Relation → Tasks (self)

Views:

  • My tasks — Table, filter Assignee = Me, sort Status asc
  • In progress — Table, filter Status = In Progress, sort Feature asc
  • Blocked — Table, filter Status = Blocked

DB: Docs Index

Purpose: Registry of significant documentation files. Does NOT copy content. Content stays in repo. Notion holds the index, status, and cross-links.

Property Type Values / Config
Title Title document title
Doc type Select Architecture, ADR, Plan, Guide, Review, API, Runbook, README
Repo path Text relative path from repo root
Status Select Current, Draft, Stale, Superseded
Project Relation → Projects scope
Related ADR Relation → ADRs
Last reviewed Date

Views:

  • All docs — Table, no filter, sort by Doc type asc
  • Stale — Table, filter Status = Stale, sort Last reviewed asc
  • By project — Table, grouped by Project, sort Doc type asc

DB: ADRs

Purpose: Index of Architecture Decision Records. Content stays in docs/adr/.

Property Type Values / Config
Title Title ADR title
Number Number sequential NNNN
Status Select Proposed, Accepted, Deprecated, Superseded
Date Date decision date
Project Relation → Projects scope
Superseded by Relation → ADRs (self)
Repo path Text e.g., docs/adr/0001-use-postgres.md
Tags Multi-select e.g., database, auth, frontend

Views:

  • All ADRs — Table, no filter, sort by Number asc
  • Active — Table, filter Status = Accepted, sort Number asc
  • By project — Table, grouped by Project, sort Number asc

DB: Plans

Purpose: Index of implementation plans, rollout plans, migration plans.

Property Type Values / Config
Title Title plan name
Status Select Draft, Approved, In Progress, Done, Abandoned
Feature Relation → Features what this plan implements
Project Relation → Projects scope
Repo path Text e.g., docs/plans/active/2026-03-01-auth-refactor.md
Date Date plan creation date
Outcome Text one-line result summary

DB: Reviews

Purpose: Design reviews, code reviews, post-mortems, retros.

Property Type Values / Config
Title Title review name
Review type Select Design, Code, Post-mortem, Retro, Security
Status Select Open, In Review, Closed
Feature Relation → Features what was reviewed
Project Relation → Projects scope
Date Date
Outcome Select Approved, Needs changes, Rejected, Informational

DB: Modules Registry (monorepo only, >3 apps)

Purpose: Registry of all workspace members with classification and dependency graph.

Property Type Values / Config
Name Title package name (from package.json "name")
Type Select Surface, Service, Library, Shared, Infra, Tooling
Repo path Text relative path from root
Version Text semver from package.json
Consumers Relation → Modules Registry (self) packages that import this
Project Relation → Projects parent product
Private Checkbox from package.json "private"
Status Select Active, Deprecated, Experimental

Views:

  • All modules — Table, no filter, sort by Type asc, Name asc
  • Shared / Libraries — Table, filter Type = Shared OR Library
  • Deprecated — Table, filter Status = Deprecated

DB: Environments (repos with deployed services)

Purpose: Track deployment environments per service.

Property Type Values / Config
Name Title e.g., "web — production"
Service Relation → Projects
Env type Select production, staging, preview, local
URL URL live URL
Status Select Healthy, Degraded, Down, Unknown
Last deploy Date
Deploy config Text e.g., vercel.json, fly.toml

Page Structure Templates

Solo builder — normal repo

[Workspace name]
├── Home (dashboard page, manual)
├── Projects [DB]
├── Features [DB]
├── Tasks [DB]              ← optional, add when features have >5 sub-steps
├── Docs Index [DB]
├── ADRs [DB]
├── Plans [DB]
└── Reviews [DB]

Solo builder — monorepo (3–8 apps)

[Workspace name]
├── Home
├── Products (group page)
│   ├── [App 1 name]        ← linked record from Projects DB
│   └── [App 2 name]
├── Projects [DB]
├── Modules Registry [DB]
├── Features [DB]
├── Docs Index [DB]
├── ADRs [DB]
├── Plans [DB]
└── Reviews [DB]

Team — monorepo with services

[Workspace name]
├── Home
├── Products (group page)
├── Projects [DB]
├── Modules Registry [DB]
├── Features [DB]
├── Tasks [DB]
├── Docs Index [DB]
├── ADRs [DB]
├── Plans [DB]
├── Reviews [DB]
└── Environments [DB]

Relation Directions

From Relation To Direction
Features belongs to Projects many-to-one
Tasks belongs to Features many-to-one
Docs Index scoped to Projects many-to-many
ADRs scoped to Projects many-to-many
Plans implements Features many-to-one
Reviews reviews Features many-to-many
Modules Registry consumed by Modules Registry self-referential many-to-many
Environments belongs to Projects many-to-one

Metadata File: .project-tools.json Schema

Use .project-tools.json over alternatives (workspace-tools, tooling-map) because "project" scopes to the product being built without colliding with IDE workspace concepts (VS Code workspaces, pnpm workspaces). It is grep-friendly and vendor-neutral.

All tool fields are nullable so the file can be committed on Day 1 before any tool IDs are known. LLMs and scripts must check for null before using a field.

{
  "$schema": "https://example.com/schemas/project-tools/v1.json",
  "version": "1",
  "project": {
    "name": "my-app",
    "type": "monorepo",
    "repoUrl": "https://github.com/org/my-app",
    "docs": {
      "primary": "./docs",
      "extra": []
    }
  },
  "tools": {
    "notion": {
      "workspaceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "rootPageId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "databases": {
        "projects":    "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "features":    "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "tasks":       "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "docsIndex":   "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "adrs":        "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "plans":       "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "reviews":     "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "modules":     "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      }
    },
    "linear": null,
    "mixpanel": null,
    "figma": null
  },
  "modules": [
    {
      "name": "@my-app/web",
      "path": "apps/web",
      "type": "Surface",
      "notionProjectId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    },
    {
      "name": "@my-app/api",
      "path": "apps/api",
      "type": "Service",
      "notionProjectId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    },
    {
      "name": "@my-app/ui",
      "path": "packages/ui",
      "type": "Library",
      "notionProjectId": null
    }
  ]
}

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts8mo3 checks · Risk SAFE
  • Gen Agent Trust Hub8mo

    This skill is a repository analysis tool designed to generate Notion workspace architectures. It uses standard shell commands to discover project structure and metadata. The analysis is performed locally and no data exfiltration, malicious patterns, or unauthorized remote code execution were detected.

  • Socket8mo

    No alerts

  • Snyk8mo

    Risk: LOW · No issues

Signed by skilld at 032d25b. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 8 months ago

README badge

README badge for zenstudiolab/skills/repo-to-notion-architect