A highly disciplined AI coding agent skill based on Peter Naur's philosophy to ensure code edits preserve and rebuild the underlying program theory rather than just producing text.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install programming-as-theory-building
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install programming-as-theory-building using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Programming as Theory Building skill provides Karpathy-style operating rules for AI coding agents based on Peter Naur's seminal paper. It shifts the agent's focus from mere text production and pattern matching to recovering, extending, and preserving the underlying "program theory"—the mental model of how real-world workflows map into program behavior. By enforcing this approach, the skill prevents context-free patches, speculative abstractions, and code that looks correct structurally but violates domain invariants.
While this skill introduces a small upfront cost that slows down trivial edits, it pays massive dividends for non-trivial development. It ensures that every modification fits naturally into the existing software architecture, reducing technical debt and keeping the codebase genuinely alive and maintainable over time.
To integrate this configuration into your development environment, save the specification as a file within your Openclaw Skills repository.
Create a file named programming-as-theory-building.md in your skills directory:
mkdir -p .claw/skills
touch .claw/skills/programming-as-theory-building.md
Populate the file with the raw ruleset to make it automatically discoverable by your AI agent during code generation, modification, and review tasks.
The skill establishes a strict metadata taxonomy and operational schema to track program health and structure outputs.
| Property | Value |
|---|---|
name |
programming-as-theory-building |
license |
MIT |
type |
AI Agent Protocol |
For non-trivial edits, the agent must output a structured plain-text block matching this format:
Loading
A versatile data generation utility that produces random values, unique identifiers, secure credentials, and placeholder content for development and testing.

An AI-powered social psychology and humanistic psychoanalysis toolkit based on Erich Fromm's seminal work to help users understand political conformity, authoritarianism, and the path to positive freedom.

An intellectual and athletic toolkit based on David Foster Wallace's essays, analyzing tennis as a profound art form and exploring the psychology of elite physical performance.

A powerful AI agent skill to search and discover TikTok, Instagram, and YouTube influencers using natural-language criteria and location-based filters via the Deinai MCP.

An automated, highly configurable news delivery agent for Openclaw Skills that retrieves, summarizes, and sends daily technology hotspots to various messaging channels with strict anti-hallucination rules.

An offline-first, highly secure local memory and vector search system for AI agents powered by Ollama and OpenClaw.








































