agentleFS
stablebaselinestablebaseline/claude-code/skills/sb-create-doc/SKILL.md

sb-create-doc

Skill1 starsChanged 40 days agoApache-2.0View on GitHub

Create a new Stable Baseline document (CDMD) with optional follow-up diagram/image insertion. Use when user wants to create a document, write docs, or run sb-create-doc.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 4 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create a Stable Baseline document using MCP tools.

    line 9
  2. Very specific:

    If you don't know IDs yet: use listWorkspaces, then listProjects, then listFolders to discover them.

    line 11
  3. Distinctive:

    Write CDMD. Keep it readable and structured.

    line 14
  4. Very specific:

    Do NOT include any diagram/image markers in the cdmd passed to createDocument.

    line 15
  5. Very specific:

    If the user wants diagrams: create the doc first, then call insertDiagramInDocument.

    line 16
  6. Very specific:

    If the user wants images: create the doc first, then call insertImageInDocument (or use createImageUploadSession + PUT + …

    line 17
  7. Very specific:

    Call createDocument with { projectId, folderId (optional), title, cdmd }.

    line 20
  8. Very specific:

    Update .sb/config.json cache.documents with the new document's title mapped to { "id": "<doc-id>", "folderId": "<folder-id-or-null>" }, and …

    line 21
  9. Distinctive:

    If diagrams are requested:

    line 22
  10. Very specific:

    Call insertDiagramInDocument with afterLine placements.

    line 24
  11. Distinctive:

    If images are requested:

    line 25

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Stable Baseline: Create Document

Create a Stable Baseline document using MCP tools.

If you don't know IDs yet: use listWorkspaces, then listProjects, then listFolders to discover them. Or read .sb/config.json for cached IDs.

Rules:

  • Write CDMD. Keep it readable and structured.
  • Do NOT include any diagram/image markers in the cdmd passed to createDocument.
  • If the user wants diagrams: create the doc first, then call insertDiagramInDocument.
  • If the user wants images: create the doc first, then call insertImageInDocument (or use createImageUploadSession + PUT + insertImageInDocument).

Steps:

  1. Call createDocument with { projectId, folderId (optional), title, cdmd }.
  2. Update .sb/config.json cache.documents with the new document's title mapped to { "id": "<doc-id>", "folderId": "<folder-id-or-null>" }, and set cache.lastUpdated to the current ISO 8601 timestamp.
  3. If diagrams are requested:
    • Call listDiagramTypes / getDiagramTypeGuide
    • Call insertDiagramInDocument with afterLine placements.
  4. If images are requested:
    • Prefer upload-session flow.

Reference resources:

  • sb://cdmd-guide for syntax

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.