agent-memory
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…
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 keeping them accurate as the project changes.
$ npx -y skills add nimadorostkar/Claude-Skills-collection --skill agent-instructions --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/agent-instructionsContext preview
The summary Claude sees to decide when to auto-load this skill.
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 keeping them accurate as the project changes.
name: agent-instructions description: 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 keeping them accurate as the project changes. metadata: category: agent-tooling version: 1.0.0 tags: [claude-md, instructions, context, onboarding, agents]
Write the project instruction file an agent reads before touching the codebase. Its job is to convey what the agent cannot infer and would get wrong — not to restate what it can read from the code.
1. **Write down what an agent gets wrong** — Start from observed failures, not from a template. If the agent keeps running the wrong test command, that is the first line. 2. **State the commands exactly** — Build, test, lint, run. With the flags. An agent that guesses `npm test` when the project uses `pnpm test:unit` wastes a turn and may run the wrong thing. 3. **Encode the conventions that are not visible** — "We use `Result` types, not exceptions, in the domain layer." An agent can read the code, but it cannot tell a convention from a coincidence. 4. **State the hard constraints** — Never edit generated files. Never commit to main. Never modify the migration history. These prevent real damage. 5. **Keep it short** — This file is loaded on every session. Every line costs context. Ruthlessly cut anything the agent could work out for itself. 6. **Update it when it is wrong** — An inaccurate instruction file is worse than none, because it is trusted.
**An instruction file that earns its tokens:**
# Project instructions ## Commands - Install: `pnpm install --frozen-lockfile` - Test: `pnpm test:unit` (fast) / `pnpm test:integration` (needs Docker) - Lint: `pnpm lint --fix` - Typecheck:`pnpm typecheck` - Run: `pnpm dev` (requires `.env.local`; copy from `.env.example`) Do NOT run `pnpm test` — it is an alias for the full E2E suite and takes 25 minutes. ## Conventions - Domain errors are returned as `Result<T, DomainError>`, never thrown. Exceptions are reserved for programmer error. See `src/shared/result.ts`. - All money is `Money` (integer minor units). Never a float, never a number. - Features may not import from other features. Shared code goes in `src/shared/`. This is enforced by ESLint; if you hit that rule, move the code rather than disabling the rule. ## Boundaries - `src/generated/` is generated by `pnpm codegen`. Never edit by hand. - `migrations/` is append-only. Never modify an existing migration, even to fix a typo — write a new one. - `legacy/billing/` is being strangled. Do not add to it. New billing code goes in `src/features/billing/`. ## Gotchas - The integration tests need Docker running. They will fail with a confusing connection error if it is not. - `pnpm dev` binds to port 3000; if it is in use the error is silent and the server exits with code 0.
Every line here is something an agent would otherwise get wrong, and each one costs it a turn.
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 an agent needs state that survives a session or a context compaction. Covers what to persist, file-based memory, structuring notes for retrieval, 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…