xs-github-repo-analyzer

xs-github-repo-analyzer is a skill for Claude Code, Codex from karaage0703/ai-assistant-workspace. It costs 90 tokens per session (966 once invoked), scanned C, original, MIT.

A GitHub repository analysis workflow that turns a repository link or owner/name into a structured report. It gathers the project’s purpose, design, folders, technologies, main parts, and basic repository details.

In plain words
What is it for?
Use it to review a GitHub repository’s structure, technology choices, activity, license, stars, forks, and other metadata, then organise the findings into a report.
Why use it?
It saves you from manually opening many files and commands to understand an unfamiliar project. It also provides a fallback method when the main information source is unavailable.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review a GitHub repository’s structure, technology choices, activity, license, stars, forks, and other metadata, then organise the findings into a report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/karaage0703/ai-assistant-workspace/xs-github-repo-analyzer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add karaage0703/ai-assistant-workspace --skill xs-github-repo-analyzer
Clone the repo
git clone --depth 1 https://github.com/karaage0703/ai-assistant-workspace

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for xs-github-repo-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/skills/karaage0703/ai-assistant-workspace/xs-github-repo-analyzer/github.svg)](https://agentmods.dev/skills/karaage0703/ai-assistant-workspace/xs-github-repo-analyzer)
Your own site
<a href="https://agentmods.dev/skills/karaage0703/ai-assistant-workspace/xs-github-repo-analyzer"><img src="https://agentmods.dev/badge/skills/karaage0703/ai-assistant-workspace/xs-github-repo-analyzer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for xs-github-repo-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/skills/karaage0703/ai-assistant-workspace/xs-github-repo-analyzer"><img src="https://agentmods.dev/badge/skills/karaage0703/ai-assistant-workspace/xs-github-repo-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 966 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00090 $0.00966
Opus 5 $0.00045 $0.00483
Sonnet 5 $0.00018 $0.00193
Haiku 4.5 $0.00009 $0.00097

Measured 11d ago against content hash 27d3f70828e3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade C, and why

xs-github-repo-analyzer scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf /tmp/<repo>
skills/xs-github-repo-analyzer/SKILL.md · 115 lines

What it actually says

GitHub Repo Analyzer

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

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

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

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

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

Step 2: 情報取得(Deepwiki + gh CLI 並行)

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

WebFetchで https://deepwiki.com/<owner>/<repo> にアクセス。

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

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

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

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

Deepwikiで十分な情報が得られた場合 → Step 4 へ。

Step 3: gh CLIで詳細分析(Deepwiki失敗時)

Deepwikiが使えない・情報不足の場合:

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

# READMEを取得
gh api repos/<owner>/<repo>/readme --jq '.content' | base64 -d

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

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

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

gh repo clone <owner>/<repo> /tmp/<repo> -- --depth 1

cloneした場合は分析後に削除:

rm -rf /tmp/<repo>

Step 4: レポート生成

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

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

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

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

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

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

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

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

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

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

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

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

注意点

  • Deepwikiはオープンリポジトリのみ対応。プライベートリポジトリは gh CLI を使う
  • cloneは /tmp--depth 1 で行い、分析後は必ず削除
  • 大規模リポジトリの場合、全ファイルを読むのではなく構造とREADMEから把握する

使用例

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

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 115 lines · 90 tokens per session scan C 27d3f70828e3

Subscribe to this mod's changes

xs-github-repo-analyzer is a skill published in the GitHub repository karaage0703/ai-assistant-workspace (137 stars, last pushed 23d ago), licensed MIT. It adds 90 tokens to every session and 966 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens