Nav Skill Creator 标志

Nav Skill Creator

组织
qf-studio
nav-skill-creator

分析代码库中的模式,为重复性工作流创建自定义技能。当项目需要自动化或强制执行模式时使用。用户说“为……创建一项技能”“自动化这个工作流”或“我们一直在手动做 X”时自动调用。

Add to TypingMind

概览

发布者qf-studio
代码仓库navigator
技能名称nav-skill-creator
星标数
232
复刻数
12
附带文件
3
许可协议MIT
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 3 个附带文件

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

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

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

在 TypingMind 中使用此技能

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

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

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

Navigator Skill Creator

Create project-specific skills by analyzing codebase patterns and automating repetitive workflows.

When to Invoke

Auto-invoke when user mentions:

  • "Create a skill for [pattern]"
  • "Automate this workflow"
  • "We keep doing X manually"
  • "Enforce this pattern"
  • "Generate boilerplate for [feature type]"
  • "We need consistency for [task type]"

What This Does

  1. Analyzes codebase to understand project patterns
  2. Identifies best practices from existing code
  3. Generates skill with:
    • Auto-invocation triggers
    • Predefined functions
    • Templates
    • Examples
  4. Tests the generated skill
  5. Documents the new skill

Execution Steps

Step 1: Understand Skill Request

Ask clarifying questions:

  • What pattern/workflow to automate?
  • What triggers should invoke this skill?
  • What output format is expected?
  • Are there existing examples in the codebase?

Example dialogue:

User: "Create a skill for adding React components"
Assistant: "I'll analyze your codebase to understand React component patterns.
- What directory are components in?
- Do you use TypeScript or JavaScript?
- Do you want tests generated automatically?
- Are there style files (CSS/SCSS) per component?"

Step 2: Analyze Codebase Patterns

Use Task agent to explore (saves 60-80% tokens):

Use Task agent with subagent_type=Explore:
"Find existing [pattern type] in codebase:
 - Locate all [files matching pattern]
 - Identify common structure
 - Extract best practices
 - Find configuration files
 - Return summary of findings"

What to look for:

  • File naming conventions (kebab-case, PascalCase, etc.)
  • Directory structure patterns
  • Import/export patterns
  • Testing patterns
  • Configuration patterns
  • Documentation patterns

Example for React components:

Task agent finds:
- Components in src/components/
- PascalCase naming (UserProfile.tsx)
- Co-located tests (UserProfile.test.tsx)
- Props interfaces defined above component
- Export default at bottom

Step 3: Design Skill Structure

Determine skill metadata:

yaml
name: [project]-[pattern-type]
description: [When to auto-invoke + what it does]
allowed-tools: [Read, Write, Edit, Grep, Glob, Bash, Task]
version: 1.0.0

Plan directory structure:

skills/[skill-name]/
├── SKILL.md              # Main instructions
├── functions/            # Python helper scripts
│   └── [generator].py
├── examples/             # Reference implementations
│   └── [example].[ext]
└── templates/            # Output format templates
    └── [template].[ext]

Design predefined functions:

  • What repetitive logic can be automated?
  • What validation should be enforced?
  • What formatting ensures consistency?

Example functions for frontend-component skill:

  • component_generator.py - Generate component boilerplate
  • test_generator.py - Generate test file
  • style_generator.py - Generate style file
  • name_validator.py - Validate component naming

Step 4: Generate Skill Files

4.1 Create SKILL.md

markdown
---
name: [skill-name]
description: [Auto-invocation triggers + purpose]
allowed-tools: [List of tools]
version: 1.0.0
---

# [Skill Title]

[Brief description of what this skill does]

## When to Invoke

Auto-invoke when user says:
- "[trigger phrase 1]"
- "[trigger phrase 2]"
- "[trigger phrase 3]"

## What This Does

1. [Step 1 overview]
2. [Step 2 overview]
3. [Step 3 overview]

## Execution Steps

### Step 1: [Step Name]

[Detailed instructions for this step]

**Use predefined function**: `functions/[function-name].py`

4.2 Create Predefined Functions

python
# functions/[generator].py

def generate_[output](name, config):
    """
    Generate [output type] based on project patterns.

    Args:
        name: [Description]
        config: [Description]

    Returns:
        [output]: [Description]
    """
    # Implementation based on codebase analysis
    pass

4.3 Create Examples

examples/
└── [reference-implementation].[ext]
    - Real example from codebase (best practice)
    - Shows expected structure
    - Demonstrates conventions

4.4 Create Templates

templates/
└── [output-template].[ext]
    - Skeleton structure with placeholders
    - ${VAR_NAME} for substitution
    - Comments explaining sections

Step 5: Test Generated Skill

5.1 Verify skill loads:

bash
# In project root
grep -r "name: [skill-name]" skills/

5.2 Test auto-invocation:

In Claude Code conversation:
"[Use one of the auto-invoke trigger phrases]"

Expected: Skill should be detected and loaded

5.3 Test execution:

  • Run through skill steps
  • Verify functions work correctly
  • Check output matches template
  • Validate generated code follows patterns

5.4 Iterate if needed:

  • Fix function bugs
  • Improve templates
  • Add missing examples
  • Clarify instructions

Step 6: Document New Skill

Update project documentation:

  1. CLAUDE.md - Add to skills section:
markdown
#### [Skill Name]
**Auto-invoke**: "[trigger phrase]"
**Purpose**: [What it does]
**Generates**: [Output type]
  1. README.md - Add to skills list:
markdown
- **[skill-name]**: [Brief description]
  1. .agent/system/plugin-patterns.md - Add to skill registry:
markdown
### [Skill Name]
**Created**: [Date]
**Pattern**: [What pattern it enforces]
**Functions**: [List of predefined functions]

Register in plugin.json (if applicable):

json
{
  "skills": [
    {
      "name": "[skill-name]",
      "path": "skills/[skill-name]/SKILL.md"
    }
  ]
}

Example Workflows

Example 1: Create Skill for Adding API Endpoints

User: "Create a skill for adding REST API endpoints"

Execution:

  1. Clarify:

    • Which framework? (Express, Fastify, etc.)
    • Where are routes defined?
    • Authentication required?
    • Testing strategy?
  2. Analyze (via Task agent):

    Find existing API endpoints:
    - Routes in api/routes/
    - Controllers in api/controllers/
    - Middleware in api/middleware/
    - Tests in tests/api/
  3. Design:

    yaml
    name: backend-api-endpoint
    description: Add new REST API endpoint following project conventions. Use when user says "add endpoint", "create API", or "new route".
    allowed-tools: Read, Write, Edit, Grep, Glob, Bash
  4. Generate:

    skills/backend-api-endpoint/
    ├── SKILL.md
    ├── functions/
    │   ├── endpoint_generator.py
    │   └── route_validator.py
    ├── examples/
    │   └── user-endpoint.ts
    └── templates/
        ├── route-template.ts
        └── test-template.spec.ts
  5. Test:

    User: "Add a POST /posts endpoint"
    Skill: Auto-invoked, generates route + controller + test
    Verify: Files follow project conventions
  6. Document: Update CLAUDE.md, README.md, plugin-patterns.md

Example 2: Create Skill for React Components

User: "Automate creating new React components"

Execution:

  1. Clarify:

    • TypeScript or JavaScript?
    • Functional or class components?
    • Style approach? (CSS modules, styled-components, etc.)
    • Test library? (Jest, React Testing Library, etc.)
  2. Analyze (via Task agent):

    Find React components:
    - Components in src/components/
    - PascalCase naming
    - TypeScript (.tsx)
    - CSS modules (.module.css)
    - Tests with RTL
  3. Design:

    yaml
    name: frontend-component
    description: Create new React component with TypeScript, styles, and tests. Use when user says "create component", "add component", or "new React component".
    allowed-tools: Read, Write, Edit, Grep, Glob, Bash
  4. Generate:

    skills/frontend-component/
    ├── SKILL.md
    ├── functions/
    │   ├── component_generator.py
    │   ├── test_generator.py
    │   └── style_generator.py
    ├── examples/
    │   ├── Button.tsx
    │   └── Button.test.tsx
    └── templates/
        ├── component-template.tsx
        ├── test-template.test.tsx
        └── style-template.module.css
  5. Test:

    User: "Create a UserProfile component"
    Skill: Auto-invoked, generates component + test + styles
    Verify: Props interface, exports, naming correct
  6. Document: Update project docs


Output Format

After generating skill, show summary:

✅ Skill Created: [skill-name]

Structure:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📁 skills/[skill-name]/
   ├── SKILL.md
   ├── functions/
   │   └── [N functions created]
   ├── examples/
   │   └── [N examples added]
   └── templates/
       └── [N templates created]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Auto-Invocation Triggers:
- "[trigger 1]"
- "[trigger 2]"
- "[trigger 3]"

Next Steps:
1. Test the skill: "[example trigger phrase]"
2. Iterate if needed
3. Documentation updated

Try it now: "[example usage]"

Best Practices

Pattern Analysis

  • Use Task agent for codebase exploration (saves 60-80% tokens)
  • Look at 3-5 examples minimum (find patterns vs outliers)
  • Identify conventions explicitly followed
  • Note edge cases in comments

Skill Design

  • Keep skills focused (one pattern per skill)
  • Clear auto-invocation triggers (3-5 phrases)
  • Minimal tools needed (add only what's required)
  • Progressive disclosure (details in functions, not main instructions)

Function Creation

  • One function = one responsibility
  • Type hints and docstrings required
  • Handle errors gracefully
  • Return structured data (not print statements)

Template Design

  • Use clear placeholders (${VAR_NAME})
  • Include comments explaining sections
  • Follow project style guide
  • Provide sensible defaults

Testing

  • Test with real project context
  • Verify auto-invocation works
  • Check output against best practices
  • Iterate based on actual usage

Common Patterns to Automate

Backend Patterns

  • REST API endpoints
  • GraphQL resolvers
  • Database migrations
  • Background jobs
  • Middleware functions
  • Authentication guards

Frontend Patterns

  • React/Vue/Svelte components
  • Redux/Vuex store modules
  • API client functions
  • Form validation schemas
  • Route definitions
  • Style component creation

Infrastructure Patterns

  • Docker service configs
  • CI/CD pipeline steps
  • Deployment scripts
  • Environment configs
  • Monitoring setup

Documentation Patterns

  • API documentation
  • Component documentation
  • Architecture decision records (ADRs)
  • Runbook entries
  • Changelog entries

Troubleshooting

Skill Not Auto-Invoking

Problem: Skill created but doesn't trigger automatically

Solutions:

  1. Check description has clear trigger phrases
  2. Verify plugin.json includes skill registration
  3. Reload Claude Code to refresh skill index
  4. Test with exact trigger phrase from description

Functions Not Executing

Problem: Predefined functions throw errors

Solutions:

  1. Check Python syntax is valid
  2. Verify function imports are correct
  3. Test function independently first
  4. Check error messages in execution logs

Templates Not Matching Output

Problem: Generated code doesn't match project conventions

Solutions:

  1. Re-analyze codebase for missed patterns
  2. Update templates with correct structure
  3. Add more examples showing variations
  4. Validate against linter/formatter

Skill Too Broad

Problem: Skill tries to do too much

Solutions:

  1. Split into multiple focused skills
  2. Remove optional features to separate skills
  3. Keep core pattern simple
  4. Add extensions as separate skills

Success Criteria

This skill succeeds when:

  • New skill auto-invokes correctly
  • Generated output follows project conventions
  • Functions execute without errors
  • Templates produce valid code
  • Examples are clear and relevant
  • Documentation is updated
  • Skill saves time vs manual work

The skill-creator is Navigator's self-improving engine - it learns your patterns and automates them 🔄

附带文件

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

常见问题

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

分析代码库中的模式,为重复性工作流创建自定义技能。当项目需要自动化或强制执行模式时使用。用户说“为……创建一项技能”“自动化这个工作流”或“我们一直在手动做 X”时自动调用。

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

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

如何在 TypingMind 中安装 Nav Skill Creator?

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

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

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

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

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

Nav Skill Creator AI 技能免费吗?

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

什么是 AI 技能?

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

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

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

查看全部

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

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