to-cms
Skill3 starsChanged 3 months agoMITView on GitHub
Ingest a content package (markdown/archive) into Notion Publisher CMS rows ready for button publish. Auto-detects Layer/Source Tags/Channels from package frontmatter, calling producer skill cms: contract, or heuristics. Never calls publish webhooks. Triggers: /to-cms, "ingesta al CMS", "manda a Notion Publisher".
In this repository25 other files it gives its agents.
- govern-agentic-osSkill
- hallazgoSkill
- loop-corpSkill
- no-devSkill
- orca-handoffSkill
- reporte-gmSkill
- clone-software-repoSkill
- game-designer-ueSkill
- obsidian-plugin-releaseSkill
- readme-commitSkill
- repo-syncSkill
- ship-ossSkill
- start-cc+lvSkill
- wavespeedSkill
- wayfinder-sequentialSkill
- hackathon-promoSkill
- promo-webinarSkill
- sundai-campana-hackSkill
- autocommitSkill
- obsidianizerSkill
- repo-auditSkill
- daily-review-workflowSkill
- data-source-dashboardSkill
- research-pipelineSkill
- youtube-searchSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
Write Notion only: Never call /webhooks/publish-*, ngrok, Gumroad/Postly/Luma/Composio publish APIs.
- Very specific: line 54
Read the package. Parse YAML frontmatter + # sections.
- Very specific: line 67
If missing blocks minimum (title + at least one Layer + one Source Tag) → stop and ask for contract/fields.
≈ “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.
Files
to-cms
Turn a content package into Notion Publisher row(s) with * Publish Status = Not started. You press the Notion button; this skill does not publish.
Language: skill docs English. Conversation may stay Spanish.
Skill dir: $SKILL_DIR = directory containing this SKILL.md.
Hard rules
- Write Notion only. Never call
/webhooks/publish-*, ngrok, Gumroad/Postly/Luma/Composio publish APIs. - Multi by default. One package → one page per Layer group (Products / Social / Events / Music).
- Refuse unclear packages without
cms:frontmatter, producercms:contract, or strong heuristics — tell user to add the contract (seereferences/channel-contract.md). - Live writes need notion-publisher repo env (
NOTION_TOKEN,NOTION_DATABASE_ID→ Publisher).
Inputs
| Input | Role |
Path to .md or folder with package.md | Content package |
Optional --sources=Gumroad,Postly | Force Source Tags (override) |
Optional --channels=Reddit | Force Channels |
Optional --live | Create Notion pages (default = dry-run resolve only) |
| Calling producer skill | Its cms: block feeds the resolver |
Resolver priority (union for targets)
- User explicit override (
--sources=/ “solo Gumroad”) - Package frontmatter
cms: - Calling producer skill
cms:(frontmatter of that skill) - Heuristics on headings/filenames — see
references/channel-contract.md
Workflow
1. Load
Read the package. Parse YAML frontmatter + # sections. If folder: prefer package.md, keep sibling asset paths for the checklist.
2. Resolve
Run:
node "$SKILL_DIR/scripts/resolve-channels.mjs" --package="<path>"
# optional: --sources=Gumroad,Postly --channels=Reddit --producer-skill="<path/to/SKILL.md>"Expect JSON: { layers, sources, channels, pages[], missing[], buttons[] }.
If missing blocks minimum (title + at least one Layer + one Source Tag) → stop and ask for contract/fields.
3. Map fields
Map body sections → Publisher props using references/property-map.md (pointer to notion-publisher SSOT). Do not invent stub-channel props.
4. Dry-run vs live
Default (no --live): print resolved pages + missing checklist + which Notion buttons apply. Stop.
--live: from a checkout of notion-publisher (Nucleo-Lab / this vault workspace gumroad-published):
npm run to-cms -- --package="<absolute-path>" [--sources=...] [--channels=...]Script creates page(s), prints Notion URLs + button list. Still never publishes.
5. Done output
Always return:
- Notion page URL(s) (or dry-run payload)
- Checklist of missing recommended fields
- Buttons to press (
Publish in Gumroad,Publish in Social,Publish in Composio, …) - Explicit: “publish = Notion button;
/to-cmsdoes not publish”
Companions
references/channel-contract.md— producer + packagecms:schemareferences/property-map.md— where the Notion prop SSOT livesscripts/resolve-channels.mjs— deterministic resolver + fixture checkfixtures/sample-package.md— Products+Social multi sample
Adoption (producer skills)
Any vault skill that emits Publisher-bound packages must declare a cms: block (frontmatter or ## CMS channels). Document only in this slice — no mass-edit of all F100K skills.
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
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.

