skills/mcp-light-generator/SKILL.md
MCPサーバーの「Light版」を生成する。descriptionを1行に圧縮し、ベストプラクティスをAgent Skillとして分離する。Use when user asks to "MCP Light版を作って", "MCPを軽量化", "Light MCP", "mcp-light", "create light mcp", "compress mcp descriptions", "MCP description圧縮", or wants to reduce MCP tool definition token usage.
npx skillsauth add nyosegawa/skills mcp-light-generatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
MCPサーバーのツール定義(description)を分析し、「判断用1行サマリー」と「実行時ベストプラクティス」に分離する。出力は2つ: Light版MCPサーバー(FastMCP proxy) + ベストプラクティスSkill。
MCPツールのdescriptionには2種類の情報が混在している:
MCP Lightはこれを分離し、前者をLight版MCPサーバーのdescriptionに、後者をAgent Skillに外出しする。
ユーザーにMCPサーバー名を確認する。例:
@notionhq/notion-mcp-server@anthropic/github-mcp-serverToolSearch を使って対象MCPサーバーの全ツールをロードする。
ToolSearch: "+{server-prefix}" で全ツールを検索
各ツールの以下を記録する:
name: ツール名description: 元のdescription全文inputSchema: パラメータスキーマ(変更しない)各ツールのdescriptionを分析し、2つに分離する。
以下のルールで圧縮する:
See {server}-best-practices skill for usage details. を付けるCreate Notion pages in a database or standalone. See notion-best-practices skill for usage details.元のdescriptionから以下を抽出する:
出力先ディレクトリをユーザーに確認し、以下の構造で生成する。
references/fastmcp-proxy-pattern.md を参照してFastMCPプロキシのコードパターンを確認する。
{server-name}-light/
├── mcp/
│ ├── server.py # FastMCP proxyサーバー
│ └── pyproject.toml # パッケージ定義
└── skill/
└── {server-name}-best-practices/
└── SKILL.md # ベストプラクティスSkill
from fastmcp import FastMCP
from fastmcp.server.proxy import ProxyClient
LIGHT_DESCRIPTIONS = {
"tool-name": "1-line summary. See {server}-best-practices skill for usage details.",
# ... 全ツール分
}
proxy_client = ProxyClient("npx @original/mcp-server")
server = FastMCP.as_proxy(proxy_client, name="{server-name}-light")
for tool in server.list_tools():
if tool.name in LIGHT_DESCRIPTIONS:
tool.description = LIGHT_DESCRIPTIONS[tool.name]
---
name: {server-name}-best-practices
description: Best practices for {Server Name} MCP tools. Auto-loaded when using {server-name}-light MCP server. Contains parameter formats, recommended workflows, and error prevention tips.
---
# {Server Name} Best Practices
## 共通ルール
[全ツール共通のルール・制約]
## {tool-name-1}
[ツール固有のベストプラクティス]
## {tool-name-2}
...
圧縮前後のトークン数を概算し、レポートを出力する。
## トークン削減レポート
| ツール名 | 元のdescription | Light版 | 削減率 |
|---|---|---|---|
| tool-1 | ~500 tokens | ~20 tokens | 96% |
| ... | ... | ... | ... |
### サマリー
- 元のdescription合計: ~X tokens
- Light版description合計: ~Y tokens
- inputSchema(不変): ~Z tokens
- description単体の削減率: XX%
- 常時コンテキストの削減率: XX%(description + schema 基準)
トークン数は「英語1単語 ≈ 1.3 tokens、1文字(日本語)≈ 2-3 tokens」で概算する。正確な計測が必要な場合はtiktokenを使用する。
生成が完了したら、以下のインストール手順を提示する:
# 1. Light版MCPサーバーをインストール
pip install -e ./{server-name}-light/mcp/
# 2. Claude CodeにMCPサーバーを追加
claude mcp add {server-name}-light -- python -m {server_name}_light
# 3. ベストプラクティスSkillを配置
cp -r ./{server-name}-light/skill/{server-name}-best-practices/ ~/.claude/skills/
# 4. 元のMCPサーバーを無効化(任意)
claude mcp remove {original-server-name}
development
Analyzes Claude Code session transcripts to evaluate skill portfolio health — routing errors, attention competition between descriptions, and coverage gaps. Generates an interactive HTML report with per-skill health cards, competition matrix, attention budget analysis, and actionable patches. Unlike skill-creator which optimizes individual skills in isolation, skill-auditor optimizes the portfolio as a system, detecting cross-skill attention theft and cascade risks. Use when user says "audit my skills", "skill audit", "run skill-auditor", "analyze skill routing", "check skill competition", "portfolio health", "スキル監査", "スキルの精度を分析", "スキルルーティング分析".
tools
Build high-quality Remotion promo and intro videos for any app type (web, mobile, API/SDK, developer tool, AI product) using app-type blueprints, timeline patterns, and frame-capture QA. Use when users ask to create a product promo, teaser, app intro, UX flow video, or Remotion-based demo video.
development
Gemini画像生成APIを使ってブログ記事やドキュメント用の図・イラストを生成する。Use when user asks to "画像生成", "図を作って", "generate image", "create diagram", "イラスト作って", "図示して", or wants to create visual assets for articles.
development
セッションtranscriptを分析してドキュメントの効果を評価する。 doc参照がAgentの行動を改善したか、Context浪費か、腐敗して有害かを判定。 last-validated がないドキュメントにもgit履歴ベースで対応。 HTML reportでper-doc健全性、Context budget、freshness、推奨アクションを表示。 Use when user says "audit docs", "docs audit", "run docs-auditor", "ドキュメント監査", "doc ROI", "ドキュメントの効果分析".