Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "addy-agent-skills",
"owner": {
"name": "Addy Osmani"
},
"metadata": {
"description": "Production-grade engineering skills for AI coding agents — covering the full software development lifecycle from spec to ship."
},
"plugins": [
{
"name": "agent-skills",
"source": {
"source": "github",
"repo": "addyosmani/agent-skills"
},
"description": "Production-grade engineering skills covering every phase of software development: spec, plan, build, verify, review, and ship."
}
]
}
12 changes: 12 additions & 0 deletions .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "agent-skills",
"description": "Production-grade engineering skills for AI coding agents — covering the full software development lifecycle from spec to ship.",
"version": "1.0.0",
"author": {
"name": "Addy Osmani"
},
"homepage": "https://github.com/addyosmani/agent-skills",
"repository": "https://github.com/addyosmani/agent-skills",
"license": "MIT",
"commands": "./.claude/commands"
}
4 changes: 2 additions & 2 deletions .claude/commands/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description: Implement the next task incrementally — build, test, verify, commit
---

Invoke the swe-skills:incremental-implementation skill alongside swe-skills:test-driven-development.
Invoke the agent-skills:incremental-implementation skill alongside agent-skills:test-driven-development.

Pick the next pending task from the plan. For each task:

Expand All @@ -15,4 +15,4 @@ Pick the next pending task from the plan. For each task:
7. Commit with a descriptive message
8. Mark the task complete and move to the next one

If any step fails, follow the swe-skills:debugging-and-error-recovery skill.
If any step fails, follow the agent-skills:debugging-and-error-recovery skill.
2 changes: 1 addition & 1 deletion .claude/commands/plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description: Break work into small verifiable tasks with acceptance criteria and dependency ordering
---

Invoke the swe-skills:planning-and-task-breakdown skill.
Invoke the agent-skills:planning-and-task-breakdown skill.

Read the existing spec (SPEC.md or equivalent) and the relevant codebase sections. Then:

Expand Down
2 changes: 1 addition & 1 deletion .claude/commands/review.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description: Conduct a five-axis code review — correctness, readability, architecture, security, performance
---

Invoke the swe-skills:code-review-and-quality skill.
Invoke the agent-skills:code-review-and-quality skill.

Review the current changes (staged or recent commits) across all five axes:

Expand Down
2 changes: 1 addition & 1 deletion .claude/commands/ship.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description: Run the pre-launch checklist and prepare for production deployment
---

Invoke the swe-skills:shipping-and-launch skill.
Invoke the agent-skills:shipping-and-launch skill.

Run through the complete pre-launch checklist:

Expand Down
2 changes: 1 addition & 1 deletion .claude/commands/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description: Start spec-driven development — write a structured specification before writing code
---

Invoke the swe-skills:spec-driven-development skill.
Invoke the agent-skills:spec-driven-development skill.

Begin by understanding what the user wants to build. Ask clarifying questions about:
1. The objective and target users
Expand Down
4 changes: 2 additions & 2 deletions .claude/commands/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description: Run TDD workflow — write failing tests, implement, verify. For bugs, use the Prove-It pattern.
---

Invoke the swe-skills:test-driven-development skill.
Invoke the agent-skills:test-driven-development skill.

For new features:
1. Write tests that describe the expected behavior (they should FAIL)
Expand All @@ -16,4 +16,4 @@ For bug fixes (Prove-It pattern):
4. Confirm the test passes
5. Run the full test suite for regressions

For browser-related issues, also invoke swe-skills:browser-testing-with-devtools to verify with Chrome DevTools MCP.
For browser-related issues, also invoke agent-skills:browser-testing-with-devtools to verify with Chrome DevTools MCP.
4 changes: 2 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# swe-skills
# agent-skills

This is the swe-skills project — a collection of production-grade engineering skills for AI coding agents.
This is the agent-skills project — a collection of production-grade engineering skills for AI coding agents.

## Project Structure

Expand Down
38 changes: 22 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,29 @@ AI coding agents are powerful, but they default to taking the shortest path —

### Claude Code (Recommended)

```bash
# Install as a Claude Code plugin
claude plugin add agent-skills
**Via marketplace** — add and install directly from Claude Code:

```
/plugin marketplace add addyosmani/agent-skills
/plugin install agent-skills@addy-agent-skills
```

**Local / development use** — clone and load with `--plugin-dir`:

# Or clone and reference directly
```bash
git clone https://github.com/addyosmani/agent-skills.git
cd your-project
# Add to your CLAUDE.md:
# Import skills from /path/to/agent-skills/skills/
claude --plugin-dir /path/to/agent-skills
```

Once installed, skills are available via slash commands:
Once loaded, skills activate automatically based on context. Slash commands are also available under the `agent-skills:` namespace:

```
/spec → Start spec-driven development
/plan → Break work into tasks
/build → Implement incrementally
/test → Run TDD workflow
/review → Trigger code review
/ship → Pre-launch checklist
/agent-skills:spec → Start spec-driven development
/agent-skills:plan → Break work into tasks
/agent-skills:build → Implement incrementally
/agent-skills:test → Run TDD workflow
/agent-skills:review → Trigger code review
/agent-skills:ship → Pre-launch checklist
```

### Cursor
Expand Down Expand Up @@ -182,11 +185,14 @@ agent-skills/
├── AGENTS.md # Guidance for AI agents
├── CLAUDE.md # Claude Code configuration
├── LICENSE # MIT License
├── .claude-plugin/
│ ├── plugin.json # Claude Code plugin manifest
│ └── marketplace.json # Claude Code marketplace catalog
├── .claude/
│ └── commands/ # Slash commands
│ └── commands/ # Slash commands (standalone use)
├── skills/ # Core skills (SKILL.md per directory)
│ ├── idea-refine/ # Define phase: Idea refinement
│ ├── using-swe-skills/ # Meta: how to use this pack
│ ├── using-agent-skills/ # Meta: how to use this pack
│ ├── spec-driven-development/ # Define phase
│ ├── planning-and-task-breakdown/ # Plan phase
│ ├── context-engineering/ # Build phase
Expand Down
14 changes: 7 additions & 7 deletions docs/copilot-setup.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Using swe-skills with GitHub Copilot
# Using agent-skills with GitHub Copilot

## Setup

Expand All @@ -10,20 +10,20 @@ GitHub Copilot supports project-level instructions via `.github/copilot-instruct
mkdir -p .github

# Create instructions file with essential skills
cat /path/to/swe-skills/skills/test-driven-development/SKILL.md > .github/copilot-instructions.md
cat /path/to/agent-skills/skills/test-driven-development/SKILL.md > .github/copilot-instructions.md
echo "\n---\n" >> .github/copilot-instructions.md
cat /path/to/swe-skills/skills/code-review-and-quality/SKILL.md >> .github/copilot-instructions.md
cat /path/to/agent-skills/skills/code-review-and-quality/SKILL.md >> .github/copilot-instructions.md
```

### Agent Personas (agents.md)

Copilot supports specialized agent personas. Use the swe-skills agents:
Copilot supports specialized agent personas. Use the agent-skills agents:

```bash
# Copy agent definitions
cp /path/to/swe-skills/agents/code-reviewer.md .github/agents/code-reviewer.md
cp /path/to/swe-skills/agents/test-engineer.md .github/agents/test-engineer.md
cp /path/to/swe-skills/agents/security-auditor.md .github/agents/security-auditor.md
cp /path/to/agent-skills/agents/code-reviewer.md .github/agents/code-reviewer.md
cp /path/to/agent-skills/agents/test-engineer.md .github/agents/test-engineer.md
cp /path/to/agent-skills/agents/security-auditor.md .github/agents/security-auditor.md
```

Invoke agents in Copilot Chat:
Expand Down
12 changes: 6 additions & 6 deletions docs/cursor-setup.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Using swe-skills with Cursor
# Using agent-skills with Cursor

## Setup

Expand All @@ -11,9 +11,9 @@ Cursor supports a `.cursor/rules/` directory for project-specific rules:
mkdir -p .cursor/rules

# Copy skills you want as rules
cp /path/to/swe-skills/skills/test-driven-development/SKILL.md .cursor/rules/test-driven-development.md
cp /path/to/swe-skills/skills/code-review-and-quality/SKILL.md .cursor/rules/code-review-and-quality.md
cp /path/to/swe-skills/skills/incremental-implementation/SKILL.md .cursor/rules/incremental-implementation.md
cp /path/to/agent-skills/skills/test-driven-development/SKILL.md .cursor/rules/test-driven-development.md
cp /path/to/agent-skills/skills/code-review-and-quality/SKILL.md .cursor/rules/code-review-and-quality.md
cp /path/to/agent-skills/skills/incremental-implementation/SKILL.md .cursor/rules/incremental-implementation.md
```

Rules in this directory are automatically loaded into Cursor's context.
Expand All @@ -24,9 +24,9 @@ Create a `.cursorrules` file in your project root with the essential skills inli

```bash
# Generate a combined rules file
cat /path/to/swe-skills/skills/test-driven-development/SKILL.md > .cursorrules
cat /path/to/agent-skills/skills/test-driven-development/SKILL.md > .cursorrules
echo "\n---\n" >> .cursorrules
cat /path/to/swe-skills/skills/code-review-and-quality/SKILL.md >> .cursorrules
cat /path/to/agent-skills/skills/code-review-and-quality/SKILL.md >> .cursorrules
```

### Option 3: Notepads
Expand Down
8 changes: 4 additions & 4 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Getting Started with swe-skills
# Getting Started with agent-skills

swe-skills works with any AI coding agent that accepts Markdown instructions. This guide covers the universal approach. For tool-specific setup, see the dedicated guides.
agent-skills works with any AI coding agent that accepts Markdown instructions. This guide covers the universal approach. For tool-specific setup, see the dedicated guides.

## How Skills Work

Expand All @@ -13,7 +13,7 @@ Each skill is a Markdown file (`SKILL.md`) that describes a specific engineering
### 1. Clone the repository

```bash
git clone https://github.com/addyosmani/swe-skills.git
git clone https://github.com/addyosmani/agent-skills.git
```

### 2. Choose a skill
Expand All @@ -37,7 +37,7 @@ Copy the relevant `SKILL.md` content into your agent's system prompt, rules file

### 4. Use the meta-skill for discovery

Start with the `using-swe-skills` skill loaded. It contains a flowchart that maps task types to the appropriate skill.
Start with the `using-agent-skills` skill loaded. It contains a flowchart that maps task types to the appropriate skill.

## Recommended Setup

Expand Down
2 changes: 1 addition & 1 deletion docs/skill-anatomy.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Skill Anatomy

This document describes the structure and format of swe-skills skill files. Use this as a guide when contributing new skills or understanding existing ones.
This document describes the structure and format of agent-skills skill files. Use this as a guide when contributing new skills or understanding existing ones.

## File Location

Expand Down
10 changes: 5 additions & 5 deletions docs/windsurf-setup.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Using swe-skills with Windsurf
# Using agent-skills with Windsurf

## Setup

Expand All @@ -8,11 +8,11 @@ Windsurf uses `.windsurfrules` for project-specific agent instructions:

```bash
# Create a combined rules file from your most important skills
cat /path/to/swe-skills/skills/test-driven-development/SKILL.md > .windsurfrules
cat /path/to/agent-skills/skills/test-driven-development/SKILL.md > .windsurfrules
echo "\n---\n" >> .windsurfrules
cat /path/to/swe-skills/skills/incremental-implementation/SKILL.md >> .windsurfrules
cat /path/to/agent-skills/skills/incremental-implementation/SKILL.md >> .windsurfrules
echo "\n---\n" >> .windsurfrules
cat /path/to/swe-skills/skills/code-review-and-quality/SKILL.md >> .windsurfrules
cat /path/to/agent-skills/skills/code-review-and-quality/SKILL.md >> .windsurfrules
```

### Global Rules
Expand All @@ -28,7 +28,7 @@ Keep `.windsurfrules` focused on 2-3 essential skills to stay within context lim

```
# .windsurfrules
# Essential swe-skills for this project
# Essential agent-skills for this project

[Paste test-driven-development SKILL.md]

Expand Down
18 changes: 12 additions & 6 deletions hooks/hooks.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{
"hooks": [
{
"type": "SessionStart",
"command": "bash hooks/session-start.sh"
}
]
"hooks": {
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/session-start.sh"
}
]
}
]
}
}
10 changes: 5 additions & 5 deletions hooks/session-start.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
#!/bin/bash
# swe-skills session start hook
# Injects the using-swe-skills meta-skill into every new session
# agent-skills session start hook
# Injects the using-agent-skills meta-skill into every new session

SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
SKILLS_DIR="$(dirname "$SCRIPT_DIR")/skills"
META_SKILL="$SKILLS_DIR/using-swe-skills/SKILL.md"
META_SKILL="$SKILLS_DIR/using-agent-skills/SKILL.md"

if [ -f "$META_SKILL" ]; then
CONTENT=$(cat "$META_SKILL")
# Output as JSON for Claude Code hook consumption
cat <<EOF
{
"priority": "IMPORTANT",
"message": "swe-skills loaded. Use the skill discovery flowchart to find the right skill for your task.\n\n$CONTENT"
"message": "agent-skills loaded. Use the skill discovery flowchart to find the right skill for your task.\n\n$CONTENT"
}
EOF
else
echo '{"priority": "INFO", "message": "swe-skills: using-swe-skills meta-skill not found. Skills may still be available individually."}'
echo '{"priority": "INFO", "message": "agent-skills: using-agent-skills meta-skill not found. Skills may still be available individually."}'
fi