AgentSkillsCN

agent

列出并调用专业代理

SKILL.md
--- frontmatter
name: agent
description: List and invoke specialized agents

Manage and invoke ForemanOS specialized agents.

Usage

  • /agent or /agent list - List all available agents
  • /agent <name> - Show detailed help for an agent
  • /agent <name> <task> - Invoke an agent with a task

Available Agents

Development Agents

NameDescription
securityVulnerability scanning, OWASP analysis, auth review, injection scanning
testerRun tests, generate tests, improve coverage
fixerFix build errors, bugs, dependency issues
documenterGenerate documentation for code, APIs, features
databasePrisma schema, migrations, query optimization
uiReact components, design system, accessibility
ux-designUser research, design specs, accessibility audits, user flows

Specialized Agents

NameDescription
stripe-expertStripe payments, subscriptions, webhooks, billing
pdf-specialistPDF processing, construction drawings, form filling
refactoring-agentLarge-scale code restructuring, pattern migrations
infra-specialistInfrastructure, deployment, Vercel, environment config
analytics-reportsReport generation, KPI dashboards, data visualization, exports
resilience-architectError handling, retry strategies, graceful degradation, logging

Construction Domain Agents

NameDescription
project-controlsBudget, schedule, EVM, cash flow, variance reports
quantity-surveyorTakeoffs, pricing, symbol recognition, bid analysis
document-intelligenceOCR, RAG, document extraction, contract analysis
field-operationsDaily reports, labor tracking, weather delays
data-syncCross-system sync, cascade updates, data flow
submittal-trackerSubmittals, RFIs, spec compliance tracking
compliance-checkerPermits, inspections, OSHA, closeout docs
bim-specialistAutodesk/BIM integration, clash detection, model data
photo-analystField photo analysis, progress tracking, safety checks

Examples

code
/agent list
/agent security
/agent fixer Fix the TypeScript errors in lib/rag.ts
/agent tester Generate tests for the new budget sync feature
/agent quantity-surveyor Extract quantities from the uploaded floor plan

How to Invoke

When the user specifies an agent and task:

  1. Use the Task tool with subagent_type set to the agent name
  2. Pass the task description as the prompt parameter
  3. Set run_in_background: true for long-running tasks

Example invocation:

code
Task tool:
  subagent_type: "fixer"
  prompt: "Fix the TypeScript errors in lib/rag.ts"
  description: "Fix TS errors in rag.ts"

Agent Details

To see full details about an agent, read its definition file:

  • .claude/agents/<agent-name>.md

Auto-Routing

Agents are also automatically selected based on keywords in user queries:

  • "security audit" → security agent
  • "run tests" → tester agent
  • "fix bug" → fixer agent
  • "generate docs" → documenter agent
  • "takeoff" → quantity-surveyor agent
  • "clash detection" → bim-specialist agent
  • "UX audit", "user flow", "WCAG" → ux-design agent
  • "report", "KPI", "dashboard", "analytics" → analytics-reports agent
  • "error handling", "retry", "circuit breaker" → resilience-architect agent