AGENT SKILL

create-skill

Create or revise portable agent skills with clear triggers, focused instructions, and self-contained resources. Use when creating, modifying, refactoring, or deduplicating a skill or its SKILL.md, or authoring skill evaluations and benchmarks.

License 许可
MIT
所属仓库
japurcell/skills
最近更新
2026-11-11
Stars
★ 0
Forks
0

01 前言 Front Matter

name
create-skill
description
Create or revise portable agent skills with clear triggers, focused instructions, and self-contained resources. Use when creating, modifying, refactoring, or deduplicating a skill or its SKILL.md, or authoring skill evaluations and benchmarks.

02 资源文件 8

03 SKILL.md 正文

Create Skill

Core Principles

Concise is key

The context window is a public good. A Skill shares the context window with everything else an agent needs, including:

  • The system prompt
  • Conversation history
  • Other Skills’ metadata
  • The user request

Being concise in SKILL.md matters: once an agent loads it, every token competes with conversation history and other context. So keep SKILL.md and its associated resources as concise as possible while preserving intended behavior.

Default assumption: The agent is already very smart

Only add context the agent doesn’t already have. Challenge each piece of information:

  • “Does the agent really need this explanation?”
  • “Can I assume the agent has this information?”
  • “Does this paragraph justify its token cost?”

Workflow

  1. Scope the request

    • Identify the authoritative skill source and the requested write boundary. Read the target project's applicable instructions and conventions.
    • For a new skill, match the frontmatter name to the bundle directory. For a revision, preserve both names unless the user requests a rename.
    • Search available skills for near-duplicate names or overlapping descriptions. Refine a matching skill instead of creating a shadow skill; explain the choice.
  2. Activate authoring guidance

    • Activate the skill-creator skill for the authoring and iteration workflow.
    • When drafting or changing agent-facing guidance, activate the writing-for-agents skill. Skip it when the change is confined to evaluation fixtures or graders.
  3. Draft or revise the skill

    • Before pruning or restructuring, map every behavioral obligation to its replacement. Preserve explicit exclusions, conditions, approval requirements, and actionable task verification.
    • Write invocation instructions as “activate the <name> skill” or “activate the <name> and <name> skills”, including worker instructions.
    • Retain an existing disable-model-invocation: true unless a human explicitly approves removing it. If a validator rejects the field, check its allowlist against the target host's documented support and report the mismatch.
    • Consult the Claude Code frontmatter reference when choosing invocation controls and argument hints. Use documented field names and account for differences in other target hosts. Additionally, include arguments, allowed-tools, disallowed-tools, compatibility and any other helpful fields when known.
    • When adding or revising an argument-hint, read argument hints for invocation syntax and YAML quoting.
    • Keep the description trigger-oriented: state what the skill does and clear Use when ... conditions. Keep workflow steps in the body.
    • Keep the body under 200 lines. Keep references one level deep, preferably in an immediate reference directory; link directly from SKILL.md with a loading condition and read needed references completely. References longer than 100 lines MUST start with a table of contents.
    • Keep resources self-contained within the bundle. Refer to other skills through activation language, and derive target-project details from its applicable instructions instead of linking to the author's repository documents.
    • Keep a skill's own maintenance and evaluation instructions in README.md files. When writing or running evaluations and benchmarks is the skill's task, keep that procedure in its runtime instructions and bundled references.
    • Follow the effective-skills checklist. Spell out exact commands and paths when required by the skill's task.
    • Extract deterministic logic into skill-bundled scripts when it would otherwise be rewritten repeatedly or when a script materially improves reliability. Reuse existing tools and commands directly when they already meet the task's needs. Scripts can run without loading their source into context, reducing context use and repeated inference. Follow CLI design best practices, provide actionable errors and clear usage documentation, and document required packages and verify their availability.
  4. Write and run evaluations

    • Add or update evals/evals.json with at least three realistic scenarios covering creation, modification, and a negative or duplicate-avoidance case.
    • Use deterministic assertions and a grader when the output can be checked objectively. Preserve scenario-specific conditions and malformed/missing-input cases.
    • Benchmark new skills against without_skill; compare modified skills against an explicit old_skill snapshot. Use a fresh iteration and preserve earlier valid failures.
    • Read evaluation validation and evidence when writing scenarios or graders, running evaluations, or interpreting benchmarks.
    • Use the target project's existing validation tools and maintained skill's acceptance scope. Resolve tooling from the available skill installation rather than assuming the author's checkout layout.
  5. Review the result

    • Compress changed passages before finalizing. Remove repetition and explanation that adds no behavioral guidance; preserve every obligation, condition, exception, and safeguard.
    • Check that each runtime reference resolves within the bundle and has a distinct loading trigger.
    • Confirm that another project can use the skill without this repository's documents or checkout layout.
    • Preserve unrelated content and report the changed source, verification performed, and any unresolved limits.

04 同仓库更多 Skills

japurcell
japurcell/skills

spec-create

Create or revise a portable behavioral SPEC for a feature or whole product. Use when specifying a new idea, documenting an existing system for reimplementation, or defining a change while preserving compatibility. Implementation planning is a separate task.

产品经理
★ 0
japurcell
japurcell/skills

prd-ralph

Complete at most one eligible unfinished PRD task, verify it, log progress, and optionally create one scoped commit.

产品经理
★ 0
japurcell
japurcell/skills

fsdp-style-guide

Mandatory for all UI/UX design, implementation, review, audit, or visual regression tasks. Always use for any work that affects user-facing appearance, behavior, accessibility, branding, layout, navigation, forms, dialogs, alerts, tables, or visual design.

设计师
★ 0
japurcell
japurcell/skills

agency-priorities

Provide self-contained USDA strategic goals and Forest Service priorities for agency briefings, proposals, and work-plan alignment. Use when explaining agency direction or evaluating how a project contributes to USDA and Forest Service priorities.

★ 0
japurcell
japurcell/skills

accomplishment-report

Create a concise Forest Service executive accomplishment report when all work in an ExecPlan is completed, or update its existing report. Use at ExecPlan closeout and when asked to report completed work, agency alignment, and estimated AI-assisted versus human-only time and cost savings.

行政与办公人员
★ 0
japurcell
japurcell/skills

writing-for-agents

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

内容创作者写作与文案
★ 0