achilles-protocol

Orchestrates staged Playwright end-to-end test authoring, diagnosis, and coverage workflows.

5|2|Updated May 19, 2026
One-click install
npx skills add https://github.com/civitas-cerebrum/achilles --skill achilles-protocol-civitas-cerebrum
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: achilles-protocol
Source: https://github.com/civitas-cerebrum/achilles/tree/main/skills/achilles-protocol
Command: npx skills add https://github.com/civitas-cerebrum/achilles --skill achilles-protocol-civitas-cerebrum

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @civitas-cerebrum/element-interactions, @civitas-cerebrum/element-repository, @playwright/test, @playwright/cli, and includes references (resource) components.

What problem does it solve? Writing and maintaining Playwright end-to-end tests is error-prone when agents guess selectors, invent API calls, or skip failure evidence. This Skill enforces a staged, rules-driven protocol so tests are discovered from the live app, written against a canonical Steps API, and diagnosed from real failure artifacts instead of guesswork. ## Core Features & Use Cases - Staged test authoring pipeline: Runs scenario discovery, live DOM inspection via @playwright/cli, spec writing, and a three-part review (optimization, API compliance, composition judge) before any test is accepted. - Element-repository discipline: All selectors live in page-repository.json and are referenced by name, with a hard ban on inline selectors in durable specs. - Failure diagnosis routing: Local and CI pipeline failures are dispatched to a subagent-only failure-diagnosis protocol with a mandatory evidence floor (trace, DOM state, console). - Companion skill orchestration: Routes coverage expansion, bug discovery, contract/database/performance testing, and test repair to dedicated companion skills. - Use Case: A user says "the nightly regression failed" — the Skill pins the run's commit, pulls CI artifacts with gh, and dispatches a failure-diagnosis subagent rather than re-running the suite locally. ## Quick Start Ask the agent to write an end-to-end test for your app's checkout flow and it will discover the scenario, inspect the live page, and produce a stabilized Playwright spec.

Frequently Asked Questions about achilles-protocol

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a Playwright end-to-end test with this framework?

Follow the staged flow: discover the scenario, inspect the live DOM with @playwright/cli, add selectors to page-repository.json, then write the spec using the Steps API. Never invent selectors or steps.* calls from memory — read the API reference first.

How do I debug a failing Playwright test in CI?

Dispatch the failure-diagnosis subagent, which pins the run's commit and pulls artifacts with gh run download before forming any hypothesis. The trace, failure screenshot, and browser console must all be examined before classifying the failure.

What is the page-repository.json file used for?

It is the central element repository where all selectors live, keyed by page name and element name. Tests reference elements by plain strings like 'submitButton' on 'CheckoutPage', so raw selectors never appear in spec code.

Does this framework support API and database testing alongside UI tests?

Yes, companion skills handle contract testing via steps.api* calls and database verification via steps.sql* calls. Performance testing with k6 is also routed to a dedicated performance-testing skill.

Why must tests pass multiple consecutive runs before being accepted?

The stability bar requires 3 consecutive green runs for new tests and 5 for healed flaky tests to prove determinism. A single passing run cannot distinguish a stable test from a lucky one.