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.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.svg" alt="Measured on agentmods" 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 $0.00010 $0.00625
Sonnet 5 $0.00004 $0.00250
Haiku 4.5 $0.00002 $0.00125

Measured 8d ago against content hash a911efe99336, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 8d 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. 8d 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 (12 stars, last pushed 4mo ago), licensed MIT. It adds 21 tokens to every session and 1,250 once invoked, about $0.0001 per session on Opus 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.