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.
npx skills add karaage0703/ai-assistant-workspace --skill xs-github-repo-analyzergit clone --depth 1 https://github.com/karaage0703/ai-assistant-workspaceWrote 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.
[](https://agentmods.dev/skills/karaage0703/ai-assistant-workspace/xs-github-repo-analyzer)<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.
<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>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.
| Model | Per session | Once 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 |
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> What it actually says
GitHub Repo Analyzer
GitHubリポジトリの内容を詳しく分析し、構造化レポートを生成する。
手順(必ずこの順番で実行)
Step 1: リポジトリ情報の正規化
ユーザー入力から owner/repo を抽出:
https://github.com/owner/repo→owner/repoowner/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 を見て
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.
- 11d ago First seen · 115 lines · 90 tokens per session scan C 27d3f70828e3
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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
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…
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…
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…
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…
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…