{"id":"e31822be-4f47-42e5-9bcd-3d15b8bb0b72","shortId":"49L2aN","kind":"skill","title":"autonomous-sync","tagline":"Use this skill when the user wants to keep their Aicoo agent updated automatically, set up scheduled syncs, configure triggers for knowledge updates, use CRON jobs, /loop commands, file watchers, or hooks to push changes to Aicoo. Triggers on: 'auto sync', 'keep updated', 'schedu","description":"# Autonomous Sync — Keep Your Agent Updated\n\nSet up automatic triggers to keep Aicoo knowledge current.\n\n## Prerequisites\n\n- `AICOO_API_KEY` must be set\n- Base URL: `https://www.aicoo.io/api/v1`\n\n## Sync Contract (post-refactor)\n\nUse these endpoints in automation:\n\n1. Search overlap: `POST /api/v1/os/notes/search`\n2. Deterministic grep (exact/regex + context): `POST /api/v1/os/notes/grep`\n3. Snapshot before edits: `POST /api/v1/os/snapshots/{noteId}`\n4. Edit existing note: `PATCH /api/v1/os/notes/{noteId}`\n5. Create new note: `POST /api/v1/os/notes`\n6. Reorganize with move/copy: `POST /api/v1/os/notes/{id}/move`, `POST /api/v1/os/notes/{id}/copy`\n7. Bulk updates: `POST /api/v1/accumulate`\n\n## Strategy 1: Rule-Based (/loop or cron)\n\n### Claude Code `/loop`\n\n```\n/loop 30m sync new decisions and project updates to Aicoo: search existing notes, snapshot before major edits, patch existing notes or create new ones.\n```\n\n### Cron example\n\n```bash\n# daily at 9:00\n0 9 * * * /path/to/aicoo-sync.sh >> /tmp/aicoo-sync.log 2>&1\n```\n\n## Strategy 2: Event-Driven (hooks)\n\n### Claude hooks\n\nAdd to `.claude/settings.json`:\n\n```json\n{\n  \"hooks\": {\n    \"PostToolUse\": [\n      {\n        \"matcher\": \"Write|Edit\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"./aicoo-skills/scripts/sync-detector.sh\"\n          }\n        ]\n      }\n    ]\n  }\n}\n```\n\n## Strategy 3: Conversation-Driven\n\nAfter substantial chat sessions:\n\n```bash\n# 1) search\ncurl -s -X POST \"$PULSE_BASE/os/notes/search\" \\\n  -H \"Authorization: Bearer $AICOO_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"query\":\"database migration strategy\"}' | jq .\n\n# 2) snapshot before overwrite\ncurl -s -X POST \"$PULSE_BASE/os/snapshots/42\" \\\n  -H \"Authorization: Bearer $AICOO_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"label\":\"Pre-update\"}' | jq .\n\n# 3) patch\ncurl -s -X PATCH \"$PULSE_BASE/os/notes/42\" \\\n  -H \"Authorization: Bearer $AICOO_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"content\":\"# Updated content...\"}' | jq .\n```\n\nIf no matching note exists, call `POST /os/notes`.\n\n## What to Sync\n\n- decisions\n- preferences\n- project updates\n- meeting outcomes\n- policy/constraint changes\n\n## Safety Rules\n\n1. Search first to avoid duplicates.\n2. Snapshot before high-impact edits.\n3. Prefer patching canonical notes over creating near-duplicates.\n4. Use accumulate for larger batches.","tags":["autonomous","sync","aicoo","skills","aicoo-team","agent","agent-skills","agentic-ai"],"capabilities":["skill","source-aicoo-team","skill-autonomous-sync","topic-agent","topic-agent-skills","topic-agentic-ai"],"categories":["AICOO-Skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/Aicoo-Team/AICOO-Skills/autonomous-sync","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add Aicoo-Team/AICOO-Skills","source_repo":"https://github.com/Aicoo-Team/AICOO-Skills","install_from":"skills.sh"}},"qualityScore":"0.456","qualityRationale":"deterministic score 0.46 from registry signals: · indexed on github topic:agent-skills · 12 github stars · SKILL.md body (2,417 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T19:07:06.730Z","embedding":null,"createdAt":"2026-05-09T01:05:25.087Z","updatedAt":"2026-05-18T19:07:06.730Z","lastSeenAt":"2026-05-18T19:07:06.730Z","tsv":"'/aicoo-skills/scripts/sync-detector.sh':203 '/api/v1':74 '/api/v1/accumulate':133 '/api/v1/os/notes':109,116,122,126 '/api/v1/os/notes/grep':96 '/api/v1/os/notes/search':89 '/api/v1/os/snapshots':102 '/copy':128 '/loop':30,139,144,145 '/move':124 '/os/notes':297 '/path/to/aicoo-sync.sh':178 '/tmp/aicoo-sync.log':179 '0':176 '00':175 '1':85,135,181,214,311 '2':90,180,183,239,317 '3':97,205,266,324 '30m':146 '4':104,334 '5':111 '6':117 '7':129 '9':174,177 'accumul':336 'add':190 'agent':15,52 'aicoo':14,40,60,64,154,225,252,277 'api':65,226,253,278 'application/json':232,259,284 'author':223,250,275 'auto':43 'autom':84 'automat':17,56 'autonom':2,48 'autonomous-sync':1 'avoid':315 'base':70,138 'base/os/notes/42':273 'base/os/notes/search':221 'base/os/snapshots/42':248 'bash':171,213 'batch':339 'bearer':224,251,276 'bulk':130 'call':295 'canon':327 'chang':38,308 'chat':211 'claud':142,188 'claude/settings.json':192 'code':143 'command':31,201,202 'configur':22 'content':230,257,282,286,288 'content-typ':229,256,281 'context':94 'contract':76 'convers':207 'conversation-driven':206 'creat':112,166,330 'cron':28,141,169 'curl':216,243,268 'current':62 'd':233,260,285 'daili':172 'databas':235 'decis':149,301 'determinist':91 'driven':186,208 'duplic':316,333 'edit':100,105,161,198,323 'endpoint':82 'event':185 'event-driven':184 'exact/regex':93 'exampl':170 'exist':106,156,163,294 'file':32 'first':313 'grep':92 'h':222,228,249,255,274,280 'high':321 'high-impact':320 'hook':35,187,189,194,199 'id':123,127 'impact':322 'job':29 'jq':238,265,289 'json':193 'keep':12,45,50,59 'key':66,227,254,279 'knowledg':25,61 'label':261 'larger':338 'major':160 'match':292 'matcher':196 'meet':305 'migrat':236 'move/copy':120 'must':67 'near':332 'near-dupl':331 'new':113,148,167 'note':107,114,157,164,293,328 'noteid':103,110 'one':168 'outcom':306 'overlap':87 'overwrit':242 'patch':108,162,267,271,326 'policy/constraint':307 'post':78,88,95,101,115,121,125,132,219,246,296 'post-refactor':77 'posttoolus':195 'pre':263 'pre-upd':262 'prefer':302,325 'prerequisit':63 'project':151,303 'puls':220,247,272 'push':37 'queri':234 'refactor':79 'reorgan':118 'rule':137,310 'rule-bas':136 'safeti':309 'schedu':47 'schedul':20 'search':86,155,215,312 'session':212 'set':18,54,69 'skill':6 'skill-autonomous-sync' 'snapshot':98,158,240,318 'source-aicoo-team' 'strategi':134,182,204,237 'substanti':210 'sync':3,21,44,49,75,147,300 'topic-agent' 'topic-agent-skills' 'topic-agentic-ai' 'trigger':23,41,57 'type':200,231,258,283 'updat':16,26,46,53,131,152,264,287,304 'url':71 'use':4,27,80,335 'user':9 'want':10 'watcher':33 'write':197 'www.aicoo.io':73 'www.aicoo.io/api/v1':72 'x':218,245,270","prices":[{"id":"790b7991-db38-4cb3-8298-a08d91cdb26e","listingId":"e31822be-4f47-42e5-9bcd-3d15b8bb0b72","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"Aicoo-Team","category":"AICOO-Skills","install_from":"skills.sh"},"createdAt":"2026-05-09T01:05:25.087Z"}],"sources":[{"listingId":"e31822be-4f47-42e5-9bcd-3d15b8bb0b72","source":"github","sourceId":"Aicoo-Team/AICOO-Skills/autonomous-sync","sourceUrl":"https://github.com/Aicoo-Team/AICOO-Skills/tree/main/skills/autonomous-sync","isPrimary":false,"firstSeenAt":"2026-05-09T01:05:25.087Z","lastSeenAt":"2026-05-18T19:07:06.730Z"}],"details":{"listingId":"e31822be-4f47-42e5-9bcd-3d15b8bb0b72","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"Aicoo-Team","slug":"autonomous-sync","github":{"repo":"Aicoo-Team/AICOO-Skills","stars":12,"topics":["agent","agent-skills","agentic-ai"],"license":"mit","html_url":"https://github.com/Aicoo-Team/AICOO-Skills","pushed_at":"2026-05-05T14:10:59Z","description":"An official set of skills to share, maintain and connect personal AI Agents.","skill_md_sha":"b116c08c26c34ae3b08cf63cd64e129a9a16a7f2","skill_md_path":"skills/autonomous-sync/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/Aicoo-Team/AICOO-Skills/tree/main/skills/autonomous-sync"},"layout":"multi","source":"github","category":"AICOO-Skills","frontmatter":{"name":"autonomous-sync","description":"Use this skill when the user wants to keep their Aicoo agent updated automatically, set up scheduled syncs, configure triggers for knowledge updates, use CRON jobs, /loop commands, file watchers, or hooks to push changes to Aicoo. Triggers on: 'auto sync', 'keep updated', 'schedule', 'CRON', 'loop', 'trigger', 'watch files', 'auto update', 'periodic sync', 'hook', 'autonomous'."},"skills_sh_url":"https://skills.sh/Aicoo-Team/AICOO-Skills/autonomous-sync"},"updatedAt":"2026-05-18T19:07:06.730Z"}}