スキル一覧に戻る
auldsyababua

repo-maintainer

by auldsyababua

2🍴 1📅 2026年1月13日
GitHubで見るManusで実行

SKILL.md


name: repo-maintainer description: Audits and reorganizes messy repositories into clean, LLM-friendly structures. It uses a non-destructive "Migration Manifest" process to safely consolidate scripts, establish documentation, and create AI context zones.

Repository Maintainer

Overview

This skill turns disorganized codebases ("polluted roots," "orphan scripts") into structured, readable repositories. It prioritizes LLM-Readability (creating explicit context maps) and Safety (using a reversible migration manifest).

Use this skill when:

  • A repository has too many files in the root directory.
  • Documentation is missing, outdated, or scattered.
  • An LLM struggles to find relevant context due to noise.
  • You need to "refactor" the file structure without breaking git history.

Workflow

1. The Audit (Discovery)

First, analyze the repository to understand "Hot" (frequently changed) vs "Cold" (stale) zones.

  • Run scripts/scaffold_manifest.py to generate a draft manifest.
  • Identify the "blood flow" (dependencies): Does main.py import that messy script?
  • Output: A mental model of the current chaos.

2. The Manifest (Planning)

Do not move files immediately. Create a migration_manifest.yaml that defines the desired state.

  • Run scripts/scaffold_manifest.py to generate a draft manifest if you haven't already.
  • Categorize files into:
    • Core: Application logic (src/)
    • Scaffolding: Configs (.env, docker-compose)
    • Artifacts: One-off scripts (Move to archive/)
    • Knowledge: Docs (Move to docs/)
  • Review the YAML file. It is the "Contract of Changes."

3. Execution (Safe Move)

Apply the changes using the manifest.

  • Run scripts/apply_migration.py.
  • Safety Rule: This script uses git mv to preserve history.
  • Quarantine: Unknown scripts go to archive/quarantine/ rather than being deleted.

4. LLM Optimization (Contextualizing)

Once files are moved, establish the .ai/ directory.

  • Copy assets/CONTEXT_TEMPLATE.md to .ai/CONTEXT.md.
  • Fill it with a high-level summary of the architecture.
  • This ensures future agents understand why the code exists, not just what it does.

Directory Structure Standards

When planning the migration, aim for this specific structure (The "LLM-First" Architecture):

/ (Root)
├── .ai/                 # Context specifically for LLMs
│   ├── CONTEXT.md       # Architecture & Business Logic
│   └── GUIDELINES.md    # Coding standards
├── src/                 # Source code
├── scripts/             # DevOps/Maintenance scripts
├── docs/                # Human documentation
├── archive/             # Deprecated/Quarantine
└── README.md            # The Map

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です