cat-repo-auditor

GitHubリポジトリのremote/local状況をlistし、可視化し、メンテの一部を自動化して効率化するアプリ。TUI。Rust。Windows用。

DeepWiki

状況

Rust版TUIを生成させました。自分用です

install

cargo install --force --git https://github.com/cat2151/cat-repo-auditor

実行

catrepo

ビルド時に埋め込まれた commit hash を表示する:

catrepo hash

使い方

以下はold。別物。python/ に退避済み。あとで書き直す予定です

概要

gh コマンド(GitHub CLI)で認証済みのユーザーのリポジトリを直近20件取得し、 各リポジトリに対して以下の項目を自動チェックする。結果は JSON ファイルに出力され、 カラー付きサマリーをターミナルに表示する。

チェック項目

項目 説明
README.ja.md 日本語 README の存在
DeepWiki 記載 README.ja.md 内に DeepWiki へのリンクがあるか
google*.html Google Search Console 用確認ファイルの存在
AGENTS.md / copilot-instructions.md AI エージェント向け指示ファイルの存在
.github/workflows/*.yml CI/CD ワークフローの存在
_config.yml Jekyll 設定ファイルの存在

必要環境

インストール

git clone https://github.com/cat2151/cat-repo-auditor.git
cd cat-repo-auditor

追加パッケージは不要(Python 3.11+ 標準ライブラリのみ使用)。

Python 3.10 以下の場合:

pip install tomli

設定

カレントディレクトリに config.toml を作成する。

github_user = "your-github-username"

使い方

python cat_repo_auditor.py

オプション:

--output, -o    JSON 出力ファイルパス(デフォルト: repo_analysis.json)
--config, -c    設定ファイルパス(デフォルト: config.toml)

出力例

ターミナルには Monokai カラーでサマリーが表示される。

=== GitHub リポジトリ分析CLI ===
実行日時: 2026-02-23 12:00:00
対象ユーザー: your-github-username
認証: gh auth token で取得済み

[1/3] your-github-username のリポジトリを取得中...
      20 件取得

[2/3] 各リポジトリを分析中...
  [ 1/20] my-project
         ✓ README.ja | ✗ DeepWiki | ✗ google | ✓ agents | ✓ CI | ✗ jekyll

[3/3] サマリー
======================================================================
  README.ja.md  [15/20 あり / 5/20 なし]
    ✗ some-repo
      https://github.com/your-github-username/some-repo
    ...

JSON ファイル(repo_analysis.json)には各リポジトリの詳細情報が含まれる。

github_local_checker.py

check_local_workflows.py

sync_workflows.py