sb-update
Skill1 starsChanged 40 days agoApache-2.0View on GitHub
Update Stable Baseline documentation with changes, decisions, and knowledge from the current conversation. Use mid-conversation when architectural changes, key decisions, or important implementation details need to be captured. Use when user says sb-update, update docs, sync docs, or capture changes.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- philippe-desplats/second-braintheir own version, first seen Nov 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- philippe-desplats/second-brain★ 8same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- sb-agentSkill
- sb-connectSkill
- sb-create-diagramSkill
- sb-create-docSkill
- sb-create-whiteboardSkill
- sb-dashboardSkill
- sb-databaseSkill
- sb-edit-docSkill
- sb-edit-whiteboardSkill
- sb-manage-dataSkill
- sb-manage-imagesSkill
- sb-searchSkill
- sb-setupSkill
- sb-syncSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
26 rules. About 0 are common, 10 are distinctive, and 16 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
16
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Follow this workflow EXACTLY:
- Very specific: line 17
Read .sb/config.json to get the workspaceId, projectId, AND the cache object (cache.documents, cache.folders, cache.lastUpdated).
- Distinctive: line 37
Use a cache-first approach to find existing documents:
- Very specific: line 39
Check cache.documents from .sb/config.json for each change area from Step 2.
- Very specific: line 40
Cache HIT: Call getDocument directly with the cached document ID (skip getProjectHierarchy).
- Very specific: line 43
If cache.documents is empty or missing, call getProjectHierarchy once, map all documents, and populate the cache.
- Very specific: line 53
Call getDocument to read the current content and get the versionTimestamp (required for optimistic locking)
- Very specific: line 55
Call editDocument with targeted patches, NOT full rewrites
- Distinctive: line 58
Patch, don't rewrite: Only change the sections that are affected.
- Distinctive: line 61
Update, don't duplicate: If the document already covers a topic, update that section in-place rather than adding a new section that repeats …
- Very specific: line 63
Update cache: After all edits in this step, update .sb/config.json cache.lastUpdated to the current ISO 8601 timestamp.
- Distinctive: line 69
If a change area has no matching document:
- Very specific: line 72
Call createDocument in that folder with well-structured content
- Very specific: line 73
Follow CDMD format (read sb://cdmd-guide if unsure about syntax)
- Very specific: line 74
Update .sb/config.json cache.documents with the new document's title mapped to { "id": "<doc-id>", "folderId": "<folder-id-or-null>" }
- Distinctive: line 76
Only create new documents for substantial new areas.
- Distinctive: line 82
If the changes affect system architecture, data flow, component relationships, or any visual structure:
- Very specific: line 84
Check if existing diagrams need updating (read sb://diagram-types for available types)
- Very specific: line 85
Use insertDiagramInDocument to add new diagrams where they aid understanding
- Distinctive: line 86
Prefer updating existing diagrams over creating duplicates
- Distinctive: line 98
After all updates are complete, provide a summary:
- Very specific: line 105
Use sb tools for ALL operations
- Very specific: line 106
ALWAYS call getDocument before editDocument (versionTimestamp is required)
- Very specific: line 107
NEVER manually write or edit DIAGRAM_OMITTED, IMAGE_OMITTED, or <!-- DIAGRAM: ...
- Very specific: line 108
Prefer editDocument with small patches over full document rewrites
- Distinctive: line 110
Document the "why" behind decisions, not just the "what"
≈ “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.
Files
Stable Baseline: Update Documentation
You are updating Stable Baseline documentation to reflect changes, decisions, or knowledge from this conversation.
Follow this workflow EXACTLY:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ STEP 1: Read Configuration ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Read .sb/config.json to get the workspaceId, projectId, AND the cache object (cache.documents, cache.folders, cache.lastUpdated). If the file doesn't exist, ask the user which workspace and project to update.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ STEP 2: Analyse Conversation Context ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Review what was changed or decided in this conversation. Identify:
- Code changes: Files modified, features added, bugs fixed, refactors performed
- Architectural decisions: Design choices, tradeoffs considered, patterns adopted or rejected
- Key decisions: Why something was done a certain way (the rationale, not just the what)
- New knowledge: Discovered constraints, gotchas, limitations, or important context
- Schema changes: Database migrations, new tables/columns, RLS policy changes
- API changes: New endpoints, modified contracts, auth flow changes
For each item, determine which Stable Baseline document it belongs to.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ STEP 3: Discover Existing Documentation ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Use a cache-first approach to find existing documents:
- Check
cache.documentsfrom.sb/config.jsonfor each change area from Step 2.- Cache HIT: Call
getDocumentdirectly with the cached document ID (skipgetProjectHierarchy). - Cache MISS or 404: Fall back to
getProjectHierarchywith the projectId, find the document, then updatecache.documentswith the discovered ID.
- Cache HIT: Call
- If
cache.documentsis empty or missing, callgetProjectHierarchyonce, map all documents, and populate the cache.
Map each change area from Step 2 to an existing document. If no document exists for a change area, note it for creation in Step 5.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ STEP 4: Update Existing Documents ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
For each document that needs updating:
- Call
getDocumentto read the current content and get theversionTimestamp(required for optimistic locking) - Determine what sections need to be added, updated, or expanded
- Call
editDocumentwith targeted patches, NOT full rewrites
Rules for editing:
- Patch, don't rewrite: Only change the sections that are affected. Leave everything else untouched.
- Capture rationale: For architectural decisions, document WHY the decision was made, what alternatives were considered, and what tradeoffs were accepted.
- Be specific: Include file paths, function names, configuration keys (concrete references that a developer can follow).
- Update, don't duplicate: If the document already covers a topic, update that section in-place rather than adding a new section that repeats it.
- Timestamp decisions: For significant architectural decisions, note when they were made (use the current date).
- Update cache: After all edits in this step, update
.sb/config.jsoncache.lastUpdatedto the current ISO 8601 timestamp.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ STEP 5: Create New Documents (if needed) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
If a change area has no matching document:
- Identify the most appropriate existing folder for the new document
- Call
createDocumentin that folder with well-structured content - Follow CDMD format (read
sb://cdmd-guideif unsure about syntax) - Update
.sb/config.jsoncache.documentswith the new document's title mapped to{ "id": "<doc-id>", "folderId": "<folder-id-or-null>" }
Only create new documents for substantial new areas. Minor changes should be folded into existing documents.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ STEP 6: Generate or Update Diagrams (if applicable) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
If the changes affect system architecture, data flow, component relationships, or any visual structure:
- Check if existing diagrams need updating (read
sb://diagram-typesfor available types) - Use
insertDiagramInDocumentto add new diagrams where they aid understanding - Prefer updating existing diagrams over creating duplicates
Diagram types to consider:
- Architecture changes suggest C4 Context/Container diagrams, component diagrams
- Data model changes suggest entity-relationship diagrams (ERD)
- Flow changes suggest sequence diagrams, flowcharts, BPMN
- API changes suggest sequence diagrams showing request/response flows
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ STEP 7: Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
After all updates are complete, provide a summary:
- List each document updated (with document name and what was changed)
- List any new documents created
- List any diagrams added or updated
- Note any areas that may need future documentation but weren't covered
IMPORTANT RULES:
- Use
sbtools for ALL operations - ALWAYS call
getDocumentbeforeeditDocument(versionTimestamp is required) - NEVER manually write or edit
DIAGRAM_OMITTED,IMAGE_OMITTED, or<!-- DIAGRAM: ... -->markers: use the dedicated diagram/image tools - Prefer
editDocumentwith small patches over full document rewrites - For bulk text substitutions use
findAndReplaceTextInDocument - Document the "why" behind decisions, not just the "what"
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.

