Index of every page on this site: llms.txt
All skills
  • 2 files
  • 5.5 KB
  • Updated 10 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/superstone-han/dotfiles/skills-index-generator

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈6 tokens for metadata: the name and description. ≈797 when used: this file.

SKILL.md has missing or invalid fields
  • The name in the SKILL.md header is missing or is not text.
  • The description in the SKILL.md header is missing or is not text.
Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Skills Index Generator

skillsディレクトリを走査し、AGENTS.md等に貼り付けられる 圧縮SKILLS-INDEX を生成するSkill。

Goals

  • skillsディレクトリ内の全スキルを自動検出
  • 各スキルの主要ファイル(SKILL.md, AGENTS.md, rules/*.md等)を圧縮形式で列挙
  • <!--SKILLS-INDEX-->...<!--END--> 形式のワンライナーを出力

Non-goals

  • AGENTS.mdへの自動書き込み(出力をコピペする想定)
  • スキルの内容解析・要約

Inputs

  • skillsディレクトリのパス(省略時: ~/.claude/skills)
  • rootパス表記(省略時: ~/.claude/skills)

Outputs

コピペ可能なワンライナー:

<!--SKILLS-INDEX-->|[Skills Index]|root:~/.claude/skills|IMPORTANT:Prefer retrieval-led reasoning over pre-training|If index stale run: ~/.claude/skills/skills-index-generator/generate.sh|skill-name:{files}|...<!--END-->

Instructions

  1. skillsディレクトリを走査し、サブディレクトリ一覧を取得
  2. 各スキルフォルダ内のファイルを取得:
    • SKILL.md → 必須(なければスキップ)
    • AGENTS.md → あれば追加
    • rules/*.md → パターンで圧縮(例: rules/async-*.md)
    • reference.md, examples.md → あれば追加
    • templates/ → あれば templates/* として追加
  3. 各スキルを skill-name:{file1,file2,...} 形式に圧縮
  4. ヘッダー部分を付与して出力:
    <!--SKILLS-INDEX-->|[Skills Index]|root:{rootPath}|IMPORTANT:Prefer retrieval-led reasoning over pre-training|{skills}<!--END-->

ファイルパターン圧縮ルール

rules/ 配下に複数ファイルがある場合、プレフィックスでグルーピング:

  • rules/async-request.md, rules/async-response.md → rules/async-*.md
  • rules/query-optimization.md, rules/query-tips.md → rules/query-*.md

同一プレフィックスが2つ以上あればワイルドカード化、1つだけならそのまま。

Quality Checklist

  • SKILL.mdが存在するフォルダのみ含める
  • ファイル名のアルファベット順でソート
  • rulesディレクトリはパターン圧縮されている
  • 出力がワンライナー(改行なし)

Examples

Example 1: 基本実行

ユーザー: 「SKILLSのインデックスを生成して」

出力:

<!--SKILLS-INDEX-->|[Skills Index]|root:~/.claude/skills|IMPORTANT:Prefer retrieval-led reasoning over pre-training|agent-memory:{SKILL.md}|prd-writer:{SKILL.md}|react-best-practices:{SKILL.md,AGENTS.md,rules/async-*.md,rules/bundle-*.md}<!--END-->

Example 2: カスタムパス

ユーザー: 「/path/to/skills のインデックスを作って」

→ root:/path/to/skills として生成

Example 3: 非発動

ユーザー: 「新しいスキルを作って」

→ これはskill-skillsmithの役割。本Skillは発動しない。

Trigger phrases

  • 「SKILLSのインデックスを生成」「スキルインデックス作って」
  • 「SKILLS-INDEXを更新」「圧縮インデックス作成」
  • 「AGENTS.mdのスキル一覧を更新したい」

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at f5f9792. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Dormantupdated 10 months ago

README badge

README badge for superstone-han/dotfiles/skills-index-generator