Skill Authoring 标志

Skill Authoring

社区
Lynricsy
skill-authoring

Authors, reviews and evaluates Agent Skills and their SKILL.md files. Use when creating or rewriting a skill, fixing a skill description that never triggers, splitting an overgrown SKILL.md into references/, writing evals for a skill, or publishing a skill repository.

概览

发布者Lynricsy
代码仓库HyperSkills
技能名称skill-authoring
星标数
26
复刻数
0
附带文件
16
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 16 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 Lynricsy 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Skill Authoring AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/Lynricsy/HyperSkills/tree/main/skills/skill-authoring
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Lynricsy/HyperSkills.git /tmp/HyperSkills
mkdir -p .claude/skills
cp -r /tmp/HyperSkills/skills/skill-authoring .claude/skills/skill-authoring
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Skill Authoring,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Skill Authoring。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Skill Authoring 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

skill-authoring

Paths below are relative to this skill's directory.

Scope

Agent Skills as defined by the open specification at agentskills.io: a directory containing SKILL.md with YAML frontmatter, optionally plus references/, scripts/ and assets/. Authoring, reviewing, evaluating, packaging and licensing them, and organising a repository that holds several.

Not covered — do not answer from this skill:

  • MCP servers, tools and resources — use the mcp-server skill. A skill is instructions an agent reads; an MCP server is a process it calls. Wanting both does not make them one artifact.
  • Slash commands, subagent and agent definitions, output styles, hooks, prompt files, memory and rules files. These are host features that happen to live near skills; only the skill fields shared with them are in scope.
  • Writing the domain content itself. This skill decides what belongs in a skill about PostgreSQL; it does not know PostgreSQL.
  • Human-facing documentation — use the technical-writing skill. A skill directory holds no README, changelog or installation guide: those add clutter an agent has to read past.

Read first

references/spec-reference.md, before writing or judging any frontmatter. The field constraints are hard facts with exact limits, and a misremembered one produces a skill that a host silently skips — the worst failure mode available, because nothing reports it.

Core rules

Violations of these are bugs, not preferences.

  1. One skill covers one coherent job. A skill spanning two unrelated jobs triggers for neither, because the description cannot describe both without becoming vague.
  2. name is 1–64 characters of lowercase letters, digits and single hyphens, never leading, trailing or doubled, never containing an XML tag or a vendor reserved word, and identical to its directory name. Hosts key a skill's identity to the directory holding SKILL.md.
  3. Write the description in two layers, in English and the third person: a first sentence naming what the skill does, its domain and its key technology or artifact, then Use when with three to six concrete triggers. HyperSkills requires a 40–99 character first sentence and at most 400 characters in total; the specification allows 1,024. Neither limit is a target, and there is no padding minimum.
  4. The first sentence stands alone. Some hosts show only it, others cut the tail or drop whole descriptions when the shared listing overflows, so the domain and identifying nouns go there, never e.g./i.e., whose dots end the sentence early.
  5. Triggers say when to read the skill, never how it works: user phrasings, file names, error symptoms, task situations. No step summary — an agent follows the summary instead of the body — and no capability or version list. Strengthen a skipped skill with a concrete including … case, not capitalised emphasis; add Not for … only for a near miss seen in routing evals. Full exclusions stay in ## Scope.
  6. Only specification fields appear in frontmatter: name, description, license, compatibility, metadata, allowed-tools. Every other field belongs to one host, is ignored everywhere else, and — the real damage — convinces the author that something is handling activation when nothing is.
  7. Write only what the model lacks. Cut explanations of the language, the framework, the package manager and the standard library; keep the edge cases, the silent failures, the project's own invariants. Every paragraph answers "is this worth its tokens".
  8. Keep the body under 500 lines. Past that, move material into references/ and leave a pointer — never shrink by deleting the project-specific parts, which are the only parts that were carrying weight.
  9. Every reference file is one level deep from SKILL.md, is introduced there with an observable condition for reading it, and opens with a ## Contents list once it passes 100 lines. A file reached through another reference gets previewed rather than read, and a file with no read-when condition never gets opened at all.
  10. Match the degree of freedom to the fragility of the task: heuristics where several routes work, a parameterised template where one pattern is preferred, an exact command marked "do not change the flags" where the sequence is fragile and consistency matters.
  11. Match the form of the guidance to the baseline failure. A prohibition plus a rationalisation table works only for "knows the rule, breaks it anyway"; for output of the wrong shape write a positive recipe, for an omitted element add a required slot in the template, for state-dependent behaviour write a conditional keyed to something observable.
  12. Give one default and one escape hatch, never a menu. Use X. For <case> use Y instead. A list of five interchangeable options hands the decision back.
  13. Use one term per concept for the whole skill. Mixed synonyms break the pattern matching the instructions rely on.
  14. No time-sensitive statements. Deprecated material goes in a collapsed ## Old patterns block; the main line carries only the current way, because an agent cannot tell how old the file in front of it is.
  15. Imperative mood, and explain why. Capitalised ALWAYS and NEVER are a signal that the reason is missing; a model that understands the reason handles the case the rule did not anticipate.
  16. Refer to another skill by its name alone. Path-reference syntaxes that force a file into context spend the whole budget before it is needed, and a host-specific namespace prefix breaks the moment the skill is installed alone.
  17. Nothing in the body may depend on one host's runtime: no template variables it substitutes, no dynamic shell injection, no forced file attachment. Call bundled scripts by relative path through their interpreter (bash or python3 before the path), since some packagers drop the executable bit, and name MCP tools fully qualified as Server:tool so they resolve when several servers are connected.
  18. Bundle a script only once transcripts show runs rewriting the same code. Then it solves rather than defers (actionable message naming the available options, not a raw traceback), carries no unexplained constant, declares its dependencies, and is labelled in SKILL.md as Run or as See.
  19. Evaluations come before the body: at least three scenarios with observable expected behaviour, at least one near-miss negative, and a measured no-skill baseline. A rule the model already follows without the skill is dead weight; only a measured gap justifies text.
  20. The contents match the stated intent, and the skill does nothing the user would be surprised by. Author no skill whose purpose is unauthorised access, exfiltration or deception.

Workflows

scope-and-draft

For a new skill. Do not start with the prose.

  • Name the one job, and name what the skill will refuse to answer. Both go into ## Scope; the refusal list is what stops the skill inventing.
  • Run two or three representative tasks with no skill loaded and record the specific failures verbatim — wrong API, missing project rule, invented convention, rationalisation used. This is the gap inventory.
  • Classify each failure by form before writing anything (references/structure-and-writing.md): discipline, wrong-shaped output, omitted element, or state-dependent. The classification picks the form of the fix, and the wrong form measurably backfires.
  • Write evals/evals.json — at least three scenarios, each with observable expected behaviour and a query that names every fixture file it relies on, plus one near-miss that must not trigger the skill (references/evaluation.md).
  • Write the description with the formula in references/description-optimization.md.
  • Write the minimum body that closes the recorded gaps. Skip anything the baseline already got right.
  • Split into references/ only where the body crosses its budget, one file per variant or topic, each with a read-when condition.
  • Gate — every section traces to a gap: point at the baseline failure each section closes. Sections with no failure behind them are deleted.

test-with-and-without

The only evidence that a skill works. Full mechanics in references/evaluation.md.

  • Run every scenario with the skill and without it. Launch both configurations together, so a change in the environment cannot be mistaken for a change in the skill.
  • Repeat on every model the skill is meant for. A body that reads as over-explained to a strong model may be the minimum a small one needs.
  • Judge each expected_behavior item separately as met or unmet, citing the transcript line that decides it.
  • Confirm the near-miss scenario did not load the skill. If it did, the description's boundary is too wide, not the body's fault.
  • Mark every expectation that passes in both configurations as non-discriminating: it measures the model, not the skill, so it cannot justify text.
  • Gate — a closed gap in both directions: at least one behaviour that the baseline missed is met with the skill, on every model tested. No closed gap means no working skill; return to scope-and-draft rather than editing prose.

iterate-with-two-agents

Once the skill passes, the remaining defects are navigational and invisible from the author's chair.

  • Have one agent hold the author role (it sees the whole skill) and a fresh agent do real work with the skill loaded and no other briefing.
  • Watch the working agent's file access, not its answer, for four signals: an unexpected reading order, a reference it never followed, a file it read repeatedly, and a file it never opened.
  • Read each signal as a structural verdict — unexpected order means the sections are misordered, an unfollowed reference means its read-when condition is not observable, a repeatedly read file belongs in the body, and a never-opened file is either dead weight or unsignalled.
  • Feed the observation back as a structure change, not as more words. Adding emphasis to text that was never reached changes nothing.
  • Gate — the navigation matches the design: re-run one scenario and confirm the working agent now reaches the intended files in the intended order.

optimize-description

Run when a skill is skipped, or fires on the wrong requests. Details and the worked query set in references/description-optimization.md.

  • Write the two-layer description under rules 3–5. Read the first sentence alone: if it does not name the domain, a host that shows only it cannot route. Replace vague words rather than accumulating clauses.
  • Before rewording a skill that is never loaded, check whether the agent consulted the skill list at all. If it never looked, the lever is a host or context-file rule that forces a skill check, not the wording.
  • Build roughly twenty realistic queries, split between should-trigger and should-not-trigger, with the concrete texture of real requests — file names, job context, column names, typos.
  • Make the negatives near misses that share vocabulary with the skill. Obviously unrelated queries pass every description and prove nothing.
  • Hold part of the set back from the editing loop and score candidates on the held-out part, or the winning wording is only fitted to the queries used to write it.
  • Re-run each query several times per candidate: triggering is stochastic and a single run cannot separate a better description from noise.
  • Gate — measured on unseen queries: report the trigger rate on the held-out split for the old and the new description, not an impression.

review-existing-skill

Report findings in the output format below.

  • Frontmatter against references/spec-reference.md: field set, name constraints and directory match, description length, host-specific fields that must move out (references/client-extensions-and-paths.md).
  • Description as the trigger: third person; a self-contained first sentence naming domain and key technology (40–99 characters), then Use when with concrete triggers; at most 400 characters in total; no procedure, capability or version list, no capitalised emphasis. Detailed coverage and exclusions stay in ## Scope.
  • Budgets: body line count, each reference's line count, ## Contents on the long ones.
  • Content that the model already knows, and content that is specific to the project. Cut the first, keep the second.
  • Navigation: reference depth, a read-when condition per reference, no reference-to-reference link, no unreferenced file in references/.
  • Portability: host-specific template variables, dynamic shell injection, forced file attachment, cross-skill path references, namespace prefixes, backslash paths, unqualified MCP tool names.
  • Writing: one term per concept, one default plus an escape hatch, no time-sensitive statement, reasons present, freedom matched to fragility.
  • Scripts, if any: Run or See labelled, referenced at least once, solves rather than defers, constants explained, dependencies declared.
  • Guessing points — places where the instructions force the agent to invent a value, a path or a convention. Each one is a defect; name the fact that is missing.
  • Evidence: does evals/ exist, are there three scenarios, is one a negative, was a baseline measured.
  • Gate — every finding is actionable: each carries a location, the rule it breaks, and the replacement text or structural change. Findings without a fix are deleted.

package-and-publish

Distribution mechanics and provenance in references/publishing.md.

  • Keep the repository layout flat: one directory per skill under a container directory, identical internal structure, no category nesting. A skill's identity is its directory name, and flat keeps selection by name unambiguous.
  • Keep each skill independently installable: no path that reaches outside its own directory, since installers copy or symlink one skill at a time.
  • Record the licence of the skill and of every upstream it adapts, with the commit that was read. Proprietary upstreams are read for coverage only and contribute no text.
  • Validate every skill mechanically before publishing, and keep the check in continuous integration so a later edit cannot quietly break it.
  • Smoke-install into a scratch directory with the installer users will run, then confirm SKILL.md and every bundled file arrived.
  • Gate — installed and readable: the skill loads from the installed copy and its references resolve there, not only in the source tree.

Topic router

TopicRead whenFile
Frontmatter fields, limits, directories, disclosure budgets, validationAlways, before touching frontmatterreferences/spec-reference.md
Host-specific frontmatter, discovery paths, listing truncationA skill targets one host, or a field is not in the specreferences/client-extensions-and-paths.md
Two-layer description, host previews, undertriggering versus activation, trigger query sets, held-out scoringWriting or fixing a description, or a skill is never loadedreferences/description-optimization.md
Sections, naming, budgets, freedom, disclosure and guidance patterns, anti-patterns, when a script earns its placeDrafting or restructuring a bodyreferences/structure-and-writing.md
Evaluation files, baselines, grading, multi-model runs, pre-release checklistProving or measuring a skillreferences/evaluation.md
Installers, plugin manifests, repository layout, licensing, provenancePublishing, or vendoring upstream materialreferences/publishing.md
Three annotated skills, good and badChoosing a shape for a new skill, or calibrating a reviewreferences/worked-examples.md

Output format

Use this shape for review-existing-skill. Group by file, skip files with no findings, and end with a prioritised summary. Quote the replacement text rather than describing it.

SKILL.md

Line 3 — the description is first person and leaves the widget task vague. Name the task and identifying technology in a first sentence that stands alone, then the concrete situations that should load it.

yaml
# Before
description: I can help you build widgets with our design system.

# After
description: Builds UI widgets with the acme design system in React and TypeScript. Use when adding or changing a component under src/widgets/, choosing design tokens or props, or a widget renders off-brand, including one-line style fixes.

Line 5 — paths and metadata.promptSignals are one host's fields; other hosts ignore them, so activation is unhandled. Delete both and put the triggering into the description.

Lines 152–831 — the component catalogue is 680 lines of body. Move it to references/ as a table of name, purpose, props and file, and point at it from the body with a read-when condition: read it before writing any component, to check whether one already exists.

advanced.md (bundled reference)

Line 23 — links to a second reference, so the deeper file gets previewed rather than read. Promote it to a sibling of SKILL.md and point at both from the body.

Summary

  1. Triggering (high): the description cannot match anything; nothing else in the file matters until it does.
  2. Navigation (high): an 842-line body and a two-level reference chain together guarantee partial reads.
  3. Portability (medium): the generator command and the injected registry file work in one host only.

When the user asked for changes rather than a review, apply the same checks and edit the files directly instead of returning a report.

Environment

  • Validate a skill's frontmatter and naming with the reference validator: npx skills-ref validate ./<skill-dir>, or the equivalent check in the repository that holds the skill. Line budgets are a wc -l away and belong in the same check.
  • Install and update skills with npx skills@latest; its subcommands and its repository scan rules are in references/publishing.md.
  • This skill bundles no scripts. Evaluation runners are host-specific, so references/evaluation.md describes the steps and the judging criteria and leaves the mechanics to whatever runner the repository already has.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Skill Authoring AI 技能有什么作用?

Authors, reviews and evaluates Agent Skills and their SKILL.md files. Use when creating or rewriting a skill, fixing a skill description that never triggers, splitting an overgrown SKILL.md into references/, writing evals for a skill, or publishing a skill repository.

为什么在 TypingMind 中使用 Skill Authoring?

因为您只需安装一次,就能搭配任何模型使用。Skill Authoring 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Skill Authoring?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Lynricsy/HyperSkills/tree/main/skills/skill-authoring。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Skill Authoring?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Skill Authoring 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Skill Authoring 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Skill Authoring AI 技能免费吗?

是的。Lynricsy 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇