CLAUDE.md · git:20260902.eaf2f3a · 2026-09-02 · sha256 f216f6968f67a435
CLAUDE.md git:20260902.eaf2f3aA
Immutable. This exact content is served forever at /api/v1/blob/f216f6968f67a435.
## Project **Sniff** An autonomous QA scanner that walks your running app in a real headless browser, follows real user flows, and reports what is actually broken (broken pages, forms, accessibility, console errors, responsive issues), each with screenshot proof. The flow-walk is the default (`sniff` or `sniff --url`); `sniff scan` is the source-only mode. Distributed as an npm CLI and Claude Code plugin, with no API key required. **Core Value:** One command finds bugs across every dimension (functional, visual, accessibility, performance) before users do, with no manual test writing, ever. ### Constraints - **Tech stack**: TypeScript + Node.js 22+ (locked decision) - **Test runtime**: Playwright (chromium, webkit, firefox), a locked decision - **Default AI**: Claude Code (no API key), the key differentiator, must work out of the box - **Distribution**: npm-first (`npx sniff`), the lowest-friction path for developers - **Budget**: Zero infrastructure cost for users, everything runs locally - **Performance**: Must complete a scan of a medium app (50 routes) in under 10 minutes ## Technology Stack Technology stack not yet documented. Will populate after codebase mapping or first phase. ## Conventions Conventions not yet established. Will populate as patterns emerge during development. ## Architecture Architecture not yet mapped. Follow existing patterns found in the codebase. ## Project Skills No project skills found. Add skills to any of: `.claude/skills/`, `.agents/skills/`, `.cursor/skills/`, or `.github/skills/` with a `SKILL.md` index file. ## Sniff contributor notes (portability and discoverability layer) These notes record the gotchas introduced by the multi-CLI install and discoverability work. Keep them current when you touch the related files. ### Host-agnostic agents Sniff has no `agents/` directory, so there is no `model:` frontmatter to strip. If agents are ever added, omit `model:` from their frontmatter so each host CLI falls back to its own default model. A literal `model: inherit` is a Claude-Code-only keyword that some hosts (for example OpenCode) reject as an unknown model id, which is why host-agnostic plugins carry only `name` and `description`. ### Multi-CLI installer target directories `install.sh` delegates to the Vercel skills CLI by default (`npx --yes skills@1.5.23 add Aboudjem/sniff -a <agent> -y`), so the directory conventions below no longer have to be right for the common path. The platform-to-agent map lives in `platform_agent`; the agent codes are verified against https://github.com/vercel-labs/skills#supported-agents. `install.sh --legacy` and `install.ps1` still symlink the three skills (`sniff`, `sniff-fix`, `sniff-report`) into a CLI's skills directory by hand. That path is for an offline machine or one without `npx`. Its map: | Platform | Directory | Style | |:--|:--|:--| | gemini, codex, opencode, pi | `~/.agents/skills` | per-skill | | vscode, copilot | `~/.copilot/skills` | per-skill | | trae | `~/.trae/skills` | per-skill | | vibe | `~/.vibe/skills` | per-skill | | openclaw | `~/.openclaw/skills` | folder | | antigravity | `~/.gemini/antigravity/skills` | folder | | hermes, cline, kimi | `~/.<cli>/skills` | folder | These conventions change between CLI releases. When one drifts, update `install.sh` (`platform_target`, the legacy path only), `install.ps1` (`Get-PlatformTarget`), and the install matrix in the README together. The MCP server (`npx -y sniff-qa --mcp`) is the universal fallback and is unaffected by this table. Editor and agent notes live in `docs/editors.md`. ### MCP capability gating `--caps` narrows the registered tool set (`src/mcp/caps.ts`). Granting `walk` also grants `scan`, because `handleSniffWalk` degrades to a source scan when no dev server is reachable. When you add or rename an MCP tool, update `CAPABILITY_TOOL` and `TOOL_ORDER` in that file, or the default tool list silently changes shape. ### Report redaction `--storage-state` arms a process-level redactor (`src/core/redaction.ts`). Any new writer that serializes findings must pass them through `redactValue` first, or an authenticated run can leak a session token into a committed report. The existing chokepoints are `saveResults`, `saveReport` and `src/crawl/write-report.ts`. ### Manifests to keep in sync Three plugin manifests must stay aligned on `name`, `version`, and `description`: `.claude-plugin/plugin.json`, `.cursor-plugin/plugin.json`, `.copilot-plugin/plugin.json`. ### Version-bump checklist When cutting a release, bump the version in `package.json` (and `package-lock.json`), `server.json`, `.claude-plugin/plugin.json`, `.cursor-plugin/plugin.json`, and `.copilot-plugin/plugin.json`, and add a `CHANGELOG.md` entry. `release.yml` checks the tag against `package.json` only, so the other four drift silently; 10x pins from `.claude-plugin/plugin.json`. The npm `files` list does not include the installer, the discovery manifests, `READMEs/`, or `site/`, so those are repo-only and are not shipped to npm. ### GitHub Pages `site/index.html` is deployed by `.github/workflows/deploy-pages.yml` (`concurrency: pages`). It reuses the already-built demo assets and a sample report; it does not rebuild them. Pages must be set to deploy from GitHub Actions in the repo settings.