agentleFS
AI-Driven-SchoolAI-Driven-School/aiki/.claude/skills/analyze/SKILL.md

analyze

Skill0 starsChanged 9 months agoMITView on GitHub

Analyze entire codebases using Gemini CLI's 1M token context. Generates architecture reports covering structure, security, performance, and improvement roadmaps. Use when auditing code quality or running /analyze.

72 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use constitution, revise 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.
  • ArvorCoSkill

    constitution

    Create or update the project constitution - personalized governance and coding principles. Use when starting a project or updating project standards. Triggers on: create constitution, update principles, set project rules.

    Also in 4 projects that use this

  • stormlightlabsSkill

    revise

    Address review comments on an open pull request and push the fixes. Use for /edit, /revise, or when asked to respond to review feedback on a PR number.

    Also in 3 projects that use this

  • DockerSkill

    write

    Write or edit reader-facing technical prose for immediate comprehension. Use for documentation, PR titles and descriptions, release notes, design documents, user-facing explanations, and substantive comments. Also use when asked to make writing clearer, more natural, less AI-generated, or easier to read. For documentation fixes, handles edits, formatting, self-review, and commits after research identifies what to change. Do not use for code-only tasks with no prose deliverable.

    Also in 6 projects that use this

  • ArvorCoSkill

    specify

    Create feature specification from natural language description. Use when starting a new feature or creating a spec. Triggers on: create spec, specify feature, new feature spec.

    Also in 5 projects that use this

  • H-mmerSkill

    submit

    Draft and submit a vulnerability report to the bug bounty platform. Reads scope.yaml for platform/program, uses brain + findings for content. Always drafts first for review.

    Also in 3 projects that use this

  • GoogleSkill

    quality

    Evaluates whether a GitHub issue is spam, empty, needs more information, or is OK to proceed.

    Also in 3 projects that use this

  • +1 more from ArvorCo

The file

Files
SKILL.md

/analyze スキル

プロジェクト全体を解析し、アーキテクチャレポートを生成します。 Gemini CLIの1Mトークンコンテキストを活用。

使用方法

/analyze
/analyze src/
/analyze --security
/analyze --performance

実行フロー

[1] コードベースの収集
    └─ 対象ディレクトリの全ファイル

[2] Geminiに委譲
    └─ gemini -p "..." --yolo

[3] レポート生成
    └─ docs/analysis/{date}-report.md

Gemini委譲コマンド

# プロジェクト全体をGeminiに渡す
find src -type f \( -name "*.ts" -o -name "*.tsx" \) -exec cat {} \; | \
gemini -p "
以下のコードベースを解析し、レポートを作成してください。

【解析観点】
1. アーキテクチャ概要
   - 全体構造
   - 主要コンポーネント
   - データフロー

2. 技術スタック
   - 使用フレームワーク/ライブラリ
   - 設計パターン

3. コード品質
   - 良い点
   - 改善点

4. セキュリティ懸念
   - 潜在的な脆弱性
   - 推奨対策

5. パフォーマンス
   - ボトルネック候補
   - 最適化提案

6. 改善ロードマップ
   - 優先度高の改善点(3つ)
   - 中長期的な改善点

【出力形式】
Markdown形式で、図や表を活用して分かりやすく。
" --yolo

出力テンプレート

# コードベース解析レポート

**解析日**: {YYYY-MM-DD}
**対象**: {ディレクトリ}
**ファイル数**: {N}ファイル
**総行数**: {N}行

---

## 1. アーキテクチャ概要

### 全体構造

src/ ├── app/ # Next.js App Router ├── components/ # UIコンポーネント ├── lib/ # ユーティリティ └── types/ # 型定義


### 主要コンポーネント

| コンポーネント | 役割 | 依存関係 |
|--------------|------|---------|
| {名前} | {役割} | {依存} |

### データフロー

User → UI → API → Database ↓ State Management


---

## 2. 技術スタック

| カテゴリ | 技術 | バージョン |
|---------|------|----------|
| Framework | Next.js | 14.x |
| Language | TypeScript | 5.x |
| Styling | Tailwind CSS | 3.x |
| Database | {DB} | {ver} |

---

## 3. コード品質

### 👍 良い点

1. {良い点1}
2. {良い点2}

### 👎 改善点

1. {改善点1}
2. {改善点2}

---

## 4. セキュリティ懸念

| 懸念事項 | 重要度 | 該当箇所 | 推奨対策 |
|---------|:------:|---------|---------|
| {懸念} | 🔴 High | `{file}` | {対策} |

---

## 5. パフォーマンス

### ボトルネック候補

1. {候補1}: {説明}
2. {候補2}: {説明}

### 最適化提案

- {提案1}
- {提案2}

---

## 6. 改善ロードマップ

### 🔴 優先度高(今すぐ)

1. {改善点}

### 🟡 優先度中(1ヶ月以内)

1. {改善点}

### 🟢 優先度低(長期)

1. {改善点}

出力例

> /analyze

🔍 コードベースを解析中... (Gemini)

ファイルを収集中...
  ✓ 156ファイル, 15,588行を検出

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 Gemini で解析中...(1Mトークン対応)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

[Gemini] アーキテクチャを解析中...
[Gemini] セキュリティをスキャン中...
[Gemini] パフォーマンスを評価中...
[Gemini] レポートを生成中...

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📄 docs/analysis/2024-01-15-report.md を作成しました
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

サマリー:
  📁 ファイル: 156
  📝 総行数: 15,588
  ⚠️ セキュリティ懸念: 3件
  💡 改善提案: 8件

注意事項

  • Gemini CLIは 無料 で利用可能
  • 10万行以上のコードベースに最適
  • --yolo フラグで承認スキップ

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.