Skip to content

psreek-ai/codebase-mooc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codebase MOOC

AI-generated engineering education embedded in your codebase. Takes any developer from novice to owner without going anywhere else.

Why this exists

AI coding tools are transforming software development, but they carry a hidden cost: comprehension debt. When developers generate code instead of writing it, the reasoning muscles that produce real engineering judgment don't get exercised. Across teams, organisations, and an entire industry, this creates codebases that run critical systems but that no living engineer fully understands.

The antidote to AI-generated ignorance is AI-generated comprehension.

The same technology that risks eroding engineering knowledge, when pointed differently, can preserve and transmit it at a scale no previous documentation effort, bootcamp, or mentorship culture has achieved. This plugin turns any codebase into a self-teaching system — one that carries within it not just the code, but the architecture behind it, the business logic that motivated it, the decisions that shaped it, the failures that hardened it, and a structured path from confusion to ownership.

The curriculum is not reference material. It is a complete engineering education, grounded in cognitive science research on how expertise actually develops. Exercises require genuine understanding, not pattern matching. Spaced repetition ensures knowledge persists. Competency gates ensure no one advances on familiarity alone.

Read the full argument:

  1. Code & Comprehension, Part 1: The Quiet Catastrophe — the problem
  2. Code & Comprehension, Part 2: The Antidote — the solution

Install

Two steps in Claude Code:

Step 1 — Add the marketplace:

/plugin marketplace add psreek-ai/codebase-mooc

This registers the plugin source from GitHub. You only need to do this once.

Step 2 — Install the plugin:

After adding the marketplace, select codebase-mooc from the plugin list and choose your install scope (user, project, or local repo).

Use

Open any project in Claude Code and say:

"Set up the codebase MOOC for this project"

That is the only instruction needed. The plugin detects your language and framework, builds a structured map of the codebase, generates the full curriculum across six layers, and starts watching every commit for changes that require curriculum updates.

To start a learning session for a developer:

"Start a learning session for Priya"

What it generates

The curriculum has six layers, each serving a different learning purpose:

Architecture layer — the map before the territory. What the system does, how it is structured, and where each component sits before a new developer reads a single line of code.

Domain layer — the business logic and why it exists. The regulatory requirements, the user behaviour patterns, the commercial constraints that shaped the code.

Implementation layer — deep walkthroughs of critical code. Not what the code does — why it does it that way, what breaks if you change it, what a developer must understand before touching it.

Decision log — the road not taken. Every significant architectural decision: what was chosen, what alternatives were available, what constraints ruled them out. Extracted from git history and code shape.

Failure mode archive — every incident turned into a lesson. What happened, what the system's design made possible, how to recognise the same failure early. Plus proactive analysis of failure modes that have not yet manifested.

Exercise layer — gamified assessments that require genuine understanding. Competency-gated progression through seven arcs: Orientation, Foundations, System Literacy, Domain Mastery, Engineering Judgment, Contribution, and Ownership. Boss levels at the end of each arc.

The curriculum is committed to your repository alongside your code and stays synchronised with it automatically. Every commit is watched. Every significant change triggers a curriculum update in the background.

Commands

Command What it does
/codebase-mooc:init First-time setup in a project
/codebase-mooc:generate Run the full curriculum generation pipeline
/codebase-mooc:learn Start or continue a learning session
/codebase-mooc:review Process the human review queue
/codebase-mooc:status Full status report
/codebase-mooc:file-incident File an incident for curriculum processing

Skills (auto-activating)

Three skills activate automatically based on context — no commands needed:

codebase-archaeologist — activates when debugging unfamiliar code, explaining how something works, or figuring out where a change belongs. Reads Codebase Memory and grounds responses in the actual system architecture.

curriculum-reviewer — activates when working through the review queue. Loads the evaluation rubric inline so reviewers have criteria in context.

learning-tutor — activates when a developer wants to learn. Reads their learner state and delivers the right content at the right depth.

CI/CD integration

For teams that want curriculum updates on every merge to main:

# .github/workflows/mooc-update.yml
name: Update Codebase MOOC

on:
  push:
    branches: [main]

jobs:
  update-curriculum:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - uses: actions/setup-python@v5
        with:
          python-version: '3.11'
      - run: pip install anthropic gitpython -q
      - name: Update curriculum
        env:
          ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
        run: |
          python3 .codebase-mooc/scripts/coordinator.py --process-queue
      - name: Commit curriculum updates
        run: |
          git config user.name "codebase-mooc"
          git config user.email "mooc@ci"
          git add .codebase-mooc/curriculum/ .codebase-mooc/memory/codebase/
          git diff --staged --quiet || \
            git commit -m "chore(mooc): curriculum update [$(git rev-parse --short HEAD)]"
          git push

Requirements

  • Claude Code
  • Python 3.9+
  • git

Privacy

Source code and git history from your project are sent to the Anthropic API during curriculum generation. This is governed by your Anthropic account's data handling terms.

Learner data is stored locally only. It is gitignored by default and never leaves the developer's machine.

Part of the Code & Comprehension series

This plugin is the technical implementation described in the Code & Comprehension series on Medium — a series on AI, engineering knowledge, and the responsibility we carry toward the developers who come after us.

  • Part 1: The Quiet Catastrophe — Why AI-assisted development without a strategy for preserving human understanding leads to a civilisational dependency crisis.
  • Part 2: The Antidote — The case for AI-generated comprehension: an embedded MOOC that turns any codebase into a self-teaching system.

About

I-generated engineering education embedded in your codebase. Takes any developer from novice to owner without going anywhere else.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages