learn

Explores codebases with parallel Haiku agents and generates organized markdown documentation.

Updated Feb 28, 2026
One-click install
npx skills add https://github.com/heman1033p-create/cv-v2-kongphop --skill learn-heman1033p-create
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: learn
Source: https://github.com/heman1033p-create/cv-v2-kongphop/tree/main/.gemini/skills/learn
Command: npx skills add https://github.com/heman1033p-create/cv-v2-kongphop --skill learn-heman1033p-create

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Understanding an unfamiliar codebase requires hours of manual reading. This Skill automates codebase exploration by spawning parallel agents that analyze architecture, code snippets, and usage patterns, then writes structured documentation you can reference later. ## Core Features & Use Cases - Parallel Agent Exploration: Launch 1, 3, or 5 Haiku agents depending on depth mode (--fast, default, --deep) to analyze different aspects of a repository simultaneously. - Organized Documentation Output: Generates time-prefixed markdown files (ARCHITECTURE, CODE-SNIPPETS, QUICK-REFERENCE, TESTING, API-SURFACE) in date folders, plus a hub index file linking all sessions. - Repository Management: Clones repos via ghq, maintains origin symlinks, and tracks learned repos in an .origins manifest with an --init restore mode. - Use Case: You discover an interesting open-source library on GitHub. Run the learn command with the repo URL to get architecture diagrams, code examples, and a quick reference guide written to your knowledge base within minutes. ## Quick Start Ask the AI to learn a repository by providing its GitHub URL, for example by saying learn https://github.com/owner/repo with the default three-agent mode.

Frequently Asked Questions about learn

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I explore a GitHub repository with AI agents?▼

Run the learn command with a repository URL, slug, or local path. The skill clones the repo via ghq, creates an origin symlink, and spawns parallel Haiku agents that write architecture, code snippets, and quick reference docs to a date-stamped folder.

What is the difference between fast, default, and deep exploration modes?▼

Fast mode uses 1 agent producing a single overview file in about 2 minutes. Default mode uses 3 agents producing architecture, code snippets, and quick reference docs. Deep mode uses 5 agents adding testing patterns and API surface documentation.

Can I remove the source code but keep the generated documentation?▼

Yes. Remove the origin symlink with unlink and delete the cloned source with ghq rm. The generated markdown documentation remains in the learn directory since docs are written outside the origin symlink.

Why did my agents write documentation files to the wrong directory?▼

This happens when agents receive only the origin path and write inside the symlinked source repo. Always pass agents two literal absolute paths: SOURCE_DIR for reading code and DOCS_DIR for writing output files.

How do I restore repository links after cloning my knowledge base?▼

Run learn with the --init flag. It reads the .origins manifest file, re-clones each repository via ghq, and recreates the origin symlinks, similar to how git submodule init works.