Agent skill

Roam Lesson Maintenance

by Cranot in Cranot/roam-code

Turn a reproduced or recurring Roam failure into a durable correction, regression control or narrowly scoped project skill, and reconcile conflicting lessons.

Apache-2.0Auto-check passedKnowledge Management

Install Roam Lesson Maintenance

skills CLI
$ npx skills add Cranot/roam-code --skill roam-lesson-maintenance -a claude-code

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

GitHub CLI
$ gh skill install Cranot/roam-code roam-lesson-maintenance --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/Cranot/roam-code.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/roam-lesson-maintenance .claude/skills/roam-lesson-maintenance && 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
roam-lesson-maintenance
GitHub stars
517
Token cost
~1.2k tokens
SKILL.md length
620 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
Apache-2.0

At a glance

Turn a reproduced or recurring Roam failure into a durable correction, regression control or narrowly scoped project skill, and reconcile conflicting lessons.

  • Asked to preserve and apply lessons
  • SKILL.md covers Establish what actually happened, Put the protection in the…, Evaluate transfer, not… and Leave a maintainable result
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Not for routine note-taking

What it does

Roam Lesson Maintenance is an agent skill from Cranot/roam-code. Turn a reproduced or recurring Roam failure into a durable correction, regression control or narrowly scoped project skill, and reconcile conflicting lessons. Use when asked to preserve and apply lessons, not for routine note-taking, an unconfirmed allegation or every successful edit.

Its SKILL.md is about 1.2k 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 Knowledge Management, covering Note-taking. It works with Model Context Protocol. The repository describes itself as: Local codebase intelligence CLI + MCP server for AI coding agents: SQLite code graph, 28 languages, 287 commands, 246 MCP tools, change-safety gates, audit evidence, zero API keys. The licence is Apache-2.0.

When your agent uses it

  • Asked to preserve and apply lessons
  • Not for routine note-taking
  • An unconfirmed allegation
  • Every successful edit

Example prompts

  • “/roam-lesson-maintenance”

What it can do on your machine

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

Roam Lesson Maintenance loads about 1.2k tokens when it runs. Until then it costs about 77 tokens; SKILL.md has 620 words of instructions outside code blocks.

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

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 Cranot/roam-code at commit 4856519, republished under its Apache-2.0 licence (© Cranot). 620 words, ~1,206 tokens.

Download SKILL.mdSave it as .claude/skills/roam-lesson-maintenance/SKILL.md (or your agent's skills folder).
name
roam-lesson-maintenance
description
Turn a reproduced or recurring Roam failure into a durable correction, regression control or narrowly scoped project skill, and reconcile conflicting lessons. Use when asked to preserve and apply lessons, not for routine note-taking, an unconfirmed allegation or every successful edit.

Roam lesson maintenance

Reduce recurrence at the boundary that caused the mistake. More instructions are not automatically better protection, and a skill is not runtime enforcement.

Establish what actually happened

Read the relevant incident/source and current implementation or guidance. Separate observed failure, suspected cause, historical repair and unverified reach. Name the input/source state, producer, consumer, wrong conclusion or action, and the consequence. A repeated symptom can have different causes. Verify the current path before reopening an old fix queue.

Find a nearby valid case: a useful empty result, appropriate refusal, narrow reference, harmless display truncation or correct unchanged behavior. State what a correction must preserve. A completed applicable scan with a stated nonzero checked population may legitimately find nothing. Zero scanned units or missing source cannot establish that a target is clean; report the actual state/applicability. An initialized empty store can still be a valid empty store, not an analysis of unscanned code. Do not convert all partial results into refusal.

Put the protection in the right owner

Use the smallest carrier that changes the failure:

  • Runtime semantics or evidence delivery: implementation and a defect-specific regression with valid controls and the actual serialized consumer.
  • Duplicated implementation or registry/reference drift: shared owner, helper/generator and contract checks.
  • Stable product/evidence meaning: the maintained public understanding or concept document, with affected public consumers corrected as authorized.
  • Recurring agent judgment/routing: amend the relevant narrow skill; add one only for a distinct reusable job the existing skills do not cover.
  • Session state, approval or deployed identity: the private execution cursor and dated evidence, not a skill carrying a stale release status.
  • Unconfirmed opportunity: an existing intake/card with a discriminating test.

Inspect the relevant existing skill before declaring a guidance gap. If the rule already covers the mistake, determine whether application, discoverability, a source owner or verification failed. A concrete counterexample or application check can help; duplicating the rule across five skills usually does not. Preserve useful language and bounded claims instead of banning phrases globally.

Guidance work does not by itself authorize runtime repairs or publication. If a code fix is outside the current request, record the specific required repair and continue the authorized lesson work without claiming the defect resolved.

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

Evaluate transfer, not obedience to a template

Apply the candidate to the triggering task, the valid counterexample and a different relevant context. Observe the decision or artifact that changed. Do not use wording/heading matches or a structural validator as proof of judgment quality. No-change, narrower guidance and rejecting a new skill can be successful outcomes.

For a runtime correction, preserve failure-before/repair-after evidence at the real boundary where feasible. For guidance, distinguish author application from independent use and comparative efficacy. An evaluator given the suspected fix is not a cold reader; a case used to tune a revision is development evidence, not untouched confirmation. Independent delegation needs applicable authority.

If a revision causes an overbroad refusal, unnecessary reading, new unsupported claim or loss of a valid case, narrow or remove it. Keep only the non-obvious guidance that survives the actual task. Do not construct a new lesson-mining, benchmark or automatic-promotion system to maintain a small skill.

Leave a maintainable result

Keep skill instructions self-contained where possible and route only to relevant maintained sources. Use the available skill-creation instructions for installation and validation. Put incident/evaluation records under internal/; skills should carry reusable decisions, not private case payloads, transcripts, temporary statuses or invented empirical guarantees.

Record the carrier, changed decision, retained counterexample, evaluation limits and what mechanism/source change would invalidate the lesson. Update the existing execution cursor, not a second backlog. Retire guidance when its cause is removed or a narrower mechanism owns it. "Known error eliminated" needs observed scope; a new instruction alone cannot support that claim.

© Cranot, 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

Just SKILL.md in .agents/skills/roam-lesson-maintenance of Cranot/roam-code.

Open the folder on GitHubat commit 4856519

Compare with similar skills

Roam Lesson Maintenance 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.

Roam Lesson Maintenance compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Roam Lesson Maintenance this skillCranot/roam-code517—~1.2kAutomated safety check: PassApache-2.0
Solomdzhitongblog/solomd1.2k—~2kAutomated safety check: PassMIT
Joplinalondmnt/joplin-mcp173—~897Automated safety check: PassMIT
AI BrainOotto-AI/claude-content-skills122—~1.1kAutomated safety check: PassMIT
Obsidian Project Memorybrycewang-stanford/Auto-Empirical-Research-Skills4.5k—~2.4kAutomated safety check: PassCustom licence
Video To Notelike-attract/video-to-note123—~1kAutomated safety check: PassMIT

Similar skills

  • Solomd

    zhitongblog/solomd

    Read, search, edit, and version-control any folder of Markdown notes via the SoloMD MCP server.

    1.2k GitHub stars~2k tokensUpdated yesterday
    Knowledge ManagementAuto-check passed
  • Joplin

    alondmnt/joplin-mcp

    Orchestration guidance for Joplin note, notebook, and tag management tools

    173 GitHub stars~897 tokensUpdated 27 days ago
    Knowledge ManagementAuto-check passed
  • AI Brain

    Ootto-AI/claude-content-skills

    Give Claude a permanent, searchable long-term memory using an Obsidian vault as the store.

    122 GitHub stars~1.1k tokensUpdated yesterday
    Knowledge ManagementAuto-check passed
  • Obsidian Project Memory

    brycewang-stanford/Auto-Empirical-Research-Skills

    This skill should be used when the user asks to maintain an Obsidian knowledge base for a research project, import an existing research repository into Obsidian, keep project memory or daily notes…

    4.5k GitHub stars~2.4k tokensUpdated 4 days ago
    Knowledge ManagementAuto-check passed
  • Video To Note

    like-attract/video-to-note

    Generate structured, timestamped Markdown notes from videos (Bilibili, Douyin, YouTube, or local media files) using the local VideoToNo service.

    123 GitHub stars~1k tokensUpdated 5 days ago
    Knowledge ManagementAuto-check passed
  • Auto Memory

    tractorjuice/arc-kit

    This skill should be used when the user asks to 'set up memory', 'create memory files', 'create MEMORY.md', 'set up topic files', 'improve memory organization', 'what should I remember', 'how to…

    2.3k GitHub stars~1.7k tokensUpdated yesterday
    Knowledge ManagementAuto-check passed

More from Cranot/roam-code

All 9 skills in this repo
  • Roam

    Cranot/roam-code

    Codebase comprehension via roam-code CLI. An agent skill from Cranot/roam-code.

    517 GitHub stars~2.4k tokensUpdated 6 days ago
    Auto-check passed
  • Roam Agent Guidance

    Cranot/roam-code

    Review and maintain the technical instructions Roam gives coding agents: shipped skills, tool descriptions, preset guidance and generated instruction blocks.

    517 GitHub stars~1.3k tokensUpdated 6 days ago
    Auto-check passed
  • Roam Evidence Hardening

    Cranot/roam-code

    Investigate and harden Roam detectors, CLI/MCP result contracts, and evidence consumers when dogfooding or correcting incomplete, misleading, or inconsistent analysis.

    517 GitHub stars~1.5k tokensUpdated 6 days ago
    Auto-check passed
  • Roam Measurement Design

    Cranot/roam-code

    Design or interpret a comparison of Roam performance, detector accuracy, retrieval or workflow value.

    517 GitHub stars~1.2k tokensUpdated 6 days ago
    Auto-check passed
  • Roam Milestone Planning

    Cranot/roam-code

    Define or revise a Roam product milestone and its engineering, adoption and offer-readiness sequence.

    517 GitHub stars~1.2k tokensUpdated 6 days ago
    Auto-check passed
  • Roam Release Readiness

    Cranot/roam-code

    Qualify a Roam commit or accumulated batch for package, website, or server publication; reconcile source, tests, review, CI and deployed identities, and identify the next authorized release step.

    517 GitHub stars~1.7k tokensUpdated 6 days ago
    Auto-check passed

Questions about Roam Lesson Maintenance

What does Roam Lesson Maintenance do?

Turn a reproduced or recurring Roam failure into a durable correction, regression control or narrowly scoped project skill, and reconcile conflicting lessons. Roam Lesson Maintenance is an agent skill from Cranot/roam-code. Turn a reproduced or recurring Roam failure into a durable correction, regression control or narrowly scoped project skill, and reconcile conflicting lessons.

When should I use Roam Lesson Maintenance?

Roam Lesson Maintenance fits situations like: asked to preserve and apply lessons; not for routine note-taking; an unconfirmed allegation; every successful edit.

How do I install Roam Lesson Maintenance in Claude Code?

Run `npx skills add Cranot/roam-code --skill roam-lesson-maintenance -a claude-code`. Or copy the skill folder (.agents/skills/roam-lesson-maintenance in Cranot/roam-code) into .claude/skills/roam-lesson-maintenance in your project. Claude Code loads it when a task matches its description.

How do I install Roam Lesson Maintenance in Codex?

Run `npx skills add Cranot/roam-code --skill roam-lesson-maintenance -a codex`. Or copy the skill folder (.agents/skills/roam-lesson-maintenance in Cranot/roam-code) into .agents/skills/roam-lesson-maintenance in your project. Codex loads it when a task matches its description.

Can I use Roam Lesson Maintenance 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 Cranot/roam-code --skill roam-lesson-maintenance -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/roam-lesson-maintenance, .gemini/skills/roam-lesson-maintenance, .github/skills/roam-lesson-maintenance and .opencode/skills/roam-lesson-maintenance in your project.

What does Roam Lesson Maintenance need to run?

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

Does Roam Lesson Maintenance 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 Roam Lesson Maintenance 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 Roam Lesson Maintenance use?

Roam Lesson Maintenance 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 Roam Lesson Maintenance use?

About 1.2k tokens (SKILL.md is roughly 4.8k 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 Roam Lesson Maintenance?

Skills that share tags, products or a category with Roam Lesson Maintenance: Solomd (zhitongblog/solomd, 1.2k stars), Joplin (alondmnt/joplin-mcp, 173 stars), AI Brain (Ootto-AI/claude-content-skills, 122 stars) and Obsidian Project Memory (brycewang-stanford/Auto-Empirical-Research-Skills, 4.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Roam Lesson Maintenance?

Cranot (a GitHub user) maintains it in Cranot/roam-code, which has 517 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 3, 2026.

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