スキル一覧に戻る
Roger-Parkinson-EHP

repo-map

by Roger-Parkinson-EHP

Developer tools: WhisperFlow speech-to-text, Claude Code skills, conversation services

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

SKILL.md


name: repo-map description: Comprehensive reference for understanding any repo fast. All patterns for docs, code, configs, git, and conversation history. The complete playbook. allowed-tools: Bash, Read, Grep, Glob

Repo Map - Complete Understanding Playbook

Everything you need to understand a repository in minimal tokens.

The 5 Dimensions of Repo Understanding

DimensionWhatSkills
HistoryWhat was I working on?search-history
DocsWhat should I know?index-docs
CodeHow does it work?codebase-index
ConfigHow is it configured?read-configs
GitWhat's the current state?(built-in)

1. DOCUMENTATION PATTERNS

Headings

LevelPatternCommand
H1# Titlegrep -rn "^# " --include="*.md"
H2## Sectiongrep -rn "^## " --include="*.md"
H3### Subsectiongrep -rn "^### " --include="*.md"
H1+H2Combinedgrep -rn "^##\? " --include="*.md"
H1+H2+H3Allgrep -rn "^###\?\? " --include="*.md"

Markdown Elements

ElementCommand
Mermaid diagramsgrep -rln "mermaid" --include="*.md"
Code blocksgrep -rn '^```[a-z]' --include="*.md"
Code block languagesgrep -roh '^```[a-z]*' --include="*.md" | sort | uniq -c | sort -rn
Tables`grep -rn "^
Linksgrep -ron "\[.*\](.*)" --include="*.md"
Imagesgrep -ron "!\[.*\](.*)" --include="*.md"
TODOsgrep -rn "TODO|FIXME|XXX" --include="*.md"
Checkboxesgrep -rn "\[ \]|\[x\]" --include="*.md"

Key Doc Files

ls -la README.md CLAUDE.md CONTRIBUTING.md CHANGELOG.md LICENSE 2>/dev/null
ls -la docs/ doc/ documentation/ 2>/dev/null

2. CODE PATTERNS

Entry Points

LanguagePatternCommand
Pythonif __name__rg "if __name__" --type py -l
Gofunc main()rg "^func main" --type go -l
Nodemodule.exportsrg "module\.exports" --type js -l
TypeScriptexport defaultrg "^export default" --type ts -l

API Routes

FrameworkCommand
FastAPIrg "@(app|router)\.(get|post|put|delete)" --type py -n
Flaskrg "@.*\.route\(" --type py -n
Expressrg "(app|router)\.(get|post|put|delete)\(" --type js -n
Cloud Functionsrg "functions_framework" --type py -n

Definitions

WhatCommand
Python classesrg "^class " --type py -n
Python functionsrg "^def " --type py -n
TS/JS classesrg "^(export )?class " --type ts -n
TS interfacesrg "^(export )?interface " --type ts -n
Go structsrg "^type .* struct" --type go -n

Models & Schemas

ORM/FrameworkCommand
SQLAlchemyrg "class.*\(.*Base\)" --type py -n
Pydanticrg "class.*BaseModel" --type py -n
Djangorg "models\.Model" --type py -n
Prismarg "^model " --glob "*.prisma"

Imports & Dependencies

# Most used Python packages
rg "^(from\|import) " --type py | cut -d' ' -f2 | cut -d'.' -f1 | sort | uniq -c | sort -rn | head -20

# Most used JS/TS imports
rg "^import .* from" --type ts --type js | grep -oP "from ['\"].*?['\"]" | sort | uniq -c | sort -rn | head -20

Decorators & Patterns

# Python decorators
rg "^@\w+" --type py | cut -d':' -f2 | sort | uniq -c | sort -rn | head -15

# Error classes
rg "class.*Exception|class.*Error\(" --type py -n

3. CONFIG PATTERNS

Project Configs

TypeFilesCommand
Pythonpyproject.toml, setup.pyls pyproject.toml setup.py 2>/dev/null
Nodepackage.json, tsconfig.jsonls package.json tsconfig*.json 2>/dev/null
Gogo.mod, go.sumls go.mod go.sum 2>/dev/null

Environment

# Find env files
ls -la .env* env.* 2>/dev/null

# Env var names (NOT values)
grep -h "^[A-Z]" .env* 2>/dev/null | cut -d'=' -f1 | sort | uniq

Cloud & CI/CD

# GCP
ls app.yaml cloudbuild.yaml *.tf 2>/dev/null

# GitHub Actions
ls .github/workflows/*.y*ml 2>/dev/null

# Docker
ls Dockerfile docker-compose*.yml 2>/dev/null

Build Tools

ls Makefile BUILD.bazel *.bzl 2>/dev/null

4. GIT PATTERNS

# Current state
git status --short | head -20

# Current branch
git branch -v | grep "^\*"

# Recent commits
git log --oneline -10

# Changed files (staged)
git diff --cached --name-only

# Contributors
git shortlog -sn | head -10

5. CONVERSATION HISTORY

cd ~/.claude/services

# Recent sessions
python3 conversation-search.py --list-sessions | head -5

# Search for topic
python3 conversation-search.py "TOPIC" --max 3 --full

# Last exchanges
python3 conversation-search.py "." --session SESSION_ID --max 10 --full

QUICK REFERENCE CARD

Minimal Startup (30 sec)

# 1. Sessions
cd ~/.claude/services && python3 conversation-search.py --list-sessions | head -3

# 2. Doc headings
cd - && find . -name "*.md" -not -path "*/.git/*" | xargs grep -n "^# " 2>/dev/null | head -20

# 3. Entry points
rg "if __name__|^func main" --type py --type go -l 2>/dev/null | head -5

# 4. Git state
git status --short | head -10

Full Startup (60 sec)

echo "=== HISTORY ===" && cd ~/.claude/services && python3 conversation-search.py --list-sessions | head -3
echo "=== DOCS ===" && cd - > /dev/null && find . -name "*.md" -not -path "*/.git/*" | xargs grep -n "^# " 2>/dev/null | head -20
echo "=== ENTRY POINTS ===" && rg "if __name__|^func main" --type py --type go -l 2>/dev/null | head -5
echo "=== CLASSES ===" && rg "^class " --type py -c 2>/dev/null | head -10
echo "=== CONFIGS ===" && ls pyproject.toml package.json app.yaml .env* 2>/dev/null
echo "=== GIT ===" && git status --short | head -10 && git branch -v | grep "^\*"

Token Budget Guide

ActionTokensWhen
List files~50Always
Grep headings~100-200Always
Count classes~50-100Always
Read one file~500-2000When needed
Full file content~2000+Rarely

Rule: Index everything, read selectively.


SkillPurpose
startupMaster bootstrap sequence
post-compactContext recovery
index-docsDoc structure
codebase-indexCode architecture
read-configsConfig discovery
search-historyConversation context

スコア

総合スコア

60/100

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

SKILL.md

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

+20
LICENSE

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

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

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

0/5
Issue管理

オープンIssueが50未満

+5
言語

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

+5
タグ

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

0/5

レビュー

💬

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