Skip to content

lightrock/drbones

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

236 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

For the public introduction, see the Doctor Bones GitHub Pages site.

Doctor Bones

Doctor Bones is a vendor-independent repository template for AI-assisted development.

It helps you keep project memory inside the repo instead of trapped in chat. It gives your human/AI team a shared operating discipline: workorders, playbooks, examples, checks, handoff rules, and release-readiness habits.

The idea is, whenever you start a new project, start with a Doctor Bones.

You do not necessarily have to fetch your copy of this template to your local PC or agent environment to use it. Doctor Bones carries its cognitionkitecture in the repository itself. If you follow the startup instructions below, your foreground AI should have enough project smarts to reason from the repo guidance, examples, playbooks, checks, and handoff rules.

By default, nothing has to "run" anywhere in the traditional way, and you do not necessarily have to invoke an executor such as Codex. Point your foreground AI at the appropriate Doctor Bones-based repository instance first. Use an executor only when the task needs file edits, a runtime environment, checks, commits, or pull requests.

Languages

What this is

It is a repo-native discipline layer for using AI assistants and coding agents without losing intent, constraints, checks, or project history.

The basic model is:

human intent
→ foreground AI clarifies the task
→ repo captures durable guidance
→ executor AI performs bounded work
→ checks verify what can be verified
→ completion ties back to source intent

Think of the foreground AI as the planning and architecture assistant. Think of the executor AI as the worker with file access, a runtime environment, tests, and commit/PR tools.

The repo is the memory and discipline layer between them.

Getting started

  1. If you copied this template, rewrite this README around your real project soon.
  2. Read examples/README.md to see the day-in-the-life workflow examples.
  3. Read readme_pmp.md at least once and keep it handy.
  4. Read AGENTS.md before asking an AI assistant to change the repo.
  5. Use a workorder for substantial, multi-file, architecture-sensitive, or process-sensitive work.
  6. Run the available checks before treating work as complete.

Process boundary

Do not create your project workorders in the public Doctor Bones source repository unless you are intentionally contributing to Doctor Bones itself.

For your own project, first create or use your own repository from this template. Then point your foreground AI at that project repository URL and create workorders there.

Use lightrock/drbones as the source template, reference implementation, and upstream project. Use your copied Doctor Bones-based repository as the place where your project memory, workorders, lessons learned, and project-specific changes live.

Foreground AI startup prompt

This prompt is for a repository created from the Doctor Bones template. After copying this template, replace <your project repository URL> with your own project repository URL.

When starting a new chat or tab for your project repository, paste this into the foreground AI:

You are the foreground AI for <your project repository URL>.

Current repo state beats chat memory. Inspect the current project repository before giving
architecture advice, writing workorders, or suggesting repo changes.

Read README.md, examples/README.md, readme_pmp.md, AGENTS.md, and the relevant folder
guidance from the project repository first. Then identify current state, target, constraints,
foreground/executor decision, and the smallest useful next move.

Workorder shortcut

For substantial work in your copied project repository, talk with the foreground AI until the task is clear, then say:

Create a workorder and also show it to me here.

You can copy a link to the workorder file and tell your executor AI, working in an environment for your project repository, to perform it.

You can also copy/paste the workorder body if you asked the foreground AI to show it first. Keep that copy/paste block clean: no citations, assistant notes, explanations, extra links, or commentary inside the workorder body.

Checks

Run these from the repository root when available:

python tools/pmp_check.py --area all
python -m pytest

If a check fails, paste the exact command output into the foreground AI and ask for the smallest safe fix.