Get the FREE Ultimate OpenClaw Setup Guide →

agent-creator

npx machina-cli add skill fusengine/agents/agent-creator --openclaw
Files (1)
SKILL.md
4.4 KB

Agent Creator

Agent Workflow (MANDATORY)

Before ANY agent creation, use TeamCreate to spawn 3 agents:

  1. fuse-ai-pilot:explore-codebase - Check existing agents, analyze patterns
  2. fuse-ai-pilot:research-expert - Fetch latest agent conventions
  3. mcp__context7__query-docs - Get examples from existing agents

After creation, run fuse-ai-pilot:sniper for validation.


Overview

ActionWhen to Use
New AgentNew domain/framework expert needed
AdaptCopy from similar agent (Next.js → React)
UpdateAdd skills, modify hooks

Critical Rules

  1. ALL content in English - Never French or other languages
  2. Frontmatter complete - name, description, model, tools, skills, hooks
  3. Agent Workflow section - Always first content section
  4. SOLID rules reference - Link to solid-[stack] skill
  5. Register in marketplace.json - Or agent won't load
  6. Hook scripts executable - chmod +x

Architecture

plugins/<plugin-name>/
├── agents/
│   └── <agent-name>.md      # Agent definition
├── skills/
│   ├── skill-a/
│   └── solid-[stack]/
├── scripts/
│   └── validate-*.sh        # Hook scripts
└── .claude-plugin/
    └── plugin.json

→ See architecture.md for details


Reference Guide

Concepts

TopicReferenceWhen to Consult
Architecturearchitecture.mdUnderstanding agent structure
Frontmatterfrontmatter.mdYAML configuration
Required Sectionsrequired-sections.mdMandatory content
Hookshooks.mdPre/Post tool validation
Registrationregistration.mdmarketplace.json

Templates

TemplateWhen to Use
agent-template.mdCreating new agent
hook-scripts.mdValidation scripts

Quick Reference

Create New Agent

# 1. Research existing agents
→ explore-codebase + research-expert

# 2. Create files
touch plugins/<plugin>/agents/<agent-name>.md
touch plugins/<plugin>/scripts/validate-<stack>-solid.sh
chmod +x plugins/<plugin>/scripts/*.sh

# 3. Register in marketplace.json

# 4. Validate
→ sniper

Adapt Existing Agent

# 1. Copy similar agent
cp plugins/nextjs-expert/agents/nextjs-expert.md plugins/new-plugin/agents/new-expert.md

# 2. Adapt with sed
sed -i '' "s/nextjs/newstack/g; s/Next\.js/NewStack/g" agents/new-expert.md

# 3. Update skills, tools, register

Validation Checklist

  • ALL content in English
  • Frontmatter complete (name, description, model, tools, skills)
  • Agent Workflow section present
  • Mandatory Skills Usage table
  • SOLID Rules reference to solid-[stack]
  • Local Documentation paths valid
  • Hook scripts executable
  • Registered in marketplace.json

Related: Skill Creator

When creating an agent, you often need to create skills too.

Use /fuse-ai-pilot:skill-creator to create skills for the agent:

ScenarioAction
New agent needs skillsCreate skills with skill-creator first
Agent references skillsEnsure skills exist in skills/
Adapting agentAdapt related skills too

Best Practices

DO

  • Use skill-creator for associated skills
  • Reference solid-[stack] skill for SOLID rules
  • Include Gemini Design section for UI agents
  • Make hook scripts executable

DON'T

  • Write in French (English only)
  • Skip Agent Workflow section
  • Forget marketplace registration
  • Create agent without its skills
  • Hard-code paths in hooks (use $CLAUDE_PLUGIN_ROOT)

Source

git clone https://github.com/fusengine/agents/blob/main/plugins/ai-pilot/skills/agent-creator/SKILL.mdView on GitHub

Overview

Agent Creator produces a complete agent.md for new expert agents, including frontmatter, hooks, required sections, and skill references. It enforces the mandatory workflow of spawning three supporting agents with TeamCreate before creation and validating with sniper afterward. This standardizes agent definitions for consistency and marketplace readiness.

How This Skill Works

It assembles agent.md from templates and references for architecture, frontmatter, required sections, and hooks. It also ensures hook scripts are executable and links to registration and solid stack references, guiding the agent to load correctly in the plugin system.

When to Use It

  • Create a new domain or framework expert agent
  • Adapt from a similar agent to reuse patterns
  • Update an agent to add new skills, tools, or hooks
  • Ensure frontmatter and required sections are complete before onboarding
  • Validate the agent with sniper after creation

Quick Start

  1. Step 1: Research existing agents with explore-codebase and research-expert
  2. Step 2: Create the agent.md and corresponding hook scripts, then chmod +x
  3. Step 3: Register in marketplace.json and run sniper for validation

Best Practices

  • All content must be in English
  • Frontmatter should be complete with name, description, model, tools, and skills
  • Agent Workflow section must be the first content block
  • Include a SOLID rules reference to solid-[stack]
  • Register in marketplace.json and make hook scripts executable (chmod +x)

Example Use Cases

  • Create a new frontend-expert agent for a Next.js project
  • Adapt a React-based agent to the Next.js stack
  • Update an agent to add a new SEO skill and its hooks
  • Register the new agent in marketplace.json
  • Run sniper to validate the completed agent

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers