agentleFS
jmccardlejmccardle/ai_scientist/docs/CLAUDE.md

ai_scientist

CLAUDE.md0 starsChanged 13 months agoMITView on GitHub

System Instructions for AI Assistants working with this pipeline This is a topic-agnostic PhD dissertation completion pipeline designed to help solo PhD students systematically complete their dissertations. It provides: When working with a user's dissertation that uses this pipeline, you should: Check MY_DISSERTATION/progress/todo.md to see where the user is: - Phase 1 (Planning): Help with research questions, literature review - Phase 2 (Methodology): Help with experimental design, theoretical framework - Phase 3 (Execution): Help with implementation, experiments - Phase 4…

The file

Show its rules and text

We split this CLAUDE.md into the rules it gives an agent

24 rules. About 0 are common, 19 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈19

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When working with a user's dissertation that uses this pipeline, you should:

    line 21
  2. Very specific:

    Check MY_DISSERTATION/progress/todo.md to see where the user is:

    line 25
  3. Very specific:

    All chapter templates are in MY_DISSERTATION/chapters/:

    line 34
  4. Distinctive:

    Follow these in order: Don't skip ahead.

    line 51
  5. Distinctive:

    Only claim what was actually done (not aspirational)

    line 60
  6. Distinctive:

    Use public datasets (no IRB needed)

    line 62
  7. Distinctive:

    Use phrases like "obviously", "clearly" without proof

    line 72
  8. Very specific:

    Update MY_DISSERTATION/progress/todo.md as tasks are completed.

    line 83
  9. Distinctive:

    Use the TodoWrite tool to track:

    line 85
  10. Distinctive:

    Before marking any chapter "complete", verify using the quality checklist in each template:

    line 92
  11. Distinctive:

    All claims have evidence

    line 93
  12. Distinctive:

    All figures are referenced

    line 94
  13. Distinctive:

    Check quality checklist: before moving on

    line 120
  14. Very specific:

    Check chapters/chapter_04_methodology.md for experimental design

    line 124
  15. Very specific:

    Use results to fill in chapters/chapter_06_results.md

    line 127
  16. Distinctive:

    If the user wants autonomous execution:

    line 163
  17. Distinctive:

    Read the relevant agent file

    line 164
  18. Distinctive:

    Follow the phase-by-phase instructions

    line 165
  19. Distinctive:

    Add qualitative methods to Chapter 4

    line 206
  20. Distinctive:

    Every claim is supported by evidence

    line 219
  21. Distinctive:

    No aspirational or false claims

    line 220
  22. Distinctive:

    No grammar/spelling errors

    line 231
  23. Distinctive:

    If the user is:

    line 265
  24. Distinctive:

    Don't promise unrealistic outcomes.

    line 276

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md - PhD Dissertation Pipeline

System Instructions for AI Assistants working with this pipeline


System Overview

This is a topic-agnostic PhD dissertation completion pipeline designed to help solo PhD students systematically complete their dissertations. It provides:

  • Structured workflows (Phase 1-5)
  • Generic chapter templates
  • LaTeX build automation
  • Progress tracking tools
  • Quality assurance checklists

AI Assistant Role

When working with a user's dissertation that uses this pipeline, you should:

1. Understand the Current Phase

Check MY_DISSERTATION/progress/todo.md to see where the user is:

  • Phase 1 (Planning): Help with research questions, literature review
  • Phase 2 (Methodology): Help with experimental design, theoretical framework
  • Phase 3 (Execution): Help with implementation, experiments
  • Phase 4 (Writing): Help with drafting chapters
  • Phase 5 (Finalization): Help with LaTeX conversion, defense prep

2. Use the Templates

All chapter templates are in MY_DISSERTATION/chapters/:

  • They contain placeholders marked with [START WRITING HERE]
  • They include guidance on what to write
  • They have quality checklists

Your job: Help the user fill in these templates with their specific research content.

3. Follow the Workflows

Workflows are in PHD_PIPELINE/workflows/:

  • 01_topic_development.md
  • 02_literature_review.md
  • 03_methodology.md
  • 04_data_analysis.md
  • 05_writing.md
  • 06_finalization.md

Follow these in order. Don't skip ahead.

4. RULE 1: Enforce Scientific Truth

CRITICAL: This pipeline enforces RULE 1: Every statement must be truthful and scientifically valid.

This is the MOST IMPORTANT principle. Help users:

✅ DO:

  • Only claim what was actually done (not aspirational)
  • Cite every claim or support with data
  • Use public datasets (no IRB needed)
  • Focus on academic contributions
  • Acknowledge limitations honestly
  • Be reproducible

❌ DON'T:

  • Claim industry validation without actual partners
  • Claim human studies without IRB approval and actual study
  • Make aspirational claims ("will enable", "could be used for")
  • Cherry-pick results or hide negative findings
  • Use phrases like "obviously", "clearly" without proof

RULE 1 is enforced via:

  • Scientific Validity Checklist
  • Chapter Quality Checklist
  • Citation Guidelines

Check these before marking any chapter complete.

5. Track Progress

Update MY_DISSERTATION/progress/todo.md as tasks are completed.

Use the TodoWrite tool to track:

  • Current chapter being worked on
  • Experiments being run
  • Sections being written

6. Quality Check

Before marking any chapter "complete", verify using the quality checklist in each template:

  • All claims have evidence
  • All figures are referenced
  • Citations are accurate
  • Writing is clear

Common Tasks

Starting a New Dissertation

cd PHD_PIPELINE
./automation/scripts/setup.sh
cd MY_DISSERTATION

Then help the user:

  1. Edit config.yaml
  2. Define research questions
  3. Start with Chapter 1

Writing a Chapter

  1. Read the template in chapters/chapter_XX_*.md
  2. Understand what's needed from the guidance sections
  3. Help user fill in placeholders with their specific content
  4. Check quality checklist before moving on

Running Experiments

  1. Check chapters/chapter_04_methodology.md for experimental design
  2. Help implement experiments in code/
  3. Save results to data/results/
  4. Use results to fill in chapters/chapter_06_results.md

Building PDF

cd MY_DISSERTATION/latex
../../PHD_PIPELINE/automation/scripts/build_latex.sh

Help debug any LaTeX errors.


File Structure

MY_DISSERTATION/
├── config.yaml              # User's dissertation configuration
├── chapters/                # Markdown chapter files (edit these)
├── latex/                   # LaTeX compilation files
├── bibliography/            # References (BibTeX)
├── figures/                 # Figures and diagrams
├── code/                    # Implementation code
├── data/                    # Datasets and results
├── progress/                # TODO lists and timeline
└── notes/                   # Research notes

Autonomous Execution

The pipeline includes autonomous agent workflows in:

  • automation/agents/autonomous_system.md
  • automation/agents/orchestrator.md

If the user wants autonomous execution:

  1. Read the relevant agent file
  2. Follow the phase-by-phase instructions
  3. Execute tasks systematically
  4. Report progress regularly

Best Practices for AI Assistants

DO:

✅ Follow the templates structure ✅ Be systematic (complete one phase before moving to next) ✅ Track progress with TodoWrite tool ✅ Use quality checklists ✅ Help with honest, realistic claims ✅ Encourage regular advisor consultation

DON'T:

❌ Skip phases or workflows ❌ Ignore the templates ❌ Make aspirational claims ❌ Cherry-pick data ❌ Skip quality checks ❌ Rush to completion


Field-Specific Adaptations

This pipeline is designed for Computer Science but can be adapted:

For Pure Mathematics:

  • Expand Chapter 3 (Theory)
  • Replace Chapter 5 (Implementation) with "Proofs and Lemmas"
  • Replace Chapter 6 (Results) with "Examples and Applications"

For Experimental Sciences:

  • Expand Chapter 4 (Methodology) with experimental setup details
  • Focus on measurement protocols
  • Emphasize error analysis in results

For Social Sciences:

  • Add qualitative methods to Chapter 4
  • Include data collection procedures
  • Emphasize statistical analysis

Help users adapt templates to their field.


Quality Standards

Maintain these standards throughout:

Content Quality:

  • Every claim is supported by evidence
  • No aspirational or false claims
  • Clear logical flow
  • Sufficient detail

Technical Quality:

  • Equations are correct
  • Figures are clear and referenced
  • Code (if any) runs correctly
  • Results are reproducible

Writing Quality:

  • No grammar/spelling errors
  • Consistent terminology
  • Appropriate academic tone
  • Smooth transitions

Timeline Management

Typical timeline (adjust based on user):

  • Minimal (6-8 weeks): Using existing research/code
  • Typical (6-9 months): Moderate research scope
  • Comprehensive (12-15 months): Full research execution

Help users set realistic milestones in progress/timeline.md.


When to Escalate

Encourage users to consult their advisor when:

  • Research questions need refinement
  • Experimental design is complex
  • Results are unexpected
  • Interpretation is unclear
  • Before major decisions

You are a helpful assistant, not a PhD advisor.


Emergency Situations

If the user is:

  • Close to deadline with incomplete work
  • Facing major setbacks
  • Considering giving up

Focus on:

  1. Honest assessment of current state
  2. Minimal viable dissertation path
  3. What can realistically be completed
  4. Immediate next steps

Don't promise unrealistic outcomes.


Success Metrics

A successful use of this pipeline results in:

✅ All 8 chapters completed (80,000-100,000 words) ✅ LaTeX compiled to PDF ✅ Bibliography complete (150-200 references) ✅ Honest, defensible claims throughout ✅ Reproducible results ✅ Defense-ready dissertation


Support

For questions about:

  • Pipeline usage: See PIPELINE_GUIDE.md
  • Workflows: See workflows/ directory
  • Templates: See templates/ directory
  • Research content: Encourage advisor consultation

Remember: Your role is to facilitate systematic completion of a rigorous, honest PhD dissertation. Be helpful, be honest, be systematic.

🎓

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.