repo-research
БесплатноБез исполняемых скриптовНе проверенDeep repository research and analysis skill — studies any codebase end-to-end and produces a comprehensive research/ folder with 10 structured documents…
от nasrulhazim★ 26 звёзд на GitHubОб этом скилле
Repository Research & Analysis
Produces a complete research/ folder with 10 structured documents and 50+ Mermaid diagrams that fully explain how a codebase works — from high-level architecture down to individual algorithms — with a SaaS opportunity analysis for building a superior product.
Always produces all 10 documents together — never partial output.
Trigger Detection
If the user points to a specific repository or codebase, use that as the target. If no target is specified, analyze the current working directory.
Before generating anything:
- Read CLAUDE.md if it exists — extract project context
- Read README.md — understand stated purpose
- Read composer.json / package.json — understand tech stack and dependencies
- Explore
src/,app/,lib/, or equivalent source directories
Companion: graphify
graphify builds a persistent, queryable knowledge graph of a codebase — tree-sitter AST
parsing for code plus semantic extraction for docs. It answers structural questions far faster
than grepping, and it is installed by default with this toolkit.
Use it before a manual sweep whenever the question is structural.
graphify extract . # build (or refresh) the graph — once per repo
graphify query "how does authentication work"
graphify path UserController InvoiceRepository # call chain between two nodes
graphify explain app/Services/BillingService.php
If graphify-out/ already exists in the target repo, treat the question as a graph query
first and fall back to file reading only for what the graph cannot answer. If graphify is
not installed, carry on with the normal file-reading approach — it is an accelerator, never a
prerequisite.
Research Process
Phase 1: Deep Exploration (Parallel)
Launch 5 parallel exploration agents to study the codebase concurrently:
| Agent | Focus | Key Files |
|---|---|---|
| 1 — Core Engine | Main business logic classes, algorithms, data flow | src/, app/, core modules |
| 2 — CLI / API Layer | Entry points, commands, controllers, routes | Console commands, controllers, routes |
| 3 — Configuration & Schema | Config files, validation, schemas, env vars | config/, schema files, .env.example |
| 4 — Tests & Quality | Test suite, CI/CD, static analysis, code standards | tests/, phpunit.xml, CI workflows |
| 5 — Frontend & UI | Templates, JS/CSS, build tools, UI components | views/, resources/, webpack.config |
Every source file must be fully read — no skimming. Document every public method, constructor dependency, and configuration option.
Phase 2: Documentation Generation
After all agents complete, produce the 10 research documents sequentially.
Output Structure
research/
├── README.md # Index with document table and quick stats
├── 01-architecture-overview.md # System context, components, data flow
├── 02-core-build-workflow.md # End-to-end pipeline, orchestration
├── 03-core-engine-deep-dive.md # Heart of the system — algorithms, logic
├── 04-builder-output-system.md # How outputs are generated
├── 05-frontend-architecture.md # UI components, JS modules, CSS
├── 06-configuration-system.md # Schema, options, validation
├── 07-deployment-distribution.md # Docker, CI/CD, packaging
├── 08-testing-quality.md # Test suite, coverage, quality gates
├── 09-limitations-gaps.md # Weaknesses, missing features, tech debt
└── 10-saas-opportunity.md # Product vision, architecture, pricing
1. README.md — Research Index
Must contain:
- Document index table — numbered links to all 10 documents
- Quick stats — version, language, dependencies, LOC, test count
- What is this project? — 2-3 paragraph summary
- Why study this? — motivation for the research
2. Architecture Overview (01)
Required Diagrams
| Diagram Type | Shows |
|---|---|
| System context (graph LR) | External systems → This system → Consumers |
| Component architecture (graph TB) | All internal modules and their relationships |
| Directory structure (graph LR) | File tree with purpose annotations |
| Data flow (flowchart TD) | Input → Processing stages → Output |
| Class dependency (classDiagram) | Key classes, interfaces, inheritance |
| Technology stack (graph TB) | Grouped by layer: backend, frontend, build, quality, deploy |
Required Content
- Key design decisions table (Decision / Choice / Rationale)
- Component responsibility summary
3. Core Workflow (02)
Required Diagrams
| Diagram Type | Shows |
|---|---|
| Full sequence diagram | User → System → All components → Output |
| Arguments & options (graph LR) | CLI args or API params with defaults |
| Config loading flow (flowchart TD) | Load → Parse → Validate → Error handling |
| Orchestration order (flowchart LR) | Numbered steps with color-coded phas |
Установить repo-research в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл repo-research?
Deep repository research and analysis skill — studies any codebase end-to-end and produces a comprehensive research/ folder with 10 structured documents covering architecture, workflows, algorithms, frontend, configuration, deployment, testing, limitations, and SaaS opportunity analysis. Every document includes Mermaid.js diagrams (flowcharts, sequence diagrams, class diagrams, ER diagrams, mindmaps, Gantt charts). Use this skill whenever the user asks to study a repo, analyze a codebase, reverse-engineer architecture, create technical documentation from source, or plan a competing/improved product — including: "study this repo", "analyze this codebase", "reverse engineer this", "buat research pasal repo ni", "nak faham architecture dia", "document how this works", "study & analysis", "I want to build a better version of this", or "SaaS opportunity for this tool".
Как установить скилл repo-research?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл repo-research запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic