agentleFS
h-watah-wata/claude-skills/skills/survey/SKILL.md

survey

Skill0 starsChanged 6 months agoApache-2.0View on GitHub

PDF・リポジトリ・Webドキュメントの索引サマリーを作成

21 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use daily-arxiv, exp-eval and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • LambenthanSkill

    daily-arxiv

    每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新

    Also in 5 projects that use this

  • LambenthanSkill

    exp-eval

    实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges

    Also in 5 projects that use this

  • skyllwtSkill

    exp-pilot-eval

    Pilot result evaluation — read pilot results, apply success criteria, update idea page (pilot_result, failure_reason if failed), generate PILOT_VERDICT_REPORT. Called by /ideate Phase 5 after /exp-pilot-run.

    Also in 4 projects that use this

  • skyllwtSkill

    exp-pilot-run

    Pilot experiment execution — read Pilot Spec YAML, write pilot code, run experiment(Confirm with the user before operation and require the applicant to conduct manual inspection), return results. Called by /ideate Phase 5. Does NOT modify wiki pages or judge pass/fail.

    Also in 4 projects that use this

  • phanghonghaoSkill

    poster

    HTML/CSS A4 海报生成。从沙龙/活动 Markdown 文件生成科技风 A4 海报 PDF/PNG。Use when user mentions: poster, 海报, 海报生成, make poster, generate poster, 活动海报, 沙龙海报.

    Also in 4 projects that use this

  • +6 more from Lambenthan
  • +1 more from skyllwt

The file

Files
SKILL.md

Survey Skill

ソースを網羅的に読み込み、見出し・セクション構成・要約を索引ドキュメントとして生成します。

使用方法

/survey <ソースパス> [--output <出力パス>] [--depth <1-3>]

引数

  • ソースパス(必須): PDF, ディレクトリ, URL のいずれか
  • --output: 出力先ファイルパス(省略時: ./docs/survey_<basename>.md)
  • --depth: 要約の深さ(デフォルト: 2)
    • 1: 見出しとページ番号/パスのみ
    • 2: 見出し + 2-3行の要約
    • 3: 見出し + 詳細要約 + キーポイント

処理手順

Step 1: ソースタイプ判定

$ARGUMENTS を解析し、ソースタイプを判定する:

パターンタイプ処理
*.pdfPDFPDF分割読み込み
ディレクトリパスRepositoryファイルツリー走査
http:// or https://WebWebFetch取得

引数が空の場合はエラーメッセージを表示して終了:

使い方: /survey <ソースパス> [--output <出力パス>] [--depth <1-3>]
例: /survey ./docs/manual.pdf --output ./docs/survey_manual.md

Step 2: ソース読み込み

PDF の場合

重要: PDFは必ず分割して読み込むこと。一度に全ページを読まない。

  1. まず pages パラメータで "1-2" を指定してReadツールで読み込み、総ページ数を把握する
  2. 12ページずつ分割して読み込む(例: "1-12", "13-24", "25-36", ...)
  3. 各チャンクから以下を抽出:
    • セクション見出し(章・節の番号とタイトル)
    • 各セクションの開始ページ番号
    • セクション内容の要約(depth に応じた詳細度)
    • 実装で参照しそうな重要箇所(表、定義、コード例など)
  4. 最大20ページ/リクエストの制限に注意。大きなPDFは12ページ単位を推奨
# 読み込み例(Readツール使用)
pages: "1-12"   → 最初のチャンク
pages: "13-24"  → 2番目のチャンク
pages: "25-36"  → 3番目のチャンク
...

ディレクトリ(リポジトリ)の場合

  1. Glob で全ファイル一覧を取得(**/*)
  2. ファイル数を確認:
    • 100ファイル以下: 主要ファイルをすべて走査
    • 100ファイル超: ディレクトリ構造のみ + 主要ファイルに限定
  3. 以下の順序で読み込み:
    • README.md / README(あれば)
    • 設定ファイル(package.json, pyproject.toml, Cargo.toml, CMakeLists.txt 等)
    • エントリポイント(main., index., app.* 等)
    • src/ 配下の主要モジュール
  4. 各ファイルの役割を2-3行で要約
  5. ディレクトリ構造をツリー形式で表示

URL(Web)の場合

  1. WebFetch でメインページのコンテンツを取得
  2. ページ内の主要セクション見出しを抽出
  3. depth=3 の場合、リンク先の主要サブページも取得(最大5ページ)
  4. 認証が必要なURLの場合は警告を表示:
    警告: このURLは認証が必要な可能性があります。WebFetchは認証付きURLに対応していません。
    ローカルにダウンロードしてから /survey を実行してください。

Step 3: 索引ドキュメント生成

以下のテンプレートに従ってMarkdownドキュメントを生成する。

Step 4: ファイル出力

  • --output が指定されている場合はそのパスに出力
  • 未指定の場合は ./docs/survey_<ソース名>.md に出力
  • 出力先ディレクトリが存在しない場合は Bash の mkdir -p で作成
  • Write ツールでファイルを書き出す

重要度マーキング基準

各セクションに以下の基準で重要度マークを付ける:

マーク基準
★★★実装に必須の定義・仕様(API定義、データ型、Enum値、プロトコル仕様)
★★実装時に参照が必要(設定項目、コード例、アーキテクチャ図)
★参考情報(概要、背景説明、FAQ)
(なし)索引のみ(目次、付録、用語集)

出力テンプレート

# Survey: [ソース名]

| 項目 | 値 |
|------|-----|
| ソース | [フルパス or URL] |
| 種別 | PDF / Repository / Web |
| 規模 | XX ページ / XX ファイル |
| 作成日 | YYYY-MM-DD |
| 深さ | depth N |

## 目次

| # | セクション | ページ/パス | 重要度 | 要約 |
|---|-----------|------------|--------|------|
| 1 | [セクション名] | p.1-5 | ★★ | [1行の概要] |
| 2 | [セクション名] | p.6-12 | ★★★ | [1行の概要] |
| ... | ... | ... | ... | ... |

## セクション詳細

### 1. [セクション名] (p.1-5) ★★

[2-3行の要約]

**キーポイント:**
- ポイント1
- ポイント2

### 2. [セクション名] (p.6-12) ★★★

[2-3行の要約]

**キーポイント:**
- ポイント1
- ポイント2
- ポイント3

(depth=3の場合、各セクションにさらに詳細な要約を追加)

---

## クイックリファレンス

実装時に最初に参照すべきセクション:

- ★★★ [セクション名] (p.XX) - [理由]
- ★★★ [セクション名] (p.XX) - [理由]
- ★★ [セクション名] (p.XX) - [理由]

リポジトリの場合の追加セクション

目次テーブルの代わりにディレクトリ構造を含める:

## ディレクトリ構造

project/ ├── README.md ├── package.json ├── src/ │ ├── index.ts ★★ エントリポイント │ ├── config.ts ★★ 設定定義 │ └── modules/ │ ├── auth.ts ★★★ 認証モジュール │ └── api.ts ★★★ API定義 ├── tests/ └── docs/


## ファイル詳細

### src/index.ts ★★
[2-3行の要約]

### src/config.ts ★★
[2-3行の要約]

注意事項

  • PDFは絶対に一括読み込みしない。必ず12ページ以下に分割すること
  • 大規模リポジトリ(100ファイル超)は構造概要 + 主要ファイルのみにとどめる
  • Web取得は認証不可。認証付きURLには事前に警告する
  • 出力は日本語で記述する
  • 索引は「後から実装時に必要な情報をすぐ見つけられる」ことを最優先とする

実行対象

$ARGUMENTS

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.