project-learnings

project-learnings is a skill for Claude Code, Codex from sequenzia/agent-alchemy. It costs 47 tokens per session (1,096 once invoked), scanned A, original, MIT.

A project-specific knowledge tool that records useful patterns and known mistakes in a project’s CLAUDE.md file. That file gives later coding-agent sessions context about the codebase.

In plain words
What is it for?
Use it to save facts about a project’s architecture, APIs, conventions, data assumptions, and recurring pitfalls when those facts are worth preserving.
Why use it?
It prevents the same project-specific discoveries and mistakes from being forgotten between sessions.

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/sequenzia/agent-alchemy/project-learnings
Any agent
npx skills add sequenzia/agent-alchemy --skill project-learnings
Clone the repo
git clone --depth 1 https://github.com/sequenzia/agent-alchemy

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 project-learnings

README.md
[![agentmods](https://agentmods.dev/badge/skills/sequenzia/agent-alchemy/project-learnings.svg)](https://agentmods.dev/skills/sequenzia/agent-alchemy/project-learnings)
Your own site
<a href="https://agentmods.dev/skills/sequenzia/agent-alchemy/project-learnings"><img src="https://agentmods.dev/badge/skills/sequenzia/agent-alchemy/project-learnings.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,096 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.00047 $0.01096
Opus 5 $0.00023 $0.00548
Sonnet 5 $0.00009 $0.00219
Haiku 4.5 $0.00005 $0.00110

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

Security

Grade A, and why

project-learnings 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 4d 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.

claude/dev-tools/skills/project-learnings/SKILL.md · 118 lines

How it starts

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

Project Learnings

Capture project-specific patterns and anti-patterns into the project's CLAUDE.md. This creates a self-improving feedback loop where discoveries from debugging, development, and review make future Claude sessions smarter.

CRITICAL: Only project-specific knowledge qualifies. Generic programming advice does not belong in CLAUDE.md.


Step 1: Evaluate Discovery

Determine if the finding qualifies as project-specific. The finding must pass at least ONE of these criteria:

Criteria Example That Qualifies Example That Doesn't
Would a developer unfamiliar with this project likely hit this issue? "The processOrder() function expects amounts in cents, not dollars" "Always validate function inputs"
Is this pattern specific to this codebase's architecture, APIs, or conventions? "The UserProfile type has an optional metadata field that is always present at runtime" "Use TypeScript strict mode"
Is it something Claude's training data wouldn't cover? "Never call db.query() without the timeout option — the default is infinite" "Use async/await instead of callbacks"

If NO to all criteria → STOP. Do not add generic programming knowledge to CLAUDE.md. Return to the calling skill and report that no project-specific learning was found.

If YES to any → proceed to Step 2.


Step 2: Read Existing CLAUDE.md

  1. Find the project's CLAUDE.md:

    • Check the repository root first
    • If not found, check if there's a project-level .claude/ directory
  2. Parse existing content:

    • Understand the existing structure, headings, and conventions
    • Look for sections where this learning would fit (e.g., "Known Gotchas", "Bug Patterns", "Conventions", "Known Challenges")
    • Check for duplicate or similar entries already present
  3. If a similar entry already exists → STOP. Report to the calling skill that this knowledge is already captured. Do not create duplicates.

Read the full file on GitHub · 118 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. 4d ago First seen · 118 lines · 47 tokens per session scan A e007b351f6c5

Subscribe to this mod's changes

project-learnings is a skill published in the GitHub repository sequenzia/agent-alchemy (43 stars, last pushed 3mo ago), licensed MIT. It adds 47 tokens to every session and 1,096 once invoked, about $0.0002 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.