claude-code-my-workflow is a forkable setup for using Claude Code to produce and review academic papers, slides, data analyses, and replication packages. Researchers use its agents, skills, rules, hooks, and quality checks to coordinate these tasks and verify their results. The catalogue entries define the reusable workflow components for Claude Code.
Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/pedrohcgs/claude-code-my-workflownpx agentmods add skills/pedrohcgs/claude-code-my-workflow/new-diagramWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/pedrohcgs/claude-code-my-workflow/new-diagram)<a href="https://agentmods.dev/skills/pedrohcgs/claude-code-my-workflow/new-diagram"><img src="https://agentmods.dev/badge/skills/pedrohcgs/claude-code-my-workflow/new-diagram/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/pedrohcgs/claude-code-my-workflow/new-diagram"><img src="https://agentmods.dev/badge/skills/pedrohcgs/claude-code-my-workflow/new-diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Agent Snooping · line 140 Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00060 | $0.01848 |
| Opus 5.5 | $0.00024 | $0.00739 |
| Sonnet 5.5 | $0.00012 | $0.00370 |
| Haiku 4.5 | $0.00006 | $0.00185 |
Grade A, and why
new-diagram scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Create a New TikZ Diagram
Scaffold a diagram from templates/tikz-snippets/, check it against the prevention rules, compile standalone, run the reviewer with measurement citations, and loop until the diagram passes. Use this instead of writing TikZ from scratch; the snippets embed the invariants that tikz-prevention.md requires.
Inputs
$0(optional) — snippet name (without.tex). One of the filenames intemplates/tikz-snippets/. If omitted, list the gallery and ask the user to pick.$1(optional) — output path. Defaults toFigures/new_diagram.tex— ask the user if this target exists so we don't clobber.
Workflow
Step 1: Pick a snippet
ls -1 templates/tikz-snippets/*.tex
Current gallery (see templates/tikz-snippets/README.md for descriptions):
dag-basic— 3-node causal DAG (X → Y with confounder U)dag-mediation— X → M → Y with direct pathdid-two-period— two-period difference-in-differencesevent-study— event-time coefficients with 95% CIstimeline— horizontal timeline with staggered eventsregression-scatter— scatter + OLS fit + confidence bandflowchart-3step— vertical flow with decision diamondsupply-demand— supply/demand with shifted demand
If $0 is not one of these, or is omitted, ask the user which to use.
Step 2: Copy the snippet to the output path
SRC="templates/tikz-snippets/$0.tex"
DST="${1:-Figures/new_diagram.tex}"
# Confirm before overwriting
if [ -f "$DST" ]; then
echo "Output path already exists: $DST"
# Ask the user whether to overwrite. Do NOT clobber silently.
fi
mkdir -p "$(dirname "$DST")"
cp "$SRC" "$DST"
Step 3: Edit the content to fit the user's intent
Ask the user what the diagram should show. Edit $DST with the Edit tool:
- Update the comment block at the top so the intent sentence matches the user's goal.
- Update the coordinate map comment if coordinates change.
- Rename nodes and edit labels. Keep node style (
dag-node,flow-node, etc.) unless the meaning actually changes. - Do not add a bare
scale=Xto the tikzpicture options. Coordinates shrink, text does not — collisions follow. Allowed forms:scale=X, every node/.style={scale=X}orscale=X, transform shape. Seetikz-prevention.mdP3 for the full rule andtikz-visual-quality.mdfor thescale=1.1convention. - Every new edge label must carry a directional keyword (
above,below,left,right,above left, etc.).midwayalone is a path position, not a direction — P4 violation.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · -1 lines a86355d9e670
- 1mo ago First seen · 142 lines · 60 tokens per session scan A ed8c7c515949
new-diagram is a skill published in the GitHub repository pedrohcgs/claude-code-my-workflow (1,672 stars, last pushed 1mo ago), licensed MIT. It adds 60 tokens to every session and 1,848 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
aer-consistency
Use when auditing a finished or near-finished AER, AER:Insights, or AEJ manuscript for internal consistency: headline numbers across abstract, introduction, results, and tables; sample sizes; log-point and percentage-point conversions; cross-references; and in-text-citation/bibliography matching. Apply after the body…
aeja-tables-figures
Use when building or revising the exhibits of an American Economic Journal: Applied Economics (AEJ: Applied) manuscript so the main causal result is legible in one table or figure and respects AEA house presentation norms. Formats exhibits; it does not establish the result (aeja-identification / aeja-robustness) or…
aejpol-replication-package
Use when assembling the data and code deposit for an AEJ: Economic Policy manuscript to satisfy the AEA Data and Code Availability Policy and the AEA Data Editor's pre-publication reproducibility check. Builds the openICPSR deposit, README, and restricted-data access paths; it does not run the analysis or write the…
aejmac-tables-figures
Use when building or revising exhibits for an American Economic Journal: Macroeconomics (AEJ: Macro) manuscript — impulse-response figures, fan charts, model-fit overlays, and regression/moment tables — to AEA house standards and macro conventions. Formatting and clarity; it does not generate the underlying estimates.
aaai-artifact-evaluation
Use when packaging AAAI code, data, multimedia appendices, technical appendices, reproducibility evidence, and post-acceptance artifact releases without violating double-blind or immutable-supplement rules.
fin-paper-convert
Compile LaTeX to PDF and convert to target journal format.