spectre-learn

spectre-learn is a skill for Claude Code, Codex from joenandez/spectre. It costs 66 tokens per session (792 once invoked), scanned A, original, MIT.

A learning tool that saves useful project knowledge as a reusable record. The knowledge can include patterns, decisions, problems, procedures, or feature information.

In plain words
What is it for?
Use it when you want to remember something from a session, such as a design decision, recurring problem, or working procedure.
Why use it?
It prevents important lessons from being lost after a conversation and helps someone with no background understand the topic later.

Skill for Claude CodeCodex

Written for Claude Code and Codex: disable-model-invocation in frontmatter, but also agents/openai.yaml present.

Good fit Use it when you want to remember something from a session, such as a design decision, recurring problem, or working procedure.

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

Made for: Claude Code, Codex.

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 spectre-learn

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/joenandez/spectre/spectre-learn"><img src="https://agentmods.dev/badge/skills/joenandez/spectre/spectre-learn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 792 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 10
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.00066 $0.00792
Opus 5.5 $0.00026 $0.00317
Sonnet 5.5 $0.00013 $0.00158
Haiku 4.5 $0.00007 $0.00079

Measured 1mo ago against content hash a72f2d02dca1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

spectre-learn 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 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/migrate-knowledge.mjs, scripts/register-knowledge.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/spectre-codex/skills/spectre-learn/SKILL.md · 49 lines

How it starts

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

learn

Purpose

Turn an explicit user capture request into maintained knowledge or a historical work-record request. Learn owns user intent and routing; Skill(spectre-capture) owns knowledge persistence and Skill(spectre-work-record) owns work history. Do not revive knowledge-skill authoring, proposal gates, dossiers, or SessionStart output.

Inputs

  • An explicit user capture request, $ARGUMENTS, and the current conversation; bare invocation means review the conversation for consequential, evidenced knowledge.
  • User intent: an insight or correction targets maintained knowledge; a work summary, explicit snapshot, or historical correction targets a typed work record.
  • The current project directory and any exact record/work identity already in context. A Spectre feature root is not required.

Working Set

  • Search metadata and exact verified loads needed to identify a maintained record or answer a stated work question.
  • Current evidence. An explicit user statement that a lasting decision is current, corrected, or superseded is accepted authoritative evidence for that decision. Investigate only genuinely missing material evidence; do not seek independent corroboration or reconfirmation for that statement, reconstruct a conversation, or manufacture a durable fact.

Outputs + DONE

  • Skill(spectre-capture) or Skill(spectre-work-record) returns a saved, updated, or no-op result. Report its record kind, exact ID, and outcome.
  • A broad account always uses the seven-section work record form. No Learn output creates a knowledge skill, separate dossier, or SessionStart entry.
  • DONE when qualifying evidence has reached Capture or bare Learn truthfully reports a no-op.

Method / guardrails

  1. Identify intent from the request. A bare request scans the conversation for accepted consequential decisions, verified reusable constraints, corrections, or confirmed blockers/resolutions. An explicit user correction is already-authorized evidence, not an unsupported hypothesis; routine progress and model-generated hypotheses are no-ops.
  2. For an insight or correction, provide Skill(spectre-capture) the evidence, authority, and maintained-knowledge target. For an explicit user correction, cite that direction as evidence, revise the current record, and retain disagreeing repository statements only as stale or historical context; absence of repository corroboration is not missing evidence. For work summary, explicit snapshot, or historical correction, provide Skill(spectre-work-record) the exact run/PR/candidate association and only truthful lifecycle facts.
  3. The knowledge skill reads ${PLUGIN_ROOT}/skills/spectre-capture/references/knowledge-capture-input.json; the work-record skill reads spectre-work-record/references/work-capture-input.json. Each owns construction, revisions, tags, saving, and recovery. Learn does not duplicate that SOP or write records. Already-authorized facts need no new proposal or approval loop.

Read the full file on GitHub · 49 lines

Files

What ships with it

3 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. 1mo ago Changed a72f2d02dca1
  2. 1mo ago Changed · -48 lines · -27 tokens per session d2e036c91342
  3. 1mo ago Changed · +6 lines 13e0e676b7b2
  4. 2mo ago First seen · 91 lines · 93 tokens per session scan A 737b0c0ca62d

Subscribe to this mod's changes

spectre-learn is a skill published in the GitHub repository joenandez/spectre (164 stars, last pushed 1mo ago), licensed MIT. It adds 66 tokens to every session and 792 once invoked, about $0.0003 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-08-30.

Related

spectre-learn compared with skills from other repositories

spectre-learn next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spectre-learnjoenandez/spectreSkill1641mo agoMITA66Claude Code, Codex
knowledge-ingestopenclaw/openclawSkill394kyesterdayMITA80Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill68k2d agoApache-2.0A217Claude Code, Codex
forgetasgeirtj/system_prompts_leaksSkill71k2d agoCC0-1.0A74Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill20kyesterdayMITA184Claude Code
memoryopensquilla/opensquillaSkill7.1k6d agoApache-2.0A44Claude Code, Codex
ha-data-storesshiwenwen/hope-agentSkill1.9kyesterdayMITA115Claude Code, Codex