Generate Skill 标志

Generate Skill

组织
TanStack
generate-skill

Use when creating or extending library skill batches, updating guidance after library source or docs change, configuring repository skill distribution, or acting on an Intent review report, including when the maintainer asks only for the library change. For full-library discovery or taxonomy design, use domain-discovery; for generating an approved full-library tree, use tree-generator.

概览

发布者TanStack
代码仓库intent
技能名称generate-skill
星标数
355
复刻数
26
附带文件
9
许可协议MIT
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 9 个附带文件

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

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

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

在 TypingMind 中使用此技能

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

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

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

Author and maintain library skills

Work in the maintainer's library repository with their existing coding agent. Produce a source-grounded skill batch or focused update with task checks, a cumulative planning record, and a compact review. Intent supplies the procedure and deterministic evidence; your agent performs the authoring work.

1. Recover the task and choose the workflow

Use the current conversation, supplied diff, identified code/docs change, review report, or selected skill tree entry. Reuse the task, decisions, and evidence already established in this session; do not ask the maintainer to paste them again. Identify what developers need help doing and which package owns that task. If there is no usable task or review input, ask one question: “What do developers need help doing with this library?” Wait for the answer.

Check repository instructions and Git status before edits; preserve unrelated changes. Read maintainer commands when setting up the repository, adding a skill, or preparing a batch for review. When installing or updating CI, read workflow security before changing pins, triggers, or permissions. Use those commands for registration, metadata synchronization, and completion checks. Discover the package name, version, repository, skill root, and vocabulary from the repository. Use an established custom root; otherwise use skills/ inside the owning package, including in monorepos.

Before choosing or changing repository exports, follow repository distribution. For an export-only change, complete that procedure against existing skill records; use the authoring steps below only if guidance must change.

For an initial skill set or a request spanning several developer tasks, read initial batches. Reuse scope already approved in the conversation. For one concrete task, proceed directly below. During ordinary library work, keep the code change as the primary task. Read source review to identify affected guidance from actual changes and record completed reviews before handing off any of these workflows.

For every authoring batch or update, read the planning record procedure and create or incrementally maintain domain_map.yaml, skill_spec.md, and skill_tree.yaml. Read existing records first and preserve prior scope and decisions. These records grow with the batches; maintaining them does not require a full-library interview or generating every planned skill.

When the input is an intent stale report or generated review PR, read review-signals before deciding what to edit. Investigate the supplied items in the requested scope, applying this procedure to each affected task. A review signal alone is not a task or proof of changed guidance; first use the reference to establish its meaning.

2. Read the evidence and choose the owner

Read the relevant source, types, tests, docs, examples, and existing skills with their required references. Follow imports or related guidance where they affect the task. Record the source revision or package version used. For an update, inspect the supplied change and the existing skill's claims; use an actual diff or documented before/after behavior when available. A version change alone does not establish changed behavior or a baseline.

Prefer updating guidance that already owns the task. Create one new skill only when developers would benefit from discovering that task independently. Clarify an ambiguous boundary with a concrete example: would a developer trying this task need the same guidance, or a different prerequisite or workflow? Keep the library's established names and terminology.

Expand research only to close a task-relevant gap. Read the relevant FAQ, migration guide, or issue/discussion when local evidence does not explain a failure or intended behavior. Verify external evidence against the target version. Do not scan broad issue histories or regenerate the library for a routine update.

Before editing, identify the existing sections affected or the independently useful task that justifies a new file. If the inspected change leaves all relevant guidance accurate, report the evidence and make no content rewrite or artificial version bump. Missing or conflicting evidence is uncertainty, not “no impact”; state what is missing and which conclusion it blocks.

3. Resolve consequential unknowns

Look up discoverable facts yourself. Ask only for unresolved maintainer decisions that change the task boundary, intended behavior, or recommended pattern. Ask dependent questions after their prerequisites are settled. Use the concrete scenario and evidence behind the question, then wait for the answer before writing the dependent guidance. Continue independent work where possible. If evidence remains unavailable, report the affected work as blocked or partially verified rather than inventing an answer.

No fixed interview or review-preference question is needed for one task.

4. Write the bounded change

Apply the writing rules below to each task in the agreed batch. For a new skill, read the skill format for frontmatter, body, and prerequisite conventions. Source documentation can establish the batch’s evidence; create or extend its required planning record alongside the skills.

For an update, preserve established names, layout, terminology, and scope unless the actual change requires otherwise. Edit only affected sections and references. Add a sourced old/new example when a changed pattern would otherwise mislead users. Reconcile all three planning documents with the change using the planning record procedure; update affected entries and preserve accurate, unrelated decisions. Change metadata.library_version only when the revised guidance is verified for that version; do not fabricate historical versions or rewrite unrelated metadata to clear a staleness signal.

Writing rules

  • Write description as self-contained activation guidance: concrete developer tasks, library/framework context, and relevant boundaries. Name each distinct task once instead of listing synonymous triggers. Include requests that omit API names. Other agents must be able to select the skill from this standard field alone; exact wording is not a validation rule.
  • Put the descriptive explanation of what the skill is for in metadata.purpose. For an existing skill without that field, copy its pre-edit description text unchanged before writing the activation description. Preserve an existing purpose; never replace it with a later activation description. Read the field contract before this migration or when creating either field.
  • Start the body with the task procedure. Keep skill-selection criteria in description; retain execution prerequisites, conditional reference pointers, and downstream handoffs in the body.
  • Each independent skill enables an independently useful developer task. Keep common, necessary guidance accessible from its entry point.
  • Put conditional detail behind a Markdown link that says when to read it. Choose reference boundaries by relevance, not proximity to 500 lines.
  • Group features used in the same developer task under one skill. Use references for conditional detail within that task; create a separate skill only for a task worth discovering independently. API exports and feature counts do not determine skill boundaries.
  • Give shared rules one authoritative home, keeping each rule beside its exceptions and failure conditions. Every affected entry point must route to that home with the required reading condition; preserve genuine prerequisites and failure handling when removing duplication.
  • Use source, types, and docs for readily discoverable facts. Capture the decisions, constraints, and pitfalls they do not make obvious. Include the API detail necessary to make the task's examples usable.
  • Keep necessary, complete examples with real imports and concrete values. Ground pitfalls in evidence; do not manufacture mistakes to meet a quota.
  • End each workflow step with a checkable result or failure condition. Complete the task only when all required results are verified; report missing evidence explicitly. A shorter file that omits required behavior is not an improvement.
  • Give one supported default, with alternatives only for a concrete condition. Specify exact steps for fragile operations and allow judgment where approaches are equivalent. Keep non-obvious failure constraints at the entry point when the agent could miss a conditional reference.
  • When adding commands or reusable automation, follow script guidance. Bundle tested logic only when it prevents repeated reinvention or fragile command construction.

5. Verify the developer task and hand off

For new guidance and updates that change a recommended behavior, follow task quality checks. Create or reuse a representative task and executable checks in the repository's existing test setup. A successful structural check is not evidence that a consumer can complete the task.

For new or changed descriptions, also follow discovery checks. Keep activation evidence separate from task correctness.

Run npm exec --no -- intent validate <skills-root> with the actual owning package's skill directory (or the repository's installed intent). Fix errors without weakening validation. Keep every SKILL.md within the 500-line limit. Review packaging warnings separately; they do not require installing dependencies or changing publishing configuration during authoring.

Check that every reference and prerequisite resolves, every changed claim matches the cited source/version, and examples use actual supported APIs. Exercise the relevant example or package check where available. Intent's structural validation does not prove semantic correctness or agent behavior. If a check cannot run, report it as not verified with the reason.

Inspect the actual SKILL.md output and matching tree entry before handoff: the description makes the use conditions clear, purpose explains the skill, and both stay within supported behavior. Check migrated purpose text against the pre-edit description and preserve established purpose on later updates. Do not imply stronger guarantees to attract more requests. Check that references have reading conditions and independently discoverable tasks justify any new skills.

Verify all three planning documents against the resulting skills and prior record, then record completed skill and planning outcomes using the source review procedure, then inspect the final diff for unrelated edits and run git diff --check for touched files. Return the changed library behavior, affected skill/reference paths, all three planning document paths and their changes or justified no-op, source/version evidence, structural and task-check results, and any remaining maintainer decision. Distinguish updated guidance, verified no change, and missing evidence for each reviewed task. Report whether a fresh consumer session completed the representative task; if that check could not run, mark it unverified rather than treating the authoring session as independent evidence. The result is ready for maintainer review when the task is usable end to end and those checks pass.

Track the handoff gates explicitly: skills and task checks verified; all three planning documents reconciled; review outcomes recorded; maintainer check run and any pending work reported. Do not finish after writing the files while leaving these gates unchecked.

Stop at the reviewable diff. Commits, labels, workflow/dependency installation, and publishing are separate actions requiring the maintainer's request.

附带文件

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

常见问题

Generate Skill AI 技能有什么作用?

Use when creating or extending library skill batches, updating guidance after library source or docs change, configuring repository skill distribution, or acting on an Intent review report, including when the maintainer asks only for the library change. For full-library discovery or taxonomy design, use domain-discovery; for generating an approved full-library tree, use tree-generator.

为什么在 TypingMind 中使用 Generate Skill?

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

如何在 TypingMind 中安装 Generate Skill?

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

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

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

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

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

Generate Skill AI 技能免费吗?

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

什么是 AI 技能?

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

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

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

查看全部

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

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