Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1.82 KB

agent-skill.md

File metadata and controls

38 lines (24 loc) · 1.82 KB

Agent Skill

Workbench ships an embedded agent skill that lets AI coding tools manage your local dev environment through the bench CLI.

Viewing and installing the skill

bench agent-skill

This prints the skill content to stdout and detects installed agent tools. If any are found, you're offered the option to save the skill to the correct location for each tool.

Supported tools and their skill paths:

Tool Config detected Skill saved to
Claude Code ~/.claude/ ~/.claude/skills/workbench/SKILL.md
Codex ~/.codex/ ~/.agents/skills/workbench/SKILL.md
OpenCode ~/.config/opencode/ ~/.config/opencode/skills/workbench/SKILL.md

Print only

To print the skill without the interactive menu (useful for piping):

bench agent-skill --print
bench agent-skill --print > custom-location.md

What the skill does

Once installed, the agent can invoke bench commands (status, logs, start, stop, restart, validate) to diagnose and manage services in your running dev environment. See the skill source for the full prompt.

Version stamping and staleness checks

Each time bench agent-skill runs, the binary stamps its own version (from bench version) into the skill's frontmatter and body. The skill instructs the agent to compare the stamped version against the live bench version at the start of every session; if they differ, the agent prompts the user to re-run bench agent-skill to refresh the saved skill.

This keeps agent guidance from drifting behind shipped features when the binary upgrades but the saved skill file doesn't.