/Aicoo Agent Skills:build-memoryfrom Aicoo Agent Skills
Builds or refreshes an Aicoo agent's memory by scanning local files, repo, git history, or docs and synthesizing identity files (USER.md, COO.md, POLICY.md, MEMORY.md).
Ships in Aicoo Agent Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Your agent's memory is notes under /Memory. /Memory/Self/ holds the
identity files that shape how the agent thinks and what it knows:
USER.md — who the owner is (role, stack, current work, expertise, goals)COO.md — the agent's voice and operating stylePOLICY.md — boundaries (what to share, what never to share)MEMORY.md — long-term facts, projects, preferences, learned patternsBuilding memory = reading the user's real context, synthesizing it, and writing these files. This is more powerful than a generic importer because you (the agent) can read the actual repo, git history, and docs and reason about what matters.
Requires being signed in — see the onboarding skill. Resolve the token first
with the pack's scripts/aicoo-auth.sh (auto-refreshes):
export AICOO_API_KEY="$(bash /path/to/aicoo-skills/scripts/aicoo-auth.sh)".
Don't guess the source — ask, then use what they pick:
"Where should I build your memory from? I can use: • this folder / repo (I'll read the code, docs, and git history) • a different local folder — tell me the path • Notion or Google Docs — I'll point you to the importer • just tell me about yourself — we skip files"
Pull the strongest available signals; adapt to what exists (use the folder the user named, or the current one):
cat README.md package.json pyproject.toml Cargo.toml 2>/dev/null | head -200
git log --oneline -30 2>/dev/null
git shortlog -sn 2>/dev/null | head
ls docs/ notes/ 2>/dev/null
cat CLAUDE.md AGENTS.md .claude/*.md 2>/dev/null | head -200
Read domain/architecture/decision docs. If signals are thin, ask the user 2–3 targeted questions (role, what they're building, how they want their agent to behave) rather than writing empty files.
Draft the four identity files from what you found. Be concrete and specific —
real project names, real stack, real facts. MEMORY.md should be a running
list of durable facts/projects/preferences, not prose.
Structure MEMORY.md like:
# Long-term Memory
## Key facts
- <fact>
## Projects
- <project>: <one line>
## Preferences
- <how they like to work / how the agent should behave>
accumulate with Memory/... paths routes into the memory space. It
create-or-updates (with versioning), so this skill is safe to re-run to refresh
memory later:
curl -s -X POST "https://www.aicoo.io/api/v1/accumulate" \
-H "Authorization: Bearer $AICOO_API_KEY" -H "Content-Type: application/json" \
-d '{
"files": [
{"path": "Memory/Self/USER.md", "content": "..."},
{"path": "Memory/Self/COO.md", "content": "..."},
{"path": "Memory/Self/POLICY.md", "content": "..."},
{"path": "Memory/Self/MEMORY.md", "content": "..."}
]
}' | jq '{created, updated, skipped, workspace}'
For a team knowledge base, write topical notes into their own folder instead of
Memory/Self, e.g. {"path": "Knowledge Base/architecture.md", ...} — then
the onboarding / share-agent skills can share that folder as a unit.
curl -s -X POST "https://www.aicoo.io/api/v1/os/memory/search" \
-H "Authorization: Bearer $AICOO_API_KEY" -H "Content-Type: application/json" \
-d '{"query": "what am I working on", "maxResults": 5}' | jq '.result.results[] | {title, snippet, path}'
Show the user that their agent can now recall what you just wrote. To make it
tangible, create a share link (share-agent skill) and talk to their own agent
as a guest — it answers from this memory.
Re-running this skill overwrites the identity files with a fresh synthesis
(auto-versioned, so history is kept). For incremental updates that append
rather than replace, use the context-sync / autonomous-sync skills.
accumulate tags these as workspace context; they live at the correct
/Memory/Self path and are readable via os/memory/search and os/notes.POST /api/v1/os/snapshots/{noteId} (see the snapshots skill).POLICY.md.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: name: Plugin name cannot contain spaces. Use kebab-case (e.g., "my-plugin"), author: Invalid input: expected object, received string
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
21 skills in this plugin
/autonomous-syncUse 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'./check-messagesUse this skill when the user wants to see messages their Aicoo agent received, check what people asked, review conversation history, or see agent inbox activity. Triggers on: 'check messages', 'check my messages', 'what did my agent receive', 'who talked to my agent', 'agent inbox', 'show conversations', 'any new messages', 'what did people ask', 'agent activity', 'conversation history'./Other plugins' skills for the same job