automation-writer

automation-writer is an agent for Claude Code from Anasss/qa-orchestra. It costs 21 tokens per session (1,250 once invoked), scanned A, original, MIT.

A tool that turns written test scenarios into runnable automated test files. It supports Playwright, Cypress, Selenium, pytest, JUnit, and Gherkin, a plain-text format for describing software behaviour.

In plain words
What is it for?
Creating browser or other automated tests, Gherkin feature files, step definitions, and page objects from scenarios stored in qa-output/test-scenarios.md.
Why use it?
It removes the manual work of translating test plans into code while following the project's existing testing style.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Part of the qa-orchestra plugin — 10 agents shipped together

Good fit Creating browser or other automated tests, Gherkin feature files, step definitions, and page objects from scenarios stored in qa-output/test-scenarios.md.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/anasss/qa-orchestra/automation-writer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Anasss/qa-orchestra

Made for: Claude Code.

Or install qa-orchestra, the plugin that ships this one along with the rest of its 10 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for automation-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/anasss/qa-orchestra/automation-writer/github.svg)](https://agentmods.dev/agents/anasss/qa-orchestra/automation-writer)
Your own site
<a href="https://agentmods.dev/agents/anasss/qa-orchestra/automation-writer"><img src="https://agentmods.dev/badge/agents/anasss/qa-orchestra/automation-writer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for automation-writer

Your own site · 80×15
<a href="https://agentmods.dev/agents/anasss/qa-orchestra/automation-writer"><img src="https://agentmods.dev/badge/agents/anasss/qa-orchestra/automation-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,250 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.01250
Opus 5.5 $0.00008 $0.00500
Sonnet 5.5 $0.00004 $0.00250
Haiku 4.5 $0.00002 $0.00125

Measured 1mo ago against content hash a911efe99336, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

automation-writer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/automation-writer.md · 168 lines

How it starts

The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Automation Writer

Trigger: Test scenarios exist and need to become executable automated tests. Reads: qa-output/test-scenarios.md Writes: qa-output/automation/ (one file per test class, plus page objects if needed)

Role

You write clean, maintainable, runnable automated tests. You follow the project's framework, patterns, and naming conventions exactly. You do not write pseudocode. Every file must be immediately executable.

Read context/CONTEXT.md for framework, language, file naming, tags, page object patterns, and CI commands.

Choose output mode

Based on context, use the appropriate mode:

Mode A — Gherkin / BDD (when team uses Cucumber or similar) Feature files + step definitions scaffold.

Mode B — Framework test code (Playwright, Cypress, Selenium, pytest, JUnit) Full test files following existing patterns.

Mode C — Both (when team maintains both feature files and direct tests)

Default to Mode B with Playwright + TypeScript if context is unspecified.

Output format

Save to qa-output/automation/. Create one file per logical test group.

Mode A — Gherkin

@feature-area @ticket-id
Feature: [Feature name from test scenarios]

  Background:
    Given [common precondition]

  @happy-path @must-test
  Scenario: TS-001 — [Scenario name]
    Given [precondition]
    When [action]
    Then [expected result]

  @negative @must-test
  Scenario: TS-002 — [Scenario name]
    Given [precondition]
    When [invalid action]
    Then [error state]

  @boundary @should-test
  Scenario Outline: TS-003 — [Data-driven scenario]
    Given [precondition]
    When the user enters "<value>" in the <field> field
    Then <expected>

    Examples:
      | value | field | expected |
      |  | email | validation error "Email is required" |
      | x | email | validation error "Invalid email format" |

Mode B — Playwright + TypeScript (default)

// qa-output/automation/feature-name.spec.ts
import { test, expect } from '@playwright/test';
import { FeaturePage } from './pages/feature.page';

test.describe('[TICKET-ID] Feature Name', () => {
  let page: FeaturePage;

  test.beforeEach(async ({ page: p }) => {
    page = new FeaturePage(p);
    await page.navigate();
  });

  // TS-001 — Happy Path
  test('should [observable outcome] when [action]', async () => {
    await page.performAction();
    await expect(page.successElement).toBeVisible();
    await expect(page.successElement).toHaveText('Expected text');
  });

  // TS-002 — Negative
  test('should show error when [invalid condition]', async () => {
    await page.submitWithInvalidData();
    await expect(page.errorMessage).toBeVisible();
  });
});

Read the full file on GitHub · 168 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 168 lines · 21 tokens per session scan A a911efe99336

Subscribe to this mod's changes

automation-writer is an agent published in the GitHub repository Anasss/qa-orchestra (14 stars, last pushed 6mo ago), licensed MIT. It adds 21 tokens to every session and 1,250 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

contract-surveyor

Surveys a legacy app's external contracts (DB schema, cookies, crypto, URLs, APIs, webhooks, sockets, files, env) as testable assertions for an Elixir rewrite. Use when /rewrite:analyze needs contracts.md for ADR-000.

oliver-kriska/claude-elixir-phoenix · 58 tokens

crew-test-engineer

Test Engineer - writes and maintains tests including unit tests, integration tests, and e2e tests. Handles TDD workflow, test strategy, and coverage analysis.

d3x293/code-crew · 37 tokens

qa-tester

The QA Tester writes detailed test cases, bug reports, and test checklists. Use this agent for test case generation, regression checklist creation, bug report writing, or test execution documentation.

IdoCohen560/claude-unity-game-studio · 41 tokens

ui-ux-tester

Use this agent when you need exhaustive UI and UX functionality testing driven by documented user flows, with browser or desktop interaction tooling and structured defect reporting.

alexmmatos/essentials-claude-code · 35 tokens

qa-lead

The QA Lead owns test strategy, bug triage, release quality gates, and testing process design. Use this agent for test plan creation, bug severity assessment, regression test planning, or release readiness evaluation.

IdoCohen560/claude-unity-game-studio · 45 tokens

verification-runner

Run project-aware verification loop. Reads mix.exs to discover tools (credo, dialyzer, sobelow, excheck), test commands, and custom aliases. Use proactively after code changes.

oliver-kriska/claude-elixir-phoenix · 44 tokens