agentleFS
superuser-palsuperuser-pal/awesome-second-brain/.claude/skills/create-domain/SKILL.md

create-domain

Skill14 starsChanged 7 months agoMITView on GitHub

Create and manage vault domains (organized knowledge areas). USE WHEN create domain, new domain, domain structure, validate domain, check domain, map domain, sync domain, archive domain, housekeeping.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every domain follows this structure:

    line 13

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

create-domain

Domain lifecycle management for the PAL Second Brain vault. Domains live under domains/ and provide structured, isolated workspaces for distinct areas of life and work.

Domain Structure

Every domain follows this structure:

domains/[DomainName]/
├── INDEX.md          # Domain entry point (MOC with wikilinks)
├── CONNECTIONS.yaml  # External integrations config (APIs, docs, data sources)
├── 01_PROJECTS/      # Active project files (PROJECT_*.md)
├── 02_PAGES/         # Knowledge processed and archived within the domain, routed from the inbox
└── 03_ARCHIVE/       # Completed/deprecated content

Naming Conventions

ItemConventionExample
Domain directoryPascalCaseLaraLou/, PalFramework/
Domain subfoldersNN_ALLCAPS01_PROJECTS/, 02_PAGES/
INDEX.mdUPPERCASE.mdINDEX.md
CONNECTIONS.yamlUPPERCASE.yamlCONNECTIONS.yaml
Project filesPROJECT_UPPER_SNAKE.mdPROJECT_Q2_LAUNCH.md
Page fileskebab-case.mdmeeting-notes-april.md
Archive filesPreserve original nameNo renaming

Workflow Routing

WorkflowTriggerFile
create-domain"create domain", "new domain"workflows/create-domain.md
validate-domain"validate domain", "check domain"workflows/validate-domain.md
map-domain"map domain", "sync domain", "housekeeping"workflows/map-domain.md
archive-domain"archive domain", "deprecate domain"workflows/archive-domain.md

Examples

Example 1: Create a new domain

User: "Create a domain for my Substack project"
-> Invokes create-domain workflow
-> Asks for name + description
-> Creates domains/Substack/ with 01_PROJECTS/, 02_PAGES/, 03_ARCHIVE/ and CONNECTIONS.yaml
-> Generates INDEX.md with frontmatter + MOC structure + wikilinks
-> Updates CLAUDE.md domain registry

Example 2: Validate domain structure

User: "Check my LaraLou domain"
-> Invokes validate-domain workflow
-> Verifies folder structure, naming conventions, frontmatter
-> Reports issues with suggested fixes

Example 3: Sync domain after session

User: "Map the Pal domain"
-> Invokes map-domain workflow
-> Scans all folders, enforces naming
-> Refreshes INDEX.md Active Work table from 01_PROJECTS/
-> Reports summary

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.