Skill Manager 标志

Skill Manager

社区
egebese
skill-manager

识别项目的技术栈,并停用不相关的技能,以节省上下文窗口空间。用户说“管理技能”“优化技能”“停用不相关的技能”“技能管理器”,或询问哪些技能适用于此项目时使用。

概览

发布者egebese
代码仓库skill-manager
技能名称skill-manager
星标数
39
复刻数
1
附带文件
2
许可协议MIT
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 2 个附带文件

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

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

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

在 TypingMind 中使用此技能

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

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

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

Skill Manager

Analyze the current project's tech stack and disable irrelevant globally-installed skills by injecting a bounded section into the project's CLAUDE.md.

When to Use

  • User says "manage skills", "optimize skills", "skill manager"
  • User says "disable irrelevant skills" or "which skills do I need?"
  • User says "clean up skills for this project"
  • User says "re-enable all skills"
  • At the start of a new project to reduce context window waste

Quick Start

Run the Python analysis script if available, otherwise follow the manual workflow below.

Step 1: Detect Project Tech Stack

Check for these files in the project root (current working directory):

FileStack Signal
package.jsonNode.js — read for framework (next, react, vue, angular, svelte, etc.)
Podfile or *.xcodeprojiOS/macOS native
Package.swiftSwift Package (iOS/macOS)
Cargo.tomlRust
go.modGo
requirements.txt / pyproject.toml / setup.pyPython
GemfileRuby
composer.jsonPHP
build.gradle / build.gradle.ktsAndroid/JVM
pubspec.yamlFlutter/Dart
Dockerfile / docker-compose.ymlContainerized
vercel.json / netlify.tomlJamstack deployment
tsconfig.jsonTypeScript
.swift files in root/SourcesSwift CLI/Server

Read package.json dependencies to identify frameworks:

  • next -> Next.js
  • react -> React
  • vue -> Vue
  • @angular/core -> Angular
  • svelte -> Svelte
  • stripe -> Payment processing
  • express / fastify / hono -> Node server
  • tailwindcss -> Tailwind CSS
  • remotion -> Video/media processing

Monorepo detection: If the project has packages/, apps/, or a workspace config in package.json, scan subdirectories too and union all detected stacks.

Empty project: If no recognizable files are found, warn the user and keep all skills active.

Step 2: Read Installed Skills

Read ~/.agents/.skill-lock.json to get the list of all globally installed skills. For each skill, note:

  • name (the key)
  • source (GitHub repo)
  • skillPath (where the SKILL.md lives)

Step 3: Score Each Skill

Assign each skill to a tier based on the detected tech stack.

Tier Definitions

TierScore RangeMeaning
essential80-100Directly relevant to detected stack
useful40-79Cross-platform utility, may be used
irrelevant0-39Wrong platform/domain entirely
universalN/ANever disabled regardless of stack

Universal Skills (NEVER disable these)

find-skills, skill-creator, writing-skills, brainstorming,
writing-plans, test-driven-development, dispatching-parallel-agents,
subagent-driven-development, using-superpowers, agentation, skill-manager

Domain Mapping

iOS/macOS Native Skills — essential when Swift/Xcode detected:

  • mobile-ios-design (iOS UI/SwiftUI)
  • asc-xcode-build (Xcode build/archive)
  • asc-metadata-sync (App Store metadata)
  • asc-localize-metadata (App Store localization)
  • asc-subscription-localization (IAP localization)
  • asc-ppp-pricing (territory pricing)
  • asc-shots-pipeline (screenshot automation)
  • asc-notarization (macOS notarization)
  • app-store-optimization (ASO)
  • aso-full-audit, aso-optimize, aso-competitor, aso-prelaunch, aso

Web/SaaS Marketing Skills — essential when web framework detected:

  • page-cro, signup-flow-cro, onboarding-cro, popup-cro, form-cro
  • copywriting, copy-editing, content-strategy
  • seo-audit, programmatic-seo, schema-markup
  • analytics-tracking, ab-test-setup
  • email-sequence, social-content
  • marketing-ideas, marketing-psychology
  • free-tool-strategy, launch-strategy
  • paid-ads, referral-program
  • pricing-strategy, competitor-alternatives
  • audit-website

Payment Skills — essential when stripe/payment dependency detected:

  • stripe-integration
  • paywall-upgrade-cro
  • churn-prevention

Media/AI Generation Skills — essential when media dependencies detected:

  • fal-audio, fal-generate, fal-image-edit, fal-platform, fal-upscale, fal-workflow
  • remotion-best-practices

Cross-Domain Rules

  • Marketing skills are scored "useful" (50) in non-web projects — users sometimes do marketing from any project
  • Stripe/payment skills are "useful" (50) unless stripe is in dependencies, then "essential" (90)
  • ASO skills are "essential" (95) for iOS, "irrelevant" (10) for non-mobile
  • fal- skills* are "irrelevant" (10) unless media processing detected
  • asc- skills* are "irrelevant" (5) for non-Apple projects
  • remotion-best-practices is "essential" (90) if remotion is in dependencies, "irrelevant" (10) otherwise

Step 4: Check for Overrides

If .claude/skill-manager.json already exists, read the overrides section:

json
{
  "overrides": {
    "forceEnable": ["seo-audit"],
    "forceDisable": ["fal-audio"]
  }
}
  • forceEnable: Move these skills to "essential" tier regardless of scoring
  • forceDisable: Move these skills to "irrelevant" tier regardless of scoring

Step 5: Generate .claude/skill-manager.json

Create the .claude/ directory if it doesn't exist. Write the analysis file:

json
{
  "version": 1,
  "generatedAt": "2026-02-23T12:00:00Z",
  "detectedStack": {
    "primary": "Next.js",
    "languages": ["TypeScript", "JavaScript"],
    "frameworks": ["Next.js", "React", "Tailwind CSS"],
    "platforms": ["Web"],
    "signals": {
      "package.json": true,
      "tsconfig.json": true,
      "next.config.ts": true
    }
  },
  "skills": {
    "page-cro": { "tier": "essential", "score": 95, "reason": "Web CRO directly applicable" },
    "mobile-ios-design": { "tier": "irrelevant", "score": 5, "reason": "No iOS stack detected" }
  },
  "disabled": ["mobile-ios-design", "asc-xcode-build"],
  "enabled": ["page-cro", "stripe-integration"],
  "universal": ["find-skills", "brainstorming"],
  "overrides": {
    "forceEnable": [],
    "forceDisable": []
  },
  "stats": {
    "total": 53,
    "essential": 20,
    "useful": 10,
    "irrelevant": 12,
    "universal": 11
  }
}

Step 6: Update CLAUDE.md

If "re-enable all" was requested:

  1. Remove the <!-- SKILL-MANAGER:START --> ... <!-- SKILL-MANAGER:END --> block from CLAUDE.md
  2. Delete .claude/skill-manager.json
  3. Confirm to user: "All skills re-enabled."
  4. Stop here.

Normal flow:

Build the injection block:

markdown
<!-- SKILL-MANAGER:START -->
## Disabled Skills

The following skills are **not relevant** to this project and should be **ignored** (do not invoke them):

- `mobile-ios-design` — No iOS stack detected
- `asc-xcode-build` — No Xcode project detected
- ...

**Stack**: Next.js / TypeScript / React / Tailwind CSS
**Last analyzed**: 2026-02-23
**Re-run**: Say "manage skills" or "/skill-manager" to re-analyze
**Re-enable all**: Say "re-enable all skills" to remove this section
<!-- SKILL-MANAGER:END -->

Injection rules:

  1. Read the current CLAUDE.md (or note it doesn't exist)
  2. If markers exist: Replace everything between <!-- SKILL-MANAGER:START --> and <!-- SKILL-MANAGER:END --> (inclusive) with the new block
  3. If no markers: Append the block to the end of CLAUDE.md with a blank line separator
  4. If no CLAUDE.md: Create it with only the skill-manager block

IMPORTANT: Do NOT modify any other content in CLAUDE.md. Only touch the bounded marker section.

Step 7: Suggest New Skills (Optional)

If the detected stack suggests skills that aren't installed, mention them:

Based on your Next.js project, you might also want:

  • npx skills find nextjs for Next.js-specific skills
  • npx skills find react for React patterns

Only suggest if there's a clear gap. Don't overwhelm with suggestions.

Step 8: Report Summary

Print a summary table:

Skill Manager Analysis Complete

Stack: Next.js / TypeScript / React
Total skills: 53
  Essential: 20 (kept active)
  Useful: 10 (kept active)
  Irrelevant: 12 (disabled in CLAUDE.md)
  Universal: 11 (always active)

Disabled skills written to CLAUDE.md
Full analysis: .claude/skill-manager.json

Automated Mode (Python Script)

If Python 3.9+ is available, you can run the analysis script for faster, deterministic results:

bash
python3 skills/skill-manager/scripts/analyze_project.py --analyze "$(pwd)"

Or just detect the stack:

bash
python3 skills/skill-manager/scripts/analyze_project.py --detect-stack "$(pwd)"

The script path is relative to where the skill is installed. Find it via:

bash
# The skill is installed at ~/.agents/skills/skill-manager/
python3 ~/.agents/skills/skill-manager/scripts/analyze_project.py --analyze "$(pwd)"

The script outputs JSON to stdout. Use the output to populate .claude/skill-manager.json and the CLAUDE.md injection block.

If Python is not available, follow the manual steps above — they produce the same result.

Idempotency

  • Running this skill multiple times is safe
  • The CLAUDE.md section is replaced, never duplicated
  • The JSON file is overwritten with fresh analysis
  • User overrides in the JSON are preserved across re-runs

Edge Cases

  • Monorepo: Union all detected stacks from subdirectories. More skills stay enabled.
  • Empty project: Keep all skills active. Warn user: "No stack detected."
  • New skills installed since last run: Automatically picked up on re-run.
  • Skill uninstalled: Removed from disabled list on re-run.
  • CLAUDE.md has other content: Only the marker-bounded section is touched.

附带文件

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

常见问题

Skill Manager AI 技能有什么作用?

识别项目的技术栈,并停用不相关的技能,以节省上下文窗口空间。用户说“管理技能”“优化技能”“停用不相关的技能”“技能管理器”,或询问哪些技能适用于此项目时使用。

为什么在 TypingMind 中使用 Skill Manager?

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

如何在 TypingMind 中安装 Skill Manager?

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

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

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

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

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

Skill Manager AI 技能免费吗?

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

什么是 AI 技能?

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

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

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

查看全部

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

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