prime

prime is a skill for Claude Code from aldianriski/lean-flow. It costs 78 tokens per session (1,670 once invoked), scanned A, original, MIT.

A read-only session starter that loads available project context in a fixed order, including instructions, documentation, memory, sprint files, and architecture notes. It reports which expected files were found or missing.

In plain words
What is it for?
Use it at the start of a new session or after clearing a session to check project rules, current sprint state, technical structure, and available background information.
Why use it?
It helps an agent begin with the same relevant background each time instead of relying on memory or reading files in an inconsistent order. Missing context is reported without stopping the session.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

Part of the lean-flow plugin — 16 skills shipped together

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/aldianriski/lean-flow/prime
Any agent
npx skills add aldianriski/lean-flow --skill prime
Clone the repo
git clone --depth 1 https://github.com/aldianriski/lean-flow

Made for: Claude Code.

Or install lean-flow, the plugin that ships this one along with the rest of its 16 skills.

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 prime

README.md
[![agentmods](https://agentmods.dev/badge/skills/aldianriski/lean-flow/prime.svg)](https://agentmods.dev/skills/aldianriski/lean-flow/prime)
Your own site
<a href="https://agentmods.dev/skills/aldianriski/lean-flow/prime"><img src="https://agentmods.dev/badge/skills/aldianriski/lean-flow/prime.svg" alt="Measured on agentmods" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,670 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.1 $0.00078 $0.01670
Opus 5 $0.00039 $0.00835
Sonnet 5 $0.00016 $0.00334
Haiku 4.5 $0.00008 $0.00167

Measured 6d ago against content hash 4c2352c5d798, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

prime 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 6d 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/prime/SKILL.md · 113 lines

How it starts

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

prime

Ordered context loader + health check. One-shot session priming. Read-only — never writes.

When to invoke

  • First action of a fresh session, before any code-touching work.
  • After /clear to reload context without restarting.
  • When the session feels stale and you want to confirm what state you are operating against.

Read order

Read each that exists, in order. Mark [OK] / [MISSING] per item. All are optional — absence is reported, never fatal. Canonical placement (STANDARD §2) is listed first; legacy locations second. Adapt the globs to the host project's layout.

# Path (first match wins) Purpose
1 .claude/CLAUDE.md, CLAUDE.md Project instructions, anti-patterns, conventions
2 .claude/CONTEXT.md, CONTEXT.md Vocabulary · gates · modes (if the project uses one)
3 README.mdpresence-check by default Front-door (humans); overlaps 1·2·6 → full read deferred (note below)
4 MEMORY index (harness-resolved; fallback: memory/MEMORY.md, .claude/memory/MEMORY.md) Sprint state, feedback, references
5 TODO.md, TECH-DEBT.md, docs/sprint/SPRINT-*.md Active task list + debt ledger — frontmatter + open - [ ] items only
6 docs/architecture/overview.md, docs/ARCHITECTURE.md, ARCHITECTURE.md Module map / where-things-live (the durable map)

README is a fallback (token discipline). It is the human front-door and overlaps CLAUDE.md (1) + CONTEXT.md (2) + ARCHITECTURE.md (6). Stat its presence for the health line, but read its full content only when CLAUDE.md or CONTEXT.md is MISSING (then it is the best available overview). Why: the README duplicates CLAUDE.md/CONTEXT.md/ARCHITECTURE.md content, so reading it in full doubles the priming token cost for near-zero new signal.

Resolution: read TODO.md (the Backlog pool); follow its § Active Sprint pointer (format: > **SPRINT-NNN — <name>** → docs/sprint/SPRINT-NNN-<slug>.md) — a multi-stream repo lists one pointer per stream — to each active docs/sprint/SPRINT-NNN-<slug>.md and read only its frontmatter + Plan (~50 lines). Count open DoD [ ] across all active sprints (report per stream when more than one, e.g. Tasks: 5 open (main: 3 · payments: 2)); if no sprint is active, fall back to the Backlog. Resuming from a /handoff? Also read the handoff doc at the temp path it printed.

Read the full file on GitHub · 113 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. 6d ago First seen · 113 lines · 78 tokens per session scan A 4c2352c5d798

Subscribe to this mod's changes

prime is a skill published in the GitHub repository aldianriski/lean-flow (5 stars, last pushed 7d ago), licensed MIT. It adds 78 tokens to every session and 1,670 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

media-ingest

Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain. Multi-format handling with entity extraction and backlink propagation. Covers video-ingest, youtube-ingest, and book-ingest subtypes.

garrytan/gbrain · 52 tokens

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…

mem0ai/mem0 · 273 tokens

Cortex

Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…

danielmiessler/LifeOS · 196 tokens

agent-memory

../../../engineering/agent-memory/skills/agent-memory/SKILL.md.

alirezarezvani/claude-skills · 0 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens