instruction-creator
为 GitHub Copilot 创建和管理高质量的自定义说明文件。当您需要在 instructions/ 目录中定义新的特定于项目的指南、工作流程或编码标准时使用。
📖 中文导读:为 GitHub Copilot 创建和管理高质量的自定义说明文件。当您需要在 instructions/ 目录中定义新的特定于项目的指南、工作流程或编码标准时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: instruction-creator description: 'Create and manage high-quality custom instruction files for GitHub Copilot. Use when you need to define new project-specific guidelines, workflows, or coding standards in the instructions/ directory.'
Instruction Creator
This skill guides the creation of effective custom instruction files that help GitHub Copilot follow project conventions and domain-specific logic.
Workflow
- Define Scope: Identify the purpose and the files the instructions should apply to (e.g.,
**/*.ts). - Initialize: Use the
scripts/init_instruction.pyscript to create the boilerplate.python skills/instruction-creator/scripts/init_instruction.py "my-new-instruction" --description "Description here" --applyTo "**/*.ext" - Draft Content: Follow the guidelines to fill in the sections.
- Use Templates: Refer to templates for standard structures.
- Semantic Linking: Ensure you link to relevant Skills in the
Workflowsection.- Example:
To perform [Task], execute the [Skill Name](skills/<skill-name>/SKILL.md).
- Example:
- Validate: Test the instructions with Copilot to ensure they are clear and actionable.
Core Principles
- Policy Maker: Instructions define the "What" and "How" (decision logic).
- Concise: Avoid fluff; use imperative language.
- Actionable: Provide concrete examples and clear steps.
- Linked: Connect instructions to the skills that execute them.
Resources
- Guidelines: Detailed rules for frontmatter, style, and linking.
- Templates: Ready-to-use markdown structures.
scripts/init_instruction.py: Automation for creating new files.