Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

crafting-instructions制作说明

Agent Skill

用于辅助提示词、系统指令、Agent 行为约束和工作流模板的整理。它适合让 Agent 规范任务边界、统一输出格式、拆分操作步骤或优化提示词可复用性。使用时需要保留真实业务约束,不要把示例当硬规则;涉及自动执行、外部工具或高风险操作时,应在提示词中明确确认步骤、权限边界和失败处理方式。

总安装

906

周安装

37

GitHub Stars

119

下载量

290
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:crafting-instructions(制作说明)
来源仓库:https://github.com/oaustegard/claude-skills
仓库路径:skills/crafting-instructions
安装命令:
npx skills add https://github.com/oaustegard/claude-skills --skill crafting-instructions
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/oaustegard/claude-skills --skill crafting-instructions

简介

crafting-instructions 生成针对 Claude.ai 的三种指令格式:项目指令、技能与独立提示词。

  • 适用于需要持久化工作区上下文、团队协作或定制特定任务行为的场景。
  • 根据是否涉及“全部对话”“团队空间”等信号选择合适格式与加载策略。
  • 使用前应梳理真实业务约束,避免将示例直接转化为硬规则。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Crafting Instructions for Claude

Generate technically optimized instructions for Claude.ai across three formats: Project instructions, Skills, and standalone prompts.

Decision Framework: Which Format to Use?

Ask these questions to determine the right format:

Use PROJECT INSTRUCTIONS when:

  • Context needs to persist for ALL conversations in a workspace
  • Multiple team members collaborate with shared knowledge
  • Background knowledge required for specific initiative
  • Custom behavior scoped to one project only

Signals: "for this project", "all conversations about X", "team workspace", "project-specific"

Use SKILL when:

  • Capability needed across MULTIPLE contexts/projects
  • Procedural knowledge that applies broadly
  • Instructions should activate automatically when relevant
  • Want portable expertise that loads on-demand

Signals: "every time I", "whenever", "reusable", "across projects", "teach Claude how to"

Use STANDALONE PROMPT when:

  • One-off request with immediate context
  • Ad-hoc instructions for single use
  • Conversational refinement
  • No need for persistence

Signals: "for this task", "right now", "just this once", "can you"

Combined Approaches:

Project + Skill:

  • Project: Persistent context (market data, product specs)
  • Skill: Reusable methods (analysis framework, report templates)
  • Use when: Need both workspace context AND portable capabilities

Skill + Prompt:

  • Skill: General expertise (code review standards)
  • Prompt: Specific context ("review this PR for security")
  • Use when: Foundational capability + immediate direction

Core Optimization Principles

These apply to ALL instruction formats:

1. Imperative Construction

Frame as direct action commands, not suggestions:

  • ❌ "Consider creating X" → ✅ "Create X when conditions Y"
  • ❌ "You might want to" → ✅ "Execute" / "Generate"
  • ❌ "Try to optimize" → ✅ "Optimize by"

2. Positive Directive Framing

State WHAT to do, not what NOT to do:

  • ❌ "Don't use bullet points" → ✅ "Write in flowing paragraph form"
  • ❌ "Avoid technical jargon" → ✅ "Use accessible language for beginners"
  • ❌ "Never output lists" → ✅ "Present information in natural prose"

WHY: Negative instructions force inference. Positive instructions state desired behavior directly.

3. Context and Motivation

Explain WHY requirements exist:

  • ❌ "Use paragraph form"
  • ✅ "Use paragraph form because flowing prose is more conversational for casual learning"

WHY: Context helps Claude make better autonomous decisions in edge cases.

4. Strategic Over Procedural

Provide goals and decision frameworks, not step-by-step procedures:

  • Specify: Success criteria, boundaries, decision frameworks
  • Minimize: Sequential steps, detailed execution, obvious operations
  • Rule: If Claude can infer procedure from goal, specify only the goal

Model-aware calibration:

  • Sonnet: Include decision frameworks with explicit conditions and fallbacks. Concrete examples help more than abstract principles. When in doubt, add structure.
  • Opus: Lean harder into strategic goals over procedures. Trust Opus to handle ambiguity—overly procedural instructions can constrain its natural reasoning. Principles > rules. Context about WHY is particularly valuable since Opus uses it for autonomous judgment in edge cases.

5. Trust Base Behavior

Claude's system prompt already covers:

  • Citation protocols, copyright guidelines, safety
  • General tool usage, artifact creation basics
  • Conversational tone defaults, refusal handling
  • Base accuracy and helpfulness standards

ONLY specify project/domain-specific deviations.

Format-Specific Guidance

For Project Instructions

See: references/project-instructions.md

Key points:

  • Additive to system prompt (no duplication)
  • Focus on workspace-specific behavior
  • Enable extended thinking suggestions for complex domains
  • Simple structure (headings/paragraphs) unless complexity demands more

For Skills

See: references/creating-skills.md

Key points:

  • Progressive disclosure (metadata → full instructions → bundled resources)
  • Frontmatter: name + description with trigger patterns
  • Keep SKILL.md under 500 lines
  • Use references/ for detailed domain content

For Standalone Prompts

See: references/standalone-prompts.md

Key points:

  • Clear and explicit about desired output
  • Provide context and examples when helpful
  • Scale complexity to task needs
  • Give permission to express uncertainty

When to Suggest What

"Use a Skill" when user says:

  • "I keep having to explain this every time"
  • "Can you remember how to do X?"
  • "I need this across multiple projects"
  • Repeating same instructions across conversations

"Use Project instructions" when user says:

  • "For this project, always..."
  • "My team needs to work with..."
  • "All conversations about this initiative should..."
  • Building workspace with persistent context

"Use a better prompt" when user says:

  • Results are inconsistent
  • Claude misunderstands intent
  • Output format isn't right
  • Need more comprehensive response

Skills vs Projects: Key Differences

Read: references/skill-vs-project.md for detailed comparison

Quick reference:

Project = "Here's what you need to know"

  • Static reference material always loaded
  • Background knowledge for initiative
  • Team workspace context

Skill = "Here's how to do things"

  • Dynamic expertise loading on-demand
  • Procedural knowledge and methods
  • Portable across any conversation

Example:

  • Project: "Q4 Product Launch" with market research, competitor docs
  • Skill: competitive-analysis framework for analyzing any competitor

Use both together for powerful combinations.

Example Quality Awareness

CRITICAL for Claude 4.x: Examples teach ALL patterns, including unintended ones.

When including examples:

  • Audit EVERY detail (format, verbosity, structure, tone)
  • Ensure ALL aspects demonstrate desired behavior
  • Better to omit examples than include mixed signals
  • If example uses bullets but you want prose, Claude will default to bullets

Model-aware calibration:

  • Sonnet: Examples are highly influential—include 2-3 demonstrating desired patterns. Sonnet learns format/style strongly from examples.
  • Opus: Examples help but are less essential. Opus weights explicit instructions and principles more heavily than pattern-matching from examples. One clear example often suffices; omit entirely if examples can't perfectly align with all requirements.

Structural Simplicity

Default to clear organization:

  • Headings and whitespace (primary approach)
  • Explicit language stating relationships
  • Natural paragraph flow

Use structured markup (XML/JSON) only when:

  • Separating distinct content types in complex scenarios
  • Absolute certainty about content boundaries required
  • API-driven workflows needing structured parsing

Extended Thinking Guidance

Extended thinking is UI toggle, not phrase-controlled.

In instructions, you CAN:

  • Make assistant aware it exists
  • Provide domain-specific indicators for suggesting it
  • ❌ NOT: Include "trigger phrases" (they don't work)

Pattern:

For tasks involving [specific complexity], suggest enabling Extended
thinking, explaining briefly why it would help for THIS task.

Complexity Scaling

Match instruction complexity to task needs:

Simple task → Simple prompt or brief instructions Medium task → Structured guidance with decision frameworks Complex task → Comprehensive instructions + suggest extended thinking

Before adding complexity: Could simpler formulation work equally well?

Model Selection & Instruction Density

When crafting instructions, consider which model will execute them:

For Sonnet-executed instructions:

  • Explicit > implicit (state assumptions that might be obvious)
  • More decision trees, fewer abstract principles
  • Comprehensive edge case handling
  • Concrete fallback behaviors
  • Token-efficient but explicit

For Opus-executed instructions:

  • Strategic goals > procedural steps
  • Principles and reasoning > exhaustive rules
  • Trust handling of unstated edge cases
  • Provide rich WHY context—Opus uses it for autonomous judgment
  • Permission to deviate when spirit conflicts with letter
  • Can state: "Use judgment for cases not covered here"

Instruction density heuristic:

  • Sonnet: 1.0-1.2x the detail you'd give a competent junior
  • Opus: 0.6-0.8x the detail—more like briefing a senior peer

When uncertain: Instructions optimized for Opus will still work with Sonnet (just less perfectly). Instructions over-optimized for Sonnet may constrain Opus unnecessarily.

Quality Checklist

Before delivering instructions:

Strategic:

  • Clear goals stated without micromanagement
  • Context explains WHY requirements exist
  • Decision frameworks for ambiguous cases
  • Constraints use positive framing when possible

Technical:

  • Imperative language throughout
  • Positive directives over negative restrictions
  • Appropriate structure (simple by default)
  • No system prompt duplication
  • Examples (if any) perfectly aligned

Execution:

  • Immediately actionable
  • Success criteria clear
  • Format matches complexity needs

Common Mistakes to Avoid

System prompt duplication - "Use web_search for current info, cite sources" ✅ Omit unless project has SPECIFIC deviations

Negative framing - "Don't use lists, never be verbose" ✅ "Present in natural prose paragraphs"

Fake thinking triggers - "Use 'think carefully' for deep thinking" ✅ "Suggest Extended thinking toggle for [specific complexity]"

Procedural micromanagement - "Step 1: X, Step 2: Y..." ✅ "Goal: X. Quality standard: Y. Approach: Z."

Contextless requirements - "Always use formal tone" ✅ "Use formal tone for professional docs because recipients expect authoritative voice"

Imperfect examples - Example uses bullets when you want prose ✅ Either create perfect examples or omit entirely

Additional Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.37%
按下载量换算108

Claude

28.2%
按下载量换算82

Cursor

18.78%
按下载量换算54

Gemini CLI

8.82%
按下载量换算26

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills