record-knowledge

A guide for recording undocumented project knowledge as tagged Markdown files. This knowledge can include quirks, dependencies, decisions, pitfalls, and the causes of problems.

In plain words
What is it for?
Searching existing knowledge at the start of work, updating related entries, and saving lessons learned for future sessions.
Why use it?
It keeps important discoveries from being forgotten or known only by the person who encountered them.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/levnas/ccmemo/record-knowledge
Any agent
npx skills add LevNas/ccmemo --skill record-knowledge
Clone the repo
git clone --depth 1 https://github.com/LevNas/ccmemo

Made for: Claude Code, Codex.

Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 674 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00092 $0.00674
Opus 5 $0.00046 $0.00337
Sonnet 5 $0.00018 $0.00135
Haiku 4.5 $0.00009 $0.00067

Measured 2d ago against content hash 397a57304e7b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

record-knowledge scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/record-knowledge/SKILL.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Record Knowledge

Goal

Capture tacit knowledge discovered during work and make it available for future sessions.

When to Reference

  • New session start: Search .claude/knowledge/entries/ for active entries related to the current task before starting work
    • If an overview entry exists for the topic, read it first — load detail entries on demand to save context
  • Progress update: Check if related entries need updating based on new discoveries
  • Not needed when resuming a session (context is already preserved)

Execution

Delegate the recording work to a subagent to minimize main context consumption.

  1. Analyze the user input or work context and prepare structured input fields
  2. Determine the knowledge base path (default: .claude/knowledge/entries/)
  3. Spawn a subagent with the following configuration:
Agent(
  subagent_type: "general-purpose",
  description: "record knowledge entry",
  prompt: |
    You are a knowledge recording agent. Read the procedure file and follow it precisely.

    ## Input
    ### what(事実)
    {what}

    ### why(判断理由)
    {why}

    ### context(背景情報)
    {context}

    ### tags_hint(推奨タグ)
    {tags_hint}

    ## Instructions
    1. Read the procedure file at: {plugin_root}/skills/record-knowledge/procedure.md
    2. Follow the procedure step by step
    3. The knowledge base is at: {project_root}/.claude/knowledge/
    4. Return: filename, # heading, ## headings, and linked entries
)

Replace the placeholders:

  • {what} — 何が起きたか: the factual observation, discovery, or decision to record
  • {why} — なぜ重要か: why this matters, the reasoning behind recording it (judgment made by the main agent)
  • {context} — 関連する背景情報: surrounding context (task being worked on, environment, related files, issues)
  • {tags_hint} — 推奨タグ: tags the main agent recommends (subagent validates against the tag registry)
  • {plugin_root} — the plugin's installation path (shown in the skill loading message as "Base directory for this skill")
  • {project_root} — the project working directory

Read the full file on GitHub · 71 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 71 lines · 92 tokens per session scan A 397a57304e7b

Subscribe to this mod's changes

record-knowledge is a skill published in the GitHub repository LevNas/ccmemo (3 stars, last pushed 16d ago), licensed MIT. It adds 92 tokens to every session and 674 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

lesson

Save a correction or hard-won rule as a confidence-weighted lesson that resurfaces before similar work. Use when the user corrects your approach, says "learn this", "always" or "never do X", or you notice yourself repeating a past mistake.

rohitg00/agentmemory · 55 tokens

technical-documentation

Audit, write, and improve developer documentation using Google's Developer Documentation Style Guide and Technical Writing courses. Use this skill for any documentation work, even when the user names no style guide: "audit our docs", "review this README", "write a README", "getting started guide", "how-to or…

wondelai/skills · 204 tokens

ctf-writeup

Generates a single standardized submission-style CTF writeup for competition handoff and organizer review. Use after solving a CTF challenge to document the solution steps, tools used, and lessons learned in a structured format.

ljagiello/ctf-skills · 48 tokens

promote-memory

Review candidate learnings in Claude Code's native auto memory (/.claude/projects/ /memory/, machine-local) and run them through a five-critic council in parallel: generality, staleness, redundancy, evidence, format. Majority vote (3+ of 5) promotes the entry to MEMORY.md. Use when user says "promote memory", "review…

pedrohcgs/claude-code-my-workflow · 106 tokens

checkpoint

Save a structured state snapshot before stopping or handing off. Captures the active plan, recent decisions, file pointers (with line numbers), open questions, and the next 1–3 actions into a checkpoint file under qualityreports/checkpoints/. Optionally proposes [LEARN] entries to add to MEMORY.md. Use when user says…

pedrohcgs/claude-code-my-workflow · 124 tokens

respond-to-eval

Turn student course evaluations (free-text + numeric) into an actionable teaching-improvement plan — the teaching analogue of /respond-to-referees. Clusters comments into themes, separates signal from noise, classifies each theme Keep / Change / Investigate / Out-of-scope, and drafts concrete changes mapped to the…

pedrohcgs/claude-code-my-workflow · 111 tokens