context-audit
Audit an agent's context layout against the four places: system prompt, tools, history, tail. Use when the user asks to audit,…
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
Claude Code
$ npx -y skills add undefined-ui/second-brain-os --skill second-brain-publish --agent claude-code
Codex
$ npx skills add undefined-ui/second-brain-os --skill second-brain-publish -a codex -y
Cursor
$ npx skills add undefined-ui/second-brain-os --skill second-brain-publish -a cursor -y
Gemini CLI
$ npx skills add undefined-ui/second-brain-os --skill second-brain-publish -a gemini-cli -y
GitHub Copilot
$ npx skills add undefined-ui/second-brain-os --skill second-brain-publish -a github-copilot -y
OpenCode
$ npx skills add undefined-ui/second-brain-os --skill second-brain-publish -a opencode -y
Windsurf
$ npx skills add undefined-ui/second-brain-os --skill second-brain-publish -a windsurf -y
name: second-brain-publish description: >- 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.
Once something is crawled, it is out. Every check here is cheap; the failure it prevents is permanent.
Explicit opt-in only. A page publishes because it says `publish: true`, never because nothing excluded it.
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.
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>
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.
Guides and resources for AI engineers: a course on building agents, five handbooks that go deep on one layer each, hands-on projects, and the links worth your time.
Audit an agent's context layout against the four places: system prompt, tools, history, tail. Use when the user asks to audit,…
Scaffold a first eval suite for an agent: mine real failures into cases, write behavioural checks over traces, and generate the…
Find the decisions in a pipeline that do not need the expensive model and propose the gate for each: a rule, a classic…
Turn a vague task into a testable definition of done and generate an executable goal-test script for it, optionally with a…
Audit an agent's harness against the four rings: containment, guides, sensors, permissions. Use when the user asks whether their…
Import a large archive into the vault in controlled batches: triage what is worth ingesting, process oldest first, checkpoint…
Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress…
Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…