界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

create-instructions

create-instructions

【效率与协作】Create an instructions file (.instructions.md) for a project rule or convention.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: create-instructions description: 'Create an instructions file (.instructions.md) for a project rule or convention.' argument-hint: What rule or convention to enforce? disable-model-invocation: true

Related skill: agent-customization. Load and follow instructions.md for template and principles.

Guide the user to create an instructions file.

Extract from Conversation

First, review the conversation history. If the user has been correcting the agent's output or asking for specific patterns (e.g., "always use X", "never do Y", "follow this style"), generalize that into a persistent instruction. Extract:

  • Corrections or preferences mentioned during the conversation
  • Coding patterns the user enforced or requested
  • Project-specific conventions referenced

Clarify if Needed

If no clear rule emerges from the conversation, clarify:

  • Should this apply everywhere or only to specific files?
  • Which technologies or file types are affected?
  • Is this a hard rule or a preference?

Explore the codebase using subagents if you need more context.

Iterate

  1. Draft the instruction and save it.
  2. Identify the most ambiguous or weak parts and ask about those.
  3. Once finalized, summarize what the instruction enforces, suggest example prompts to see it in action, and propose related customizations to create next.

Remember to follow the agent-customization guidelines to create highly effective instructions.

我的收藏