/claude-toolkit:repo-researchfrom claude-toolkit
Studies any codebase end-to-end and produces a research/ folder with 10 structured documents covering architecture, workflows, algorithms, frontend, configuration, deployment, testing, limitations, and SaaS opportunity analysis. Each document includes Mermaid.js diagrams.
Ships in claude-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
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:
src/, app/, lib/, or equivalent source directoriesgraphify 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.
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.
After all agents complete, produce the 10 research documents sequentially.
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
Must contain:
| 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 |
| 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 phases |
| Error handling strategy (flowchart TD) | Error types → Recovery paths |
| State diagram | System lifecycle states |
This is the most important document — the algorithmic heart of the system.
| Diagram Type | Shows |
|---|---|
| Main algorithm flowchart | The core algorithm with every decision point |
| Sub-algorithm flows | Supporting algorithms called by the main one |
| Data model (erDiagram) | Entity relationships |
| State/config flags (graph LR) | Boolean flags and their effects |
| Pipeline stages (flowchart LR) | Processing pipeline with filters |
| Diagram Type | Shows |
|---|---|
| Builder class hierarchy (classDiagram) | Abstract → Concrete implementations |
| Each builder's dump flow (flowchart TD) | Internal processing of each output type |
| Output file structure (graph TB) | Generated file tree |
| Timeline (gantt) | Execution phases with relative durations |
| Diagram Type | Shows |
|---|---|
| Component init flow (graph TB) | Bootstrap sequence |
| Component responsibility (mindmap) | Each component's features |
| Key component flows (flowchart TD) | Search, filter, interaction flows |
| Animation sequences (sequenceDiagram) | UI state transitions |
| Build pipeline (flowchart LR) | Source → Loaders → Plugins → Output |
| Storage schema (graph TB) | localStorage / sessionStorage keys |
Skip this document if the project has no frontend.
| Diagram Type | Shows |
|---|---|
| Full config schema (mindmap) | Every option grouped by category |
| Validation flow (flowchart TD) | Parse → Validate → Error handling |
| Config precedence (flowchart TD) | File → Env → CLI override order |
| Required vs optional (graph TB) | Color-coded field importance |
| Diagram Type | Shows |
|---|---|
| Distribution methods (graph TB) | All ways the project can be consumed |
| Docker build stages (graph TB) | Multi-stage build if applicable |
| CI/CD pipeline (flowchart TD) | Full GitHub Actions / GitLab CI flow |
| Test matrix (graph TB) | Version combinations tested |
| Deployment architecture (graph TB) | Typical production setup |
| Diagram Type | Shows |
|---|---|
| Test coverage map (mindmap) | What's tested per module |
| Testing patterns (graph TB) | Patterns used and their benefits |
| Quality gates (flowchart LR) | Local → CI → Merge gate flow |
| Execution flow (sequenceDiagram) | Dev → Git hook → CI → Matrix |
| Diagram Type | Shows |
|---|---|
| Limitation mindmap | All limitations grouped by category |
| Scalability issues (graph TB) | Current approach → Problem it causes |
| Feature gap comparison (graph LR) | This project vs competitors |
| Race conditions / concurrency | Any concurrent access issues |
| Diagram Type | Shows |
|---|---|
| Market positioning (quadrantChart) | Feature richness vs Cost matrix |
| Target personas (mindmap) | User segments with needs |
| Proposed architecture (graph TB) | Full SaaS system design |
| Data model (erDiagram) | Multi-tenant data model |
| Build pipeline redesign (flowchart TD) | Event-driven, queue-based |
| Feature roadmap (gantt) | Phase-based product roadmap |
| Pricing strategy (graph TB) | Tier comparison |
| Migration path (flowchart TD) | From existing tool → SaaS |
| Revenue projection (xychart-beta) | MRR over time |
All Mermaid diagrams must follow these rules:
style or fill for emphasis where useful| Need | Diagram Type |
|---|---|
| Process flow with decisions | flowchart TD |
| Time-ordered interactions | sequenceDiagram |
| Class hierarchy / interfaces | classDiagram |
| Database / data relationships | erDiagram |
| Hierarchical categorisation | mindmap |
| Project timeline | gantt |
| System states | stateDiagram-v2 |
| Metrics / charts | xychart-beta |
| Comparison positioning | quadrantChart |
The 10-document structure adapts based on project type:
| Project Type | Adapt |
|---|---|
| CLI tool | Doc 03 focuses on command pipeline, Doc 05 may be skipped |
| Web framework | Doc 03 focuses on request lifecycle, Doc 05 covers views/components |
| Library / SDK | Doc 03 focuses on public API surface, Doc 02 covers usage patterns |
| API service | Doc 03 focuses on endpoint logic, Doc 06 covers API schema |
| Full-stack app | All 10 documents apply fully |
Rename document titles to match the project's domain language:
| File | Path |
|---|---|
| Research index | research/README.md |
| 10 analysis documents | research/01-*.md through research/10-*.md |
Present files via the research/README.md — it's the entry point the user opens first.
| File | Read When |
|---|---|
references/document-templates.md | Starting a new research — get section templates |
references/mermaid-patterns.md | Designing diagrams — get syntax patterns and examples |
references/saas-analysis-framework.md | Writing the SaaS opportunity doc — get frameworks |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nasrulhazim/claude --plugin claude-toolkit43 skills in this plugin
/business-cardSVG business card designer that takes contact details and brand preferences, then produces 12 front design concepts with optional back designs, interactive HTML preview galleries, individual card showcases with front/back flip animation, and print-ready SVG exports with bleed area and crop marks. Supports horizontal and vertical orientations, six layout styles (minimal, corporate, creative, elegant, bold, tech), multiple color schemes, QR code placeholders, social media icons, and logo integration. Use this skill whenever the user asks to design a business card, create a name card, make visiting cards, or says "design business card", "buat kad bisnes", "create name card", "reka kad perniagaan", "design kad nama", "I need a business card for X".
/ci-cd-pipelineCI/CD pipeline builder for Laravel projects — extends Kickoff's existing GitHub Actions CI with continuous deployment pipelines (staging/production), Docker containerisation, secret management, and failure notifications. Generates Dockerfiles, docker-compose.yml, deployment configs for VPS via SSH, container registry push workflows, and leverages Kickoff's /bin scripts (deploy.sh, backup.sh, setup.sh) in automated workflows. Use this skill whenever the user asks to set up deployment pipelines, containerise a Laravel app, configure CD for staging or production, push Docker images to a registry, manage deployment secrets, add failure notifications to CI, or integrate /bin scripts with GitHub Actions. Triggers for requests like "set up CD pipeline", "deploy to staging automatically", "dockerise my Laravel app", "add Docker to my project", "push image to registry", "manage secrets in CI", "notify on failure", "extend CI with deployment", "setup deploy pipeline", "nak deploy guna GitHub Actions", "tambah Docker dalam project", "setup CD untuk staging", "nak auto deploy ke production", "dockerise Laravel app aku", "tambah notification kalau CI fail", "macam mana nak manage secrets dalam GitHub Actions", or "integrate bin scripts dengan CI". Assumes Laravel Kickoff as the baseline — GitHub Actions CI (Pint, PHPStan, Rector, Pest) and /bin scripts (deploy.sh, backup.sh) are already configured. This skill extends that baseline with CD, Docker, and deployment automation.
Other plugins' skills for the same job