AgentSkillsCN

update-ai-config

创建、更新或管理AI配置模板。根据用户需求进行分析,并将任务委派给相应的模板专属技能。

SKILL.md
--- frontmatter
name: update-ai-config
description: Create, update, or manage AI configuration templates. Analyzes what the user needs and delegates to the appropriate template-specific skill.

Manage AI Config Templates

IMPORTANT: This project uses universal-ai-config (uac). All AI configuration lives in the <%= config.templatesDir %>/ directory as universal templates. NEVER edit generated target-specific files (e.g. .claude/, .github/copilot-instructions.md, .cursor/) directly — those are overwritten on every uac generate run. Always modify the source templates in <%= config.templatesDir %>/.

When the user wants to add or change AI configuration for this project, follow these steps:

1. Understand the Request

Read the template guide at <%= instructionPath('uac-template-guide') %> to understand the available template types and when to use each.

2. Determine the Template Type

Based on the user's request, decide which type of template to work with:

  • Persistent context, rules, or guidelines → Use /update-instruction
  • Repeatable task, workflow, or slash command → Use /update-skill
  • Specialized AI persona with restricted tools → Use /update-agent
  • Automatic lifecycle automation (on events) → Use /update-hook
  • MCP server configuration → Use /update-mcp

3. Delegate

Invoke the appropriate skill with the user's requirements. If the intent is ambiguous, ask the user to clarify before proceeding. For example:

  • "Add a rule about error handling" → /update-instruction
  • "Create a deploy workflow" → /update-skill
  • "Set up a code reviewer" → /update-agent
  • "Run linting after file edits" → /update-hook
  • "Add an MCP server for GitHub" → /update-mcp

Important

The delegated skills (/update-instruction, /update-skill, /update-agent, /update-hook, /update-mcp) primarily create or modify files inside <%= config.templatesDir %>/. They may also modify files in directories listed under additionalTemplateDirs in the config — but only with explicit user confirmation, since those are shared templates that may affect other projects. Never edit generated output files in .claude/, .cursor/, .github/, or similar target-specific directories — those are regenerated from templates and any direct changes will be lost.