@anuragsarkar97/ai-agent-skills
v0.2.17
Published
Portable skills repository for AI coding agents such as Codex and Claude.
Maintainers
Readme
AI Agent Skills
Portable, installable skills for AI coding agents such as Codex and Claude.
| npm package | Install |
|---|---|
| @anuragsarkar97/ai-agent-skills | npx -y @anuragsarkar97/ai-agent-skills@latest install --agent codex --write --force |
This repository gives agents reusable operating modes for review, planning, implementation, testing, product thinking, communication, reliability, observability, and stack-specific engineering judgment. Skills are intentionally small. Deeper guidance lives in curated knowledge packs that agents load only when needed.
Install
Install everything into Codex:
npx -y @anuragsarkar97/ai-agent-skills@latest install --agent codex --write --forceInstall everything into Claude:
npx -y @anuragsarkar97/ai-agent-skills@latest install --agent claude --write --forceThat single command copies all skills plus shared _knowledge/ into the agent skill directory.
Use
After installing, ask the agent normally. The router skill helps the agent select the right skill without you naming it every time.
Examples:
Review this API design for production readiness.Grill this migration before I merge it.Draft a firm but respectful Slack message explaining why we should narrow this scope.Design the tables, indexes, constraints, and migration plan for organization invitations.Production checkout is returning 500s after the last deploy. Triage whether we should rollback or hotfix.I want to upskill myself in Kubernetes; find recent blogs, papers, docs, and videos and make me a 30-day plan./remember I need to send email to product manager at 10 pm tonightSearch our prior decisions before changing payment retry behavior.Review this webhook endpoint for authorization, replay, and secret-exposure risks.For explicit testing, name a skill:
Use the critical-thinking skill to challenge this design before we implement it.Use caveman mode: answer only what I directly ask and stop adding unrelated explanation.What You Get
| Area | Skills |
|---|---|
| Routing and workflow | agent-skill-router, repository-map, implementation-plan |
| Critical judgment | critical-thinking, wtf-check, oppenheimer-simplifier |
| Product and communication | product-competitive-thinking, product-communication |
| Learning and growth | upskilling-research |
| Reliability and operations | incident-response, observability-design, security-review |
| Personal productivity | macos-reminder |
| Implementation writers | service-writer, api-writer, utility-writer, test-writer |
| Review and quality | code-review, api-review, database-schema-design, design-principles-review, test-design-review, naming-review |
| Documentation and delivery | code-documentation, commit-pr-writer |
| Context and maintenance | decision-memory, caveman-mode, smriti-shruti, self-amending-skill |
Skill Highlights
agent-skill-router: chooses and combines skills proactively.caveman-mode: keeps answers terse, directly relevant, and silent on unasked tangents.critical-thinking: challenges weak designs and says no to anti-patterns.wtf-check: interrupts human or AI drift, thrash, over-scoping, and context switching with a blunt reset question.product-competitive-thinking: reviews work through product, startup, user, and competitor lenses.product-communication: writes respectful but firm Slack, email, issue, PR, and stakeholder messages.upskilling-research: finds fresh blogs, papers, docs, talks, courses, and videos and turns them into a learning path.database-schema-design: designs tables, entities, migrations, indexes, constraints, and retention.api-review: reviews API contracts, auth behavior, pagination, compatibility, and error shapes.code-review: performs normal reviews and adversarial grills for risky production changes.incident-response: triages outages, rollback/hotfix decisions, severity, handoff, and post-mortems.repository-map: discovers repository stack, commands, entry points, operational files, file structure, and public symbols.decision-memory: records and retrieves engineering decisions, rationale, rejected alternatives, and evidence.security-review: finds exploitable security and privacy risks with concrete attack paths and fixes.macos-reminder: schedules local macOS notification reminders from/rememberstyle prompts.observability-design: designs logs, metrics, traces, SLOs, dashboards, and alerts.service-writer,api-writer,utility-writer,test-writer: keep implementation work split by responsibility.smriti-shruti: reduces noisy context while preserving the facts needed for the current task.self-amending-skill: improves the skill system safely from real usage evidence.
Knowledge Packs
Installed skills include shared _knowledge/ references. Agents load these only when the task calls for them, which keeps the active context lean.
| Knowledge Pack | Use For |
|---|---|
| architecture/principles.md | SOLID, YAGNI, dependency direction, service boundaries |
| api/api-review.md | API contracts, auth, pagination, idempotency, errors |
| database/schema-design.md | entities, constraints, indexes, migrations, retention |
| communication/product-communication.md | Slack, email, feedback, conflict, decision messages |
| incident-response/incident-response.md | severity, incident roles, rollback/hotfix, post-mortems |
| observability/observability-design.md | golden signals, USE/RED, SLOs, logs, metrics, traces, alerts |
| golang/go-engineering.md | Go services, APIs, contexts, errors, concurrency, tests |
| react/react-engineering.md | React components, hooks, state, effects, accessibility, tests |
| python/python-scripting.md | Python CLIs, filesystem work, subprocesses, logging, script tests |
| kubernetes/kubernetes-operations.md | workloads, probes, resources, rollouts, RBAC, secrets |
| cloud/aws-azure-architecture.md | AWS, Azure, EKS, AKS, managed services, identity, networking |
| product/startup-pm.md | MVP scope, startup product bets, competitors, learning metrics |
| security/security-review.md | auth, permissions, secrets, PII, tenant isolation, webhooks |
| testing/testing-strategy.md | test levels, contract tests, regression coverage, false confidence |
Common Commands
List available skills:
npx -y @anuragsarkar97/ai-agent-skills@latest listRun package validation:
npx -y @anuragsarkar97/ai-agent-skills@latest checkSearch skills and knowledge:
npx -y @anuragsarkar97/ai-agent-skills@latest search "api auth pagination"Print bootstrap instructions for an agent:
npx -y @anuragsarkar97/ai-agent-skills@latest bootstrap --agent claudeGenerate repository-specific context:
npx -y @anuragsarkar97/ai-agent-skills@latest index-project --path .Record or search an engineering decision:
npx -y @anuragsarkar97/ai-agent-skills@latest decision-memory add --path . \
--title "Do not retry payment creation" \
--decision "Payment creation is never retried automatically" \
--rationale "Retries can create duplicate charges"
npx -y @anuragsarkar97/ai-agent-skills@latest decision-memory search --path . --query "payment retry"Install selected skills:
npx -y @anuragsarkar97/ai-agent-skills@latest install --agent codex --skills agent-skill-router,critical-thinking --write --forceInstall the frontend-focused local profile:
npx -y @anuragsarkar97/ai-agent-skills@latest install --agent claude --profile frontend --write --forceInstall third-party frontend skills from a Git URL:
npx -y @anuragsarkar97/ai-agent-skills@latest install --agent claude --external [email protected]:org/agent-skills.git#skills/ux-pro --write --forceInstall several additional third-party frontend skills from a manifest:
npx -y @anuragsarkar97/ai-agent-skills@latest install --agent claude --profile frontend --external-manifest examples/frontend-external-skills.json --write --forceInstall as symlinks from a local clone:
npm run skills:install -- --agent codex --mode symlink --write --forceInstall into a custom target:
npx -y @anuragsarkar97/ai-agent-skills@latest install --target /path/to/agent/skills --write --forceHow It Works
Each skill is a folder under skills/<skill-name>/ with a canonical SKILL.md.
skills/<skill-name>/
├── SKILL.md
├── agents/
│ ├── openai.yaml
│ └── claude.md
├── references/
├── scripts/
└── assets/The SKILL.md file defines the trigger, workflow, checks, and output shape. Agent-specific metadata lives under agents/. Detailed reusable guidance lives in shared knowledge/ and is installed as _knowledge/ beside the skills.
Local Development
Clone and validate:
git clone [email protected]:anuragsarkar97/skills.git
cd skills
npm testCreate a skill:
npm run skills:create -- my-new-skill --description "Use when an AI agent needs to..."Then edit skills/my-new-skill/SKILL.md with concrete triggers, workflow, checks, and output shape.
Create from a stronger template:
npm run skills:create -- my-review-skill --template review --description "Use when..."
npm run skills:create -- my-writer-skill --template writer --description "Use when..."
npm run skills:create -- my-ops-skill --template ops --description "Use when..."
npm run skills:create -- my-knowledge-skill --template knowledge-backed --description "Use when..."Build And Package
One command runs the full local packaging flow:
npm run skills:package-allIt runs validation, regenerates the catalog and graph, packages Claude bundles, and performs an npm pack dry run.
For a publishable release, bump the version as part of the same flow:
npm run skills:package-all -- --patchUse --minor, --major, or --bump 1.2.3 when the release needs a different version change.
Create Claude-ready ZIP bundles:
npm run skills:package-claudeCreate selected Claude bundles:
npm run skills:package-claude -- --skills agent-skill-router,critical-thinkingCreate an npm tarball locally:
npm run skills:package-all -- --pack-tarballPublish:
npm run skills:package-all -- --patch
npm publish --access publicFull release automation:
npm run skills:release -- --patchThe release script runs package-all with a version bump, writes the changelog, commits the release files, publishes to npm, tags the release, and pushes the branch and tag. Use --dry-run to test publish packaging without changing git or npm.
Maintenance Scripts
npm run skills:audit
npm run skills:bootstrap -- --agent claude
npm run skills:catalog
npm run skills:changelog
npm run skills:check
npm run skills:duplicates
npm run skills:evaluate
npm run skills:examples
npm run skills:graph
npm run skills:index-project
npm run skills:knowledge-index
npm run skills:marketplace-manifest
npm run skills:refresh-knowledge
npm run skills:repository-map -- --path .
npm run skills:search -- "go service tests"
npm run skills:verify-sourcesskills:checkruns validation, audit, prompt examples, evaluation hooks, and source checks.skills:bootstrapprints copy-paste agent instructions for proactive skill routing.skills:catalogwritesskills/catalog.json.skills:changeloggenerates changelog text from commits since the last tag.skills:graphwritesskills/graph.jsonandskills/graph.mmd.skills:evaluatechecks prompt coverage and shared knowledge hooks.skills:knowledge-indexwritesknowledge/index.jsonfrom curated references.skills:searchsearches skills and shared knowledge references.skills:verify-sourcesverifies source metadata in knowledge references.skills:refresh-knowledgewrites a review queue for source refresh work.skills:repository-mapwrites.skill-context/repo-map.md, using Git changes and content hashes for verified incremental regeneration.skills:index-projectwrites.skill-context/project-context.json.
Skill Contract
Every skill must include:
- A lowercase hyphenated directory name.
- A
SKILL.mdfile. - YAML frontmatter with only
nameanddescription. - A
namevalue that matches the directory. - A description that clearly says what the skill does and when an agent should use it.
Keep SKILL.md concise. Move bulky examples, schemas, policies, framework-specific details, and source-backed guidance into shared knowledge references.
Repository Layout
.
├── agents/ # Agent-specific usage notes
├── AGENTS.md # Root instructions for Codex-style agents
├── CLAUDE.md # Root instructions for Claude-style agents
├── bin/ # npm CLI entrypoint
├── examples/ # Prompt examples for validation
├── knowledge/ # Shared curated references
├── profiles/ # Install profiles such as frontend
├── scripts/ # Maintenance, packaging, and validation scripts
├── skills/ # Reusable skills
└── templates/ # Skill templatesContribution Notes
- Prefer small, focused skills over broad instruction dumps.
- Add or update prompt examples when adding a skill.
- Add source notes to every shared knowledge reference.
- Run
npm run skills:package-allbefore publishing or opening a large skill-system change. - Regenerate catalog and graph artifacts when inventory, metadata, or routing changes.
