snapshots
Skill35 starsChanged 4 months agoMITView on GitHub
Use this skill when the user wants to save a version of a note, create a backup before editing, list previous versions, restore a note to an earlier state, or manage note history. Triggers on: 'save version', 'snapshot', 'backup note', 'restore', 'rollback', 'version history', 'undo changes', 'previous version'.
- Reads credentials
- Sends data out
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- aicooSkill
- autonomous-syncSkill
- build-memorySkill
- check-messagesSkill
- compile-identitySkill
- connect-local-agentSkill
- context-syncSkill
- daily-briefSkill
- discoverSkill
- examine-sandboxSkill
- group-chatSkill
- heartbeatSkill
- inbox-monitoringSkill
- invite-teamSkill
- onboardingSkill
- raw-memorySkill
- share-agentSkill
- squareSkill
- start-aicooSkill
- talk-to-agentSkill
- todosSkill
The file
Files
Snapshots — Note Versioning
Save, list, and restore note versions using Aicoo OS endpoints.
Prerequisites
AICOO_API_KEYmust be set- Base URL:
https://www.aicoo.io/api/v1
API Endpoints
GET /api/v1/os/snapshots/{noteId}POST /api/v1/os/snapshots/{noteId}POST /api/v1/os/snapshots/{noteId}/restore
Save a Snapshot
curl -s -X POST "https://www.aicoo.io/api/v1/os/snapshots/42" \
-H "Authorization: Bearer $AICOO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"label":"Before Q2 update"}' | jq .List Snapshots
curl -s "https://www.aicoo.io/api/v1/os/snapshots/42?limit=10" \
-H "Authorization: Bearer $AICOO_API_KEY" | jq .Restore a Snapshot
curl -s -X POST "https://www.aicoo.io/api/v1/os/snapshots/42/restore" \
-H "Authorization: Bearer $AICOO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"versionId":7}' | jq .Restore auto-backs up current state first.
Snapshot-Before-Edit Pattern
# 1) backup
curl -s -X POST "$PULSE_BASE/os/snapshots/42" \
-H "Authorization: Bearer $AICOO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"label":"Pre-edit backup"}' | jq .
# 2) edit
curl -s -X PATCH "$PULSE_BASE/os/notes/42" \
-H "Authorization: Bearer $AICOO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"content":"# Updated content..."}' | jq .Scheduled Backup Pattern
# list notes in a folder
NOTES=$(curl -s "$PULSE_BASE/os/notes?folderId=5&limit=200" \
-H "Authorization: Bearer $AICOO_API_KEY" | jq -r '.notes[].id')
# backup each
for id in $NOTES; do
curl -s -X POST "$PULSE_BASE/os/snapshots/$id" \
-H "Authorization: Bearer $AICOO_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"label\":\"Pre-sync $(date +%Y-%m-%d)\"}" | jq .success
doneGuest Access Guidance
Guest write scope still depends on notesAccess on the share link:
read: can view/search noteswrite: can create notesedit: can edit notes and use snapshots
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.

