Agent skill

Memory

by boshu2 in boshu2/agentops

Write, find or curate lessons and agent rules with stated evidence and limits.

Apache-2.0Auto-check passedAgent Workflows

Install Memory

skills CLI
$ npx skills add boshu2/agentops --skill memory -a claude-code

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

GitHub CLI
$ gh skill install boshu2/agentops 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/boshu2/agentops.git skills-src && mkdir -p .claude/skills && cp -r skills-src/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
448
Used in
1 other repo
Token cost
~1.6k tokens
SKILL.md length
726 words
Files
8 (incl. scripts, references)
Skills in repo
31
Repo updated
First seen
Licence
Apache-2.0

At a glance

Write, find or curate lessons and agent rules with stated evidence and limits.

  • Works in 5 steps: Look for an existing entry first. Search… → Size the claim to its evidence. One… → State all five fields: applicability,… → …
  • : asked to remember something
  • SKILL.md covers Rules for any saved lesson or…, Choose one operation, One authority per fact and Access, storage and honest…
  • Runs Shell scripts from its folder

What it does

Memory is an agent skill from boshu2/agentops. Write, find or curate lessons and agent rules with stated evidence and limits. Use when: asked to remember something or write a rule into agent instructions.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 10 other files, including scripts and reference files (for example `references/curate.md`, `references/learn/okf-page-profile.md` and `references/mine-learn.md`).

It sits in Agent Workflows, covering Agent instruction files. The repository describes itself as: DevOps discipline for AI coding agents: shape the work, track it as a graph, and get each change judged by a context that didn't write it. The licence is Apache-2.0.

When your agent uses it

  • : asked to remember something
  • Write a rule into agent instructions

Example prompts

  • “/memory”

Requirements

  • A Bash shell

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Look for an existing entry first. Search the selected .context/ pages,
  2. Size the claim to its evidence. One incident supports a narrow
  3. State all five fields: applicability, action, support, limits and invalidation.
  4. Review before admission. Draft outside Git. A fresh reviewer who is not
  5. Saving proves nothing. Only later work can show that reuse changed an

What it can do on your machine

Read from SKILL.md and the folder at commit 8704853. 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

    Ships 1 file in scripts/ (Shell), which the agent can run.

    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 1.6k tokens when it runs, and up to ~6.3k if it reads all its reference files. Until then it costs about 41 tokens; SKILL.md has 726 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~41
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.3k

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); the scripts in this folder are not scanned.

SKILL.md

The full file from boshu2/agentops at commit 8704853, republished under its Apache-2.0 licence (© boshu2). 726 words, ~1,575 tokens.

Download SKILL.mdSave it as .claude/skills/memory/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
memory
description
Write, find or curate lessons and agent rules with stated evidence and limits. Use when: asked to remember something or write a rule into agent instructions.
practices
evidence-based-engineering, continuous-learning
hexagonal_role
supporting
produces
applicable-context, reviewed-topic-pages, ranked-toil-evidence
skill_api_version
1
user-invocable
true
metadata.graph_root
true
metadata.tier
execution
metadata.capabilities
recall_applicable_context, mine_supported_observations, curate_topic_pages, toil_mining
metadata.effects
write_protected_drafts, update_authorized_topic_pages, write_requested_toil_report
metadata.canonical_status
canonical

Memory

Use maintained experience only when it changes an action. Memory is optional: no mandatory recall at RPI entry, lesson at completion, worksheet, page quota or background mining. A trivial edit can proceed directly to implementation.

Rules for any saved lesson or rule

Apply these whenever a request would save or promote a lesson, including a request to turn an incident into a rule for an instruction file:

  1. Look for an existing entry first. Search the selected .context/ pages, external topic pages or the target instruction file (AGENTS.md, CLAUDE.md, a team rules file). Amend the entry that already covers the behavior; add a new one only when none fits.
  2. Size the claim to its evidence. One incident supports a narrow observation scoped to the conditions it actually had. A universal rule needs repeated independent occurrences and later reapplication.
  3. State all five fields: applicability, action, support, limits and invalidation. Use the template below; an entry with no invalidation is incomplete.
  4. Review before admission. Draft outside Git. A fresh reviewer who is not the author checks factual support and disclosure of the exact text, paths and destination before it enters .context/, an instruction file such as AGENTS.md, or any Git object. Promoting an entry into an instruction file is a separate policy change owned by that file.
  5. Saving proves nothing. Only later work can show that reuse changed an action and helped. Until then a saved rule is an untested hypothesis.
markdown
### <one-line claim>
- Applies when: <the conditions the evidence covered>
- Action: <the check or step to take>
- Support: <cited sources; number of independent occurrences>
- Limits: <where it is untested or may not hold>
- Invalidate when: <the change or contrary evidence that retires it>

Keep rare useful constraints; age or low frequency alone is no reason to delete them. Learning may also simplify or remove rules.

Choose one operation

NeedRead on demand
An earlier constraint or source map may change the next actionFind / recall
Capture useful evidence from selected sources, episodes or correctionsCapture / mine / learn
Update, qualify, consolidate or retire a supported claimCurate / qualify / retire
Rank repeated operational friction in supplied historyToil evidence

Memory owns these operations; other roles link here instead of keeping their own procedures. Capture includes bounded source maps, verdicts, corrections and failed or harmful reuse; it is never a required completion step. Load only the selected operation's reference. The optional OKF page profile checks structure only.

Show full SKILL.md (361 more words)Show less

One authority per fact

BD or the caller's tracker owns work, status, dependencies and handoffs; Git owns content and delivery history; native sessions and CASS own episode evidence. Reviewed Markdown topic pages in a selected project .context/ or an external bundle hold reusable claims as evidence, not another work account. Existing docs, ADRs and code keep their declared authority; a page points to those owners instead of copying their policy. Do not make one lesson file per session, copy a transcript lake, or silently initialize a memory store.

For a selected project .context/, start at its small authored README.md map when relevant, then read likely pages and their current source owners with ordinary filesystem tools such as rg and cat; this needs neither BD nor AO. Reads create no directory, index or private import. The optional ao config context route supports external bundles and an explicitly bound canonical direct <consumer>/.context; it requires native BD and preserves the policy and identity bindings. Other consumer-overlapping roots remain refused.

Access, storage and honest limits

Use only sources already authorized for the task, owner, model/provider and exact destination. Read permission does not imply publication or Git storage. This lean path supports public or already-cleared trial inputs only. Neither this skill nor a prompt, worktree or same-user shell enforces restricted-source access, so do not retrieve restricted material through this path. The existing ao session read-source supported profile grants no broader or automatic transcript access. Unavailable and denied evidence remain explicit gaps; do not fetch then redact.

Drafts and review proof stay in caller-selected protected external non-Git storage. Missing routing does not authorize a workspace fallback. Preserve requested legacy .agents/ proof and unique evidence under owner policy. No blind TTL or delete operation is part of Memory. Labels and structural parsers do not prove isolation. docs/adr/ADR-0016-state-tiers.md owns these boundaries in a repository checkout; the operation references carry the installed rules.

Saved pages, retrieval counts and structural checks prove no benefit. Only later work can demonstrate that reuse changed an action and helped its outcome; keep failed, harmful and no-change results. Mining is separately budgeted off-path and cannot delay finishing an already authorized change or alter its verdict.

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

Files

SKILL.md and 7 other files (scripts, references) in skills/memory of boshu2/agentops.

  • SKILL.md
  • references/curate.md
  • references/learn/learn.feature
  • references/learn/okf-page-profile.md
  • references/mine-learn.md
  • references/recall.md
  • references/toil.md
  • scripts/validate.sh

Open the folder on GitHubat commit 8704853

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in boshu2/agentops, which our catalogue first saw on October 7, 2026.

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 skillboshu2/agentops4481 repos~1.6kAutomated safety check: PassApache-2.0
Using Agent Skillsaddyosmani/agent-skills103k4 repos~2.4kAutomated safety check: PassMIT
Claude ReflectBayramAnnakov/claude-reflect1.7k2 repos~627Automated safety check: PassMIT
Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills21k—~1.9kAutomated safety check: PassMIT
Writing For Agentsbestofjs/bestofjs3.1k18 repos~2.7kAutomated safety check: PassMIT
Task Observerrebelytics/one-skill-to-rule-them-all3.2k1 repos~12kAutomated safety check: PassCC-BY-4.0

Similar skills

  • Using Agent Skills

    addyosmani/agent-skills

    Meta-skill for choosing which workflow skill fits the task at hand, plus always-on habits: surface assumptions, stop on confusion, push back, keep it simple and stay in scope.

    103k GitHub starsUsed in 4 repos~2.4k tokens
    Agent WorkflowsAuto-check passed
  • Claude Reflect

    BayramAnnakov/claude-reflect

    Self-learning system that captures corrections during sessions and reminds users to run /reflect to update CLAUDE.md.

    1.7k GitHub starsUsed in 2 repos~627 tokens
    Agent WorkflowsAuto-check passed
  • 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 8 days ago
    Agent WorkflowsAuto-check passed
  • Writing For Agents

    bestofjs/bestofjs

    Writing documents for agents. An agent skill from bestofjs/bestofjs.

    3.1k GitHub starsUsed in 18 repos~2.7k tokens
    Agent WorkflowsAuto-check passed
  • Task Observer

    rebelytics/one-skill-to-rule-them-all

    Monitors task execution for skill improvement opportunities.

    3.2k GitHub starsUsed in 1 repo~12k tokens
    Agent WorkflowsAuto-check passed
  • SkillOpt Sleep Cycle

    microsoft/SkillOpt

    Official

    Runs an on-demand or nightly sleep cycle that reviews past Claude Code sessions and proposes validated updates to CLAUDE.md and skills.

    18k GitHub stars~2.3k tokensUpdated 3 days ago
    Agent WorkflowsAuto-check passed

More from boshu2/agentops

All 31 skills in this repo
  • Agent Native

    boshu2/agentops

    Dispatch independent tasks to parallel workers or subagents without write collisions.

    448 GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Council

    boshu2/agentops

    Compare independent opinions from several models or contexts without inflating agreement.

    448 GitHub starsUsed in 1 repo~3k tokens
    Auto-check passed
  • Craft Goal

    boshu2/agentops

    Draft or lint a bounded long-running goal prompt with a finish line and hard limits.

    448 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed
  • Doc

    boshu2/agentops

    Write or update READMEs, docs, repo instructions and handoff notes, checked against source.

    448 GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Idea Genie

    boshu2/agentops

    Brainstorm evidence-backed options for what to build, or stress-test an idea.

    448 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed
  • Implement

    boshu2/agentops

    Change or repair code, config or services without weakening tests; report what ran and what did not.

    448 GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed

Categories

Questions about Memory

What does Memory do?

Write, find or curate lessons and agent rules with stated evidence and limits. Memory is an agent skill from boshu2/agentops. Write, find or curate lessons and agent rules with stated evidence and limits.

When should I use Memory?

Memory fits situations like: : asked to remember something; write a rule into agent instructions.

How do I install Memory in Claude Code?

Run `npx skills add boshu2/agentops --skill memory -a claude-code`. Or copy the skill folder (skills/memory in boshu2/agentops) 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 boshu2/agentops --skill memory -a codex`. Or copy the skill folder (skills/memory in boshu2/agentops) 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 boshu2/agentops --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?

Going by SKILL.md and its folder, Memory needs a shell for the scripts in its folder. Our summary lists: A Bash shell.

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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Memory use?

Memory is published under the Apache-2.0 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 1.6k tokens (SKILL.md is roughly 6.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.7k tokens, read only when the agent opens those files.

What are the alternatives to Memory?

Skills that share tags, products or a category with Memory: Using Agent Skills (addyosmani/agent-skills, 103k stars), Claude Reflect (BayramAnnakov/claude-reflect, 1.7k stars), Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars) and Writing For Agents (bestofjs/bestofjs, 3.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Memory?

boshu2 (a GitHub user) maintains it in boshu2/agentops, which has 448 GitHub stars. The repository holds 31 skills in this directory. The repository was last updated on October 9, 2026.

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