Skip to content
Closed
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
2 changes: 1 addition & 1 deletion .codex-plugin/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"interface": {
"displayName": "Agent Skills",
"shortDescription": "Senior-engineer workflows for AI coding agents: spec, plan, build, test, review, ship.",
"longDescription": "Agent Skills bundles 25 production engineering workflows from Addy Osmani, covering requirements, planning, implementation, testing, review, and shipping.",
"longDescription": "Agent Skills bundles 26 production engineering workflows from Addy Osmani, covering requirements, planning, implementation, testing, review, and shipping.",
"developerName": "Addy Osmani",
"category": "Productivity",
"capabilities": [
Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/skill-gap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ body:
description: Which skill did not work as expected?
options:
- api-and-interface-design
- background-work-and-delivery
- browser-testing-with-devtools
- ci-cd-and-automation
- code-review-and-quality
Expand Down
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ The agent should automatically map user intent to skills:
- Code review → `code-review-and-quality`
- Refactoring / simplification → `code-simplification`
- API or interface design → `api-and-interface-design`
- Queue, webhook, cron, or outbox delivery → `background-work-and-delivery`
- UI work → `frontend-ui-engineering`

### Lifecycle Mapping (Implicit Commands)
Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ docs/ → Setup guides for different tools

**Define:** interview-me, idea-refine, spec-driven-development
**Plan:** planning-and-task-breakdown
**Build:** incremental-implementation, test-driven-development, context-engineering, source-driven-development, doubt-driven-development, frontend-ui-engineering, api-and-interface-design
**Build:** incremental-implementation, test-driven-development, context-engineering, source-driven-development, doubt-driven-development, frontend-ui-engineering, api-and-interface-design, background-work-and-delivery
**Verify:** browser-testing-with-devtools, debugging-and-error-recovery
**Review:** code-review-and-quality, code-simplification, security-and-hardening, performance-optimization
**Ship:** git-workflow-and-versioning, ci-cd-and-automation, deprecation-and-migration, documentation-and-adrs, observability-and-instrumentation, shipping-and-launch
Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Skills also activate automatically based on what you're doing — designing an A
**Fastest path — any agent, one command.** The open [skills CLI](https://github.com/vercel-labs/skills) installs into 70+ agents (Claude Code, Cursor, Codex, Copilot, Cline, and more):

```bash
npx skills add addyosmani/agent-skills # install all 25 skills
npx skills add addyosmani/agent-skills # install all 26 skills
npx skills add addyosmani/agent-skills --list # browse before installing
```

Expand Down Expand Up @@ -221,9 +221,9 @@ Already installed? How you roll the pack out depends on your codebase. The **[Ad

---

## All 25 Skills
## All 26 Skills

The commands above are entry points. The pack includes 25 skills total — 24 lifecycle skills plus the `using-agent-skills` meta-skill. Each skill is a structured workflow with steps, verification gates, and anti-rationalization tables. You can also reference any skill directly.
The commands above are entry points. The pack includes 26 skills total — 25 lifecycle skills plus the `using-agent-skills` meta-skill. Each skill is a structured workflow with steps, verification gates, and anti-rationalization tables. You can also reference any skill directly.

### Meta - Discover which skill applies

Expand Down Expand Up @@ -257,6 +257,7 @@ The commands above are entry points. The pack includes 25 skills total — 24 li
| [doubt-driven-development](skills/doubt-driven-development/SKILL.md) | Adversarial fresh-context review of every non-trivial decision in-flight - CLAIM → EXTRACT → DOUBT → RECONCILE → STOP, with optional user-authorized cross-model escalation | Stakes are high (production, security, irreversible), working in unfamiliar code, or a confident output is cheaper to verify now than to debug later |
| [frontend-ui-engineering](skills/frontend-ui-engineering/SKILL.md) | Component architecture, design systems, state management, responsive design, WCAG 2.1 AA accessibility | Building or modifying user-facing interfaces |
| [api-and-interface-design](skills/api-and-interface-design/SKILL.md) | Contract-first design, Hyrum's Law, One-Version Rule, error semantics, boundary validation | Designing APIs, module boundaries, or public interfaces |
| [background-work-and-delivery](skills/background-work-and-delivery/SKILL.md) | Claim, effect, record, then ack for at-least-once consumers, overlapping crons, and outbox publishers | A queue, webhook, scheduled job, or outbound message can run more than once |

### Verify - Prove it works

Expand Down Expand Up @@ -355,14 +356,14 @@ The portable core stays in shared directories. Host-specific paths are native di

| Layer / consumer | Repository paths | Purpose |
|---|---|---|
| Shared workflow core | `skills/` (25 skills) | Portable `SKILL.md` workflows used by every integration |
| Shared workflow core | `skills/` (26 skills) | Portable `SKILL.md` workflows used by every integration |
| Shared review material | `agents/` (4 personas), `references/` (7 checklists) | Specialist reviewers and pack-level checklists carried by whole-repo installs |
| Claude Code adapter | `.claude/commands/` (9 commands), `.claude-plugin/`, `hooks/` | Slash-command wrappers, marketplace metadata, and lifecycle hooks |
| Gemini CLI adapter | `.gemini/commands/` (9 commands) | Gemini-native TOML command wrappers |
| Antigravity CLI adapter | `commands/` (9 commands), `plugin.json` | Legacy TOML wrappers and the root plugin manifest; see the [known wrapper limitation](docs/antigravity-setup.md#lifecycle-workflows-and-command-compatibility) |
| Codex adapter | `.codex-plugin/`, `.agents/plugins/` | Codex plugin metadata and marketplace registration; Codex consumes `skills/` directly |
| GitHub Copilot CLI adapter | `plugin.json` | Root plugin metadata; Copilot CLI discovers `skills/` by convention and does not register the lifecycle wrappers |
| Contributor tooling | `scripts/` (13 scripts), `evals/` (25 case files), `.github/workflows/` | Validation, routing evals, and CI |
| Contributor tooling | `scripts/` (13 scripts), `evals/` (26 case files), `.github/workflows/` | Validation, routing evals, and CI |
| Documentation | `docs/` | Universal guidance and per-tool setup guides |

Tools without a checked-in adapter directory install or copy the shared `skills/` core into their own native location. The [Quick Start](#quick-start) links the setup guide for each supported host.
Expand Down
5 changes: 3 additions & 2 deletions docs/adoption-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

How to roll out agent-skills depends heavily on where your codebase is in its life. A greenfield project can adopt the full lifecycle from commit one. A codebase with years of history needs an incremental path that respects what already exists, its conventions, its undocumented decisions, and its lack of test coverage in places you'd rather not touch blind.

This guide covers both paths. For installation mechanics, see [getting-started.md](getting-started.md) and the per-tool setup guides. For what each skill does, see the [skill catalog in the README](../README.md#all-25-skills).
This guide covers both paths. For installation mechanics, see [getting-started.md](getting-started.md) and the per-tool setup guides. For what each skill does, see the [skill catalog in the README](../README.md#all-26-skills).

---

Expand Down Expand Up @@ -57,6 +57,7 @@ Run the lifecycle in order for the project's first real feature:
| When | Load |
| ----------------------------------- | ------------------------------------------------------------- |
| First public API or module boundary | `api-and-interface-design` |
| First queue, webhook, cron, or outbox | `background-work-and-delivery` |
| First UI work | `frontend-ui-engineering` (+ `browser-testing-with-devtools`) |
| First CI pipeline | `ci-cd-and-automation` |
| First production deploy | `observability-and-instrumentation`, `shipping-and-launch` |
Expand All @@ -65,7 +66,7 @@ Run the lifecycle in order for the project's first real feature:
### Greenfield anti-patterns

- **Skipping `/spec` because "it's just a prototype."** Prototypes become products. The spec is the cheapest artifact you'll ever write for this codebase.
- **Loading all 25 skills into every session.** It wastes context and dilutes the ones that matter. Load by phase; let the host's native router or `using-agent-skills` route, but not both.
- **Loading all 26 skills into every session.** It wastes context and dilutes the ones that matter. Load by phase; let the host's native router or `using-agent-skills` route, but not both.
- **Deferring observability until "there's something to observe."** Instrument as you build, retrofitting structured logging is a Path B problem you're choosing to create.

---
Expand Down
2 changes: 1 addition & 1 deletion docs/codex-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ codex plugin add agent-skills@agent-skills

## Usage

After install, invoke a skill in Codex chat with `@` (e.g. `@spec-driven-development`) or just describe the task and let Codex pick the right skill. All 25 skills under `skills/` are available.
After install, invoke a skill in Codex chat with `@` (e.g. `@spec-driven-development`) or just describe the task and let Codex pick the right skill. All 26 skills under `skills/` are available.

[Codex uses progressive disclosure](https://developers.openai.com/codex/skills): it starts with each skill's `name` and `description`, chooses skills on demand, then loads the full `SKILL.md` only when selected. Do not also paste `using-agent-skills/SKILL.md` into `AGENTS.md`, a system prompt, or other always-on context: that stacks the pack's meta-router on Codex's native router and adds unnecessary routing work. The meta-skill can remain installed with the pack; the warning is specifically against preloading its full instructions.

Expand Down
2 changes: 1 addition & 1 deletion docs/commandcode-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The Command Code binary is available as `cmd` (with aliases `cmdc` on Windows an
cmd skills add addyosmani/agent-skills
```

In an interactive terminal this shows a multi-select so you can choose which of the 25 skills to install. Pipe/non-interactive invocations install all discovered skills.
In an interactive terminal this shows a multi-select so you can choose which of the 26 skills to install. Pipe/non-interactive invocations install all discovered skills.

**Install a specific skill:**

Expand Down
2 changes: 1 addition & 1 deletion docs/comparison.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ People often ask how **agent-skills** relates to the two other "skills for codin
|---|---|---|---|
| **Core idea** | Encode the full senior-engineering lifecycle as skills | A complete development *methodology* built on composable skills | One expert's Claude Code workflow, open-sourced and evolving |
| **Organizing principle** | SDLC **phases** (Define to Ship) behind a meta-skill router | A single disciplined loop: brainstorm, plan, execute, review | A curated toolbox of focused, composable commands |
| **Catalog size** | 25 skills spanning the whole lifecycle | ~14 skills, deep on the inner build loop | ~30 skills, grouped into engineering / productivity / in-progress / deprecated |
| **Catalog size** | 26 skills spanning the whole lifecycle | ~14 skills, deep on the inner build loop | ~30 skills, grouped into engineering / productivity / in-progress / deprecated |
| **Lifecycle coverage** | Broad: idea refinement, API and UI design, security, performance, CI/CD, observability, deprecation, ADRs, launch | Deep but narrow: TDD, debugging, planning, review, skill authoring | Define and Build heavy: grilling, PRDs, issues, TDD, architecture, bug triage, knowledge management |
| **Entry points** | Slash commands mapped 1:1 to phases (`/spec` `/plan` `/build` `/test` `/review` `/code-simplify` `/ship`, plus `/webperf`), with a `/build auto` full-plan mode | Skill-chained pipeline (`brainstorming`, `writing-plans`, `subagent-driven-development`) | Slash commands (`/grill-me`, `/tdd`, `/to-prd`, `/diagnosing-bugs`, `/grill-with-docs`) |
| **Distinctive mechanisms** | Anti-rationalization tables and Red Flags in every skill; parallel review **personas** in `/ship`; reference checklists; a **three-tier eval framework** in CI | Subagent-driven development with a task reviewer (spec + quality) and a fix loop; git-worktree isolation; skills-that-write-skills, pressure-tested | The **grilling** primitive (one question at a time, design-tree walking); seam-based TDD; explicit user-invoked vs model-invoked split; issue-tracker integration |
Expand Down
2 changes: 1 addition & 1 deletion docs/cursor-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Explicit user phrases (“follow TDD”, “use code-review-and-quality”) stil
|----------|--------|
| Clarifying requirements | `interview-me`, `idea-refine`, `spec-driven-development` |
| Planning tasks | `planning-and-task-breakdown` |
| Implementing | `incremental-implementation`, `frontend-ui-engineering`, `api-and-interface-design` |
| Implementing | `incremental-implementation`, `frontend-ui-engineering`, `api-and-interface-design`, `background-work-and-delivery` |
| Testing | `test-driven-development`, `browser-testing-with-devtools` |
| Debugging | `debugging-and-error-recovery` |
| Reviewing | `code-review-and-quality`, `code-simplification` |
Expand Down
1 change: 1 addition & 0 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ Don't load all skills at once — it wastes context. Load skills relevant to the
- Working on UI? Load `frontend-ui-engineering`
- Debugging? Load `debugging-and-error-recovery`
- Setting up CI? Load `ci-cd-and-automation`
- Queue, webhook, cron, or outbox? Load `background-work-and-delivery`

## Skill Anatomy

Expand Down
1 change: 1 addition & 0 deletions docs/opencode-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ Map the user's intent to the matching skill automatically:
- Code review → `code-review-and-quality`
- Refactoring / simplification → `code-simplification`
- API or interface design → `api-and-interface-design`
- Queue, webhook, cron, or outbox delivery → `background-work-and-delivery`
- UI work → `frontend-ui-engineering`

## Execution Model
Expand Down
62 changes: 62 additions & 0 deletions evals/cases/background-work-and-delivery.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"skill_name": "background-work-and-delivery",
"trigger": {
"positive": [
{
"prompt": "The webhook was retried and the customer was charged twice. Make the handler safe under redelivery.",
"top_k": 3
},
{
"prompt": "The queue consumer acks the message before the email goes out, and we lose mail when the process dies.",
"top_k": 3
},
{
"prompt": "This scheduled job double-applied payouts when two cron instances overlapped. Stop the second run from doing the work.",
"top_k": 3
},
{
"prompt": "Poison messages retry forever and block the worker. Cap them and send the failures to a dead-letter.",
"top_k": 3
},
{
"prompt": "The order row commits but the outbox publish never happens if we crash. Fix the publisher so the message still goes out.",
"top_k": 3
}
],
"negative": [
{
"prompt": "Design the REST and GraphQL contract for creating a charge, including the public interface between the modules.",
"owner": "api-and-interface-design"
},
{
"prompt": "Add structured logging, metrics, and tracing so production can tell why this endpoint failed.",
"owner": "observability-and-instrumentation"
},
{
"prompt": "Audit this input handler for authentication bugs and OWASP vulnerabilities before it accepts untrusted data.",
"owner": "security-and-hardening"
}
]
},
"evals": [
{
"id": 1,
"kind": "execution",
"prompt": "Billing double-charged a customer when the broker redelivered. The write-up is in INCIDENT.md. Make the worker safe under retry and duplicate delivery, and prove it with the repository's own tests.",
"expected_output": "Ack only after a durable outcome, one provider call across redelivery and overlap, unknown timeouts not retried as a new intent, permanent failures dead-lettered, and the six delivery tests passing",
"files": [
"background-work-and-delivery"
],
"expectations": [
"The provider is charged once when the same intent is delivered twice in sequence, and the second delivery returns the stored outcome",
"A crash after the provider returns and before ack, followed by a redelivery, still charges once",
"Two overlapping deliveries of the same intent result in one charge, using an atomic claim rather than a check followed by a write",
"A provider timeout leaves the claim unknown and does not charge again under a new intent id",
"A permanent provider rejection is dead-lettered and is not retried without a cap",
"The same intent id with a different payload is rejected and the original outcome is left unchanged",
"The acknowledgement happens only after the outcome is committed",
"The repository's own test command is run and the new cases pass"
]
}
]
}
11 changes: 11 additions & 0 deletions evals/fixtures/background-work-and-delivery/INCIDENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Double charge on redelivery

Order `order-9` was charged $5.00 twice. The broker delivered message `d1`, `provider.charge` succeeded, and the process crashed before ack. The dedupe map died with the process. The broker redelivered the same intent as `d2`, the map missed, and the provider charged again.

Two overlapping deliveries of `order-9` both read "not seen" before either write, so both charged.

A permanent provider rejection throws before ack, so the broker redelivers it with no cap and no dead-letter. A timeout throws the same way. Nothing records the attempt as unknown, so the next delivery calls the provider again instead of reconciling `order-9`.

The same intent id with a different payload does not reject. The hash check misses and the code charges the new body.

The checked-in test sends one delivery and passes.
7 changes: 7 additions & 0 deletions evals/fixtures/background-work-and-delivery/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Background-work fixture

A queue consumer that charges a card. It acknowledges before the effect and dedupes with a check-then-set. `INCIDENT.md` is the production write-up.

```bash
npm test
```
7 changes: 7 additions & 0 deletions evals/fixtures/background-work-and-delivery/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "background-work-fixture",
"private": true,
"scripts": {
"test": "node --test"
}
}
17 changes: 17 additions & 0 deletions evals/fixtures/background-work-and-delivery/store.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
'use strict';

class MemoryStore {
constructor() {
this.rows = new Map();
}

get(intentId) {
return this.rows.get(intentId) || null;
}

set(intentId, row) {
this.rows.set(intentId, row);
}
}

module.exports = { MemoryStore };
32 changes: 32 additions & 0 deletions evals/fixtures/background-work-and-delivery/worker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
'use strict';

// Remember a successful charge so a second delivery can return it.
// The store is process-local; a crash before ack drops both the memory
// and the acknowledgement, and the broker sends the intent again.

async function handleDelivery(delivery, deps) {
if (delivery.type !== 'charge') {
await deps.broker.ack(delivery.id);
return { status: 'ignored' };
}

const seen = deps.store.get(delivery.intentId);
if (seen && seen.payloadHash === hashPayload(delivery.payload)) {
await deps.broker.ack(delivery.id);
return seen.outcome;
}

const outcome = await deps.provider.charge(delivery.payload);
deps.store.set(delivery.intentId, {
payloadHash: hashPayload(delivery.payload),
outcome,
});
await deps.broker.ack(delivery.id);
return outcome;
}

function hashPayload(payload) {
return JSON.stringify(payload);
}

module.exports = { handleDelivery };
Loading