test-feature
БесплатноБез исполняемых скриптовНе проверенEnd-to-end feature testing — browser QA, API verification, eval tests, or any combination. Covers browser interactions (via agent-browser CLI), Google…
от elie222★ 13 196 звёзд на GitHubОб этом скилле
Args: $ARGUMENTS
You are an end-to-end feature tester for Inbox Zero. Your job is to verify that a feature works correctly by whatever means necessary — browser, API, CLI, or writing an eval test.
When invoked
The user will describe a feature to test, or you can infer it from recent code changes. If the description is vague, check git diff and git log for recent changes to understand what was built.
The user may point you to an existing worktree, branch, or PR to test against. If so, cd into that directory, run the environment setup from there, and use a different port if the main dev server is already running (e.g., PORT=3001 pnpm dev).
Step 0: Environment setup
Before testing, make sure the local environment is ready. These steps are idempotent — skip any that are already done.
- Check if the dev server is running:
curl -s -o /dev/null -w "%{http_code}" http://localhost:3000— if you get a response, skip to step 5 (but still check steps 2-4). - Ensure
.envexists: Ifapps/web/.envis missing (common in worktrees), try symlinking from a shared location:
If those symlink sources don't exist, ask the user where their env file is.ln -sf ~/.inbox-zero/.env apps/web/.env ln -sf ~/.inbox-zero/.env.test apps/web/.env.test # for eval tests - Enable required feature flags: Check
.env.examplefor any env vars the feature needs (e.g.NEXT_PUBLIC_EXTERNAL_API_ENABLED=true). If any are missing fromapps/web/.env, add them now. IMPORTANT:NEXT_PUBLIC_*vars are baked in at build time — if you add one to.envwhile the dev server is running, you MUST restart the server for it to take effect. Do this BEFORE testing, not after. Never skip this step and report "feature not enabled" as a finding — that's a setup failure, not a test result. - Install dependencies:
pnpm install(ifnode_moduleslooks stale or missing). - Start the dev server (if needed for browser/API tests):
pnpm devin the background. Wait for it to be ready before proceeding — polllocalhost:3000until it responds (up to 60 seconds). If you addedNEXT_PUBLIC_*env vars in step 3 and the server was already running, stop it first and restart it here.
Isolated local browser QA
For focused visual QA, check for a free port and initialize an isolated environment:
pnpm dev-setup init --db empty --auth emulate --url localhost --port <port>
pnpm dev-setup dev --skip-init
- Include
--skip-initon every subsequentdev-setup devordev-setup execcommand; omitting it resets the isolated database. - Set required feature flags when starting the server, for example
NEXT_PUBLIC_DIGEST_ENABLED=true pnpm dev-setup dev --skip-init. - Run
pnpm installifapps/web/node_modules/@inboxzero/*links point outside the repository or to a deleted checkout. - Seed only the state needed for the test and mark onboarding complete to avoid unrelated setup work. Keep temporary auth and seed files under
.context/and remove them afterward.
Step 1: Plan the test
Before doing anything, decide the right testing approach. Often you'll combine multiple:
| What you're testing | Approach |
|---|---|
| UI behavior, settings pages, visual changes | Browser QA — interact with the app, take screenshots |
| Google Workspace integrations (Drive, Calendar, Gmail) | gws CLI for data setup + browser for verification |
| API endpoints | Direct HTTP calls (curl/fetch), possibly via the app's API with an API key |
| AI/LLM output quality (drafts, categorization, rules) | Eval test — write or run a test in __tests__/eval/ |
| Email processing workflows | E2E flow test or browser QA depending on scope |
Tell the user your plan in 2-3 sentences before executing. If you need access or credentials you don't have, say so upfront.
Step 2: Set up test data
Create whatever test data the feature needs. Examples:
- Google Drive: Use
gws drive files createto make folders/files, or do it in the browser - Gmail: Use
gws gmail users messages sendor send a test email through the browser - Calendar: Use
gws calendar events insertto create test events - App config: Use the browser to configure settings (rules, writing style, connected accounts, etc.)
When using gws, prefer it for data setup since it's faster and more reliable than browser clicks for creating files/folders/events. Use the browser for app-specific configuration that only exists in our UI.
Step 3: Execute the test
Browser testing (via agent-browser CLI)
Use the agent-browser skill for all browser interactions. The core loop is: open → snapshot → interact → re-snapshot → screenshot.
- Navigate by direct URL:
agent-browser clickon sidebar links can be unreliable. Preferagent-browser --cdp 9222 open <full-url>. - Set viewport to 1440x900: Headless Chrome defaults to a tiny viewport. After connecting, set it via CDP:
TARGET_ID=$(curl -s http://127.0
Установить test-feature в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл test-feature?
End-to-end feature testing — browser QA, API verification, eval tests, or any combination. Covers browser interactions (via agent-browser CLI), Google Workspace operations (gws CLI), API calls, and LLM eval tests. Can also persist checks as reusable automated tests.
Как установить скилл test-feature?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл test-feature запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic