Agent skills
The HeyBug CLI installs instructions into your repository so a coding agent knows how to use HeyBug.
The HeyBug CLI installs instructions into your repository so a coding agent knows how to use HeyBug. The agent runs saved tests, reads the failing step and fixes your product code. When coverage needs to change, it asks the project’s HeyBug agent for a proposal that you review and apply.
Three skills ship with the CLI. Install them once per repository, then refresh them after you upgrade the CLI.
Install the skills
Run this in the root of your repository:
heybug setupIt connects a workspace, saves the token, updates .gitignore, prints the MCP config and installs the skills for every supported agent. Add --agent codex to choose one agent, or --no-skills to skip the install.
To add targets later, or when the workspace is already connected:
heybug agent install
heybug agent install cursor codex
heybug agent install --agent claudeBy default install adds all three skills. Use --skill heybug-verify to install only the verification workflow, and --dir <path> to choose a repository other than the current folder. The install works offline.
heybug agent list prints the agents this CLI version supports and the skills it carries. Add --output json for the same data in a machine-readable envelope.
Skills
| Skill | When to use it |
|---|---|
heybug-onboard | Seed an empty project. Find the key flows, request a first suite, review the plan and smoke-test a few saved cases. |
heybug-verify | Check a feature or fix. Run the covering tests, review missing coverage with the project’s agent and inspect any failing result. Trigger phrase: “Test this with HeyBug”. |
heybug-ci | Set up a pull-request check for a preview deployment. See CI. |
Each skill is a markdown file with YAML front matter. You can download the current copy from the app at /connect/skills, or from GET /api/agent-skills/<id>.
Supported agents
| Target | Where instructions are installed |
|---|---|
claude | .claude/skills/{skill}/SKILL.md |
antigravity | .agents/skills/{skill}/SKILL.md |
cursor | .cursor/rules/{skill}.mdc |
cline | .clinerules/{skill}.md |
kiro | .kiro/skills/{skill}/SKILL.md |
windsurf | .windsurf/rules/{skill}.md |
copilot | .github/instructions/{skill}.instructions.md |
codex | A managed section of AGENTS.md |
The installer writes a content marker next to each copy. Rerunning install updates only HeyBug’s own block, so notes you wrote around it stay in place. The app reads this table from GET /api/agent-skills/targets, so it cannot drift from the installer.
Checking skill health
After upgrading the CLI, run:
heybug agent statusstatus reports one of these states for each installed skill:
| State | Meaning |
|---|---|
ok | Matches the installed CLI’s skill content. |
absent | No instructions are installed for that agent and skill. |
stale | The installed copy came from an older skill body. Reinstall it. |
modified | The file was edited locally. Review the change, then reinstall with --force. |
unmarked | The file has no HeyBug marker, so the installer will not touch it without --force. |
corrupt | A Codex section has only one of its two markers. Repair the markers before reinstalling. |
status exits 1 if any installed skill is stale, modified, unmarked or corrupt. To reinstall a stale standalone file and keep a .bak copy:
heybug agent install cursor --forceFor Codex, reinstall to refresh the managed section. Review local modifications before replacing them.
--output json prints {"items":[...]} with the target, skill, state and path for each row.
Give the agent a verification task
Paste a task into your coding agent. The heybug-verify skill reacts to the phrase “Test this with HeyBug”.
Verify the guest checkout change against staging with HeyBug. Use the existing checkout test if it covers the change. If coverage is missing, show me the proposed assertions before applying them. Report the verdict and the result ID for any failure.
For existing coverage, the agent runs the related tests and reads a failure by its result id:
heybug runs start --project "$PROJECT_ID" --wait --output json
heybug results get "$RESULT_ID" --out ".heybug/results/$RESULT_ID"For new coverage, it asks for a plan, shows the proposed steps, then applies the reviewed card:
heybug plan "An expired coupon shows an error and leaves the cart total unchanged" --project "$PROJECT_ID" --steps
heybug apply --card "$CARD_ID" --runThe same loop is in the verify loop. The project’s Agent loop page at /p/<project>/agent-loop walks the three stages in the browser.
When it does not work
statussaysstaleormodified: reruninstallfor that target. Use--forceonly after you review a local edit.- The agent ignores the skill: check
heybug agent listfor the target name, then confirm the file exists at the path above. - The agent cannot reach HeyBug: set
HEYBUG_TOKENandHEYBUG_SERVER, or connect the MCP server as described in MCP. - Codex has a
corruptsection: add the missing start or end marker by hand, then reruninstall.