agentleFS
pedrohcgspedrohcgs/claude-code-my-workflow/CLAUDE.md

claude-code-my-workflow

CLAUDE.md1.6k starsChanged 2 months agoMITView on GitHub

Project: [YOUR PROJECT NAME] Institution: [YOUR INSTITUTION] Branch: main Do exactly what was asked — nothing adjacent. Do not add README files, build scripts, .gitignore edits, helper utilities, or extra tooling that was not requested. If an addition looks valuable, list it as a suggestion at the end and let the user decide. A request for a codebook is a request for a codebook. Delivering a codebook plus a README plus build scripts plus gitignore edits means the user now…

Trending

Less talk lately.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 2 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 5 mentionsAug 2026: 2 mentionsSep 2026: 1 mentionOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the pedrohcgs/claude-code-my-workflow repository that our weekly crawl found: only 11 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about pedrohcgs/claude-code-my-workflow

The biggest 5 of 11 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 11

Talked about on GitHub and Bluesky (11 times).

On GitHub · 9

4 more on GitHub

On Bluesky · 2

The file

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

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep this file under ~200 lines (official guidance) — Claude loads it every session.

    line 5
  2. Very specific:

    Do exactly what was asked — nothing adjacent: Do not add README files, build scripts, .gitignore edits, helper utilities, or extra tooling …

    line 16
  3. Distinctive:

    Delete the rows marked "(example — delete)" once you've added yours.

    line 140

≈ “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 -- Academic Project Development with Claude Code

<!-- HOW TO USE: Replace [BRACKETED PLACEHOLDERS] with your project info. Customize Beamer environments and CSS classes for your theme. Keep this file under ~200 lines (official guidance) — Claude loads it every session. See the guide at docs/workflow-guide.html for full documentation. -->

Project: [YOUR PROJECT NAME] Institution: [YOUR INSTITUTION] Branch: main


Scope Discipline

Do exactly what was asked — nothing adjacent. Do not add README files, build scripts, .gitignore edits, helper utilities, or extra tooling that was not requested. If an addition looks valuable, list it as a suggestion at the end and let the user decide.

A request for a codebook is a request for a codebook. Delivering a codebook plus a README plus build scripts plus gitignore edits means the user now has to review four things to accept one, and the usual outcome is that all four get thrown away.

Before adding anything not named in the request, ask. One line is cheaper than a revert.


Core Principles

  • Plan first -- enter plan mode before non-trivial tasks; save plans to quality_reports/plans/
  • Verify after -- when a task changes a .tex, .qmd, or .R file, compile or render it and confirm the output before reporting done
  • Single source of truth -- Beamer .tex is authoritative; Quarto .qmd derives from it
  • Quality gates -- nothing ships below 80/100
  • [LEARN] tags -- when corrected, save [LEARN:category] wrong → right to MEMORY.md

Cross-session context lives in MEMORY.md; past plans, specs, and session logs are in quality_reports/.

How we verify — the references and rules that carry the verification discipline:

  • verification-ladder.md — the seven rungs, from qualify the checker to the external oracle, and how the review loop converges.
  • external-oracle-process.md — running an independent frontier-model referee (Claude Code → another vendor's model via the Oracle CLI; current targets in its §2) and adjudicating what it returns.
  • provenance-and-ground-truth.md — naming and pinning your oracles, classifying divergence, and the clean-room boundary.
  • review-fencing.md — reviewer independence is a property of the environment, not an instruction: a neutral copy outside the checkout, prior verdicts withheld, and the answer keys the repo already commits fenced off.
  • release-engineering.md — shipping research software: message and silent-resolution censuses, frozen feature matrices for ports, hash-claimed inherited tests, and downstream consumers pinned by commit SHA.

How we write — writing-with-ai.md: internal vs external-facing documents, why a model cannot make its own output stop reading as model output, and the human-readable standard for anything with your name on it.

Theory work — theory-proving.md: proof contracts, portfolio search with isolated explorers, counterexample-hunting your own lemmas, adversarial audits, and the rule that an AI-generated proof is a claim, not a theorem.

The laws — research-agent-laws.md: 21 laws for running agents on research infrastructure, each paid for by a real incident.

How we remember — the record lives in the repo, not the transcript:

  • progress-reports.md — GitHub issues as defect memory, quality_reports/ as work memory, MEMORY.md as lesson memory.
  • issue-ledger.md — every shipped bug, deferred improvement and blocking owner decision gets a GitHub issue, closed by hand when the fix lands; the evidence standard and the closing comment.
  • repo-hygiene.md — scratch must not become main. Enforced by check-repo-hygiene.py on every commit.

Nothing clears work until it has a row in quality_reports/qualification/LEDGER.md — run /vaccinate to put one there.


Folder Structure

[YOUR-PROJECT]/
├── CLAUDE.MD                    # This file
├── .claude/                     # Rules, skills, agents, hooks
├── Bibliography_base.bib        # Centralized bibliography
├── Figures/                     # Figures and images
├── Preambles/header.tex         # LaTeX headers
├── Slides/                      # Beamer .tex files
├── Quarto/                      # RevealJS .qmd files + theme
├── docs/                        # GitHub Pages (auto-generated)
├── scripts/                     # Utility scripts + analysis code (numbered stages)
├── output/                      # Generated tables, figures, logs (created by the code)
├── quality_reports/             # Plans, session logs, merge reports, decision records
├── explorations/                # Research sandbox (see rules)
├── templates/                   # Session log, quality report templates
└── master_supporting_docs/      # Papers and existing slides

Commands

# LaTeX (3-pass, XeLaTeX only)
cd Slides && TEXINPUTS=../Preambles:$TEXINPUTS xelatex -interaction=nonstopmode file.tex
BIBINPUTS=..:$BIBINPUTS bibtex file
TEXINPUTS=../Preambles:$TEXINPUTS xelatex -interaction=nonstopmode file.tex
TEXINPUTS=../Preambles:$TEXINPUTS xelatex -interaction=nonstopmode file.tex

# Deploy Quarto to GitHub Pages
./scripts/sync_to_docs.sh LectureN

# Quality score
python3 scripts/quality_score.py Quarto/file.qmd

# Palette sync (LaTeX ↔ SCSS)
./scripts/check-palette-sync.sh

# Backtest: is the repo internally consistent and currently true?
# (surface-sync + skill-integrity + model-versions + links + spec-conformance + staleness + repo-hygiene + derived-counts + ledger-coverage + hook-battery)
# Run this after ANY change. Also runs in pre-commit and CI.
./scripts/backtest.sh

Palette contract: color names in Preambles/header.tex must match SCSS variables in Quarto/theme-template.scss. See Preambles/README.md.


Quality Thresholds (advisory)

ScoreCheckpointMeaning
80CommitGood enough to save
90PRReady for deployment
95ExcellenceAspirational

Enforced by /commit (halts + asks for override) and — once you run ./scripts/install-hooks.sh — by a real git pre-commit hook (.githooks/pre-commit) that runs the backtest gate suite (the hook battery only when a hook, its settings or the battery itself is staged; CI always runs everything) plus the quality (≥80) gate on every commit. Bypass sparingly with SKIP_QUALITY_GATE=1 or --no-verify.


Skills Quick Reference

The full table of all skills lives in README.md. Most-used, by workflow:

  • Slides / teaching: /create-lecture /compile-latex /deploy /qa-quarto /slide-excellence /syllabus /teach-from-paper /scaffold-exercises
  • Papers / review: /review-paper (--peer) /seven-pass-review /respond-to-referees /verify-claims /proofread /humanize /submission-disclosures
  • Data / reproducibility: /data-analysis /simulation-study /audit-reproducibility /diagnose /replication-package /capture-environment /power-analysis /disclosure-check
  • Research / writing: /interview-me /lit-review /research-ideation /preregister /grant-proposal /data-management-plan
  • Verification / rigor: /vaccinate /challenge /oracle-review /adjudicate-review /differential-audit /blast-radius /verify-artifact /credible-claims /deep-audit
  • Meta / workflow: /commit /learn /new-skill /checkpoint /context-status /deep-audit /coauthor-brief /triage-inbox /issues

Stata (/stata-replication), R packages (/r-package-check), TikZ (/extract-tikz, /new-diagram), and more — see the README for the complete index.


<!-- CUSTOMIZE: Replace placeholder rows ([your-env], [.your-class]) with your own. Delete the rows marked "(example — delete)" once you've added yours. -->

Beamer Custom Environments

EnvironmentEffectUse Case
[your-env][Description][When to use]
keyboxGold background boxKey points (example — delete)
definitionbox[Title]Blue-bordered titled boxFormal definitions (example — delete)

Quarto CSS Classes

ClassEffectUse Case
[.your-class][Description][When to use]
.smaller85% fontDense content (example — delete)
.positiveGreen boldGood annotations (example — delete)

Current Project State

LectureBeamerQuartoKey Content
HelloWorld (sample — delete when ready)HelloWorld.texHelloWorld.qmdMinimal deck to verify setup
1: [Topic]Lecture01_Topic.texLecture1_Topic.qmd[Brief description]

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.