agentleFS
AboudjemAboudjem/sniff/CLAUDE.md

sniff

CLAUDE.md4 starsChanged 6 months agoApache-2.0View on GitHub

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…

The file

We split this CLAUDE.md into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Performance: Must complete a scan of a medium app (50 routes) in under 10 minutes

    line 16
  2. Very specific:

    No project skills found. Add skills to any of: .claude/skills/, .agents/skills/, .cursor/skills/, or .github/skills/ with a SKILL.md index …

    line 32
  3. Very specific:

    When cutting a release, bump the version in package.json (and package-lock.json), server.json, .claude-plugin/plugin.json, …

    line 88

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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:

PlatformDirectoryStyle
gemini, codex, opencode, pi~/.agents/skillsper-skill
vscode, copilot~/.copilot/skillsper-skill
trae~/.trae/skillsper-skill
vibe~/.vibe/skillsper-skill
openclaw~/.openclaw/skillsfolder
antigravity~/.gemini/antigravity/skillsfolder
hermes, cline, kimi~/.<cli>/skillsfolder

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.