agent-memory
Use when an agent needs state that survives a session or a context compaction. Covers what to persist, file-based memory,…
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. Trigger on "write a claude.md for this repo", "set up agents.md", "the agent
Claude Code
$ npx -y skills add nimadorostkar/Claude-Skills-collection --skill agent-instructions --agent claude-code
Codex
$ npx skills add nimadorostkar/Claude-Skills-collection --skill agent-instructions -a codex -y
Cursor
$ npx skills add nimadorostkar/Claude-Skills-collection --skill agent-instructions -a cursor -y
Gemini CLI
$ npx skills add nimadorostkar/Claude-Skills-collection --skill agent-instructions -a gemini-cli -y
GitHub Copilot
$ npx skills add nimadorostkar/Claude-Skills-collection --skill agent-instructions -a github-copilot -y
OpenCode
$ npx skills add nimadorostkar/Claude-Skills-collection --skill agent-instructions -a opencode -y
Windsurf
$ npx skills add nimadorostkar/Claude-Skills-collection --skill agent-instructions -a windsurf -y
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. Trigger on "write a claude.md for this repo", "set up agents.md", "the agent keeps running the wrong test command". Do not use for rules that must hold every time — see the hooks skill; for notes the agent writes itself, see the agent-memory skill. 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.
Use when an agent needs state that survives a session or a context compaction. Covers what to persist, file-based memory,…
Use when automating agent behavior with lifecycle hooks. Covers hook events, deterministic enforcement of rules the model should…
Use when packaging skills, commands, hooks, and MCP servers into a distributable plugin. Covers manifest structure, bundling,…
Use when writing a new skill for an AI agent. Covers scoping, description writing for reliable triggering, progressive…
Use when reviewing or improving an existing agent skill. Covers triggering accuracy, content quality, redundancy with the base…
Use when creating reusable slash commands for an agent. Covers when a command beats a skill, argument handling, composing tool…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.