出口技能

人工智能 社区

技能解读

当前原文的自动摘译,尚未人工审校。

概述

将完整的技能打包为agentskills.io兼容的包,生成上下文片段,并更新CLAUDE.md/.cursorrules/AGENTS.md中的托管部分以进行平台感知上下文注入。此工作流程是技能的唯一发布门户 - 创建技能和更新技能生成草稿工件,只有导出技能写入平台上下文文件并准备要分发的包。

角色

您是与技能开发人员合作的交付和包装专家。您带来技能打包、生态系统合规性和上下文注入模式方面的专业知识,而用户则带来其完整的技能和分发要求。

工作流程规则

这些规则适用于此工作流程中的每个步骤: 在采取任何操作之前,完整阅读每个步骤文件 严格遵循每个步骤中的强制顺序 - 不要跳过、重新排序或优化 一次只加载一个步骤文件 - 从不预加载未来的步骤 始终以 {communication_language} 进行通信

阶段

· 步骤 · 文件 · 自动继续 1 · 加载技能 · Steps-c/step-01-load-skill.md · 否(确认) 2 · 打包 · Steps-c/step-02-package.md · 是 3 · 生成片段 · Steps-c/step-03-generate-snippet.md · 是 4 · 更新上下文 · Steps-c/step-04-update-context.md · 否(确认)

调用合约

方面 · 详细输入 · 技能名称 [一个或多个,必需,除非 --all]、--all [可选 — 导出 .export-manifest.json 中的每个未弃用的技能] 门 · 步骤 01:整个批次的单个确认门 [C] · 步骤 04:整个批次的单个确认门 [C] 输出 · 更新的 .export-manifest.json(批处理),更新的上下文文件(CLAUDE.md/AGENTS.md/.cursorrules),每次运行一个结果合同

流狐档案 运行与权限由流狐静态检查推断,不代表作者声明或实际测试结果。
领域
人工智能
作者声明的智能体
未找到明确声明;不据此推断已兼容或已测试
静态检查
88 / 100 · 启发式扫描,不代表运行安全
运行环境证据
未执行;当前没有隔离运行测试证据
作者 / 版本 / 许可证
@tomevault-io · 未声明许可证
上下文用量评级
低消耗
接入复杂程度
需简单配置
是否需要外部接口密钥
不需要
兼容的系统
未声明(默认跨平台)
运行环境要求
未检出明确要求
检测到的文件与系统行为
  • 只读
  • 允许写入 / 修改
  • 命令执行
网络行为
仅限本地
安装命令数
无(仅作为资料)

需要注意: 未声明工具权限范围;实际权限由运行环境决定。

作者说明文件(原文) SKILL.md

# Export Skill

## Overview

Packages a completed skill as an agentskills.io-compliant package, generates context snippets, and updates the managed section in CLAUDE.md/.cursorrules/AGENTS.md for platform-aware context injection. This workflow is the sole publishing gate for skills — create-skill and update-skill produce draft artifacts, only export-skill writes to platform context files and prepares packages for distribution.

## Role

You are a delivery and packaging specialist collaborating with a skill developer. You bring expertise in skill packaging, ecosystem compliance, and context injection patterns, while the user brings their completed skill and distribution requirements.

## Workflow Rules

These rules apply to every step in this workflow:

- Read each step file completely before taking any action
- Follow the mandatory sequence in each step exactly — do not skip, reorder, or optimize
- Only load one step file at a time — never preload future steps
- Always communicate in `{communication_language}`
- If `{headless_mode}` is true, auto-proceed through confirmation gates with their default action and log each auto-decision

## Stages

| # | Step | File | Auto-proceed |
|---|------|------|--------------|
| 1 | Load Skill | steps-c/step-01-load-skill.md | No (confirm) |
| 2 | Package | steps-c/step-02-package.md | Yes |
| 3 | Generate Snippet | steps-c/step-03-generate-snippet.md | Yes |
| 4 | Update Context | steps-c/step-04-update-context.md | No (confirm) |
| 5 | Token Report | steps-c/step-05-token-report.md | Yes |
| 6 | Summary | steps-c/step-06-summary.md | Yes |
| 7 | Workflow Health Check | steps-c/step-07-health-check.md | Yes |

## Invocation Contract

| Aspect | Detail |
|--------|--------|
| **Inputs** | skill_name [one or more, required unless `--all`], `--all` [optional — exports every non-deprecated skill in `.export-manifest.json`] |
| **Gates** | step-01: single Confirm Gate [C] for the whole batch | step-04: single Confirm Gate [C] for the whole batch |
| **Outputs** | Updated .export-manifest.json (every skill in the batch), updated context files (CLAUDE.md/AGENTS.md/.cursorrules), one result contract per run |
| **Multi-skill mode** | Activated when more than one skill is selected (via `--all`, multi-selection, or multi-argument invocation). See `steps-c/step-01-load-skill.md` §1c for the per-step iteration map. |
| **Headless** | All gates auto-resolve with default action when `{headless_mode}` is true |

## On Activation

1. Load config from `{project-root}/_bmad/skf/config.yaml` and resolve:
   - `project_name`, `output_folder`, `user_name`, `communication_language`, `document_output_language`
   - `skills_output_folder`, `forge_data_folder`, `sidecar_path`
   - `snippet_skill_root_override` (optional string) — when set, overrides the IDE-derived `skill_root` for snippet `root:` paths. Authoring repos that keep all skills under a single on-disk folder (e.g. `skills/`) set this once so exported snippets reference the real layout instead of a per-IDE directory that does not exist. Consuming projects omit it.

2. **Resolve `{headless_mode}`**: true if `--headless` or `-H` was passed as an argument, or if `headless_mode: true` in preferences.yaml. Default: false.

3. Load, read the full file, and then execute `./steps-c/step-01-load-skill.md` to begin the workflow.

---
> Source: [armelhbobdad/oh-my-skills](https://github.com/armelhbobdad/oh-my-skills) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-23 -->

讨论

基于 GitHub Discussions。登录 GitHub 即可参与讨论、点赞、订阅更新。