A set of five governance files that define how agents and authors build, test, and publish labs in this catalog. Drop them into any lab project to enforce consistent structure, difficulty labeling, code quality, and testing across every lab.
| File | Purpose |
|---|---|
files/CONSTITUTION.md |
The source of truth: 12-section lab structure, code quality rules (CQ-1…CQ-10), difficulty standards, and the pre-publish checklist. Versioned with semantic versioning. |
files/AGENTS.md |
Operating procedures for an AI agent: how to create, test, review, and edit labs while staying compliant with the constitution. Defines the five-gate lab validation workflow. |
files/CLAUDE.md |
Quick start guide for Claude Code users: how to fetch these files, use them in Claude Code workflows, common workflows, and troubleshooting. |
files/GUIDELINES.md |
Practical how-to: writing each section well, Mermaid diagrams, the !pip install first cell, the assignment file, common pitfalls, and quick-reference checklists. |
files/TEST.md |
Comprehensive testing guide: general test-case design, the TDD cycle (RED → GREEN → REFACTOR), running tests, and troubleshooting. |
- Fetch the files into your lab repo (see fetch commands below).
CONSTITUTION.md— treat as the governing document. Every lab must follow the 12-section structure and clear the pre-publish checklist.AGENTS.md— place at the repo root (or where your agent looks) so AI agents follow the create/test/review workflow automatically.GUIDELINES.md— reference while building: section writing, difficulty signaling, Mermaid diagrams, dependency install cells, and assignment files.TEST.md— consult while testing: test-case design, the TDD cycle, and pytest commands.
git clone https://github.com/CogKnowEdge-Solutions/Comprehensive-Principle.gitUse this if you're not using an AI agent and want just the governance framework.
curl -s https://raw.githubusercontent.com/CogKnowEdge-Solutions/Comprehensive-Principle/main/files/CONSTITUTION.md -o CONSTITUTION.md \
&& curl -s https://raw.githubusercontent.com/CogKnowEdge-Solutions/Comprehensive-Principle/main/files/GUIDELINES.md -o GUIDELINES.md \
&& curl -s https://raw.githubusercontent.com/CogKnowEdge-Solutions/Comprehensive-Principle/main/files/TEST.md -o TEST.mdUse this if you're building labs with Claude Code. Includes CLAUDE.md (quick-start guide) and AGENTS.md (automation workflows).
curl -s https://raw.githubusercontent.com/CogKnowEdge-Solutions/Comprehensive-Principle/main/files/AGENTS.md -o AGENTS.md \
&& curl -s https://raw.githubusercontent.com/CogKnowEdge-Solutions/Comprehensive-Principle/main/files/CLAUDE.md -o CLAUDE.md \
&& curl -s https://raw.githubusercontent.com/CogKnowEdge-Solutions/Comprehensive-Principle/main/files/CONSTITUTION.md -o CONSTITUTION.md \
&& curl -s https://raw.githubusercontent.com/CogKnowEdge-Solutions/Comprehensive-Principle/main/files/GUIDELINES.md -o GUIDELINES.md \
&& curl -s https://raw.githubusercontent.com/CogKnowEdge-Solutions/Comprehensive-Principle/main/files/TEST.md -o TEST.mdUse this if you're using an AI agent other than Claude Code. Includes AGENTS.md (automation workflows) but excludes CLAUDE.md.
curl -s https://raw.githubusercontent.com/CogKnowEdge-Solutions/Comprehensive-Principle/main/files/AGENTS.md -o AGENTS.md \
&& curl -s https://raw.githubusercontent.com/CogKnowEdge-Solutions/Comprehensive-Principle/main/files/CONSTITUTION.md -o CONSTITUTION.md \
&& curl -s https://raw.githubusercontent.com/CogKnowEdge-Solutions/Comprehensive-Principle/main/files/GUIDELINES.md -o GUIDELINES.md \
&& curl -s https://raw.githubusercontent.com/CogKnowEdge-Solutions/Comprehensive-Principle/main/files/TEST.md -o TEST.mdcurl -o AGENTS.md https://raw.githubusercontent.com/CogKnowEdge-Solutions/Comprehensive-Principle/main/files/AGENTS.md
curl -o CLAUDE.md https://raw.githubusercontent.com/CogKnowEdge-Solutions/Comprehensive-Principle/main/files/CLAUDE.md
curl -o CONSTITUTION.md https://raw.githubusercontent.com/CogKnowEdge-Solutions/Comprehensive-Principle/main/files/CONSTITUTION.md
curl -o GUIDELINES.md https://raw.githubusercontent.com/CogKnowEdge-Solutions/Comprehensive-Principle/main/files/GUIDELINES.md
curl -o TEST.md https://raw.githubusercontent.com/CogKnowEdge-Solutions/Comprehensive-Principle/main/files/TEST.mdIf you're using Claude Code to build or maintain labs with this governance:
- Fetch
CLAUDE.md— it's a quick-start guide tailored for Claude Code workflows, showing how to invoke Claude Code, common workflows (create, test, edit), tips for consistency, and troubleshooting. - Place all five files at your lab project root — Claude Code will automatically read
AGENTS.mdand follow the workflows defined there. - Invoke Claude Code from your lab directory:
Claude Code will then follow the five-gate testing workflow, enforce line ceilings and section structure, and manage the full lab lifecycle.
claude
See files/CLAUDE.md for detailed workflows, tips, and guidance specific to Claude Code.
A lab ships as three files with the same slug in one folder:
lab-<topic-slug>.ipynb(or.py) — the runnable codelab-<topic-slug>.md— the 12-section narrativelab-<topic-slug>-assignment.md— knowledge-check exercises with an answer key
The notebook starts with a single !pip install cell, includes at least one Mermaid diagram for any pipeline/flow concept, and passes all five gates (fresh environment, run-all, output verification, optional exercise, reviewer walkthrough) defined in AGENTS.md before publishing.