generate

A command that creates Playwright end-to-end tests, which check a complete user flow in a real browser, from a website description or URL. It can use a code repository or local project as an optional source and uploads the tests to Sorify.

In plain words
What is it for?
Use it to generate tests for a staging or other web URL, optionally using a GitHub repository or local project to understand the application.
Why use it?
It turns a plain-language testing request into browser tests without requiring you to describe every test file and setup detail manually.

Command

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.

agentmods
npx agentmods add commands/rakutentech/sorify/generate
Clone the repo
git clone --depth 1 https://github.com/rakutentech/sorify
Per session 102 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,939 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00102 $0.03939
Opus 5 $0.00051 $0.01969
Sonnet 5 $0.00020 $0.00788
Haiku 4.5 $0.00010 $0.00394

Measured 2d ago against content hash e4568a59fdf5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

generate 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 2d 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.

plugins/sorify/commands/generate.md · 464 lines

How it starts

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

sorify

Trigger

Invoked from the generate command with natural language or structured arguments.


Step 1: Understand the input and determine mode

The input may be plain arguments, structured text, or natural language in any language. Read the entire input and extract:

What How to identify
target_url Any https:// or http:// URL that is clearly the service being tested (NOT a GHE/GitHub repo URL)
source A GHE/GitHub URL, or a local filesystem path (/, ~/, ./ prefix) — optional

Examples:

https://stg.example.com/
  → target_url = https://stg.example.com/, source = none

https://stg.example.com/ https://github.com/your-org/your-repo
  → target_url = https://stg.example.com/, source = ghe (order does not matter)

https://github.com/your-org/your-repo https://stg.example.com/
  → same result

このサービスのテストを作成して。URL: https://stg.example.com/ リポジトリ: https://github.com/your-org/your-repo
  → target_url = https://stg.example.com/, source = ghe

/Users/hiro/projects/myapp https://stg.example.com/
  → target_url = https://stg.example.com/, source = /Users/hiro/projects/myapp

If target_url cannot be identified → abort with error:

Error: No target URL found. Please provide the URL of the service to test.

Determine mode:

source absent or empty  → DOM Mode
source is GHE/GitHub URL (contains 'ghe.' / 'github.com' / 'your-ghe-domain')  → GHE Source Mode
source is local path (starts with '/', '~/', './')  → Local Source Mode

Step 2: Determine the Sorify base URL

The Sorify MCP server (configured in this plugin's .mcp.json) already handles authentication transparently — no login step is needed here. Read SORIFY_URL from ~/.sorify only for building the human-readable run link in the final summary:

if [ ! -f ~/.sorify ]; then
  echo "Error: ~/.sorify not found. Please create it with your Sorify credentials."
  echo "See the plugin README for the required format."
  exit 1
fi

SORIFY_BASE_URL=$(grep "^SORIFY_URL" ~/.sorify | cut -d= -f2)
UPLOADED_BY=$(grep "^SORIFY_USERNAME" ~/.sorify | cut -d= -f2)

Read the full file on GitHub · 464 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. 2d ago First seen · 464 lines · 102 tokens per session scan A e4568a59fdf5

Subscribe to this mod's changes

generate is a command published in the GitHub repository rakutentech/sorify (5 stars, last pushed 3d ago), licensed Apache-2.0. It adds 102 tokens to every session and 3,939 once invoked, about $0.0005 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-31.