by pedrohcgs
A ready-to-fork Claude Code template for academic research — papers, data analysis (R, Stata, Python), slides and teaching — with multi-agent review, enforced quality gates and replication protocols. Codex and Antigravity can use it too.
# Add to your Claude Code skills
git clone https://github.com/pedrohcgs/claude-code-my-workflowGuides for using ai agents skills like claude-code-my-workflow.
Last scanned: 11/28/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-11-28T22:24:58.579Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}claude-code-my-workflow is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by pedrohcgs. A ready-to-fork Claude Code template for academic research — papers, data analysis (R, Stata, Python), slides and teaching — with multi-agent review, enforced quality gates and replication protocols. Codex and Antigravity can use it too. It has 1,743 GitHub stars.
Yes. claude-code-my-workflow passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/pedrohcgs/claude-code-my-workflow" and add it to your Claude Code skills directory (see the Installation section above).
claude-code-my-workflow is primarily written in HTML. It is open-source under pedrohcgs on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh claude-code-my-workflow against similar tools.
No comments yet. Be the first to share your thoughts!
Actively maintained. A summary of how I use Claude Code for academic work — slides, papers, data analysis, and more — packaged so you can fork it for your own research. See CHANGELOG.md for the latest changes.
Live site: psantanna.com/claude-code-my-workflow
A ready-to-fork foundation for AI-assisted academic work. You describe what you want — lecture slides, a research paper, a data analysis, a replication package — and Claude plans the approach, runs specialized agents, fixes issues, verifies quality, and presents results. Like a contractor who handles the entire job. Extracted from a production PhD course and extended by a growing community.
Before you start: Claude Code, git and Python 3 are the minimum. Python 3 runs the hooks, the gate suite (
./scripts/backtest.sh— 11 checkers) and the quality scorer, and is pre-installed on macOS/Linux. To run the includedHelloWorlddemos end-to-end you also need XeLaTeX (Beamer sample) and Quarto (Quarto sample). R and the GitHub CLI are recommended. Full list in Prerequisites below. Fastest path: clone first, then run./scripts/validate-setup.sh— it reports exactly what's missing with install links.Only need Python/R/markdown? You don't need XeLaTeX or Quarto. The agents, rules, skills, and orchestration patterns work for any text/code artifact. Skip the
HelloWorlddemos and head straight to/data-analysis,/review-paper,/lit-review, or/review-r.Session 2 onwards: MEMORY.md (committed) collects generic
[LEARN]entries that help all forkers; machine-specific notes accumulate in Claude Code's native auto memory (~/.claude/projects/<project>/memory/, machine-local, never committed). See.claude/rules/meta-governance.mdfor the distinction.
Unpublished work? Choose before you copy. GitHub keeps a fork of a public repository public, and its visibility cannot be changed. For a paper, data or anything not yet public, click Use this template on the repository page instead, set the new repository to Private, and clone that one: git clone https://github.com/YOUR_USERNAME/YOUR_REPO.git my-project. Fork only for work that can be public.
# Fork this repo on GitHub (click "Fork" on the repo page), then:
git clone https://github.com/YOUR_USERNAME/claude-code-my-workflow.git my-project
cd my-project
./scripts/validate-setup.sh # reports missing tools with install links
Replace YOUR_USERNAME with your GitHub username.
claude
Using VS Code? Open the Claude Code panel instead. Everything works the same — see the full guide for details.
Using Codex (now also a tab in the ChatGPT desktop app) or Antigravity? Start with AGENTS.md. Those agents read the skills in .agents/skills/: generated wrappers that point to the real instructions in .claude/skills/, for every skill one agent can run end to end. Claude Code's deny rules and guard hooks do not apply to them, so AGENTS.md lists what they must do by hand; the pre-commit gate and CI still apply. Skills built on several independent reviewers (/review-paper --peer, /seven-pass-review, /verify-claims) and the ones that manage Claude Code itself stay Claude-only — the list and the reasons are in scripts/sync-agent-skills.py.
Avoid prompt fatigue. On Claude Code ≥ 2.1.283, new interactive terminal and VS Code sessions start in auto mode by default (a classifier approves routine actions and prompts on risky ones). Where auto mode is unavailable, this template's
.claude/settings.jsonships broad allow rules (Edit(**),Write(**),Bash(*)), so routine work inside the repo runs unprompted. It does not setpermissions.blockWritesOutsideWorkingDirectories(removed in v2.9.1), so Claude can change.claude/settings*.jsonitself. To turn that block on, add"blockWritesOutsideWorkingDirectories": trueunderpermissions(Claude Code ≥ 2.1.314): Claude's file tools then refuse writes outside the working directories and every write to a Claude Code settings file, even inside the repository, and the worktree tools (EnterWorktree,ExitWorktree) leave the session. Atruein any settings file applies, and lifting it takes a restart. If you still see prompts, pressShift+Tabto switch to Auto-accept edits (claude --permission-mode acceptEdits). For container/VM Bypass mode or restricted-datadenyrules, see TROUBLESHOOTING.md.
Then paste the starter prompt from the guide, filling in your project details:
I am starting to work on [PROJECT NAME] in this repo. [Describe your project in 2–3 sentences.] I've set up the Claude Code academic workflow... Please read the configuration files and adapt them for my project. Enter plan mode and start.
The full guide has the complete starter prompt with all the details.
What this does: Claude reads all the configuration files, fills in your project name, institution, and preferences, then enters contractor mode — planning, implementing, and (within the skill you invoke) running the review + verify loop. You approve the plan, invoke a skill, and the skill handles the rest within its scope.
Heavily adapting CLAUDE.md for a non-academic project? Anthropic's built-in
/initcommand will re-derive aCLAUDE.mdfrom your codebase as a starting point. The pre-shipped CLAUDE.md in this template already covers the academic setup — you only need/initif your fork diverges substantially (e.g., a Python/ML project that doesn't use LaTeX or Quarto).
Before building real lectures, confirm your environment works:
./scripts/validate-setup.sh # Checks XeLaTeX, Quarto, Python, git, etc.
Then inside Claude:
/compile-latex HelloWorld # Compiles Slides/HelloWorld.tex to PDF
/deploy HelloWorld # Renders Quarto/HelloWorld.qmd to HTML
If both succeed, delete Slides/HelloWorld.tex and Quarto/HelloWorld.qmd and start on your real work.
You don't craft a perfect prompt — you state a goal and let the work loop toward it under gates. Specialist agents do the labor; enforcing gates decide when it's good enough; you adjudicate the disagreements they surface. Three things make that trustworthy:
Real gates, not reminders. One command — ./scripts/backtest.sh — runs eleven gates: surface-sync, skill integrity, model currency against the SSoT, link and anchor resolution, Agent Skills spec conformance, staleness (including source-vs-published divergence), repo hygiene, derived counts (enumerable claims re-counted from disk), ledger coverage (the qualification ledger and the checks that actually run must agree in both directions, and every hook declared in settings must exist and be invocable), a seeded hook battery (every active guard hook is re-fired against the failure it targets, alongside clean controls, on every run), and a cross-platform portability suite (path, encoding, line-ending and git-output cases). A version-controlled pre-commit hook (./scripts/install-hooks.sh) runs it plus the quality check (≥80) on every commit. In the session, destructive git commands are refused by permission deny rules in .claude/settings.json, which Claude Code checks itself, with no hook process. Two PreToolUse hooks remain, and Claude Code starts each only for the commands it checks: dirty-tree-guard for git merge, pull and rebase, and issue-guard for gh. Only issue-guard is registered with "onFailure": "block" (Claude Code ≥ 2.1.295), so a machine without python3 no longer has Bash, Edit and Write blocked; its gh commands are refused until python3 works. The review runtime also re-checks any reviewer-introduced "fatal" finding before it counts.
The deny rules refuse git reset --hard, every git clean (dry runs included), git push --force and -f (--force-with-lease still runs), git add -A, --all and . wherever they appear among the arguments, and a checkout or restore of the whole tree (git checkout ., git checkout -- ., git checkout HEAD -- ., git restore ., git restore -- .; also git restore --staged ., which only unstages). They also refuse reads and edits of .env files and reads of *.pem, *.key and credentials* files. Claude Code applies a deny rule to every part of a compound command, including a subshell or a $(…) substitution, strips wrappers such as timeout and nohup, and keeps it in every permission mode. It does not match a rewritten spelling (git -C . push --force, git -c x=y push, /usr/bin/git, bash -c '…'), and Anthropic's permissions docs call Bash deny rules a guard on the invocation Claude usually produces, not a security boundary. dirty-tree-guard refuses a merge, pull or rebase while tracked files have uncommi