Agent skill

Memory

by HKUDS in HKUDS/OpenOPC

Manage durable global/project memory in .opc/memory/global.md and .opc/memory/projects/<currentprojectid.md.

MITAuto-check passedAgent Workflows

Install Memory

skills CLI
$ npx skills add HKUDS/OpenOPC --skill memory -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install HKUDS/OpenOPC memory --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/HKUDS/OpenOPC.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.opc/skills/memory .claude/skills/memory && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
memory
GitHub stars
1.8k
Token cost
~304 tokens
SKILL.md length
128 words
Files
1
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

Manage durable global/project memory in .opc/memory/global.md and .opc/memory/projects/<currentprojectid.md.

  • Tasks that involve Agent memory
  • SKILL.md covers What To Save, When to Update and How to Update
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Memory is an agent skill from HKUDS/OpenOPC. Manage durable global/project memory in .opc/memory/global.md and .opc/memory/projects/<currentprojectid.md.

Its SKILL.md is about 300 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Agent memory. The repository describes itself as: OpenOPC: Build Your Personal AI-Native Company — Self-Built, Self-Run, Self-Grown. The licence is MIT.

When your agent uses it

  • Tasks that involve Agent memory

Example prompts

  • “/memory”

What it can do on your machine

Read from SKILL.md and the folder at commit b14e85d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Memory loads about 304 tokens when it runs. Until then it costs about 31 tokens; SKILL.md has 128 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~31
When it runs · the whole SKILL.md, loaded when a task matches
~304

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from HKUDS/OpenOPC at commit b14e85d, republished under its MIT licence (© HKUDS). 128 words, ~304 tokens.

Download SKILL.mdSave it as .claude/skills/memory/SKILL.md (or your agent's skills folder).
name
memory
description
Manage durable global/project memory in `.opc/memory/global.md` and `.opc/memory/projects/<current_project_id>.md`.
always
true

Memory

Use this skill only for durable Markdown memory:

  • Global memory: .opc/memory/global.md
  • Project memory: .opc/memory/projects/<current_project_id>.md
  • Prefer the absolute OPC_GLOBAL_MEMORY_PATH and OPC_PROJECT_MEMORY_PATH shown in runtime context or environment; do not create a separate .opc/memory under the workplace.

What To Save

  • Global: stable cross-project user preferences, communication defaults, standing constraints.
  • Project: current-project preferences, workspace overrides, repo paths, architecture constraints, coding conventions, delivery requirements.
  • Never save secrets, copied transcripts, temporary progress, speculative notes, or one-off task results.

When to Update

  • Update only during interaction with the user, and only when the user states or confirms something that should matter in later sessions.

How to Update

Read before editing. Merge, deduplicate, replace stale items, and keep entries compact. Do not mix project IDs: write project memory only to the current project's file.

© HKUDS, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .opc/skills/memory of HKUDS/OpenOPC.

Open the folder on GitHubat commit b14e85d

Compare with similar skills

Memory next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Memory compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Memory this skillHKUDS/OpenOPC1.8k—~304Automated safety check: PassMIT
Coding Agent Session Findercode-yeongyu/oh-my-openagent70k1 repos~2.8kAutomated safety check: PassCustom licence
Claude-Mem Cloud Syncthedotmack/claude-mem98k1 repos~1kAutomated safety check: NotesApache-2.0
Cognee CLI Memory Commandstopoteretes/cognee32k1 repos~2.2kAutomated safety check: NotesApache-2.0
Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills21k—~1.9kAutomated safety check: PassMIT
Claude-Mem Searchthedotmack/claude-mem98k1 repos~511Automated safety check: PassApache-2.0

Similar skills

  • Coding Agent Session Finder

    code-yeongyu/oh-my-openagent

    Finds, reads and reconstructs past coding-agent sessions across Codex, Claude, OpenCode, Senpi and many other local agent logs.

    70k GitHub starsUsed in 1 repo~2.8k tokens
    Agent WorkflowsAuto-check passed
  • Claude-Mem Cloud Sync

    thedotmack/claude-mem

    Checks claude-mem cloud sync status and guides you through connecting a cmem.ai Pro account without the sync token ever passing through the chat.

    98k GitHub starsUsed in 1 repo~1k tokens
    Agent WorkflowsAuto-check: notes
  • Cognee CLI Memory Commands

    topoteretes/cognee

    Drives cognee from the terminal with remember, recall, forget and improve memory commands, dataset and config management and database migrations.

    32k GitHub starsUsed in 1 repo~2.2k tokens
    Agent WorkflowsAuto-check: notes
  • Neat-Freak Knowledge Closeout

    KKKKhazix/khazix-skills

    Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.

    21k GitHub stars~1.9k tokensUpdated 6 days ago
    Agent WorkflowsAuto-check passed
  • Claude-Mem Search

    thedotmack/claude-mem

    Searches the user's persistent cross-session memory for timestamped observations synthesized from past agent sessions on cmem.ai.

    98k GitHub starsUsed in 1 repo~511 tokens
    Agent WorkflowsAuto-check passed
  • Beads Task Memory

    gastownhall/beads

    Tracks multi-session work with dependencies in the bd issue tracker so the agent can find ready tasks and recover its context after conversation compaction.

    28k GitHub stars~1.2k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from HKUDS/OpenOPC

  • Skill Creator

    HKUDS/OpenOPC

    Create or update skills. An agent skill from HKUDS/OpenOPC.

    1.8k GitHub stars~980 tokensUpdated 26 days ago
    Auto-check passed
  • Clawhub

    HKUDS/OpenOPC

    Search and install agent skills from ClawHub, the public skill registry.

    1.8k GitHub stars~467 tokensUpdated 26 days ago
    Auto-check passed
  • Skill Evolution

    HKUDS/OpenOPC

    Evolve new skills from project experience. An agent skill from HKUDS/OpenOPC.

    1.8k GitHub stars~641 tokensUpdated 26 days ago
    Auto-check passed
  • Standing rules for how any role in an OpenOPC company coordinates with its peers — work-item discipline, messaging, meetings, and blocking collaboration.

    1.8k GitHub stars~1.6k tokensUpdated 26 days ago
    Auto-check passed
  • Opc Collab

    HKUDS/OpenOPC

    Collaborate with other agents in OpenOPC company mode via the opc-collab CLI — send messages, request user input, delegate work, read the manager board, respond in meetings, propose task adjustments.

    1.8k GitHub stars~3.8k tokensUpdated 26 days ago
    Auto-check passed
  • Cron

    HKUDS/OpenOPC

    Schedule reminders, recurring tasks, and one-time jobs using system crontab.

    1.8k GitHub stars~323 tokensUpdated 26 days ago
    Auto-check passed

Categories

Questions about Memory

What does Memory do?

Manage durable global/project memory in .opc/memory/global.md and .opc/memory/projects/<currentprojectid.md. Memory is an agent skill from HKUDS/OpenOPC.md.

When should I use Memory?

Memory fits situations like: tasks that involve Agent memory.

How do I install Memory in Claude Code?

Run `npx skills add HKUDS/OpenOPC --skill memory -a claude-code`. Or copy the skill folder (.opc/skills/memory in HKUDS/OpenOPC) into .claude/skills/memory in your project. Claude Code loads it when a task matches its description.

How do I install Memory in Codex?

Run `npx skills add HKUDS/OpenOPC --skill memory -a codex`. Or copy the skill folder (.opc/skills/memory in HKUDS/OpenOPC) into .agents/skills/memory in your project. Codex loads it when a task matches its description.

Can I use Memory in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add HKUDS/OpenOPC --skill memory -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/memory, .gemini/skills/memory, .github/skills/memory and .opencode/skills/memory in your project.

What does Memory need to run?

SKILL.md names no scripts, command-line tools or credentials: Memory is instructions for the agent only.

Does Memory access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Memory safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Memory use?

Memory is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Memory use?

About 304 tokens (SKILL.md is roughly 1.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Memory?

Skills that share tags, products or a category with Memory: Coding Agent Session Finder (code-yeongyu/oh-my-openagent, 70k stars), Claude-Mem Cloud Sync (thedotmack/claude-mem, 98k stars), Cognee CLI Memory Commands (topoteretes/cognee, 32k stars) and Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Memory?

HKUDS (a GitHub organization) maintains it in HKUDS/OpenOPC, which has 1,815 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on September 11, 2026.

Source: HKUDS/OpenOPC on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.