Skip to content
Back to skills

Tophatting

ASecurity

Use after every development change and before ending each development turn, including small UI, styling, copy, and configuration edits, to verify the change in the running app. Use when asked to tophat, manually verify or try a feature or fix, smoke-test a branch or PR, or verify a macOS or iOS change.

  • 29 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 20, 2026
developmentreacttestingapibackend

Works with

  • claude code
  • cli
  • api

Security analysis

A100/100

Scanned November 20, 2026

npx -y skills add 851-labs/codevisor --skill tophatting --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tophatting?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tophatting
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/851-labs-tophatting/badge)](https://www.skillsdirectory.com/skills/851-labs-tophatting)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tophatting
description: Use after every development change and before ending each development turn, including small UI, styling, copy, and configuration edits, to verify the change in the running app. Use when asked to tophat, manually verify or try a feature or fix, smoke-test a branch or PR, or verify a macOS or iOS change.
---

# Tophatting

Put on the user's hat: run the change, exercise the affected workflow, and
report what you observed. Inspired by Shopify's practice of manually trying
changes during PR review, this skill adapts that approach to Codevisor
development. A build or passing automated tests alone cannot establish that
the user workflow works.

## Required cadence

- Tophat after every development change and before ending each turn working
  on that change, including follow-up requests and small UI, styling, copy,
  or configuration edits. Do not wait for the user to ask again.
- Exercise the final state in the running app or actual runtime. A build,
  automated tests, source inspection, or an earlier turn's tophat does not
  replace this turn's workflow verification.
- After a further edit or fix, update the running build when needed and
  rerun the affected scenario plus relevant nearby checks before reporting
  completion. Reuse a build only when it contains the final changes.
- Scale the scenarios to the change. For a copy or styling edit, navigate
  to the affected screen, inspect the text and layout, and exercise the
  relevant interaction or navigation path. Small scope is a reason for a
  focused tophat, not a reason to skip it.
- Include the observed result and concise evidence in the final response.
  If the workflow cannot be exercised, report the specific blocker and
  continue other useful checks; never describe it as passed.

## Identify the change

- Use the feature, bug, branch, or PR named in the conversation. Otherwise,
  inspect the current worktree's staged and unstaged changes, including new
  files, then its branch diff against the appropriate base. Read enough code
  and context to understand the intended behavior and affected surfaces.
- State the user-visible outcome in one sentence. For a bug fix, identify the
  original trigger and what should happen after the fix.
- Record the worktree, revision, and relevant uncommitted changes. Preserve
  existing work; use an isolated worktree when another revision needs testing.
  Reuse a matching build only when you can establish that it contains the
  change, including any relevant local edits.
- Treat a tophat request as authorization for the normal local setup and
  interactions needed to verify that change. Ask for missing requirements
  only when the intended behavior cannot be inferred; continue independent
  checks while waiting.

## Choose a small set of scenarios

Before interacting, describe the setup, user actions, and expected observable
result for each scenario. Scale the scope to the change:

1. **Main workflow:** follow the ordinary path from its entry point to the
   completed result. For a fix, exercise the reported reproduction steps.
2. **Relevant edge or recovery path:** choose a case suggested by the change,
   such as empty input, cancellation, retry, a long value, or reconnecting.
3. **Nearby regression:** exercise an existing behavior that shares the changed
   component or state. Check persistence or cross-device synchronization when
   the change affects it.

For shared native behavior, cover macOS and iOS. For a platform-specific
change, focus on that platform. Choose scenarios for their ability to expose
mistakes; do not expand every change into a full product audit.

## Run the right environment

Two skills own the mechanics; read them instead of guessing commands:

- `running-dev` starts, restarts, and stops the dev server, the macOS and
  iOS dev apps, the iOS simulator, the website, and the mascot playground. It
  covers the flags, how to tell the app is ready, how long a build takes, and
  background timeouts.
- `driving-dev-apps` covers interacting with the running apps, getting past
  onboarding, and capturing window-only screenshots and recordings.

Reuse this worktree's matching instance when possible, and track the
processes you start.

Confirm that the running app and backend belong to the intended worktree and
contain the change before testing. Use development data and the real runtime
path affected by the change. For a CLI or backend-only change, exercise its
actual command or API and inspect the observable result. Do not substitute
mocked responses for the integration being verified.

## Use real harnesses and real models

Tophat harness behaviour (chats, turns, tool calls, permissions, questions,
models, and accounts) with a real harness, signed in to a real account,
talking to a real model. That is what users run. The dev server on the Mac
uses the harnesses and accounts already signed in on this Mac, so Codex,
Claude Code, and the others work in a dev instance just as they do in the
released app.

- Never put a fake agent binary on `PATH`, point a harness at a mock API, or
  replay canned replies to stand in for a harness. Those exercise code that
  users never run.
- Pick a harness that is signed in (Settings › Harnesses). If none can
  exercise the change, mark the scenario **Blocked** and say which harness
  or account it needs.
- Dev Cloud, the Linux container that only `bun run dev:linux` starts, gets
  its own empty home folder, so no harness is installed or signed in there.
  A change to harness behaviour on the Linux server cannot be tophatted in
  the container yet; report that scenario as blocked.

## Exercise, observe, and investigate

- Perform the scenarios through the real interface. Inspect the resulting
  screen or state after each meaningful action; a successfully delivered click
  does not prove that the feature worked.
- Check the interaction details touched by the change, such as focus, keyboard
  behavior, navigation, layout, loading feedback, and error recovery. Wait for
  observable conditions instead of relying on arbitrary sleeps.
- Capture concise evidence of the result with the tools in
  `driving-dev-apps`. A screenshot suits a visible state; a short recording
  suits an interaction, animation, or cross-device flow. Inspect captured
  evidence before using it to support a conclusion, and show it in the final
  response; creating or inspecting a file does not by itself share it.
- If a scenario fails, record reproduction steps and expected versus actual
  behavior, then inspect relevant logs or state to narrow the cause. Compare
  against the base revision when needed to establish whether it is a regression.
- When the task includes implementation or fixes, repair defects within that
  scope and rerun the failed scenario plus affected nearby checks. For a
  review-only request, report findings without changing the implementation.
  If adding or changing automated regression tests, follow
  the `writing-tests` skill.
- Complete required automated checks as supporting evidence. Reuse relevant
  results for the same code state; repeat checks when changes invalidate them.
  If setup or tooling prevents a scenario, mark it blocked and continue other
  useful checks. Never count an unexecuted scenario as a pass.

## Report the result

Lead with **Passed**, **Issues found**, or **Blocked** for the stated scope.
Use **Issues found** when a defect remains, even if other checks were
blocked. Use **Passed** only when the planned scenarios were executed against
the final change and passed; disclose any remaining gaps.

Keep the report short and reproducible:

- Revision/local changes, platform, and environment tested.
- Scenarios performed and their observed outcomes, with evidence links where
  useful. Separate direct observations from automated check results.
- Any defects and fixes, reproduction steps for unresolved issues, and checks
  that could not be completed with the specific blocker.
- Whether a development instance was left running for the user to inspect.

Clean up temporary test data and resources you created when appropriate.
Stop only processes you own when they are no longer needed, by the PID or
task you started; never by pattern with `pkill`, `killall`, or
`kill $(pgrep …)` (the rule is in the repo's `AGENTS.md`). A tophat result
reports verification; it does not itself publish a review, merge, or release.

## Inspiration

- [Shopify: Tophatting in React Native](https://shopify.engineering/tophatting-react-native)
- [Shopify: Tophat, crafting a delightful mobile developer experience](https://shopify.engineering/shopify-tophat-mobile-developer-testing)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.