xs-github-repo-analyzer

For detailed analysis of GitHub repository contents: checking the current HEAD and validating how up-to-date DeepWiki-indexed commits are, and summarizing repository structure, technology stack, and key files into a report.

Last repository push
GitHub Stars
137
Forks
15
Issues / PRs
0

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "xs-github-repo-analyzer" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-d44f1477c4ce341fb9f9035fb329be93b6c48e3e45e9275c0b3075d24047c50c. Verify the upstream source and version against https://github.com/karaage0703/ai-assistant-workspace before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

For detailed analysis of GitHub repository contents: checking the current HEAD and validating how up-to-date DeepWiki-indexed commits are, and summarizing repository structure, technology stack, and key files into a report.

0 Downloads

Introduction source: third_party · karaage0703 · 0.0.1 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Limits and differences
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: xs-github-repo-analyzer
description: GitHubリポジトリの内容を詳しく分析するスキル。現行HEADを確認し、DeepWikiの索引commitの鮮度を検証して併用。リポジトリ構造・技術スタック・主要ファイルを整理して報告。「リポジトリ分析して」「このリポジトリ見て」で使用。

GitHub Repo Analyzer

GitHubリポジトリの内容を詳しく分析し、構造化レポートを生成する。

手順(必ずこの順番で実行)

Step 1: リポジトリ情報の正規化

ユーザー入力から owner/repo を抽出:

  • https://github.com/owner/repo → owner/repo
  • owner/repo → そのまま使用

Step 2: 現行HEADとDeepWikiの情報を取得

最初にGitHubでdefault branchと現行HEADを確認する。

is_private="$(gh api repos/<owner>/<repo> --jq '.private')"
default_branch="$(gh api repos/<owner>/<repo> --jq '.default_branch')"
head_sha="$(gh api repos/<owner>/<repo>/commits/"$default_branch" --jq '.sha')"

以後のソース確認はこのSHAを基準にする。is_private=true の場合はDeepWikiの取得を省略する。

2a. Deepwikiで詳細情報を取得(並行実行):

公開リポジトリの場合だけ、利用できるWeb取得ツールで https://deepwiki.com/<owner>/<repo> にアクセス。非公開リポジトリの識別子やコードはDeepWikiへ送らず、GitHubの許可された読み取り経路を使う。

取得する情報: 概要・目的、アーキテクチャ・設計思想、ディレクトリ構造、技術スタック、主要コンポーネント

2b. gh CLIでメタ情報を取得(並行実行):

gh repo view <owner>/<repo> --json name,description,stargazerCount,forkCount,licenseInfo,primaryLanguage,createdAt,updatedAt

Star数・Fork数・ライセンス・作成日などはDeepwikiにないため、常にgh CLIで取得する。

DeepWikiの Last indexed のcommitリンクから索引SHAを取得し、GitHubの現行HEADと比較する。

gh api repos/<owner>/<repo>/compare/<index_sha>..."$head_sha" \
  --jq '{status, ahead_by, behind_by, total_commits}'
  • SHA一致: 現行版の補助解説として使う。
  • HEADが先行: 差分があることを示し、主要な主張を現行コードで確認する。
  • SHA不明・比較不能・分岐: 鮮度を検証できないと明記し、現在の仕様をDeepWikiだけで断定しない。

いずれの場合もStep 3で主要な機能・構成を確認する。

Step 3: 現行コードで主要な主張を確認

DeepWikiの取得成否にかかわらず、README・主要コード・設定を確認する。

# リポジトリのメタ情報取得
gh repo view <owner>/<repo>

# READMEを取得
gh api "repos/<owner>/<repo>/readme?ref=$head_sha" --jq '.content' | base64 -d

# ディレクトリ構造を取得(ルート)
gh api "repos/<owner>/<repo>/contents?ref=$head_sha"

# 言語構成を取得
gh api repos/<owner>/<repo>/languages

必要に応じて /tmp にcloneして詳細分析:

repo_tmp="$(mktemp -d)"
gh repo clone <owner>/<repo> "$repo_tmp" -- --depth 1
git -C "$repo_tmp" fetch origin "$head_sha"
git -C "$repo_tmp" checkout --detach "$head_sha"

分析後は今回作成した repo_tmp だけを、環境のゴミ箱など復元可能な方法で片付ける。他の既存checkoutを削除しない。片付け手段がなければ保存場所を報告する。

Step 4: レポート生成

以下の形式で整理して報告:

## <owner>/<repo> 分析レポート

https://github.com/<owner>/<repo>

### 概要
[リポジトリの目的・何をするものか]
- Star: [数] / Fork: [数]
- 作成: [日付] / 最終更新: [日付]

### 情報鮮度
- 確認したGitHub HEAD: [SHA]
- DeepWiki: [索引SHAと差分 / 未索引 / 検証不能]

### 技術スタック
- 言語: [主要言語]
- フレームワーク: [使用フレームワーク]
- 主要ライブラリ: [依存関係]

### ディレクトリ構造
[主要ディレクトリとその役割]

### アーキテクチャ
[設計思想・パターン]

### 主要ファイル
[重要なファイルとその役割]

### ライセンス
[ライセンス情報]

### 所感
[特筆すべき点、参考になる設計、気になった点]

Step 5: 保存(求められた場合)

note-taking スキルの手順に従い notes/ に保存。

注意点

  • Deepwikiはオープンリポジトリのみ対応。プライベートリポジトリは gh CLI を使う
  • cloneは毎回固有の一時ディレクトリへ作成し、確認対象のSHAを固定する
  • 大規模リポジトリの場合、全ファイルを読むのではなく構造とREADMEから把握する

使用例

このリポジトリ分析して: owner/repo
https://github.com/owner/repo を見て

Version history

  1. v0.2.2 GitHub ↗
    Original release notes

    ## 変更内容 AIアシスタントの行動指示と既存スキルを、特定のユーザー・マシン・チャットサービスに依存しない形で改善しました。 - 会話再開時は提供済みの文脈を優先し、不足分だけを取得。許可範囲と根拠確認のルールを整理 - 開発手順に初期状態からの検証、ローカルとCIの分担、マージ・配備・再起動の区別を追加 - 原因調査と修正を分離し、回復記録と証拠に基づく再発判定を追加 - リポジトリ分析でGitHubの現行HEADとDeepWikiの索引commitを比較 - 複数AI実行時のGrok設定を分離し、既存の読み取り制限と成果物検証を維持 - スキル改善時の全項目監査と関連ファイルの整合確認を追加 - メモ・日記はローカル保存と読み戻しで完了し、Git同期・Notion保存は任意に整理 - ニュースのRSS全量取得、記事本文・日時・重複の確認、注目記事の選定理由を追加 各手順に対応するREADMEとスキル一覧も更新しています。 ## 検証と留意点 複数AIの回帰テストとGrok設定分離の追加テスト、文書・リンク・構文検査、ニュース取得例の正常応答・空応答・HTTPエラー確認を実施しました。 実CLIの疎通はCursor・Antigravityが成功しました。Codexは確認失敗、Claudeは認証期限切れ、Grokは前置き付き回答により厳密なトークン一致の判定では不合格でした。Grokは別途通常のファイル読み取りで成功を確認しています。文書手順全体と実ニュース要約の通し確認は未実施です。 ## 含まれるPull Request - #24 改善: 行動指示と既存スキルの汎用的な運用手順を更新 ## 完全な変更履歴 <https://github.com/karaage0703/ai-assistant-workspace/compare/v0.2.1...v0.2.2>

  2. v0.2.1 GitHub ↗
    Original release notes

    ## 変更内容 - `trigger.yaml` と `handler.sh` で構成される簡易スキルTriggerを削除 - 同梱していた `technews` / `weather` のTriggerを削除 - READMEとAGENTS.mdから簡易スキルTriggerの案内を削除 ## 維持する機能 - 長時間処理の完了通知に使う `xangi tool trigger` - scheduler - Local LLMの各モード - `skills/` のスキル機構 ## 含まれるPull Request - #23 簡易スキルTriggerを削除 ## 完全な変更履歴 <https://github.com/karaage0703/ai-assistant-workspace/compare/v0.2.0...v0.2.1>

  3. v0.2.0 GitHub ↗
    Original release notes

    ## 主な変更 ### xangiの現行仕様へ対応 - xangiの導入・ワークスペース選択を`xangi setup`へ一本化 - secret設定をローカルの`xangi settings`から行う安全な導線へ更新 - AI向けコマンドを`xangi tool`形式へ移行 - Web UIの公式Extensionカタログからxangi-searchを追加する手順を推奨導線として追加 ### 検索基盤をxangi-searchへ移行 - 同梱していた`xs-workspace-rag`とRAGトリガーを削除 - ワークスペース検索は外部Extensionのxangi-searchを推奨 - xangi-search未導入時は通常のファイル読み取り・文字列検索で利用可能 - AI CLIから直接使う構成も補足導線として維持 ### ワークスペースを汎用化 - 初回設定、記憶、長時間処理、公開操作の安全ルールを整理 - runtime stateや検索indexを公開リポジトリへ混入させないignore設定を追加 - xangi本体とワークスペースの責務を分離し、重複していたオンボーディングを削除 ### multi-agent運用を改善 - Codex、Claude、Grok、Cursor、Antigravityなど、実際に利用できるAIだけを検出して使用 - 読み取り専用実行、空応答・途中終了の除外、provider familyの検証を追加 - 外部AIが利用できない場合も、現在のAIセッションだけで処理を継続 - GitHubへのレビュー投稿は自動実行せず、明示的な確認後に行う構成へ変更 ## 移行時の注意 - `skills/xs-workspace-rag/`と`triggers/rag/`は削除されました - RAGを利用していた場合は、xangi Web UIの「拡張」からxangi-searchを追加してください - 旧`.workspace_rag/`は誤公開防止のため引き続きignoreされます ## 含まれるPull Request - #17 borot運用知見をワークスペースに反映 - #18 ワークスペース初期設定を汎用化 - #19 workspace-RAGの過去文書ランキングを修正 - #20 xangiオンボーディングを本体setupへ統合 - #21 multi-agentとworkspace-RAGを任意機能として汎用化 - #22 xangi仕様への追従と検索基盤の移行 ## 完全な変更履歴 <https://github.com/karaage0703/ai-assistant-workspace/compare/v0.1.0...v0.2.0>

  4. v0.1.0 GitHub ↗
    Original release notes

    ## What's Changed * ワークスペースをアップデート by @karaage0703 in https://github.com/karaage0703/ai-assistant-workspace/pull/1 * fix: 未定義変数を相対パスに置換、README更新 by @karaage0703 in https://github.com/karaage0703/ai-assistant-workspace/pull/3 * feat: 自発的おしゃべりスキル(spontaneous-talk)を追加 by @karaage0703 in https://github.com/karaage0703/ai-assistant-workspace/pull/2 * feat: スキル群をアップデート(xs:統一・内容充実化・scripts整理) by @karaage0703 in https://github.com/karaage0703/ai-assistant-workspace/pull/4 * feat: arxiv・code-reviewer スキルを追加 by @karaage0703 in https://github.com/karaage0703/ai-assistant-workspace/pull/5 * feat: MEMORY.md長期記憶の追加 & スキルドキュメント更新 by @karaage0703 in https://github.com/karaage0703/ai-assistant-workspace/pull/6 * feat: workspace-ragバグ修正・改善 & google-workspace & triggers追加 by @karaage0703 in https://github.com/karaage0703/ai-assistant-workspace/pull/7 * fix: !discord/!schedule統一 + skill-creator強化 by @karaage0703 in https://github.com/karaage0703/ai-assistant-workspace/pull/8 * feat: 汎用スキル3つ追加 + トリガー(rag/technews/weather)README整備 by @karaage0703 in https://github.com/karaage0703/ai-assistant-workspace/pull/9 * notion-manager個別ブロック編集 + skill-creatorプロンプト設計原則 by @karaage0703 in https://github.com/karaage0703/ai-assistant-workspace/pull/10 * notion-manager: テキスト系MIME追加と20MB超のmulti-part upload対応 by @karaage0703 in https://github.com/karaage0703/ai-assistant-workspace/pull/11 * feat: なぜなぜ分析(xangi-kaizen)スキルを追加 by @karaage0703 in https://github.com/karaage0703/ai-assistant-workspace/pull/12 * skills: workspace-rag/notion-manager/arxiv を強化 + xangi-onboarding 新設 by @karaage0703 in https://github.com/karaage0703/ai-assistant-workspace/pull/13 * feat(xangi-onboarding): 3モード対応 + 上級スタックチャン連動 + コンテキスト分割 by @karaage0703 in https://github.com/karaage0703/ai-assistant-workspace/pull/14 * xangi-kaizen と開発ワークフローを公開向けに更新 by @karaage0703 in https://github.com/karaage0703/ai-assistant-workspace/pull/15 * スキル名を xs- プレフィックスに統一 by @karaage0703 in https://github.com/karaage0703/ai-assistant-workspace/pull/16 ## New Contributors * @karaage0703 made their first contribution in https://github.com/karaage0703/ai-assistant-workspace/pull/1 **Full Changelog**: https://github.com/karaage0703/ai-assistant-workspace/commits/v0.1.0

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Areas to improve

  • 缺少When to Use章节 Reported severity: Minor

    文档中虽然有使用例,但没有明确的When to Use章节来说明适用场景

    Recommendation: 建议添加When to Use章节,明确说明在什么情况下使用此Skill

Highlights

  • 解决了开发者常见的GitHub仓库分析需求
  • 结合DeepWiki和GitHub官方API,提供全面的信息整合
  • 支持公开和私有仓库的不同处理策略
Trigger Precision85/100

Areas to improve

  • 触发词描述位置不规范 Reported severity: Minor

    description内容写在skill_body内部而非顶层frontmatter

    Recommendation: 建议将description移到顶层frontmatter中

Highlights

  • 触发词覆盖多种自然语言表达方式
  • 边界清晰,不易与其他Skill混淆
Structure and Standards90/100

Highlights

  • 执行步骤清晰有序,严格按照Step 1-5组织
  • 每个步骤都有明确的执行内容和代码示例
  • 包含完整的注意事项和使用例
Execution Reliability75/100

Areas to improve

  • 缺少对gh CLI未安装情况的处理 Reported severity: Major

    Skill依赖gh CLI但没有处理用户未安装的情况

    Recommendation: 建议添加gh CLI未安装时的错误提示和安装指引

  • 临时文件清理机制不够完善 Reported severity: Minor

    虽然提到了清理临时文件,但没有具体的清理命令

    Recommendation: 建议添加具体的rm -rf命令来清理临时目录

Highlights

  • 对不同情况(公开/私有仓库)有明确的差异化处理
  • 包含了信息鲜度验证机制
  • 对不可逆操作(clone)有确认机制
Evidence Verifiability (mean of the first four)81/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • deepwiki.com
  • github.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.