Practical AI for Academics

Session 2 - Practical workflows

Claes Bäckman

Leibniz Institute for Financial Research SAFE

Most research writing tasks are bounded and do not need skills

Sophia Kazinnik on X (x.com/SophiaKazinnik). Screenshots as posted.

Before anything: the folder, the panel, the skills

  • VS Code is open with the Claude Code panel in the sidebar. Five steps if not.
  • Your project folder is open, not a single file. File, Open Folder. The folder holds the draft you brought and the PDFs of your own writing.
  • The skills are installed. Type / 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.

The agenda for the session

1Referee report/review-paperthen verify
2Slides/explorable-decknot a Beamer parrot
3Writing/voice-extractoryour voice as a file
4Paper and code/review-paper-codedoes the code do what the paper says?
5Secure dataread @codebook.mdwhat never leaves the server

Slides, skills and guides for both sessions: claesbackman.com/ai_workshop.

1 · A referee report on your paper

/review-paper

A pre-submission referee report on your own paper

Exercise 1 · a referee report on your own draft10 min

  1. 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.

  2. Click Allow when it asks to read files or run commands. Then let it run while we talk.

  3. 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?

A skill is a markdown file the agent loads when you type its name

---
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.

Three ways to create a skill

Write it

A text file with a name, a one-line description and the instructions, in any editor.

Ask for it

“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.”

Save it

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.

A skill gets better by testing

  • Run it on a case you know well.
  • Read the output against what you know, and mark the comment you disagree with.
  • Fix the instruction that caused it. Edit the line in the skill.
  • Run it again in a fresh conversation, and keep each version so a change can be undone.
One instruction, before and after

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.”

Eight narrow reviewers beat one diffuse reader

But the agent that wrote the report will defend it

You still need to verify the report

Exercise 1b, then debrief2 + 5 min

  1. When your report is in, type in the same conversation: Launch a subagent to critique this report as a hostile referee. Report, do not fix.
  2. Read the report against your two guesses. What did it catch that you would not have seen? What did it get wrong?
  3. What did the adversary find that the report missed, or overstated?
  4. Which of the eight sections would you read first next time, and why?

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.

For a thesis, you could adapt this skill for students

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.

2 · Slides and communication

/explorable-deck @paper.tex

Ask for academic slides and you get a stochastic Beamer parrot

AI should let us do new things, not only old things faster

  • Nicky Case’s explorable explanations, Bret Victor, Steven Strogatz: a clear narrative, interactive elements that carry the message, a clean visual language.

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.

But it comes with some caveats

The paper must be good

The deck is built from the paper. A muddled paper gives a fluent deck about the wrong thing.

You need to practise

Practise more than before: making the slides by hand was how you learned your own talk, and that part is gone.

An explorable slide deck

Exercise 2 · an explorable slide deck for a paper10 min

  1. In the Claude Code panel, type /explorable-deck. Options are none, review and full (full uses more tokens).
  2. Click Allow when it asks to read files or run commands. Then let it run while we talk.
  3. Don’t want a Quarto-Markdown presentation? Other options are:
    • More comfortable with Latex? /explorable-beamer.
    • Want a Powerpoint version? /explorable-pptx.

Let’s compare some different versions

3 · Writing with agentic AI

/voice-extractor sample-papers

A voice file puts your prose in the window

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.

Analyze your own voice

Exercise 3 · /voice-extractor15 min

  1. Inside the project folder, make a folder sample-papers with three or four PDFs of your own writing. Coauthored? Pick the papers where the introduction is yours.
  2. Type /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.
  3. Read voice.md and delete or edit anything that does not sound like you.
  4. Add one line to 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?

/prose-revision fixes the order of ideas before the choice of words

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.

The current state of play on writing

Figure from Paul Goldsmith-Pinkham, A Causal Affair on Substack

Use AI to edit your draft; do not edit the AI’s draft

Writing is thinking

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.

Readers discount prose they think is generated

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.

4 · Verifying code and changes

/review-paper-code

/review-paper-code maps the paper’s claims to the scripts that produce them

Check whether the code matches the paper

Exercise 4 · /review-paper-code15 min

  1. Open the project folder.
  2. Type `/review-paper-code´
  3. Look at the report and verify the findings.

5 · Working with secure data

read @codebook.md and the first rows of @sim_data.csv, then write analysis.do

Two files to keep local: a codebook in markdown and a simulated dataset

1 · Codebook in markdown

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.

2 · Simulated dataset

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.

The agent never sees the data, but it sees everything that explains the data

But synthetic data tests that the code runs, not that it is right

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

Appendix

the rooms, for questions

Five steps get VS Code and Claude Code working in under five minutes

  • Open VS Code and the Extensions panel (Ctrl+Shift+X, Cmd+Shift+X on a Mac).
  • Search “Claude Code” and install Claude Code for VS Code (extension ID anthropic.claude-code).
  • Restart VS Code. Claude Code opens in the sidebar.
  • Sign in with your Claude account (Pro, Max, Team and Enterprise all include Claude Code), or an API key.
  • Open your full project folder (File, Open Folder), never a single file.

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.

Installing the skills is a copy into one hidden folder

  • Download the zip from claesbackman.com/ai_workshop, or paste the one-line command from that page into the VS Code terminal (Ctrl+`). Source and updates: github.com/claesbackman/AI-research-feedback. /voice-extractor is Mihail Velikov’s and is linked from the same page.
  • Unzip, then copy each skill folder (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.
  • A skill in ~/.claude/skills/ works in every project; one in project/.claude/skills/ only in that project.
  • Start a new Claude Code conversation. Type / and the skills appear in the list.

Back to the check-in or the skill slide.

A handful of extensions cover Stata, Python, LaTeX and data

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.

Every session: open the folder, set context, then prompt

  • Open VS Code and the project folder (File, Open Folder).
  • Open the Claude Code panel in the sidebar.
  • Confirm Claude is pointed at the full project folder, not a single file.
  • Send a first orienting prompt.

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.

Permissions follow a tiered model, and auto mode is now the default

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.

A session is a conversation, not a query

  • Prompt: specific, with the context it needs.
  • Response: a draft, not an answer.
  • You react: accept, correct, redirect. The next turn builds on your corrections; ten to twenty turns is normal.
Off track? Kill it and restart with a better first prompt

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.

Signs of session drift

  • Claude ignores CLAUDE.md
  • Repeats mistakes you already corrected
  • Invents files that do not exist
  • Gives circular answers
  • Forgets the last three turns

Fix. 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.

A few files hold your durable project context

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.

/init writes a first CLAUDE.md in two minutes

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.

CLAUDE.md starter template

# 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.

Keep CLAUDE.md short; put long workflows in skills

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.

The skill library

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.

File formats: text is free, binaries cost a conversion

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.

You can link Overleaf to your own computer and work in that folder

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.

The two Overleaf routes, click by click

Setup A · GitHub via GitHub Desktop

  • Overleaf: Menu, Integrations, GitHub, Export Project to GitHub
  • GitHub Desktop: File, Clone repository; pick the repo and a local folder
  • Open that folder in VS Code and edit
  • GitHub Desktop: one-line summary, Commit to main, Push origin
  • Overleaf: Menu, GitHub, Pull GitHub changes into Overleaf
  • Coauthor edited in Overleaf? Push Overleaf changes to GitHub, then pull in GitHub Desktop

Accept the TeX .gitignore template: no .pdf or .aux in the history.

Setup B · Dropbox

  • Install Dropbox and let the initial sync finish
  • Overleaf: Menu, Dropbox Sync, Link. Overleaf creates Apps/Overleaf/ with one subfolder per project
  • Open the project folder in VS Code and edit as normal; every save reaches Overleaf within seconds, and Overleaf edits flow back
  • Compile in Overleaf as usual, or locally with latexmk -pdf

No commit step. Good for active coauthoring, less good if you want a history.

Back to Overleaf.

Other tools generate referee reports too

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.

Bryan’s eight rules: protect learning, then teach more

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.

Three things to build this term: a tutor, a misconception digest, levelled problem sets

Course tutor

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.

Misconception digest

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.”

Levelled problem sets

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.

A replication package is a README, a master script and portable paths

  • A README: data sources, access terms, software versions, runtime.
  • A table mapping each exhibit to the script that makes it and the file it writes.
  • One master script that runs the pipeline in order, with relative paths and seeds set.
  • The data you may ship, and access instructions for the data you may not.
Three prompts, then one check

“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.

References

Bryan, Kevin A. 2026. Eight Rules for Teaching in AI World. Https://kevinbryanecon.com/teachwithai.html.