knowledge

knowledge is a skill for Claude Code from cosmix/loom. It costs 18 tokens per session (814 once invoked), scanned A, original, MIT.

A knowledge-recording procedure for adding durable facts or corrections from a user message to a project's knowledge files. It uses the project's knowledge commands and keeps an index of the recorded material.

In plain words
What is it for?
Use it to record long-term project knowledge, correct an existing knowledge entry, or remove an outdated knowledge section.
Why use it?
It prevents important corrections and lasting decisions from being lost in conversation, while avoiding the storage of temporary task details.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the loom-plan plugin — 11 skills, 2 agents shipped together

Good fit Use it to record long-term project knowledge, correct an existing knowledge entry, or remove an outdated knowledge section.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cosmix/loom/knowledge
View source ↗ cosmix/loom
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.

Any agent
npx skills add cosmix/loom --skill knowledge
Clone the repo
git clone --depth 1 https://github.com/cosmix/loom

Made for: Claude Code.

Or install loom-plan, the plugin that ships this one along with the rest of its 11 skills, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for knowledge

README.md
[![agentmods](https://agentmods.dev/badge/skills/cosmix/loom/knowledge/github.svg)](https://agentmods.dev/skills/cosmix/loom/knowledge)
Your own site
<a href="https://agentmods.dev/skills/cosmix/loom/knowledge"><img src="https://agentmods.dev/badge/skills/cosmix/loom/knowledge/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for knowledge

Your own site · 80×15
<a href="https://agentmods.dev/skills/cosmix/loom/knowledge"><img src="https://agentmods.dev/badge/skills/cosmix/loom/knowledge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 814 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00018 $0.00814
Opus 5.5 $0.00007 $0.00326
Sonnet 5.5 $0.00004 $0.00163
Haiku 4.5 $0.00002 $0.00081

Measured 11d ago against content hash 68dcd0c3157b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 11d 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.

plan-plugin/skills/knowledge/SKILL.md · 60 lines

What it actually says

Record knowledge

Use the user's message as the worklist of what to record. Do not run loom memory pending or loom memory resolve.

Write only under doc/loom/knowledge/, through loom knowledge update, loom knowledge replace-section, or loom knowledge annotate; never use a file tool. Run loom knowledge delete-section only to remove a section that a replace-section heading miss appended. Let those commands regenerate doc/loom/knowledge/INDEX.md automatically. Never stage, commit, branch, or run loom init, loom run, or loom pressure.

  1. Read doc/loom/knowledge/INDEX.md if it exists, then only the relevant knowledge sections and source ranges needed to establish the current facts. Record only non-obvious, durable insights. Omit ephemeral task details, procedural steps, and information already captured in code, version history, or the knowledge base. Convert relative dates to absolute dates.
  2. Apply corrections first. Correct an existing claim in place with loom knowledge replace-section <file> "<heading>" "<body>", passing the body without its ## heading line. Before running it, read the file's headings and copy the heading verbatim: a heading that does not match makes the command append a new section instead of replacing one. Never use loom knowledge update to correct an existing claim: appending leaves the wrong claim in place. Read the command's result; if it reports an append, run loom knowledge delete-section <file> "<appended heading>", then run replace-section again with the heading copied exactly from the file.
  3. Keep current truth only outside mistakes.md and mistakes/*. Rewrite dated headings and "was", "used to", or "supersedes" narratives into current-state text with replace-section. Move history that carries a lesson into a mistakes topic and link to it from the current-state section.

Route each new insight to the right file:

  • architecture.md — component relationships, data flow, module/dependency graph
  • patterns.md — reusable architectural patterns found in the codebase
  • conventions.md — naming, structure, and coding standards
  • mistakes.md — what went wrong, the misleading signal, root cause, prevention rule, and fix
  • concerns.md — tech debt, warnings, known issues
  • stack.md / entry-points.md — dependencies/tooling and key files to read first
  1. When INDEX.md exists, treat these files as tier-1 summaries and the category directories as tier-2 topics. Put a new finding of roughly 40 lines or fewer inline in the relevant tier-1 file; put larger findings in loom knowledge update <category>/<slug> "<entry>" and leave a 2–4 line summary and link in the tier-1 file. Reuse a matching topic before creating another. Give a new topic a blurb of at most 80 characters with loom knowledge annotate <category>/<slug> --blurb "<blurb>".
  2. Write each finding as a self-contained ## section with concrete symbols and paths inline, so retrieval can select it without surrounding sections. If a mistake repeats one already recorded, propose a hook or a loom plan verify check in concerns.md instead of adding another mistake. Use update for new sections and replace-section for existing sections, including edits to tier-1 summaries and links.
  3. Report the knowledge paths and headings changed, and any unresolved evidence.
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. 11d ago First seen · 60 lines · 18 tokens per session scan A 68dcd0c3157b

Subscribe to this mod's changes

knowledge is a skill published in the GitHub repository cosmix/loom (66 stars, last pushed today), licensed MIT. It adds 18 tokens to every session and 814 once invoked, about $0.0001 per session on Opus 5.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-11-19.

Related

knowledge compared with skills from other repositories

knowledge next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
knowledgecosmix/loomSkill66todayMITA18Claude Code
agent-experienceTypeFox/agent-skillsSkill51mo agoMITA179Claude Code
relevance-coarse-filterelvisun/newsjackSkill1.7k4d agoMITA57Claude Code
bootstrap-agent-identitypjt222/agent-almanacSkill462d agoMITA105Claude Code
coordinate-reasoningpjt222/agent-almanacSkill462d agoMITA90Claude Code
log-sessiongtrabanco/agentic-workflowSkill25todayMITA165Claude Code
learngiuseppe-trisciuoglio/developer-kitSkill3722mo agoMITA77Claude Code