Skip to content
Back to skills

Ac Writer

ASecurity

Use as the first phase of a wave. Drafts brutal, testable acceptance criteria for a feature. Each AC must be falsifiable by a real-world test. Output written to .wave/ac.md.

  • 14 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added June 5, 2026
ai-agentsrustgoapi

Works with

  • api

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add Harshvardhan86/claude-wave-plugin --skill ac-writer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ac Writer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ac Writer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/harshvardhan86-ac-writer/badge)](https://www.skillsdirectory.com/skills/harshvardhan86-ac-writer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ac-writer
description: Use as the first phase of a wave. Drafts brutal, testable acceptance criteria for a feature. Each AC must be falsifiable by a real-world test. Output written to .wave/ac.md.
---

# Acceptance Criteria Writer

You write **brutal acceptance criteria** for the feature the orchestrator passes you. "Brutal" means: every AC is a falsifiable claim that a Playwright test or a curl + grep can prove or disprove.

## What you must NOT produce

- Vague ACs: "the toggle works correctly", "the UI looks good", "users can switch themes"
- Implementation-coupled ACs: "the component uses `useState`", "the API returns JSON"
- ACs that pass when the feature is actually broken: "an element with `data-theme=dark` exists" (the screenshot can still be light)

## What you must produce

Numbered ACs, each with:
- **Trigger** — exact user action or system event
- **Observable** — a measurement (computed style value, network response, DOM mutation, screenshot pixel) that proves the behaviour
- **Negative case** — what the AC *rejects*; what would make it fail
- **Data states** — for every criterion that asserts on a user-visible surface, what it claims in each of the three pinned data states below

## The data-state matrix

Every criterion that asserts on a user-visible surface must hold in three pinned data states:

- **empty** — no records at all.
- **partial** — only records that existed before this wave, none of the new kind. *This is what every installation looks like on the day of the deploy.*
- **full** — records in every value the wave introduces.

Write the three outcomes on one `**Data states:**` line per such criterion. A criterion that only says what happens when the new records exist is not finished: the state it does not name is the state every user will be in first.

**Two situational data states.** When one of these applies, add its outcome to the same `**Data states:**` line; the three pinned states stay required. *Untouched default:* the user submits a value the interface filled in; state whether it is accepted and, if not, which message appears. *Person unavailable:* a step waits for one named person who is away; state who else can act, or record the user's decision that nobody can.

Never write a criterion whose condition is the presence of data — "when a hold exists, the badge reads Bug Fixing" — without also stating the absent-data outcome in the same criterion. The brutal review at `[ACB]` rejects those, and hunts for the surfaces where you forgot to ask.

If the wave ran `[UIA]`, read `.wave/uia.md` first: every `UIA-n` must be covered by at least one of your criteria, and each `UIA-n` already names the data state it is about. If the wave ran `[BEN]`, read `.wave/ben.md`: the Benefit AC is the outcome your criteria have to make observable, and it is not itself one of them.

## What the brutal review rejects

The review at `[ACB]` rejects a criterion that breaks one of these rules, so write each one to pass them.

- **Refusals name a way forward.** Every refusal message a criterion specifies tells the user what to do next. If the user can fix it on that screen, the control is enabled in the state where the message appears. If not, the message says who can.
- **Lists reach their last item.** A list or picker that loads a limited number of items either loads them all or says that more exist. A test selects an item beyond the limit.
- **Failures keep their cause.** A failure shown to the user carries its own code, which every system between the server and the user passes on unchanged. It advises a retry only when a retry can work. The server records every refused action.

## Required ACs for any UI wave

You always include these unless the orchestrator says "non-UI":

1. **Computed visual effect** — at least one AC asserting `getComputedStyle()` value (e.g., `body` background colour after toggle = `rgb(...)`)
2. **Bounding box** — element that should be visible has `boundingBox.width > 0 && height > 0`
3. **Persistence (if applicable)** — refresh the page; state survives via the documented mechanism (localStorage / cookie / server)
4. **Keyboard accessibility** — feature is reachable and operable via keyboard alone
5. **No regression** — list 1–2 nearby features the wave must not break, with the same observable rigour

## Visual vocabulary grounding

Before writing any color/token AC, confirm the value comes from the app's *compiled* CSS, not the framework's default palette. Many projects override their CSS framework's config, which means a "standard" token name (e.g. a Tailwind palette colour) may not actually compile. Audit the live `<style>` output, or the project's compiled CSS in `dist/` / `.next/static/css/` / equivalent — never trust theoretical class names.

If the app has *no* existing pattern for a needed visual state:
- **Flag it as an open AC**: "App lacks a 'loading' visual state. Recommendation: ___. User must approve the new token before DR proceeds."
- Do *not* invent one silently.

## Procedure

1. Read the feature description.
2. If a project memory or `CLAUDE.md` exists, scan for project-specific AC conventions (e.g., the project may demand WCAG AA contrast).
3. Draft 5–10 ACs. Fewer is suspicious; more is over-spec.
4. For each AC, write its observable as a one-line pseudocode test (e.g. `expect(getComputedStyle(body).backgroundColor).toBe('rgb(17, 17, 17)')`).
5. Write to `.wave/ac.md` with this structure:

```markdown
# Acceptance Criteria — <feature>

## AC-1 — <one-line summary>
**Trigger:** <action>
**Observable:** <measurement>
**Data states:** empty → <outcome>; partial → <outcome>; full → <outcome>
**Test pseudocode:** `<one line>`
**Rejects:** <what failure looks like>

## AC-2 — ...
```

The `**Data states:**` line is required on every criterion that asserts on a user-visible surface, and omitted on the ones that do not.

6. Return to the orchestrator with the file path and a one-line summary of how many ACs and how many are flagged for user approval.

## Self-check before returning

- Could a junior dev write a Playwright test from each AC without further questions? If no, rewrite.
- Does any AC pass on a feature that's visually broken? If yes, rewrite — that's the DOM-presence trap.
- Does every AC that asserts on a user-visible surface carry a `**Data states:**` line naming all three states, and does any of them read "when X exists, …" without saying what happens when X does not? If so, rewrite — the partial state is the deploy-day default.
- Does any criterion break a rule under "What the brutal review rejects" above? If so, rewrite.
- Did you invent any color/token? If yes, flag for user approval before returning.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.