AgentSkillsCN

manage-agent-config

创建、更新并验证代理配置

SKILL.md
--- frontmatter
name: manage-agent-config
description: Create, update, and validate agent configurations

/manage-agent-config

Manage agent configuration files in agents/{agent}/config.yml.

Usage

code
/manage-agent-config <action> <agent> [options]

Actions:

  • validate — Check config against schema and completeness
  • create — Create new agent config interactively
  • audit — Deep audit: which rules apply, which should be excluded/overridden
  • sync — Update config based on audit findings

Examples:

code
/manage-agent-config validate claude
/manage-agent-config create cursor
/manage-agent-config audit claude
/manage-agent-config sync copilot

Process

Validate

  1. Load agents/{agent}/config.yml
  2. Check against schemas/agent.schema.yml
  3. Verify universal variables exist
  4. Report issues

Create

  1. Prompt for agent details (name, prefix, file patterns)
  2. Determine feature support (rules dir, skills, etc.)
  3. Generate config with appropriate excludes
  4. Validate and save

Audit

  1. Load agent config
  2. For each core rule, check if agent supports the feature
  3. Compare against current excludes/overrides
  4. Generate recommendations

Sync

  1. Run audit
  2. Apply recommended changes
  3. Validate result

Reference Files