/slashskills-labs:agent-instructionsfrom Slashskills Labs
Creates or reconciles AGENTS.md, CLAUDE.md and Cursor rules so Claude Code, Codex and Cursor each load the right guidance. Use when agent instructions are missing, stale, duplicated or conflicting.
Ships in Slashskills Labs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Write the smallest set of instruction files that each target runtime actually loads. A correct file in a location the runtime skips, or one shadowed by another file, does nothing. Recover facts from the repository before asking, and separate commands you ran from commands you only read about.
Infer the target runtimes from the request, existing files and the user's tooling. Ask only when the answer changes which files exist. "Make this work for our agents" with no other signal means Claude Code, Codex and Cursor.
Read the loading matrix before choosing any file. It records which files Claude Code, Codex and Cursor read, in what order, with which limits, checked on a stated date. Follow its run-time rule: re-check a runtime's docs when the check date is more than about 90 days old or the installed runtime is older than a version it names.
pwd
git rev-parse --show-toplevel
rg --files --hidden -g '!node_modules' -g '!.git' \
-g '**/AGENTS.md' -g '**/AGENTS.override.md' -g '**/CLAUDE.md' -g '**/CLAUDE.local.md' \
-g '**/.claude/rules/**' -g '**/.cursor/rules/**' -g '**/.cursorrules'
Then check three places rg misses:
CLAUDE.md, .claude/CLAUDE.md and CLAUDE.local.md from cwd upward. One in a parent folder shadows the repository's AGENTS.md for Claude Code. Ignore ~/.claude/CLAUDE.md; it does not shadow.project_doc_fallback_filenames and project_doc_max_bytes in ~/.codex/config.toml (or $CODEX_HOME) when present. A fallback-named file is an instruction file for Codex.AGENTS.md or CLAUDE.md inside test fixtures, examples or proof folders loads as a real instruction for Claude Code and Cursor when work touches that folder.For each file record: directory, runtimes that load it, when it loads (launch or on demand), what it shadows or is shadowed by, size, and statements that conflict with a nearer file or with repository evidence.
Treat user-global files (~/.claude/CLAUDE.md, ~/.codex/AGENTS.md) as context that explains behavior. Do not edit them unless asked.
Default for a repository shared across runtimes:
AGENTS.md as the shared source. Codex and Cursor read it. Claude Code reads it when no CLAUDE.md exists in cwd or above.CLAUDE.md only when Claude-specific rules exist (plan-mode areas, hooks, Claude tool notes) or a CLAUDE.md already exists. Its first line is @AGENTS.md; Claude-only notes go below.CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md without that import in a repository that relies on AGENTS.md. It silently drops AGENTS.md for Claude Code. This includes advising a user to add a personal CLAUDE.local.md.CLAUDE.md with shared content plus AGENTS.md: move shared facts into AGENTS.md, reduce CLAUDE.md to @AGENTS.md plus Claude-only notes. Ask before deleting a CLAUDE.md that holds anything beyond the import.AGENTS.md already covers it. Add .cursor/rules/*.mdc only for activation AGENTS.md cannot express: glob-scoped rules or description-selected rules. Do not copy AGENTS.md content into rules. Cursor does not inline @file references in rules, so put must-have content in the rule body..claude/rules/*.md with paths: for guidance that matters only for some files, instead of growing CLAUDE.md past about 200 lines.AGENTS.override.md for shared rules. Only Codex reads it. Flag an existing one as a divergence.AGENTS.md. @path imports expand only in Claude Code. Codex documents no import syntax, so imported content is invisible to it.Do not create parallel vendor files the runtimes do not need. One AGENTS.md often covers all three.
Add a nested AGENTS.md only when a subtree needs different commands, ownership or boundaries. Put only the difference in it. Nearer files come later in context in all three runtimes. Codex and Cursor treat that as precedence; Claude Code does not guarantee it, so a nested file must add to its parents, not contradict them. Reach also differs:
services/payments/AGENTS.md.So when a subtree rule must hold for Codex, add a one-line pointer in the root file ("Before editing services/payments/, read services/payments/AGENTS.md"), or document starting Codex in that directory.
Codex stops adding files once the combined size reaches 32 KiB by default, so a long root file pushes nested files out. Claude Code recommends under 200 lines per CLAUDE.md, and imports do not reduce context cost. Cut content an agent can derive from the code: directory trees, dependency lists, generic style advice.
Read the minimum evidence needed to establish:
Prefer manifests, scripts, CI workflows and executable configuration over prose. When sources disagree, report the conflict and use the source that controls execution (CI usually wins over README).
Include a path only when it changes how an agent navigates, edits or verifies. Write instructions an agent can check: "Run npm test before finishing" beats "test your changes".
Label each command:
Run safe, relevant checks. Do not start long-lived services, mutate external systems, install dependencies or run destructive commands to upgrade a label. State prerequisites next to commands that need them.
For each conflict choose one action:
Do not silently choose between policy statements about deployment, generated files, security, data handling or ownership.
/context all or /memory in Claude Code; codex --ask-for-approval never "Summarize the current instructions." (add --cd <dir> for a subtree) in Codex; Customize, Rules in Cursor. Otherwise label loading as reasoned from docs, not observed.wc -c) against the 32 KiB default and each CLAUDE.md against about 200 lines..mdc frontmatter and glob coverage against the files each rule should govern.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
agent-instructions, claude-code, cursor, codex, configuration
npx claudepluginhub tushaarmehtaa/tushar-skills --plugin slashskills-labs29 skills in this plugin
/ai-cost-auditAudit AI usage, billing, unit economics, routing, caching, batching, and optimization. Use when AI cost, margin, pricing, model choice, or savings must be measured or verified./ai-product-developmentBuild or audit AI features that call tools, stream, or charge for usage. Covers tool-time authorization, reserve-then-settle billing and evals before model changes. Use when adding AI to an app./analyticsPlan, implement, or audit analytics, error monitoring, health checks, dashboards, and reporting. Use when designing events, consent-aware tracking, incident visibility, or observability./auth-implementationImplement authentication, authorization, tenant isolation, sessions, and protected routes. Use when adding sign-in, identity sync, provider integration, account linking, roles, or access control./cold-outreachResearch, write, audit, and improve cold messages, introductions, replies, and sequences. Use when contacting prospects, investors, partners, candidates, or other professional recipients./credit-meteringImplement or audit usage credits with atomic reservations, spending, grants, purchases, expiration, refunds, limits, UI state, and an immutable ledger. Use when an app meters consumable usage.Other plugins' skills for the same job