codebase-teach

Extract domain knowledge from codebases into structured ai-context feature files.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/fearovex/agent-config --skill codebase-teach
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codebase-teach
Source: https://github.com/fearovex/agent-config/tree/main/skills/codebase-teach
Command: npx skills add https://github.com/fearovex/agent-config --skill codebase-teach

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the extraction of domain knowledge from a codebase by analyzing bounded contexts and recording insights into AI-context feature files.

Core Features & Use Cases

  • Analyze bounded contexts and extract business rules and domain knowledge into ai-context/features/<context>.md.
  • Generate teach-report.md that summarizes coverage, gaps, and document status.
  • Support incremental updates by reusing existing ai-context files and updating only auto-generated sections.

Quick Start

Invoke /codebase-teach in the project root to scan the repository and produce domain knowledge documents.

Frequently Asked Questions about codebase-teach

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

FAQPage Schema
How do I extract domain knowledge from a codebase for AI context?

To extract domain knowledge from a codebase, invoke the skill in your project root to scan bounded contexts and generate structured ai-context feature files. It analyzes business rules and records insights into markdown documentation.

What is a teach-report and how does it help with codebase documentation?

A teach-report summarizes domain knowledge coverage, gaps, and document status after analyzing your codebase. It provides an overview of extracted bounded contexts to help you track what business rules have been documented.

Can I update existing ai-context feature files without losing manual edits?

Yes, you can update existing ai-context feature files safely because the tool reuses current files and only modifies auto-generated sections. This incremental update process preserves your manually written domain knowledge content.

Does codebase documentation generation enforce a file limit per bounded context?

Yes, codebase documentation generation enforces a per-context file cap to prevent unbounded growth. It structures output into ai-context/features/<context>.md files, ensuring organized and manageable domain knowledge records.

What's the best way to document bounded contexts for AI assistants?

The best way to document bounded contexts for AI is to use automated extraction that scans your codebase and writes structured ai-context files. This ensures your AI assistant receives consistent, six-section feature structures.