New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

agents-skills

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agents-skills

Cross-IDE agent scaffolding: install rules, skills, workflows and hooks for Antigravity, VS Code, Cursor, and Claude Code

latest
Source
npmnpm
Version
3.0.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

agents-skills v3

Production-grade process and technology skills for AI agents — one command installs the discipline your AI agents are missing. Ships a full dev lifecycle: adversarial idea validation through to PR creation.

View Landing Page

Getting Started

npx agents-skills install   # one-time setup (role-based wizard)
agents-skills init          # generate project profile

Then use one command to build anything:

WorkflowWhen to use
/build-featureNew features — full lifecycle: validate → PRD → plan → implement → review → ship
/build-quickBug fixes & small tasks — fast loop: validate → implement → review → ship
/refactor-workflowRefactoring existing code safely without changing behavior
/build-feature-agentNon-technical team members — guided version of the full lifecycle

Invoking Slash Commands in Your IDE

IDEHow to invoke
Claude CodeType /build-feature directly in the chat prompt
CursorType /build-feature in the AI chat panel
VS Code (Copilot)@workspace /build-feature
AntigravityType /build-feature in the prompt bar

What it does

agents-skills distributes a curated set of Core Skills, Optional Skills, Tech Skills, and workflow commands into any workspace. Every AI agent operating in that workspace follows a structured, quality-enforced development lifecycle — from adversarial idea validation through to PR creation.

Three layers. All IDEs served.

Three-Layer Architecture

┌────────────────────────────────────────────────────────────┐
│  LAYER 1: PROCESS SKILLS                                   │
│  Teach agents HOW TO THINK                                 │
│  Core Skills (12) + Optional Skills (5)                    │
│  Role-based install: Frontend / Backend / Fullstack / Full │
├────────────────────────────────────────────────────────────┤
│  LAYER 2: TECHNOLOGY SKILLS                                │
│  Teach agents HOW TO USE SPECIFIC TOOLS                    │
│  Optional — installed individually or via pack aliases     │
├────────────────────────────────────────────────────────────┤
│  LAYER 3: WORKFLOWS & COMMANDS                             │
│  Full lifecycle orchestration                              │
│  Master workflow (automated) + Slash commands (composable) │
└────────────────────────────────────────────────────────────┘
              ↑ All three layers distributed via CLI ↑

Key Features

  • 🧠 Core Skills: 12 skills that teach agents how to think — from PRD writing to security hardening. Included in every role-based install bundle.
  • 🚀 Multi-IDE: Antigravity, VS Code, Cursor, Claude Code — all from one command.
  • 📦 Skill Versioning: Every skill has a version tracked in .version files. doctor catches outdated installs.
  • 🔗 Dependency Resolution: Skills declare dependencies in frontmatter. Installing graphql-backend auto-installs backend-engineer.
  • 📦 Pack Aliases: Install a curated pack with one command — react-pack, frontend-pack, graphql-pack, etc.
  • 🔍 Project Auto-detection: agents-skills init scans your workspace and generates a project-profile.json with framework, language, testing, and token budget config.
  • 🍳 Prompt Recipes: Parameterized prompt templates (add-auth, add-crud-page, setup-ci, etc.) assembled interactively and copied to clipboard.
  • 📊 Token Budget Enforcement: Built-in 40% context budget rule. agents-skills tokens shows per-skill token costs. Workflows enforce this in Phase 0.
  • 📸 Context Snapshots: agents-skills compact (human-driven) or agents-skills compact --auto (agent-driven via context-engineering skill) creates structured markdown snapshots for resuming long sessions.
  • ⬆️ Smart Upgrade: agents-skills upgrade detects schema version changes, shows a full migration diff, and safely removes deprecated skills with explicit confirmation.
  • 🛡️ Safety First: Automatic backups before global changes. Smart conflict resolution (overwrite / keep / merge / skip).

Quick Start

# Full install wizard (all skills, workflows, rules, hooks)
npx agents-skills install

# Install a single skill
npx agents-skills install react-query

# Install a pack (resolves to individual skills)
npx agents-skills install react-pack

# List everything installed
agents-skills list

# Check workspace health
agents-skills doctor

CLI Commands

CommandDescriptionv3?
agents-skills installFull interactive install wizard—
agents-skills install <skill>Install one skill (dependency-aware)—
agents-skills install <pack>Install pack alias (resolves to individual skills)NEW
agents-skills listList installed skills—
agents-skills list --registryList all available skills in public registryNEW
agents-skills upgradeSmart migration: detect schema version, update/add/remove skillsNEW
agents-skills upgrade --dry-runShow migration diff without executingNEW
agents-skills initAuto-detect tech stack → generate project-profile.json (adds model-agnostic default)UPGRADE
agents-skills recipe [name]Browse and run parameterized prompt recipes—
agents-skills tokens [--budget|--skill|--file]Token usage breakdown with 40% budget check—
agents-skills compactInteractive context snapshot (human-driven)—
agents-skills compact --autoAgent-driven context snapshot via JSON payloadNEW
agents-skills doctorWorkspace health check — surfaces upgrade prompt on schema mismatchUPGRADE
agents-skills telemetry [on|off|status|report]Manage local telemetry—

Core Skills (12)

Included in all role-based install bundles (Frontend, Backend, Fullstack, Full).

SkillPhaseDescription
grill-mePhase 0Adversarial plan stress-testing. Attacks assumptions, resolves every branch of the decision tree before a line of code is written.
context-engineeringPhase 0Teaches agents how to pack context efficiently. Upgrades compact CLI to be agent-driven.
write-a-prdPhase 1Produces a full PRD: user stories, success criteria, scope boundaries. Submitted as a GitHub issue.
source-driven-developmentPhase 1Grounds every framework decision in official docs. Agent must cite sources, never hallucinate APIs.
prd-to-planPhase 2Turns a PRD into a tracer-bullet implementation plan. Each bullet = thin end-to-end vertical slice.
incremental-implementationPhase 2Implement → Test → Verify → Commit cycle discipline.
code-reviewerPhase 4Critique against project standards. Anti-rationalization table and verification gate.
test-writingPhase 4Vitest unit + Playwright E2E. TDD process guidance.
security-and-hardeningPhase 4OWASP Top 10, auth patterns, secrets management, dependency auditing.
git-workflowPhase 5Branch naming, conventional commits, PR creation.
ci-cd-and-automationPhase 5Shift Left, quality gate pipelines, feature flags.
skill-creatorMetaGenerates new skills. Enforces 7-section anatomy output.

Optional Skills (5)

Installed on demand or with the Full bundle. Available as opt-in gates in /build-feature.

SkillTriggerDescription
performance-optimizationPre-shipCore Web Vitals, bundle analysis, profiling.
documentation-and-adrsPre-shipArchitecture Decision Records, API docs, inline doc standards.
debug-investigatorOn-demandRoot cause analysis, structured multi-step investigation.
deprecation-and-migrationOn-demandCode-as-liability mindset, migration patterns, zombie code removal.
context-health-checkOn-demandPre-load cost estimation and forward-planning for context budget.

Technology Skills

All tech skills upgraded to 7-section anatomy. Installed individually or via pack aliases.

Individual Skills

SkillPackDescription
firebase-setupfirebase-packFirebase Auth, Firestore, and Storage conventions (v9 SDK)
graphql-backendgraphql-pack, backend-packApollo Server, DataLoaders, schema design, N+1 prevention
graphql-frontendgraphql-packApollo Client, fragments, cache management, code generation
react-queryreact-packTanStack Query conventions, key factories, mutations
rtk-queryreact-packRTK Query data-fetching, cache tags, optimistic updates
react-nativereact-pack, mobile-packExpo, React Navigation, native modules, styling, performance
react-component-scaffolderreact-pack, frontend-packBoilerplate for strict React/Vite components
frontend-designfrontend-packProduction-grade UI/UX with premium design quality
payload-cmsstandalonePayloadCMS v3 + Next.js: collections, blocks, media, email
api-integrationfrontend-packFrontend ↔ Redux/Firebase endpoint connection
backend-engineerbackend-packNode.js, TypeScript, MongoDB, REST APIs, Microservices
playwrighttesting-packFull Playwright E2E: selectors, POM, assertions, mocking, CI
post-pr-reviewstandalonePost code review feedback as inline GitHub PR comments

Pack Aliases

Packs are install-time shortcuts — resolved to individual skill installs.

PackResolves To
react-packreact-query, rtk-query, react-native, react-component-scaffolder
frontend-packreact-component-scaffolder, frontend-design, api-integration
graphql-packgraphql-backend, graphql-frontend
backend-packbackend-engineer, graphql-backend
firebase-packfirebase-setup
mobile-packreact-native
testing-packplaywright, test-writing

7-Section Skill Anatomy

Every first-party skill implements all 7 sections:

---
name: skill-name
description: One-line trigger description
version: 1.0.0
category: process | technology
optional: true | false
dependencies: []
---

## 1. Trigger Conditions
## 2. Prerequisites
## 3. Steps
## 4. Anti-Rationalization Table
## 5. Red Flags
## 6. Verification Gate
## 7. References

Workflows

/build-feature — Master Workflow

Chains all Core Skill phases with gate conditions:

Phase 0: Core Skills Check (binary — no NLP)
  └── Are Core Skills installed? If not → print install command → exit

Phase 1: Grill  [/grill-me]
  └── Adversarial validation → resolved decision tree

Phase 2: PRD  [/write-a-prd]
  └── User stories, success criteria, scope → GitHub issue

Phase 3: Plan  [/prd-to-plan]
  └── Tracer-bullet vertical slices → ./plans/*.md

Phase 4: Implement  [/implement]
  └── Load tech skills → Implement → Test → Verify → Commit

Phase 5: Quality  [/review] [/secure] [/test]
  └── Code review → Security audit → Test suite

Phase 5a: Optional Gates (user opt-in)
  └── [/perf]  Performance audit
  └── [/docs]  Documentation + ADRs

Phase 6: Ship  [/ship]
  └── Branch → Commit → PR

/build-quick — Fast Loop

For bug fixes and small tasks — 4 phases, no PRD or plan:

Phase 1: Grill      [/grill-me]   (lightweight — scope validation only)
Phase 2: Implement  [/implement]
Phase 3: Review     [/review]
Phase 4: Ship       [/ship]

Individual Slash Commands

CommandSkillOutput
/grill-megrill-meResolved decision tree
/write-a-prdwrite-a-prdPRD → GitHub issue
/prd-to-planprd-to-plan./plans/*.md
/implementincremental-implementation + tech skillsWorking vertical slice
/reviewcode-reviewerReview report
/securesecurity-and-hardeningSecurity audit
/testtest-writingTest suite
/shipgit-workflow + ci-cd-and-automationBranch, commit, PR
/perfperformance-optimizationPerformance audit
/docsdocumentation-and-adrsADRs + docs
/compactcontext-engineeringAgent-driven context snapshot
/debugdebug-investigatorRoot cause report

Skill Gap Detection

Phase 0 of /build-feature runs a binary Core Skills check — no NLP parsing:

OUTCOME A — Core Skills installed:
  "Core Skills are installed. Proceeding."

OUTCOME B — Core Skills missing:
  "Core Skills are not fully installed.
   Run: npx agents-skills install
   Then re-run /build-feature."

To browse and install tech skills: agents-skills list --registry

Upgrade Command

Minor upgrade (same schema version)

agents-skills upgrade
  → Detect outdated skills → overwrite with latest → update .version files
  → "3 skills updated: code-reviewer v1.1, git-workflow v1.2"

Major upgrade (v2 → v3 schema change)

agents-skills upgrade
  STEP 1 — Show migration diff (read-only):
    ✓ Will UPDATE (12 skills): code-reviewer, git-workflow...
    + Will ADD (8 new skills): grill-me, write-a-prd...
    ✗ Will REMOVE (2 skills): app-architect, doc-coauthoring

  STEP 2 — Confirm destructive changes:
    "2 skills will be removed. Proceed? [y/N]"

  STEP 3 — Execute after confirmation

  STEP 4 — Summary + "Run agents-skills doctor to verify"

Use agents-skills upgrade --dry-run to preview without executing.

Context Engineering Upgrade

Human-driven (still available)

agents-skills compact

Interactive prompts → snapshot in .agents/context-snapshots/.

Agent-driven (new in v3)

agents-skills compact --auto '{"goal":"...","completed":[...],...}'

The context-engineering skill teaches agents to auto-fill all snapshot fields from session state — no human prompts needed.

Token Budget System

Model-agnostic default

Conservative default: 128k context → 51,200 token budget (40%)

Config file override (agents-skills.config.json)

{
  "model": "claude-sonnet-4-20250514",
  "contextWindow": 200000,
  "budgetPercent": 40
}
# See live breakdown per skill
agents-skills tokens

# Quick budget check
agents-skills tokens --budget

Skill Dependencies

Skills declare dependencies in their SKILL.md frontmatter:

---
name: graphql-backend
dependencies:
  - backend-engineer
---

Current dependency graph:

graphql-backend   → backend-engineer
frontend-design   → react-component-scaffolder
post-pr-review    → code-reviewer

Project Profile

Running agents-skills init scans your workspace and writes .agents/project-profile.json:

{
  "generated_at": "2026-04-14T...",
  "framework": "next-app-router",
  "language": "typescript",
  "styling": "tailwindcss",
  "stateManagement": "react-query",
  "testing": { "unit": "vitest", "e2e": "playwright" },
  "packageManager": "pnpm",
  "detectedSkills": ["frontend-design", "react-query", "playwright", "test-writing"],
  "tokenBudget": {
    "model": "model-agnostic",
    "contextWindow": 128000,
    "budgetPercent": 40,
    "budgetTokens": 51200
  }
}

IDE Output Mapping

Source (.agents/)AntigravityVS Code / CopilotCursorClaude Code
rules/project-standards.md.agents/rules/project-standards.md.github/copilot-instructions.md.cursorrulesCLAUDE.md
rules/*.md (rest).agents/rules/.github/rules/.cursor/rules/*.mdc.claude/rules/
skills/.agents/skills/.github/skills/.cursor/skills/.claude/skills/
commands/.agents/commands/.github/instructions/.cursor/commands/.claude/commands/
workflows/.agents/workflows/.github/agents/.cursor/agents/.claude/agents/
hooks/.agents/hooks/.github/hooks/.cursor/rules/*.mdc (alwaysApply).claude/hooks/
recipes/.agents/recipes/.github/recipes/.cursor/recipes/.claude/recipes/

Project Structure

.agents/                  # Canonical agent source files
├── rules/                # Style guides & AI instructions
├── skills/               # Capability-specific prompt snippets
│   ├── <process-skill>/  # Mandatory + optional process skills
│   └── <tech-skill>/     # Technology skills
├── commands/             # Thin slash command stubs (10-20 lines each)
│   ├── grill-me.md       # /grill-me
│   ├── write-a-prd.md    # /write-a-prd
│   ├── prd-to-plan.md    # /prd-to-plan
│   ├── implement.md      # /implement
│   ├── ship.md           # /ship
│   └── compact.md        # /compact
├── workflows/            # Full orchestration docs
│   ├── build-feature.md         # Master workflow (full lifecycle)
│   ├── build-quick.md           # Fast loop (bug fixes, small tasks)
│   ├── build-feature-agent.md   # Non-technical user variant
│   └── refactor-workflow.md     # Safe refactoring workflow
├── hooks/                # AI-powered event handlers
├── recipes/              # Parameterized prompt templates
├── context-snapshots/    # Auto-generated session resumption files
└── project-profile.json  # Generated by `agents-skills init`

bin/
└── cli.js                # CLI entry point + subcommand router

src/
├── adapters/             # IDE-specific mapping logic
├── commands/             # CLI command implementations
│   ├── list.js
│   ├── doctor.js
│   ├── init.js
│   ├── recipe.js
│   ├── tokens.js
│   ├── compact.js
│   ├── upgrade.js        # NEW: smart migration command
│   └── telemetry.js
└── core/                 # Core engine modules
    ├── skill-registry.js
    ├── dependency-resolver.js
    ├── project-detector.js
    ├── token-counter.js
    ├── context-compactor.js
    ├── recipe-engine.js
    └── telemetry.js

skills.json               # Registry manifest (v3 schema)
docs/                     # Landing page (GitHub Pages)

skills.json Registry Manifest

{
  "version": "3.0.0",
  "skills": [
    {
      "name": "grill-me",
      "version": "1.0.0",
      "category": "process",
      "optional": false,
      "description": "Adversarial plan stress-testing",
      "packs": [],
      "dependencies": []
    }
  ],
  "packs": [
    {
      "name": "react-pack",
      "description": "All React-related skills",
      "skills": ["react-query", "rtk-query", "react-native", "react-component-scaffolder"]
    }
  ]
}

agents-skills list --registry fetches this manifest from GitHub and diffs against locally installed skills.

Requirements

  • Node.js 16+
  • npm 7+ (for npx support)

Development

# Link locally for testing
npm link
agents-skills help

# Unlink when done
npm unlink -g agents-skills

Publishing

npm login
npm version patch   # or minor/major
npm publish --access public

The prepublishOnly script automatically copies .agents/skills → skills/ and .agents/recipes → recipes/ before publish.

License

MIT

Keywords

agent

FAQs

Package last updated on 17 Apr 2026

Related posts