MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getPromptForCommand

Function getPromptForCommand

source code/commands/init-verifiers.ts:13–261  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 progressMessage: 'analyzing your project and creating verifier skills',
12 source: 'builtin',
13 async getPromptForCommand() {
14 return [
15 {
16 type: 'text',
17 text: `Use the TodoWrite tool to track your progress through this multi-step task.
18
19## Goal
20
21Create one or more verifier skills that can be used by the Verify agent to automatically verify code changes in this project or folder. You may create multiple verifiers if the project has different verification needs (e.g., both web UI and API endpoints).
22
23**Do NOT create verifiers for unit tests or typechecking.** Those are already handled by the standard build/test workflow and don't need dedicated verifier skills. Focus on functional verification: web UI (Playwright), CLI (Tmux), and API (HTTP) verifiers.
24
25## Phase 1: Auto-Detection
26
27Analyze the project to detect what's in different subdirectories. The project may contain multiple sub-projects or areas that need different verification approaches (e.g., a web frontend, an API backend, and shared libraries all in one repo).
28
291. **Scan top-level directories** to identify distinct project areas:
30 - Look for separate package.json, Cargo.toml, pyproject.toml, go.mod in subdirectories
31 - Identify distinct application types in different folders
32
332. **For each area, detect:**
34
35 a. **Project type and stack**
36 - Primary language(s) and frameworks
37 - Package managers (npm, yarn, pnpm, pip, cargo, etc.)
38
39 b. **Application type**
40 - Web app (React, Next.js, Vue, etc.) → suggest Playwright-based verifier
41 - CLI tool → suggest Tmux-based verifier
42 - API service (Express, FastAPI, etc.) → suggest HTTP-based verifier
43
44 c. **Existing verification tools**
45 - Test frameworks (Jest, Vitest, pytest, etc.)
46 - E2E tools (Playwright, Cypress, etc.)
47 - Dev server scripts in package.json
48
49 d. **Dev server configuration**
50 - How to start the dev server
51 - What URL it runs on
52 - What text indicates it's ready
53
543. **Installed verification packages** (for web apps)
55 - Check if Playwright is installed (look in package.json dependencies/devDependencies)
56 - Check MCP configuration (.mcp.json) for browser automation tools:
57 - Playwright MCP server
58 - Chrome DevTools MCP server
59 - Claude Chrome Extension MCP (browser-use via Claude's Chrome extension)
60 - For Python projects, check for playwright, pytest-playwright
61
62## Phase 2: Verification Tool Setup
63
64Based on what was detected in Phase 1, help the user set up appropriate verification tools.
65
66### For Web Applications
67
681. **If browser automation tools are already installed/configured**, ask the user which one they want to use:
69 - Use AskUserQuestion to present the detected options
70 - Example: "I found Playwright and Chrome DevTools MCP configured. Which would you like to use for verification?"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected