second-brain-publish
Skill891 starsChanged 3 months agoMITView on GitHub
Prepare a subset of the vault for publishing: check opt-in flags, find private material, and report what would leak through links before anything is exported. Use this skill when the user wants to publish notes as a site or digital garden, asks what is safe to make public, or is setting up an export. Do NOT use for exporting a single document, or for running the publishing tool itself.
In this repository18 other files it gives its agents.
- vault-template/CLAUDE.mdCLAUDE.md
- second-brain-backfillSkill
- second-brain-changed-my-mindSkill
- second-brain-chat-importSkill
- second-brain-graphSkill
- second-brain-ingestSkill
- second-brain-lintSkill
- second-brain-mergeSkill
- second-brain-metricsSkill
- second-brain-privacySkill
- second-brain-projectSkill
- second-brain-querySkill
- second-brain-quizSkill
- second-brain-renameSkill
- second-brain-reportSkill
- second-brain-reviewSkill
- second-brain-transcriptSkill
- second-brain-writeSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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
- Distinctive: line 23
List the opt-in set: Every page marked for publication.
- Distinctive: line 48
If the user asks to publish the whole vault, ask what they intend to do about the private material rather than proceeding.
≈ “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
Prepare to publish
Once something is crawled, it is out. Every check here is cheap; the failure it prevents is permanent.
Core rule
Explicit opt-in only. A page publishes because it says publish: true, never
because nothing excluded it.
Workflow
- List the opt-in set. Every page marked for publication.
- Follow their links. A published page linking to a private one either leaks the title or produces a dead link. Report both.
- Scan for anything that should never ship: credentials, other people's private information, confidential work, personal detail in examples.
- Check the frontmatter for fields not meant to be public, such as confidence labels or private source paths.
- Report, do not export. The user runs the build.
Output format
Publishable: <n> pages
Links to unpublished pages: <n>
[[public page]] -> [[private page]]
Flagged content: <list with reasons>
Frontmatter to strip: <fields>
Verdict: <safe to build | fix these first>Calibration
Err toward flagging. A false positive costs the user ten seconds; a miss is permanent.
If the user asks to publish the whole vault, ask what they intend to do about the private material rather than proceeding.
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.

