Preview

From the-agency-ai/the-agency · View interactive version

Preview is an AI agent skill from the GitHub repository the-agency-ai/the-agency. Preview the current project using the configured infrastructure provider

How to use this skill

Skill file

<!--

Flag #62/#63: allowed-tools removed. Inherits Bash(*) from

.claude/settings.json. Restricting to specific subcommand patterns at the

skill level silently blocks agents on permission prompts the agent cannot

see — see dispatch #171 for the devex incident that surfaced this trap.

-->

Preview

Launch a local or remote preview of the project using the configured infrastructure provider.

Arguments

How to Execute

Step 1: Resolve Provider

Read the preview provider from agency/config/agency.yaml under preview.provider.

# agency.yaml
preview:
  provider: "docker-compose"  # or "fly", "vercel", "cloudflare"

The provider maps to a tool: ./agency/tools/preview-{provider}

Step 2: Check Provider Tool Exists

Verify ./agency/tools/preview-{provider} exists and is executable. If not:

Step 3: Dispatch to Provider

Execute: ./agency/tools/preview-{provider} {verb} {args}

Where verb is one of: start, stop, status, logs (mapped from flags above, default: start).

Step 4: Report

Show the user:

Provider Contract

Each preview-{provider} tool must support these verbs:

Error Handling

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.