prospec-learn

prospec-learn is a skill for Claude Code, Codex from benwu95/prospec. It costs 96 tokens per session (3,548 once invoked), scanned A, original, MIT.

A feedback system that collects repeated corrections, failed checks, and serious review findings in a version-controlled lessons ledger. It scores proposed lessons using a stated rule and suggests moving them through three levels only after human approval.

In plain words
What is it for?
Use it to identify patterns in archived changes, score recurring lessons, and propose updates to a team playbook or project Constitution. Human approval is required before promotion.
Why use it?
It turns recurring mistakes into reviewable team knowledge without silently changing the team’s rules. The recorded scores make each promotion suggestion traceable.

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/benwu95/prospec/prospec-learn
Any agent
npx skills add benwu95/prospec --skill prospec-learn
Clone the repo
git clone --depth 1 https://github.com/benwu95/prospec

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/benwu95/prospec/prospec-learn.svg)](https://agentmods.dev/skills/benwu95/prospec/prospec-learn)
Your own site
<a href="https://agentmods.dev/skills/benwu95/prospec/prospec-learn"><img src="https://agentmods.dev/badge/skills/benwu95/prospec/prospec-learn.svg" alt="Measured on agentmods" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,548 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.00096 $0.03548
Opus 5 $0.00048 $0.01774
Sonnet 5 $0.00019 $0.00710
Haiku 4.5 $0.00010 $0.00355

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

Security

Grade A, and why

prospec-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 3d 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.

.agents/skills/prospec-learn/SKILL.md · 141 lines

How it starts

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

Prospec Learn Skill

Activation

When triggered, briefly describe:

  • That you'll collect recurring lessons from archived changes' quality_log and review.md into a version-controlled lessons ledger (auto-fed at archive time)
  • That promotion is decided by an explicit, reproducible rule (not a black-box heuristic) and every suggestion carries an auditable score
  • That nothing reaches the team playbook or Constitution without explicit human approval and a version-controlled record

Language Policy

Write each generated document in the language the Constitution's Language Policy rule assigns to its path — change artifacts and their archived summaries in the project's artifact language, the trust zone (Knowledge base, Feature Specs, index) in English. One skill run may write both. Keep code, identifiers, technical terms, and git commit messages in English.

CLI Prerequisite (required)

The prospec CLI is a required file for this skill — its deterministic steps call prospec commands. Probe BEFORE any other step; there is no manual fallback.

  1. Run prospec --version (Bash).
  2. Command not found / not executable → STOP. Ask the user to install the prospec standalone executable — the one-click installer script from the project README (macOS/Linux install.sh, Windows install.ps1) or a release binary from GitHub Releases; prospec is NOT published to npm. Then re-run this skill.
  3. Version older than 1.0.0 → STOP. Report the installed vs required version and ask the user to upgrade, then re-run this skill.

Hand-executing a CLI-owned mutation is NEVER the fallback — that re-introduces the nondeterministic serialization this contract exists to remove.

Startup Loading

  1. [STABLE] MANDATORY — Read references/promotion-format.md for the explicit promotion rule, the Generalizability Heuristic (what to capture), lessons-ledger format, playbook entry format, approval record, and TTL/conflict fields
  2. [STABLE] Read prospec/CONSTITUTION.md — the promotion target (Constitution rules) and the duplicate-check baseline
  3. [DYNAMIC] Read prospec/ai-knowledge/module-map.yaml — to compute each lesson's impact-module count
  4. [DYNAMIC] Read the existing lessons ledger prospec/ai-knowledge/_lessons-ledger.md (if present) — carry-forward anchor (version-controlled, survives worktrees)
  5. [DYNAMIC] Read prospec/ai-knowledge/_playbook.md (if present) in full — the Sweep's team-tier input and Promote's duplicate-check baseline. This is the one skill that reads the whole playbook; every other reader loads only the entries relevant to its change
  6. [DYNAMIC] Read .prospec.yaml learn.thresholds (promotion) and learn.lens_thresholds (yield sweep) if set; otherwise use the reference defaults (the ledger itself is prospec/ai-knowledge/_lessons-ledger.md, not a config file)

Read the full file on GitHub · 141 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. 3d ago First seen · 141 lines · 96 tokens per session scan A 6e9526b30062

Subscribe to this mod's changes

prospec-learn is a skill published in the GitHub repository benwu95/prospec (5 stars, last pushed 3d ago), licensed MIT. It adds 96 tokens to every session and 3,548 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.