Session 2 - Practical workflows
Leibniz Institute for Financial Research SAFE
Sophia Kazinnik on X (x.com/SophiaKazinnik). Screenshots as posted.
/ in the panel: /review-paper should appear in the list. If it does not, installing the skills takes two minutes; do it now with a neighbour./name runs a skill, a saved workflow; @file points the agent at a file in the folder.
Claude Code needs a paid plan (Pro, Max, Team or Enterprise). On a free account, pair up with a neighbour for the exercises.
Slides, skills and guides for both sessions: claesbackman.com/ai_workshop.
Exercise 1 · a referee report on your own draft10 min
In the Claude Code panel, type /review-paper and the journal you are aiming at, on one line. The draft must be LaTeX or markdown.
Click Allow when it asks to read files or run commands. Then let it run while we talk.
Short on time? Other options are:
/review-paper-light takes about a minute.
/review-paper-checks looks at spelling and grammar, consistency, and unsupported claims.
No skill at all: type Read the paper in this folder and review it as a referee for [journal]: identification, unsupported claims, tables.
Debrief at the end of this block: what did it catch that you would not have seen? What did it get wrong? What did the adversary you launch later find that the report missed?
---
name: review-paper
description: Run a pre-submission referee
report for an academic paper targeting
a specified journal
---
You are coordinating a rigorous pre-submission
review of an academic economics paper. You will
run specialized review agents in parallel and
consolidate their findings into a structured
report.
It lives at .claude/skills/review-paper/SKILL.md in the project, or under ~/.claude/skills/ for every project. Typing /review-paper makes the agent follows the file.
lines of markdown: about ten pages of instructions you can read, fork and edit
reviewers it launches, each with one job
Very easy to make your own skill if you keep repeating prompts: say make this a skill and the agent writes the file.
A text file with a name, a one-line description and the instructions, in any editor.
“Turn rubric.md into a skill called thesis-feedback that assesses one criterion at a time, quotes the evidence and does not rewrite the text.”
At the end of a session that went well: “Save what we just did as a skill, so I can run it again next week.”
Anthropic’s own skill library includes skill-creator, a skill that writes skills and tests them on examples.
Skills follow an open format, Agent Skills, that Claude Code, Codex and GitHub Copilot all read.
Before. “For each criterion, list the weaknesses.”
After. “For each criterion, quote the evidence first. Then name at most one weakness, with a section reference. If the criterion is met, say so.”
Exercise 1b, then debrief2 + 5 min
Feedback becomes cheap enough that you ask for it before submitting, not after the desk reject.
Other tools generate referee reports too: a short list.
Before each supervision meeting, students run /thesis-feedback on their own draft and send them the report.
Teach them to write their own. A skill says what to check, in what order, and what counts as evidence. One assignment: write a skill that checks one rubric criterion, run it on your own draft, and hand in the skill with a paragraph on what it missed.
This deck, and this morning’s, were built with it from a Beamer source, and then edited.
Examples: a housing-returns paper and a paper on financial advice from LLMs. The skill: github.com/claesbackman/AI-research-feedback, Skills/explorable-deck. Adapted from Nityesh Agarwal’s skill for explorable websites.
The deck is built from the paper. A muddled paper gives a fluent deck about the wrong thing.
Practise more than before: making the slides by hand was how you learned your own talk, and that part is gone.
Exercise 2 · an explorable slide deck for a paper10 min
/explorable-deck. Options are none, review and full (full uses more tokens)./explorable-beamer./explorable-pptx.When editing my prose, match the voice in voice.md. Do not use em-dashes, bullet lists, or passive constructions unless the original does. Do not use “it’s not x, it’s y” constructions.
What goes in. Five to ten thousand words of your own prose: introductions, abstracts, paragraphs you are proud of. The skill picks them out of the PDFs you give it.
What stays out. Coauthored passages that are not yours. Anything AI-edited.
Where it goes. Next to CLAUDE.md. Point at it from there, so every session loads your voice, or with @voice.md only when editing, to keep the permanent window small. The files that hold durable context.
Exercise 3 · /voice-extractor15 min
sample-papers with three or four PDFs of your own writing. Coauthored? Pick the papers where the introduction is yours./voice-extractor sample-papers. No skill? Type Read the PDFs in sample-papers and write voice.md: how I build paragraphs, sentence length, words I use and avoid, with quoted examples.voice.md and delete or edit anything that does not sound like you.CLAUDE.md: “When editing my prose, match the voice in voice.md.” No CLAUDE.md yet? Type /init first.
Debrief: which sentence in voice.md did you delete first? Did it name a habit you did not know you had?
What comes back
A diagnosis of the idea flow first. Then two or three rewrites that differ in how far they restructure, and a short note on the trade-off between them. Claims, citations and notation come through unchanged.
Where it stops
It will not add or drop an idea without saying so, and it is not a proofreader. Revision first, the typo pass last.
A skill in the library, after a method described by alz_zyd on X (x.com/alz_zyd_).
AI detectors can tell AI generated writing
Pangram is the most-cited detector at the moment: a classifier trained on the fingerprint of model text, with a low false-positive rate in its own reporting.
Figure from Paul Goldsmith-Pinkham, A Causal Affair on Substack
Remove too much of the writing friction and it gets harder to find out what your paper is about. The first draft is where the argument is discovered.
Once a reader decides a paragraph was generated, by instinct or with a detector, they discount the idea in it. That is a cost to the idea, not to the prose.
Exercise 4 · /review-paper-code15 min
Convert the PDF once with /pdf-to-markdown. Variable names, labels, value ranges, missing-value codes.
The agent reads it before it writes a recode, a label define or a merge.
Same variable names, types and ranges; not the real values. Some replication packages ship one.
Or ask the agent to generate it from the codebook: one prompt, fifty thousand rows.
Tests that the code runs
Variable names, merge syntax, reshapes, type handling, the shape of the panel. Everything that would fail on the schema fails on your laptop, before you enter the secure environment.
Does not test that it is right
Correlations, magnitudes, selection, missingness, sign conventions, duplicate keys and gaps that only the real values produce. The fake data contains what someone thought to put in it.
Thank you!
Questions now or later: claes.backman@gmail.com. Slides, skills, guides: claesbackman.com/ai_workshop
Ctrl+Shift+X, Cmd+Shift+X on a Mac).anthropic.claude-code).What an IDE is. Editor, file explorer, terminal and extensions in one window; think of it as Word or RStudio for code, LaTeX, markdown and plain text. VS Code is the dominant free one.
Then: the extensions, every session, installing the skills. Back to the check-in.
Ctrl+`). Source and updates: github.com/claesbackman/AI-research-feedback. /voice-extractor is Mihail Velikov’s and is linked from the same page.review-paper, review-paper-light, voice-extractor, …) into ~/.claude/skills/, a hidden folder under your user folder. Windows: C:\Users\you\.claude\skills; to see hidden folders, View, Show, Hidden items in File Explorer.~/.claude/skills/ works in every project; one in project/.claude/skills/ only in that project./ and the skills appear in the list.Back to the check-in or the skill slide.
| stack | extension ID | what it does |
|---|---|---|
| Stata | tmonk.stata-workbench |
Run Stata from the editor |
| Python | ms-python.python |
Syntax, IntelliSense, run button |
| LaTeX | james-yu.latex-workshop |
Compile on save, side-by-side PDF preview, inline errors |
| Data | mechatroner.rainbow-csv |
Colour-coded CSV columns; SQL-like filtering |
tomoki1207.pdf |
Renders PDFs inline: read codebooks next to your code |
Install Python even if you do not write it. The agent uses Python as glue for many different tasks.
Back to setup.
Read the files in this folder and tell me what this project is about.
Expected behaviour. Claude reads the folder, summarises the structure, and asks what you want to do next.
Then: permissions, a session is a conversation. Back to setup.
Plan mode
reads only
Reads and proposes; cannot write.
Manual
asks first
Asks before each edit or command.
Edit automatically
edits files
Edits your selected text or the whole file without asking.
Auto mode
the default now
Approves actions that pass a safety check and pauses for anything risky.
Claude Code is meant to stay inside the folder you opened; do not rely on it for a folder that holds anything sensitive. /permissions shows the current rules; allow- or block-list specific commands (Rscript, pdflatex, rm) in settings.json. Manual mode for the first week is a reasonable choice.
Back to every session.
Signs: it repeats a mistake, argues in circles, forgets an earlier instruction, or three turns go on fixing one thing.
Start fresh and put what you learned into the first prompt, or into CLAUDE.md so you never repeat it. Signs of drift.
Continue the conversation. “Shorter, and use the Danish case.” “You misread Table 2; look again.” “Now the same for Section 3.”
Back to every session.
CLAUDE.mdFix. Start a fresh conversation (/clear), or close and reopen. Re-state the task. Point at the relevant file again.
Thirty turns, or the task has shifted: start fresh.
Back to a session is a conversation.
| file | use it for |
|---|---|
project/CLAUDE.md |
Project instructions: dataset structure, sample restrictions, paper title, coauthor conventions, which script produces which output |
~/.claude/CLAUDE.md |
Personal preferences across every project: writing style, default tone, citation conventions. Project instructions load later and usually carry more weight |
voice.md |
Writing samples: paragraphs, abstracts and tone notes Claude should match when editing prose |
.claude/skills/… |
Reusable workflows: named tasks you run again without rewriting the prompt |
Keep secrets and raw confidential data out of all of them: they are read into context every session and sent to the model provider.
Then: bootstrap with /init, the starter template. Back to the voice file.
The built-in command. Type /init in the Claude Code panel. Or spell it out:
Read this project folder and draft a CLAUDE.md file with the project structure, conventions, and instructions you should follow. Do not edit anything else yet.
What Claude does. Reads the folder, infers languages, structure and conventions, and writes a draft.
Then you edit it. Add tone preferences, things to avoid, and the sample restrictions it could not infer. The draft is the starting point, not the final word.
Back to the files or exercise 2.
# About me
I am a researcher in [field].
# How I want you to work with me
- Ask clarifying questions before long output.
- Critical, skeptical tone in feedback. Do not flatter.
- When editing, preserve my voice (see voice.md).
No generic LLM phrasing.
- No bullet lists or passive voice in formal writing.
- Cite the line or section you are commenting on.
# Things to avoid
- Do not fabricate citations.
- Do not over-claim causality.
- No emoji or markdown decorations in formal docs.
Always loaded, every session: the things you would otherwise repeat in every prompt. Keep it to a page; long workflows go in skills.
Back to CLAUDE.md and skills or the files.
Two ways to put standing text in front of the agent. CLAUDE.md is read at the start of every session: who you are, your conventions, how you want it to work. A skill is read only when you type its name. Both are yours; only one is permanent. The starter CLAUDE.md; /init writes a first draft.
| skill | use |
|---|---|
/review-paper |
Pre-submission referee report, 8 reviewers |
/review-paper-light |
Fast 2-reviewer version, about 1 minute |
/review-paper-code |
Paper and code alignment review |
/review-grant |
Pre-submission grant review, 6 reviewers |
/review-pap |
Pre-analysis-plan review |
/audit-analysis |
Adversarial audit of changed analysis code |
/explain-diff |
Explain a code change as an HTML page with a quiz |
/paper-version |
Paper to policy brief, 1-page or 5-page summary |
/pdf-to-markdown |
Convert PDFs to readable markdown |
/prose-revision |
Revise idea flow before wording |
/voice-extractor |
Write voice.md from PDFs of your own prose (Mihail Velikov) |
Mine are at github.com/claesbackman/AI-research-feedback (MIT); all are linked from claesbackman.com/ai_workshop. Fork them, modify them, make them yours. Back to the skill slide.
| format | handling |
|---|---|
.md, .tex, .txt, .bib |
Native, no conversion |
.py, .R, .do, .ipynb |
Native: read, edit, run |
.csv |
Native for a few thousand rows; larger files it inspects through code, a few rows at a time |
.docx, .pptx |
Convert: pandoc file.docx -o file.md, or ask the agent to |
.xlsx |
Export to CSV first |
.dta, .rds |
Read through code, not as text |
| PDF, born-digital and short | Native; expect table mangling |
| PDF, long, scanned or with equations | Convert to markdown first: /pdf-to-markdown |
Back to exercise 1 or the two files.
Why bother. Overleaf has no Claude Code, no Codex, no Copilot, no proper diff view, no terminal. The fix: write in VS Code and let Overleaf follow what you produce.
Requirement. Both routes need Overleaf Premium; many universities provide it through the institutional login.
Two routes. GitHub via GitHub Desktop for a history, click to commit, no terminal. Dropbox for live coauthoring, no commit step. Click by click.
claesbackman.com/overleaf-vscode-guide; Overleaf documentation. Back to GitHub or Dropbox.
Setup A · GitHub via GitHub Desktop
Accept the TeX .gitignore template: no .pdf or .aux in the history.
Setup B · Dropbox
Apps/Overleaf/ with one subfolder per projectlatexmk -pdfNo commit step. Good for active coauthoring, less good if you want a history.
Back to Overleaf.
| tool | what it is |
|---|---|
| Refine.ink | Referee-style report on a paper PDF; paid |
| coarse.ink | Lightweight version of the same idea; close to free |
| Referee 2 | Referee-report service; paid |
| Stanford Agentic Reviewer | Open agentic reviewer; free |
A skill that lives next to your draft knows your conventions and lets you edit what it checks. The services do not.
Back to the debrief.
Protect learning
Decide what should be learned without AI, and say which assignments test it.
Give students an incentive to learn: regular, graded checks. Effort follows tests.
Do not give AI-cheatable assignments. Almost every take-home worth real credit can be done by a frontier model today.
Teach more with AI
Help students learn more efficiently: class-specific tutoring, spaced repetition, mastery learning at scale.
Use AI to improve your own teaching. Find out where you were confusing before the exam tells you.
Personalise assignments to the level each student is at. Raise standards: if drafting is cheaper, the bar moves up. Write the AI policy into the syllabus, per assignment.
Rules 1–8 of Bryan (2026). Back to the teaching recap.
A shared assistant (a Claude project, a custom GPT, NotebookLM) loaded with your lecture notes and problem sets.
Standing instructions: use the course’s notation, never give the answer, ask the student to explain first, return to what they missed.
Each week, export the questions students asked, anonymised.
Prompt: “Group these by underlying misconception, rank by frequency, and point to the lecture slide most likely to have caused each.”
One problem, three difficulty tiers. Assign the tier by last week’s quiz result.
Prompt: “Write this problem at three levels: scaffolded, standard, extension. Same concept, full solutions, and a rubric.”
Student questions are personal data. Anonymise before exporting, and check the institutional policy once. Back to the teaching recap.
“Read Code/ and draft the README, including the exhibit-to-script table.”
“List every input file the code reads; flag the ones not in this folder.”
“Make every path relative and write master.do.”
Then verify: run it in a fresh folder and diff the tables against the paper. With register data that run happens on the server; the code and the README are the package.