forgetful-encode-repo

forgetful-encode-repo is a skill for Claude Code from ScottRBK/forgetful. It costs 68 tokens per session (944 once invoked), scanned A, original, MIT.

A procedure for building a Forgetful knowledge base from a code repository. It records the project structure, important entities, decisions, conventions, and longer explanations with links back to their source.

In plain words
What is it for?
Use it when adding a repository to Forgetful for the first time or refreshing its stored understanding after the code changes.
Why use it?
It gives future coding sessions usable context about an unfamiliar repository and keeps later encoding passes from creating duplicates.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it when adding a repository to Forgetful for the first time or refreshing its stored understanding after the code changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/scottrbk/forgetful/forgetful-encode-repo
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 ScottRBK/forgetful --skill forgetful-encode-repo
Clone the repo
git clone --depth 1 https://github.com/ScottRBK/forgetful

Made for: Claude Code.

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 forgetful-encode-repo

README.md
[![agentmods](https://agentmods.dev/badge/skills/scottrbk/forgetful/forgetful-encode-repo/github.svg)](https://agentmods.dev/skills/scottrbk/forgetful/forgetful-encode-repo)
Your own site
<a href="https://agentmods.dev/skills/scottrbk/forgetful/forgetful-encode-repo"><img src="https://agentmods.dev/badge/skills/scottrbk/forgetful/forgetful-encode-repo/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 forgetful-encode-repo

Your own site · 80×15
<a href="https://agentmods.dev/skills/scottrbk/forgetful/forgetful-encode-repo"><img src="https://agentmods.dev/badge/skills/scottrbk/forgetful/forgetful-encode-repo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 944 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00068 $0.00944
Opus 5 $0.00034 $0.00472
Sonnet 5 $0.00014 $0.00189
Haiku 4.5 $0.00007 $0.00094

Measured 10d ago against content hash 30e509cb74f0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

forgetful-encode-repo 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 10d 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/forgetful-encode-repo/SKILL.md · 90 lines

How it starts

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

Encoding a repository

The goal is a knowledge base a future session can lean on: the system modelled as entities, the decisions and conventions as atomic memories, the long-form understanding as documents, everything provenance-stamped back to the source. Encode twice and the second pass updates — never duplicates.

Invoking operations

Operations are named by registry name (create_project, create_entity, ...). Invoke via whichever surface this agent has:

  • MCP: execute_forgetful_tool(tool_name="create_project", arguments={...})
  • CLI: forgetful call create_project --args '{"name": "..."}' --json

Get any operation's schema at runtime: how_to_use_forgetful_tool (MCP) or forgetful tools info <operation> (CLI) — schemas are deliberately not repeated here.

Step 1 — Resolve the project

git remote get-url originowner/repolist_projects with repo_name. Existing project means this run is a refresh; otherwise create_project with the repo name and a description of what the codebase is for.

Done when: a project_id exists and the run knows whether it is a first encode or a refresh.

Step 2 — Survey the sources

Read what the repo says about itself before reading code: README, docs/, contributor and agent guides, manifests (dependencies, entry points, scripts), CI and deploy configuration. Note the current commit — every write in this run cites it via provenance.

Done when: there is a source list of what will be encoded, ordered by signal.

Step 3 — Model the system as entities

Skills referenced by name below resolve via search_skillsexport_skill when not already available. Per forgetful-entities: the system itself and its key components (services, packages, databases, external dependencies that matter) as entity_type: "System", and their structure as relationships — part_of for composition, depends_on for coupling. Dedupe against existing entities on a refresh.

Done when: the architecture is walkable as a graph, components to system, dependencies out.

Read the full file on GitHub · 90 lines

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. 10d ago First seen · 90 lines · 68 tokens per session scan A 30e509cb74f0

Subscribe to this mod's changes

forgetful-encode-repo is a skill published in the GitHub repository ScottRBK/forgetful (299 stars, last pushed 7d ago), licensed MIT. It adds 68 tokens to every session and 944 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

odin-close-session

Settle a Muninn at the end of a working session. Use when the user says "close out", "wrap up", "settle the base", "we're done here", or invokes the close-session command while working with an Odin knowledge base. Reviews pending candidates, verifies lint, names anything still parked, and (for a git-backed base)…

WillCAboutThat/odin-adapter · 92 tokens

odin

Organizational memory. Ingest documents into a durable, provenance-tracked knowledge base (a "Muninn") and reason over it. Use when the user says "remember this", "ingest", "odin ...", pastes or points at a document to save, asks to set up a knowledge base, asks what's known across saved sources, or asks Odin to go…

WillCAboutThat/odin-adapter · 93 tokens

use-verifiable-memory

Research and synthesize from a local Verifiable Memory Bank with source-backed evidence, reproducible selectors, chronology, attribution, and explicit uncertainty. Use when a request asks Codex to recall banked material, investigate a topic, verify a claim, build a dossier or timeline, distinguish quoted facts from…

axrbarsic/verifiable-memory-bank · 76 tokens

cloud-sync

Set up or check claude-mem cloud sync with cmem.ai Pro. Use when the user says "set up cloud sync", "sync my memories", "cmem pro", "cloud backup", "sync status", or wants their memory database backed up or synced to their cmem.ai account.

thedotmack/claude-mem · 64 tokens

hermes-history-ingest

Ingest Hermes agent history into the Obsidian wiki. Use this skill when the user wants to mine their past Hermes sessions for knowledge, import their /.hermes folder, extract insights from previous Hermes conversations, or says things like "process my Hermes history", "add my Hermes memories to the wiki", "ingest…

Ar9av/obsidian-wiki · 108 tokens

wiki-narrate

Turn a wiki topic into a cited Markdown briefing, plain-language explanation, or progressive lecture. Use this skill for topic-based briefing, explanation, and lecture requests that must stay within the evidence compiled in an Obsidian vault.

Ar9av/obsidian-wiki · 50 tokens