agentleFS
undefined-uiundefined-ui/second-brain-os/skills/second-brain-publish/SKILL.md

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.

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
  1. Distinctive:

    List the opt-in set: Every page marked for publication.

    line 23
  2. Distinctive:

    If the user asks to publish the whole vault, ask what they intend to do about the private material rather than proceeding.

    line 48

≈ “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

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

  1. List the opt-in set. Every page marked for publication.
  2. Follow their links. A published page linking to a private one either leaks the title or produces a dead link. Report both.
  3. Scan for anything that should never ship: credentials, other people's private information, confidential work, personal detail in examples.
  4. Check the frontmatter for fields not meant to be public, such as confidence labels or private source paths.
  5. 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.

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.