Skill Creator Flagos 标志

Skill Creator Flagos

组织
flagos-ai
skill-creator-flagos

Create new skills, modify existing skills, and validate skill quality for the FlagOS skills repository. Use this skill whenever someone wants to create a skill from scratch, improve or edit an existing skill, scaffold a new skill directory, validate skill structure, or run test cases against a skill. Trigger when the user says things like "create a skill", "make a new skill for X", "scaffold a skill", "improve this skill", "validate my skill", or simply "/skill-creator-flagos". Also trigger when users mention turning a workflow into a reusable skill, or want to package a repeated process as a skill.

概览

发布者flagos-ai
代码仓库skills
技能名称skill-creator-flagos
星标数
22
复刻数
11
附带文件
4
许可协议Apache-2.0
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 4 个附带文件

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

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

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

在 TypingMind 中使用此技能

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

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

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

Skill Creator

A meta-skill for creating, improving, and validating skills in the FlagOS skills repository.

Overview

This skill guides you through the full lifecycle of skill development:

  1. Create — scaffold a new skill from template, interview the user, write SKILL.md
  2. Improve — analyze an existing skill, identify weaknesses, iterate with test cases
  3. Validate — check structure, frontmatter, references, and conventions compliance

Usage

/skill-creator-flagos                       # Interactive — asks what you want to do
/skill-creator-flagosmy-new-skill --init    # Scaffold a new skill
/skill-creator-flagosmy-skill --validate    # Validate an existing skill
/skill-creator-flagosmy-skill --eval        # Run test prompts against a skill

Execution

Step 0: Parse arguments and determine mode

Extract from user input:

  • {{skill_name}} — optional skill name (hyphen-case)
  • {{mode}} — one of: create, improve, validate, eval, or interactive (default)

If no mode is specified, ask the user:

What would you like to do?

  1. Create a new skill from scratch
  2. Improve an existing skill
  3. Validate a skill's structure and conventions
  4. Run test cases against a skill

-> Tell user: Confirm the mode and skill name.


Mode 1: Create a New Skill

Step 1: Capture intent

Start by understanding what the user wants to build. If the current conversation already contains a workflow the user wants to capture (e.g., "turn this into a skill"), extract answers from the conversation history first.

Key questions to clarify:

  1. What should this skill enable the agent to do?
  2. When should this skill trigger? (user phrases, contexts, file types)
  3. What's the expected output or end state?
  4. Does the skill need scripts, reference docs, or asset files?
  5. What tools does the skill need access to?

Adapt your communication style to the user — don't assume coding jargon familiarity. Pay attention to context cues.

-> Tell user: Summarize the captured intent and confirm before proceeding.

Step 2: Initialize the skill directory

Run the init script to scaffold the skill:

bash
python3 {{skill_root}}/scripts/init_skill.py {{skill_name}} --path {{skills_dir}} [--resources scripts,references,assets]

Where:

  • {{skill_root}} = absolute path to this skill-creator-flagos's directory
  • {{skills_dir}} = path to the skills/ directory (usually the parent of {{skill_root}})

The script creates the directory with SKILL.md template, LICENSE.txt, and optional subdirectories.

-> Tell user: Show the created directory structure.

Step 3: Write the SKILL.md

Based on the user interview, fill in these components:

Frontmatter (YAML)
FieldRequiredGuidelines
nameYesLowercase + hyphens, must match directory name, max 64 chars
descriptionYes1-2 sentences: what it does AND when to trigger. Be specific and slightly "pushy" — err on the side of triggering too often rather than too rarely
argument-hintRecommendedShow expected arguments
user-invokableRecommendedtrue if invokable via /skill-name
compatibilityOptionalEnvironment requirements
metadataRecommendedversion, author, category, tags
allowed-toolsRecommendedSpace-separated tool list with patterns
Body (Markdown)

Follow the structure documented in references/writing-guide.md. At minimum include:

  • Overview — what problem this solves, when to activate
  • Prerequisites — environment requirements
  • Execution steps — numbered steps with **-> Tell user** progress markers
  • Examples — at least 2-3 realistic usage examples
  • Troubleshooting — common problems and fixes

Read references/writing-guide.md for detailed patterns on progressive disclosure, output formats, domain organization, and writing style.

Step 4: Add supporting resources

Based on the skill's needs, create:

  • scripts/ — executable code for deterministic/repetitive tasks
  • references/ — detailed docs loaded into context as needed
  • assets/ — files used in output (templates, icons, etc.)

Rules:

  • Every script/reference must be documented in SKILL.md with usage instructions
  • Scripts should have execute permissions (chmod +x)
  • Keep SKILL.md under 500 lines; move detailed content to references/
  • For reference files >300 lines, include a table of contents

Step 5: Validate

Run validation to check conventions compliance:

bash
python3 {{repo_root}}/scripts/validate_skills.py {{skills_dir}}/{{skill_name}}

Fix any reported issues. See Troubleshooting section below.

-> Tell user: Report validation results. On failure, diagnose and fix.

Step 6: Write README files

Create README.md (English) and optionally README_zh.md (Chinese) following the pattern in existing skills. The README should cover:

  • Overview / problem statement
  • Usage instructions
  • Directory structure
  • File descriptions
  • Examples
  • Installation instructions

-> Tell user: Skill creation complete. Present the final directory tree and summary.


Mode 2: Improve an Existing Skill

Step 1: Analyze the current skill

Read the existing SKILL.md and all supporting files. Identify:

  • Unclear or missing trigger conditions in the description
  • Missing examples or edge cases
  • Steps that lack progress reporting (**-> Tell user**)
  • Overly long SKILL.md that should be split into references
  • Missing troubleshooting entries
  • Scripts without documentation

-> Tell user: Present findings and proposed improvements.

Step 2: Draft test prompts

Create 2-3 realistic test prompts — things a real user would say. Share them with the user for confirmation.

Save to evals/evals.json:

json
{
  "skill_name": "{{skill_name}}",
  "evals": [
    {
      "id": 1,
      "prompt": "User's task prompt",
      "expected_output": "Description of expected result",
      "assertions": ["The output includes X", "Step Y was executed"]
    }
  ]
}

See references/schemas.md for the full schema.

Step 3: Iterate

For each round:

  1. Apply improvements to SKILL.md and supporting files
  2. Re-run validation
  3. Review against test prompts (mentally or by spawning test runs)
  4. Collect user feedback
  5. Repeat until satisfied

-> Tell user: Report changes made in each iteration.


Mode 3: Validate

Run the validation script:

bash
python3 {{repo_root}}/scripts/validate_skills.py {{skills_dir}}/{{skill_name}}

The script checks:

  • SKILL.md exists and has valid YAML frontmatter
  • Required fields (name, description) are present
  • name matches directory name, follows naming conventions
  • description length within limits
  • Body has sufficient content (>100 chars)
  • Referenced files in scripts/ and references/ actually exist
  • Scripts have execute permissions
  • No hardcoded paths or credentials

-> Tell user: Report all findings with severity (error/warning).


Mode 4: Run Evals

If evals/evals.json exists, run the test prompts against the skill:

bash
python3 {{skill_root}}/scripts/run_eval.py {{skills_dir}}/{{skill_name}}

This generates a report showing which assertions passed/failed for each test case.

-> Tell user: Present results and suggest improvements.


Placeholders

PlaceholderHow to derive
{{skill_name}}From user input, normalized to hyphen-case
{{skill_root}}Absolute path to this skill-creator-flagos's directory
{{repo_root}}Absolute path to the repository root (parent of skills/)
{{skills_dir}}Path to the skills/ directory containing all skills

Examples

Example 1: Create a new skill from scratch

User says: "/skill-creator-flagospreflight-check --init"
Actions:
  1. Parse → skill_name=preflight-check, mode=create
  2. Interview user about what preflight-check should do
  3. Run init_skill.py to scaffold directory
  4. Write SKILL.md with deployment verification workflow
  5. Add scripts/check_gpu.sh, scripts/check_env.py
  6. Validate and fix any issues
  7. Write README.md
Result: Complete preflight-check skill ready for use

Example 2: Improve an existing skill

User says: "improve model-migrate-flagos, the description could be better"
Actions:
  1. Read existing SKILL.md and all references
  2. Analyze description — find it's too long and not trigger-friendly
  3. Propose a more concise, trigger-optimized description
  4. Create test prompts to verify triggering
  5. Apply changes, validate
Result: Improved skill with better triggering accuracy

Example 3: Validate all skills

User says: "/skill-creator-flagos--validate"
Actions:
  1. No skill_name provided → validate all skills in skills/
  2. Run validate_skill.py on each skill directory
  3. Report consolidated results
Result: Validation report for all skills

Example 4: Turn a conversation workflow into a skill

User says: "turn what we just did into a skill"
Actions:
  1. Analyze conversation history for the workflow performed
  2. Extract: tools used, sequence of steps, corrections made
  3. Interview user to fill gaps
  4. Scaffold and write the skill
Result: New skill capturing the conversation workflow

Troubleshooting

ProblemCauseFix
name does not match directory nameFrontmatter name differs from folder nameEnsure they are identical
description exceeds 1024 charsDescription too longMove details to the body; keep description to 1-2 sentences
SKILL.md body is too shortInsufficient instructionsAdd overview, steps, examples, troubleshooting
Missing required fieldname or description absent in frontmatterAdd the missing field
name must be lowercase+hyphensInvalid characters in nameUse only a-z, 0-9, -
Skill doesn't triggerDescription too narrow or vagueMake description more specific and slightly aggressive about triggering
Referenced file not foundScript or reference listed in SKILL.md but not on diskCreate the file or remove the reference

附带文件

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

常见问题

Skill Creator Flagos AI 技能有什么作用?

Create new skills, modify existing skills, and validate skill quality for the FlagOS skills repository. Use this skill whenever someone wants to create a skill from scratch, improve or edit an existing skill, scaffold a new skill directory, validate skill structure, or run test cases against a skill. Trigger when the user says things like "create a skill", "make a new skill for X", "scaffold a skill", "improve this skill", "validate my skill", or simply "/skill-creator-flagos". Also trigger when users mention turning a workflow into a reusable skill, or want to package a repeated process as...

为什么在 TypingMind 中使用 Skill Creator Flagos?

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

如何在 TypingMind 中安装 Skill Creator Flagos?

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

哪些 AI 模型可以使用 Skill Creator Flagos?

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

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

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

Skill Creator Flagos AI 技能免费吗?

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

什么是 AI 技能?

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

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

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

查看全部

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

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