whatisgithub

What is programming-as-theory-building-skill?

anamkwon/programming-as-theory-building-skill — explained in plain English

Analysis updated 2026-05-18

22PythonAudience · developerComplexity · 2/5Setup · easy

In one sentence

A Claude Code plugin that guides an AI coding assistant to build a mental model of a codebase before making changes, based on a 1985 theory of programming.

Mindmap

mindmap
  root((repo))
    What it does
      Claude Code plugin
      Theory building checklist
      Grounded in 1985 paper
    Tech stack
      Claude Code
      Python
    Checklist rules
      Rebuild mental model
      Place code near similar code
      Avoid unneeded flexibility
    Evidence
      Benchmark results
      Compared to no plugin
    Use cases
      Better AI code changes
      Works with other AI tools

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Install a plugin that makes Claude Code reason more carefully before editing code.

USE CASE 2

Compare benchmark results of different Claude Code plugins on coding quality.

USE CASE 3

Apply the plugin's checklist rules to other AI coding tools.

What is it built with?

Claude CodePython

How does it compare?

anamkwon/programming-as-theory-building-skillagno-agi/agent-platform-railwayalexantaluo0/acot-vla-wm
Stars222222
LanguagePythonPythonPython
Setup difficultyeasymoderatehard
Complexity2/54/55/5
Audiencedeveloperdeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

So what is it?

This project is a plugin for Claude Code, an AI coding assistant, that tries to make the AI produce better code by grounding its work in a concept from a 1985 paper by computer scientist Peter Naur. The central idea from that paper is that when programmers build software, the most important thing they create is not just the code itself but their mental model of why the code is shaped the way it is: what rules it protects, what boundaries exist, and where future changes belong. The plugin tries to pass some of that discipline to an AI agent before it starts writing. The problem the plugin addresses is that coding AIs often write code that looks correct at first glance but misses the deeper reason a piece of logic exists. They may add a new helper function in the wrong place, write tests that pass without actually checking the business rule, or introduce abstractions that are not needed yet. This plugin adds a checklist of questions the AI must work through before making non-trivial changes: rebuild the mental model of what the code does, place new code next to the most similar existing code, keep changes small and focused, avoid adding flexibility that is not yet needed, and write verification tied to actual behavior rather than just syntax. The repository includes benchmark results comparing code generated by Claude Haiku with this plugin enabled, with a different plugin (by Andrej Karpathy), and with no plugin at all. Across the three prompt families tested, the theory-building plugin scored highest in weighted averages, with the biggest gains showing up in executability and test quality. The advantage was most visible with looser prompts where the AI had to infer more rules on its own. Installing the plugin is straightforward: it can be added through the Claude Code plugin marketplace with two commands, or installed manually by copying a single file into your Claude configuration folder. It also works with other AI coding tools by copying its rules into the appropriate config file for each tool. The benchmark data, raw results, and per-run notes are included in the repository under a benchmark folder for anyone who wants to inspect the methodology or reproduce the runs.

Copy-paste prompts

Prompt 1
Help me install this Claude Code plugin from the marketplace.
Prompt 2
Explain the theory building checklist this plugin adds to Claude Code.
Prompt 3
Show me the benchmark results comparing this plugin to no plugin.
Prompt 4
Help me adapt this plugin's rules for a different AI coding tool.

Frequently asked questions

What is programming-as-theory-building-skill?

A Claude Code plugin that guides an AI coding assistant to build a mental model of a codebase before making changes, based on a 1985 theory of programming.

What language is programming-as-theory-building-skill written in?

Mainly Python. The stack also includes Claude Code, Python.

How hard is programming-as-theory-building-skill to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is programming-as-theory-building-skill for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.