agent-instructions
Use when writing project instructions for a coding agent (CLAUDE.md, AGENTS.md, or equivalent). Covers what belongs in them, what does not, structure, and…
Use when an agent needs state that survives a session or a context compaction. Covers what to persist, file-based memory, structuring notes for retrieval, and preventing memory from becoming stale.
$ npx -y skills add nimadorostkar/Claude-Skills-collection --skill agent-memory --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/agent-memoryContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when an agent needs state that survives a session or a context compaction. Covers what to persist, file-based memory, structuring notes for retrieval, and preventing memory from becoming stale.
name: agent-memory description: Use when an agent needs state that survives a session or a context compaction. Covers what to persist, file-based memory, structuring notes for retrieval, and preventing memory from becoming stale. metadata: category: agent-tooling version: 1.0.0 tags: [memory, persistence, state, context, notes]
Give an agent state that outlives its context window. Anything the agent must not forget belongs in a file it can re-read — not in a conversation history that will be compacted away.
1. **Write down what would be expensive to rediscover** — File locations, API shapes, the reason an approach was abandoned, a constraint the user stated once. Not the narrative of how you got there. 2. **Write it as facts, not as a story** — "The auth middleware is in `src/mw/auth.ts` and it does not run on `/health`." Not "I looked for the auth middleware and eventually found it." 3. **Record failures explicitly** — "Tried X. It does not work because Y." This is the highest-value memory content, because without it the agent will try X again. 4. **Re-read at the start of each session** — Memory that is not read is not memory. 5. **Prune what is stale** — A note that was true three refactors ago is now a trap. Date the entries and check them. 6. **Keep it small** — This file is loaded every session. It competes with the actual work for context.
**A memory file structured for retrieval:**
# Working memory — orders service migration _Last updated: 2026-06-14_ ## Stable facts (verified, unlikely to change) - Auth middleware: `src/middleware/auth.ts`. Runs on every route EXCEPT `/health` and `/metrics` (see the exclusion list at line 22). - Money is `Money` (integer minor units) throughout. There is no float money anywhere and there must not be. - The migration runner is `pnpm db:migrate`. It does NOT run automatically on deploy — this is deliberate; migrations are run manually before the deploy. ## Current task Strangling `legacy/billing` into `src/features/billing`. Done: invoice generation, proration. Next: refunds. Not started: dunning, tax. ## Tried and failed — do not repeat - 2026-06-02: Tried to run the two billing paths in parallel and diff the outputs. Abandoned: the legacy path writes to the ledger as a side effect, so running both double-writes. Shadow mode requires a read-only ledger adapter, which does not exist yet. - 2026-06-09: Tried extracting `PricingEngine` first. It depends on `LegacyCustomer`, which depends on half the legacy module. The dependency runs the wrong way; extract `Customer` first. ## Open questions for the user - Should refunds issued before the migration remain visible in the new UI? (Asked 2026-06-11, not yet answered.)
The "tried and failed" section is what stops the next session from spending two hours rediscovering that shadow mode double-writes the ledger.
A curated library of 137 production-grade skills for Claude and other AI coding agents. Every skill follows one structure, speaks with one voice, and earns its place by changing what the agent does.
Repo: nimadorostkar/Claude-Skills-collection
Use when writing project instructions for a coding agent (CLAUDE.md, AGENTS.md, or equivalent). Covers what belongs in them, what does not, structure, and…
Use when automating agent behavior with lifecycle hooks. Covers hook events, deterministic enforcement of rules the model should not be trusted to remember,…
Use when packaging skills, commands, hooks, and MCP servers into a distributable plugin. Covers manifest structure, bundling, versioning, testing, and…
Use when writing a new skill for an AI agent. Covers scoping, description writing for reliable triggering, progressive disclosure, and the difference between a…
Use when reviewing or improving an existing agent skill. Covers triggering accuracy, content quality, redundancy with the base model, and measuring whether the…
Use when creating reusable slash commands for an agent. Covers when a command beats a skill, argument handling, composing tool calls, and writing commands that…