agent-bridge-workflow
npx skills add https://github.com/annals-ai/agent-bridge --skill agent-bridge-workflow
Agent 安装分布
Skill 文档
Agent Management â Agents.Hot Platform
Behavior â READ THIS FIRST
This is an interactive workflow, not a reference document.
When this skill activates, you MUST:
- Determine intent â Read the user’s message and match it to the Workflow Routing table below. If unclear, ask.
- Start the first step immediately â Do NOT list all steps upfront. Walk through them one at a time.
- Ask for each input individually â For the Create workflow, ask for name first, then type, then description, then pricing. Wait for the user’s answer before moving on.
- Execute commands yourself â Run
agent-bridgecommands via Bash and check their output. Do NOT show placeholder commands for the user to copy-paste. - Verify before proceeding â After each step, confirm it succeeded (check command output, verify status) before moving to the next step.
- Write files yourself â When setting up the agent folder, create
CLAUDE.md/AGENTS.mdand skill files directly. Do NOT just show templates.
Companion skills â you MUST use these at the indicated points:
| Skill | When to invoke | Purpose |
|---|---|---|
/find-skills |
Before drafting the description (Create step 3) | Search for real community skills to reference |
/agent-bridge-cli |
When any CLI command fails or you need exact syntax | Command reference & troubleshooting |
/skill-creator |
During folder setup (step 4) to create each skill | Interactively generate SKILL.md files |
Do NOT skip these â they are integral parts of the workflow, not optional extras.
You MUST NOT:
- Dump all steps as a numbered guide or checklist
- Show commands with
<placeholder>values and ask the user to fill them in - Skip ahead or combine multiple steps into one message
- Describe what the user should do â actually do it
- Invent skill names â only use skills found via
/find-skillsor created via/skill-creator
Conversation flow example (Create workflow):
You: "What does your agent do? I'll help you pick a good name."
User: "It reviews TypeScript code"
You: [suggests name] â asks about type (claude vs openclaw)
User: "claude"
You: [asks about pricing] â explains options briefly
User: "free for now"
You: [invokes /find-skills to search "code review", "typescript", "linting"]
You: [drafts description using real skill names from search results] â shows for approval
User: "looks good"
You: [runs `agent-bridge agents create ...`] â shows result
You: [proceeds to set up folder, invokes /skill-creator for each skill]
Prerequisites
Before starting any workflow, verify the environment:
- Run
agent-bridge --versionâ if not found, install withnpm install -g @annals/agent-bridge - Run
agent-bridge statusâ if not authenticated, runagent-bridge login(opens browser for sign-in)
Workflow Routing
Match the developer’s intent and jump to the appropriate section:
| Intent | Workflow |
|---|---|
| New agent from scratch | Create â Set up Folder â Connect â Publish |
| Add skills to existing agent | Set up Folder |
| Set up agent on a new machine | Connect (with --setup ticket) |
| View/manage local agents | Dashboard (agent-bridge list) |
| Make agent available in marketplace | Publish |
| Change name/price/description | Update |
| Test agent end-to-end | Debug Chat |
| Remove agent | Delete |
Create
Collect four inputs from the developer one at a time, then execute.
1. Name
Ask what the agent does, then suggest a short (2â4 words), action-oriented name. Examples: Code Review Pro, SQL Query Helper, React Component Builder.
2. Agent Type
Ask which runtime the agent uses:
| Type | When to use |
|---|---|
openclaw |
Agent runs via OpenClaw Gateway (local daemon, Protocol v3) |
claude |
Agent runs via Claude Code CLI (stdio, stream-json) |
3. Description
â ï¸ MANDATORY: Invoke /find-skills first. Search for existing community skills relevant to the agent’s domain. For example, if the agent does SEO work, search for “SEO”, “keyword”, “marketing”, etc. Do NOT proceed to drafting until you have search results.
Then draft the description based on the conversation and the skills you found. Follow this structure:
First paragraph: What the agent does (2â3 sentences, under 280 chars for card preview).
Second paragraph (optional): Technical specialties.
/skill-name What this skill does
/another-skill Another capability
#tag1 #tag2 #tag3
/skilllines declare capabilities shown as chips in the marketplace â they must correspond to real skills that will be installed in the agent’s folder#taglines enable search and discovery- Specificity matters â generic descriptions rank poorly
- Do NOT invent skill names â only use skills found via
/find-skillsor ones you will create via/skill-creatorin the folder setup step
Show the draft and ask for approval before proceeding.
4. Pricing
Present the options and ask which fits:
| Strategy | Flag | Best for |
|---|---|---|
| Free | --price 0 |
Building reputation, open-source agents |
| Per hour | --price 10 --billing-period hour |
General-purpose agents |
| Per day | --price 50 --billing-period day |
Heavy-usage agents |
| Per month | --price 200 --billing-period month |
Enterprise/team agents |
Price is in platform credits. Recommend starting free or low to build reviews, then adjusting upward.
Execute
Once all four inputs are collected, run the command.
Shell escaping: Descriptions often contain special characters, quotes, or non-ASCII text. Always pass the description via a heredoc or a temporary file to avoid shell parsing errors:
agent-bridge agents create \
--name "<name>" \
--type <type> \
--price <n> \
--description "$(cat <<'DESC'
Your description text here...
Can span multiple lines safely.
DESC
)"
If the command fails, invoke /agent-bridge-cli to check the correct syntax and flags. Do NOT guess or retry blindly.
The CLI outputs an Agent ID (UUID). Save it â you’ll need it for the connect step.
Immediately proceed to Set up Agent Folder.
Set up Agent Folder
After creating an agent on the platform, set up a local folder with role instructions and skills. This folder becomes the agent’s working directory when connected â the AI tool reads instructions and skills from it automatically.
1. Create the folder
Default location: ~/.agent-bridge/agents/<agent-name>/ (use a lowercase slug, e.g. translator, code-review-pro).
Note: If you used --setup to register the agent, the workspace directory was already created automatically â the CLI printed the path in the terminal output. You can skip mkdir and go straight to adding files.
The developer may also specify a custom path â use that instead if provided.
mkdir -p ~/.agent-bridge/agents/<agent-name>
2. Choose the protocol based on agent_type
| agent_type | Instruction file | Skills directory | Why |
|---|---|---|---|
claude |
CLAUDE.md |
.claude/skills/ |
Claude Code reads these natively from cwd |
openclaw / codex / gemini |
AGENTS.md |
.agents/skills/ |
AAIF standard â Codex, OpenCode, Cursor, Windsurf read natively |
Create the directory structure:
Claude Code agent (--type claude):
cd ~/.agent-bridge/agents/<agent-name>
mkdir -p .claude/skills
Universal agent (--type openclaw / codex / gemini):
cd ~/.agent-bridge/agents/<agent-name>
mkdir -p .agents/skills
3. Write the role instruction file
Create CLAUDE.md (for claude) or AGENTS.md (for others) in the agent folder root. Write the content yourself based on what you know about the agent. Include:
- Role: Who the agent is (e.g. “You are a senior code reviewer specializing in TypeScript”)
- Behavior rules: Tone, constraints, what to do and not do
- Domain knowledge: Key context the agent needs
- Output format: How responses should be structured (if relevant)
Keep it focused â this file is read on every conversation turn.
4. Create agent-specific skills
â ï¸ DO NOT SKIP THIS STEP. DO NOT PROCEED TO CONNECT UNTIL ALL SKILLS ARE CREATED.
For every /skill-name line in the agent’s description, you must create a corresponding SKILL.md file inside the agent’s folder. Without these files, the agent will have no capabilities when running in sandbox mode.
â ï¸ CRITICAL: Skills must go into the AGENT’s folder, NOT the global ~/.claude/skills/ directory.
- Global
~/.claude/skills/= your own skills (for YOU the developer) - Agent folder
~/.agent-bridge/agents/<name>/.claude/skills/= the agent’s skills (for the AGENT when it runs)
The agent runs in a sandbox with only its own folder as cwd. It cannot access ~/.claude/skills/.
For each skill in the description, do ONE of:
Option A â Download an existing community skill (if /find-skills found one with a URL):
mkdir -p ~/.agent-bridge/agents/<agent-name>/.claude/skills/<skill-name>
curl -fsSL <skill-raw-url> -o ~/.agent-bridge/agents/<agent-name>/.claude/skills/<skill-name>/SKILL.md
Option B â Create a new skill with /skill-creator:
- Invoke
/skill-creator - Write the generated SKILL.md to:
~/.agent-bridge/agents/<agent-name>/.claude/skills/<skill-name>/SKILL.md
â ï¸ MANDATORY FRONTMATTER â Every SKILL.md MUST start with YAML frontmatter. Without it, Claude Code will NOT register the skill as a slash command and users cannot invoke it.
---
name: skill-name
version: 1.0.0
description: "What this skill does. When to use it â include trigger words and phrases users might say."
---
# Skill Title
(rest of skill content...)
name: must match the folder name (e.g.keyword-researchfor.claude/skills/keyword-research/SKILL.md)description: is the PRIMARY trigger â Claude reads this to decide when to activate the skill. Include both what it does AND trigger phrases (e.g. “when the user mentions ‘keyword research’, ‘å ³é®è¯ç ç©¶’, ‘æ©è¯'”)- Do NOT omit the
---fences â they are required YAML frontmatter delimiters - After writing each SKILL.md, verify it starts with
---on line 1
Repeat for EVERY /skill-name line in the description.
Resulting skills directory:
~/.agent-bridge/agents/<agent-name>/
âââ .claude/skills/ # or .agents/skills/ for universal agents
âââ skill-a/
â âââ SKILL.md
âââ skill-b/
âââ SKILL.md
5. Verify folder structure AND frontmatter before proceeding
â ï¸ STOP. Run find <agent-folder> -type f and verify that:
- The instruction file exists (
CLAUDE.mdorAGENTS.md) - Every
/skill-namefrom the description has a matching.claude/skills/<skill-name>/SKILL.md - Every SKILL.md starts with
---YAML frontmatter â runhead -3 <agent-folder>/.claude/skills/*/SKILL.mdand confirm each file begins with---/name:/description:
Expected structure (Claude Code agent):
~/.agent-bridge/agents/<agent-name>/
âââ CLAUDE.md
âââ .claude/
âââ skills/
âââ skill-a/
â âââ SKILL.md
âââ skill-b/
âââ SKILL.md
Expected structure (Universal agent):
~/.agent-bridge/agents/<agent-name>/
âââ AGENTS.md
âââ .agents/
âââ skills/
âââ skill-a/
â âââ SKILL.md
âââ skill-b/
âââ SKILL.md
If any skill is missing, go back and create it. Do NOT proceed to Connect with an incomplete folder.
Connect
Pre-check: Before connecting, confirm the agent folder has BOTH the instruction file AND all skill files with valid YAML frontmatter. If you skipped “Set up Agent Folder â step 4”, go back now â the agent will have no capabilities in sandbox mode without skills in its folder. Skills missing frontmatter will NOT be recognized as slash commands.
Important: Always connect from the agent folder so the AI tool reads the instruction file and skills automatically.
Three paths depending on context:
-
--setup(recommended for first time):agent-bridge connect --setup <ticket-url>â fetches config from a one-time ticket, auto-saves thesb_token (acts as auto-login if not yet authenticated), automatically creates the workspace directory and setsprojectPath, then opens the TUI dashboard. The CLI prints the workspace path â no need to manuallycdor pass--project. -
From agent folder:
cd ~/.agent-bridge/agents/<agent-name> agent-bridge connect --agent-id <uuid> <type>This sets cwd to the agent folder â Claude Code reads
CLAUDE.md+.claude/skills/automatically. -
With
--projectflag (alternative):agent-bridge connect --agent-id <uuid> --project ~/.agent-bridge/agents/<agent-name> <type>
Claude Code agents run with --sandbox by default (blocks SSH keys, API tokens, credentials via macOS Seatbelt). Disable with --no-sandbox if the agent needs access to local credentials.
After connecting, verify with agent-bridge agents show <name> â status should show online.
After successful connection, proceed to Publish (if the user wants marketplace visibility).
Publish
Two preconditions must be met before publishing:
- Agent must be online (connected via
agent-bridge connect) - Developer must have an email address set at https://agents.hot/settings
Run agent-bridge agents publish <name-or-id>. To remove from marketplace: agent-bridge agents unpublish <name-or-id>.
Key Domain Knowledge
Agent ID Resolution
All commands accepting <name-or-id> resolve in this order:
- UUID â exact match
- Local alias â from
~/.agent-bridge/config.json(set duringconnect) - Remote name â platform agent name (case-insensitive)
Dashboard vs Platform List
agent-bridge listâ interactive TUI showing agents registered on this machine with live online statusagent-bridge agents listâ API query showing all agents on the platform (including those on other machines)
Reconnection
After initial setup, reconnect with just agent-bridge connect â config persists in ~/.agent-bridge/config.json.
Common Errors
Invoke /agent-bridge-cli for the full troubleshooting table. Key patterns:
Not authenticatedâagent-bridge loginToken revokedâ token was revoked on the platform, runagent-bridge loginfor a new oneAgent must be online for first publishâ runagent-bridge connectfirstEmail requiredâ set email at https://agents.hot/settings