ClaudeCode_Playwright_Demo: Command for Claude Code

.claude/commands/generate_requirements_from_website.md

generate_requirements_from_website is a command for Claude Code from anhtester/ClaudeCode_Playwright_Demo. It costs 8 tokens per session (744 once invoked), scanned A, original, MIT.

A workflow for creating a requirements document from a website module or page. A requirements document describes what a system should do so it can be built or tested.

In plain words
What is it for?
Use it to inspect a supplied web page and document its structure, interactions, and expected behaviour for development or testing.
Why use it?
It reduces the risk of missing forms, buttons, page states, or validation messages when analysing a website.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is anhtester/ClaudeCode_Playwright_Demo's own configuration. It tells Claude Code how to work on ClaudeCode_Playwright_Demo itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ClaudeCode_Playwright_Demo configures →

Reuse

Borrowing it

Nothing to install: this file belongs to anhtester/ClaudeCode_Playwright_Demo. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/anhtester/ClaudeCode_Playwright_Demo/main/.claude/commands/generate_requirements_from_website.md
Clone the repo
git clone --depth 1 https://github.com/anhtester/ClaudeCode_Playwright_Demo

Made for: Claude Code.

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 generate_requirements_from_website

README.md
[![agentmods](https://agentmods.dev/badge/commands/anhtester/claudecode_playwright_demo/generate_requirements_from_website.svg)](https://agentmods.dev/commands/anhtester/claudecode_playwright_demo/generate_requirements_from_website)
Your own site
<a href="https://agentmods.dev/commands/anhtester/claudecode_playwright_demo/generate_requirements_from_website"><img src="https://agentmods.dev/badge/commands/anhtester/claudecode_playwright_demo/generate_requirements_from_website.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 744 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.00008 $0.00744
Opus 5 $0.00004 $0.00372
Sonnet 5 $0.00002 $0.00149
Haiku 4.5 $0.00001 $0.00074

Measured 8d ago against content hash 8269cb35f90f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

generate_requirements_from_website 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/commands/generate_requirements_from_website.md · 41 lines

How it starts

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

Workflow: Generate Requirements from Website Module

BẮT BUỘC (MANDATORY SKILL): Bạn PHẢI nạp và đọc kỹ nội dung của skill requirements_analyzer (tại .agent/skills/requirements_analyzer/SKILL.md) để biết định dạng chuẩn của tài liệu Requirements trước khi bắt đầu thực hiện tác vụ này.

Workflow này giúp bạn phân tích một module hoặc trang web được cung cấp và sinh ra tài liệu Yêu cầu (Requirements) chi tiết, chuẩn xác, phục vụ cho quá trình kiểm thử hoặc phát triển.

Các bước thực hiện:

  1. Tiếp nhận thông tin (Information Gathering):

    • Đọc kỹ hướng dẫn từ kỹ năng (skill) requirements_analyzer để nắm bắt chuẩn đầu ra.
    • Lấy thông tin URL của trang web, tên module, hoặc mô tả/hình ảnh mà người dùng cung cấp.
    • Nếu cần thiết, hỏi người dùng về thông tin đăng nhập hoặc các trạng thái đặc biệt cần lưu ý.
  2. Khảo sát hệ thống (Recon & Investigation):

    • Sử dụng các công cụ duyệt web (Browser tools/MCP) hoặc read_url_content để truy cập vào module trang web được yêu cầu.
    • Inspect kỹ lưỡi cấu trúc HTML, DOM, các form nhập liệu, các nút tương tác (buttons, links), và các thông báo lỗi (validation messages).
    • Lưu ý: Không tự đoán các trường thông tin nếu không nhìn thấy trên giao diện thực tế.
  3. Phân tích chức năng và tương tác (Analyze UI & Interactions):

    • Phân tích luồng thao tác (User Flows).
    • Ghi nhận các trường dữ liệu tĩnh và động (Ví dụ: TextBox, Dropdown, Checkbox).
    • Ghi nhận các quy tắc nghiệp vụ hiển thị ở giao diện (Business Rules) như: trường bắt buộc (mandatory fields), định dạng hợp lệ (email, số điện thoại), hoặc giới hạn ký tự.
  4. Biên soạn tài liệu Yêu cầu (Draft Requirements):

    • Dựa trên dữ liệu thu thập được, tạo một tài liệu mô tả bao gồm:
      • Tổng quan (Overview): Mục đích của module/trang.
      • Yêu cầu chức năng (Functional Requirements): Danh sách các tính năng người dùng có thể thực hiện (vd: Đăng nhập, Thêm mới, Xóa...).
      • Quy tắc trường dữ liệu (Field Specifications): Bảng chi tiết về từng thành phần UI (Tên trường, Loại, Bắt buộc/Không, Ràng buộc dữ liệu).
      • Luồng xử lý (Business/User Flows): Các bước để hoàn thành một chức năng chính.
      • Yêu cầu phi chức năng (Non-functional Requirements - Nếu có thể quan sát): Tính tương thích, hiệu năng tĩnh.

Read the full file on GitHub · 41 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 · 41 lines · 8 tokens per session scan A 8269cb35f90f

Subscribe to this mod's changes

generate_requirements_from_website is a command published in the GitHub repository anhtester/ClaudeCode_Playwright_Demo (2 stars, last pushed 3mo ago), licensed MIT. It adds 8 tokens to every session and 744 once invoked, about $0.0000 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.