Application Drafter
Draft a funding application question by question in a YAML file on your disk, with live two-way editing alongside Claude.
Overview
Application Drafter is a single HTML page for working on an application, such as a fellowship resubmission. All the content lives in one YAML file on your own disk. The page opens that file, lets you read and edit it, and writes your edits straight back to it. Because the file is the source of truth, Claude (or any editor) can change it at the same time: the page notices changes on disk within a couple of seconds and reloads them.
For each question the file holds:
| Field | What it's for |
|---|---|
question |
The question as the funder asks it |
guidance |
The funder's guidance for the question |
previous_answer |
The answer you submitted last time |
assessor_feedback |
What the assessors said about it |
feedback_response |
Your response to that feedback |
suggestions |
Proposed changes, each with a source, a decision (accept, reject or decide), whether it's implemented, and notes |
new_draft |
The new answer |
The first five are reference material, shown collapsed as rendered Markdown (each has an Edit button). Suggestions sit between the reference material and the new draft: Accept or Reject each one. Implemented records whether the new draft reflects it, whatever the decision, so a change already in the draft can be ticked while it awaits a decision. A suggestion is resolved when the draft matches the decision: accepted and implemented, or rejected and not. Rejected suggestions still in the draft show as To revert. Expand a suggestion to edit its text, source or notes. New draft is always open for editing, with a Preview toggle, Copy Markdown, and Copy formatted for pasting into the funder's form (see Pasting into the form).
Features
- Live file editing — open a
.yamlfile and every edit is saved back to it (autosave can be turned off; ⌘S / Ctrl+S saves). - Picks up outside changes — when the file changes on disk the page reloads it, highlights what changed, and puts a dot beside each question that changed until you look at it. If you had unsaved edits, it asks whether to keep yours or load the disk version.
- Keeps the file tidy — comments, ordering and layout survive a save, and multi-line text is written as readable
|blocks, so diffs only show what you actually changed. - Suggestions page — triage every suggestion across the application in one list, grouped by question, filtered by state (to decide, to implement, implemented, to revert, rejected) or searched.
- Progress in the sidebar — each question shows suggestions resolved (accepted and implemented, or rejected and not) out of the total, green once all are resolved.
- Word counts against each question's limit, in the editor and the overview.
- Status per question (not started, drafting, in review, done) and an overview table of progress, including how many suggestions are still to decide and how many are resolved for each question.
- Glossary of terms to use consistently, listed under the overview. Each term has a decision: Keep (use it as it is), Update (use the replacement instead) or Decide (not settled yet), plus a definition, the variant spellings seen so far and notes. Filter by decision, search, and add, edit or delete terms.
- Compare the previous answer with the new draft, with each change linked to the suggestions behind it (see Comparing drafts).
- YAML view to edit a question's raw YAML (for fields the editor doesn't show).
- Export a copy of the file elsewhere.
- Export PDF for answers submitted as a PDF: A4 pages laid out with paged.js, with tables of Start and End periods drawn as Gantt charts (see Exporting a PDF).
- Reopen the last file in one click.
Comparing drafts
A word-level diff is noise once an answer has been rewritten, so the Compare view works from change records instead. Each question can have a changes list; each record quotes a passage from the previous answer and/or the new draft, and names the suggestions behind it:
changes:
- id: c06
kind: revised # revised | added | removed (inferred if left out)
old: "This will help the company find new customers."
new: # a string, or a list for passages that aren't next to each other
- "The goal is to share the method by training a network of practitioners."
suggestions: [s-q12-01, s-q12-10]
note: Commercial goal replaced by dissemination.
Quote whole sentences. The tool finds each quote in the rendered text: an exact match first, then the closest run of sentences, so links survive later edits. A card says when a quote only matched approximately, or couldn't be found at all. Update quote on a card (or Update all in the summary) replaces approximate quotes with the text they match now, so they match exactly again. Quotes that can't be found still need updating by hand, or by Claude.
The Compare view shows the previous answer and the new draft side by side, with the change cards between them:
- Linked passages are coloured by kind: revised, added, removed, and kept for unchanged sentences, which are paired automatically.
- Hover over a passage or card to highlight its partners. Click to pin the highlight and line the two sides up.
- Click a suggestion id on a card to open the full suggestion in a dialog: accept or reject it, mark it implemented, or edit it without leaving Compare. Highlight its changes then shows every passage it changed. Show in compare on a suggestion elsewhere does the same from the suggestion's side.
- Edit draft (or double-clicking a passage) turns the new draft into an editor in place, so the previous answer and the change cards stay in view while you write. Clicking a card or an old passage selects the matching text in the editor. Highlights, cards and coverage refresh as you type; Done switches back.
- A change record with no suggestions is flagged, so every change can be traced to a decision. If a change has no suggestion behind it, add one and link it.
- The summary shows how much of each version is accounted for, and any records whose quotes can't be found. New text that nothing accounts for is the text most worth reviewing.
Suggestions have stable ids (s-<question>-NN) for these links; new suggestions get one automatically.
Pasting into the form
Funders' online forms often accept only a little formatting. This tool assumes the form takes bold, italic, bulleted lists and numbered lists, and nothing else: no headings, links or tables.
- Copy formatted puts the draft on the clipboard as rich text in that subset, ready to paste into the form. Headings become bold lines; links, code and tables become plain text. A plain-text version is included for fields that don't accept rich text.
- Preview shows the draft as Copy formatted will paste it.
- A warning appears under the draft if it uses formatting the form can't show.
- Word counts are of the text as pasted, so Markdown symbols such as list dashes don't count.
Use a bold line, with a blank line above and below, in place of a heading, and number them for structure:
**1. Main heading**
Content goes here
**1.1 Secondary heading**
More content
To treat another field the same way, set form: true on it in meta.fields.
Some answers are uploaded as a PDF rather than typed into the form, such as appendices. Set format: pdf on that question: its draft can use any Markdown, including tables and headings, previews in full, and skips the form conversion, warnings and Copy formatted. A PDF badge marks it.
Exporting a PDF
On a format: pdf question, Export PDF (on the new draft and the previous answer) opens the text in a new tab as print-ready pages, laid out by paged.js. Check the page count in the corner, then click Save as PDF and choose Save as PDF in the print dialog. Pages carry the question's title and a page number in the footer. A table that runs onto another page repeats its header row there.
Set the page size and timeline with the question's pdf key:
format: pdf
pdf:
page: A4 landscape # any CSS page size; A4 portrait by default
timeline_start: "2026-10" # the month that period 1 starts, for Gantt chart headings
column_widths: ["13%", "37%"] # optional: widths of a Gantt chart's text columns, in order
font_size: 10.5pt # optional: body text size (9pt by default); headings and tables scale with it
sections: [front, letter] # optional: the layout of each section, in order (see below)
margin: 8mm # optional: page margins (12mm, 14mm at the foot, by default)
line_height: 1.3 # optional: line spacing (1.4 by default)
columns: 2 # optional: put sections side by side, this many to a page (see below)
Page breaks and letters
A line of --- in the draft starts a new page, and splits the text into sections. Name each section's layout in sections; the last name carries on for any further sections, so [front, letter] gives a front page followed by any number of letters.
With columns set, each section becomes a column instead of a page: columns: 2 puts the first two sections side by side on page 1, the next two on page 2, and so on.
A letter section is laid out as a letter: wider margins, more space between paragraphs, and every line break kept, as in an address or signature block. Its parts are recognised by their text:
| Paragraph | Drawn as |
|---|---|
The first, if it is all bold (e.g. **1. Partner name**) |
A small label above the letter |
| One mentioning "headed paper" | A placeholder for the letterhead, right-aligned above a rule |
[Date], or a date such as 4 November 2026 |
The date, with space below |
| One starting "To …" | The addressee, with space below |
| One starting "Yours faithfully" or "Yours sincerely" | The sign-off, with space above |
[Signature] |
Space to sign |
Any other [placeholder] on its own |
Greyed out |
Images and figures
Reference an image by its path relative to the YAML file's folder, for example . An answer with images shows a Link image folder button beside Export PDF: click it and choose the folder that holds the YAML file itself (not an images folder inside it). The folder is remembered for that file, and the button then shows its name; click it again to choose a different folder. If the browser has forgotten its permission, clicking the button asks for it again. Once linked, images show in the preview and are embedded in the export. An image on its own line followed by a line in italics becomes a figure with a caption, and the two are kept on the same page. Folder access needs Chrome or Edge.
Tables
In an exported PDF, a table row with a single bold cell becomes a group heading: a dark band across the table, kept on the same page as the row after it. Columns have fixed widths, so a table that runs over a page break lines up on every page: short columns, such as ratings, are sized to fit their longest entry, and longer columns share the rest by how much text they hold.
Gantt charts
A table with Start and End columns is drawn as a Gantt chart. The two columns are replaced by one column per period, with a bar across each row's span. Periods are written as Q3 (quarters), M14 or a bare 14 (months), H2 (half-years) or Y1 (years). With timeline_start, the headings show calendar months and years (Oct–Dec 2026); without it, they show the period (Q1).
Rows are drawn by what they hold:
| Row | Drawn as |
|---|---|
| Only the first cell filled | A group heading: a dark band across the table |
| First cell in bold | A phase: a solid bar, coloured by its name, so "Phase 1: Research" is the same colour in every group |
| First cell starting with ◆, with Start = End | A milestone: a ◆ in that period, with its text in the colour of the phase above |
| Anything else | An activity: a light bar in the colour of the phase above |
| Phases and activities | Deliverables | Start | End |
|---|---|---|---|
| **Workstream 1** | | | |
| **Phase 1: Model** | | M4 | M9 |
| Adapt the model | Paper on the adapted model | M4 | M8 |
| ◆ Model review | Go/no-go for the pilot | M9 | M9 |
The timeline takes half the width. Text columns take their width from column_widths if it is set; otherwise columns with short entries, such as numbers, are sized to fit them, and the other text columns share the rest. Phase and activity rows are two lines high, and milestone rows one line, so rows line up evenly; a row grows only if its text needs more room. Widths are the same on every page, so a chart that runs over a page break still lines up.
Budget
A question with format: budget holds the project budget as data, under a budget key, and the drafter calculates every figure from it. Its page shows a summary by cost category (Labour, Overheads, Materials, Capital usage, Subcontracting, Travel and subsistence, Other costs), staff days and costs by year, other costs, and totals by work package.
- id: budget
title: Budget
format: budget
budget:
months: 48
full_time_days: 232
overhead_rate: 0.20 # shown for reference; the funder's form adds overheads
on_costs: # turn a salary into a day rate
employer_ni: { rate: 0.15, threshold: 5000 }
pension: { rate: 0.07 }
work_packages:
- { id: wp1, name: Workstream 1 }
people:
- { name: Lead applicant, role: Fellow, salary: 50000, fte: 0.8, months: 1-48, work_package: management }
- { name: Researcher, role: Researcher, day_rate: 250, fte: 1, months: 4-33, work_package: wp1 }
- { name: Mentor, role: Mentor, day_rate: 400, days_per_year: 12, months: 1-48, work_package: management }
costs:
- { item: Laptops, category: Capital usage, quantity: 4, unit_cost: 2083, work_package: management }
- item: Conference trips
category: Travel and subsistence
quantity: 10
unit_breakdown: # unit cost built from its parts
- { label: Flights, amount: 1000 }
- { label: Hotel nights, quantity: 3, amount: 200 }
- { item: Software, category: Other costs, quantity: person_months, roles: [Fellow], unit_cost: 100, group: Software and hosting }
check_ignore: ["£100,000"] # amounts in the answers that aren't budget figures
- A person's time goes to one
work_package, or is split withallocation, as shares of their time:allocation: { management: 0.4, wp1: 0.3, wp2: 0.3 }. The By work package table shows each package's days by year, as well as its costs; each year's days are rounded so they add up to that year's staff days. - A person has a
day_rate, agross_cost(gross employee cost a year), or asalaryfrom which the gross cost is worked out with the on-costs. As in the UKRI finance form, the day rate is gross cost ÷full_time_days, unrounded, and cost is that rate × days. Days come from theirfteandmonths, or fromdays_per_year. Each year's days are rounded so the years add up to the total. - For capital usage,
residual_valueis taken off each item's cost, andutilisation: ftecounts each person at their FTE (so a part-time person's laptop is charged in proportion). - A cost goes to one
work_package, or is split withallocation: shares ({ wp1: 0.5, wp2: 0.5 }), a list for equal shares ([wp1, wp2]), orby_peopleto follow the people it counts (quantity: peopleorperson_months), each split like their time. Work-package totals include overheads on their labour, atoverhead_rate, as the funder's form adds them. Work-package totals are rounded to whole pounds so they add up to the overall total; the last package absorbs the difference. - A cost is
quantity×unit_cost(or the sum of itsunit_breakdown).quantity: person_monthscounts the months worked by the listedroles. Costs that share agroupare also totalled together.
Checks lists every money amount (£…) and day count (… days) in the other answers, with the budget figure it matches, or a warning if it matches none. When the budget changes, the figures that are now out of date show up there. Edit the budget in the YAML view.
Usage
- Run
npm startfrom the repo root (or open the page on the site) in Chrome or Edge. - Click Open YAML file… and choose your file, or New file… to start from a template. Allow the browser to edit the file when asked.
- Pick a question from the sidebar and draft away.
Live, two-way editing uses the File System Access API, which only Chromium browsers support. In Safari and Firefox the page still works, but it opens a copy of the file and Save downloads the result, so outside changes won't appear.
File format
meta:
title: My application
deadline: "1 March 2030"
notes: |
Notes for the whole application (shown on the overview).
glossary:
- term: workstream
decision: update # keep | update | decide
use_instead: workstream
definition: One of the three strands of the project.
variants: [work stream, work-stream]
notes: The last application mixed three spellings.
questions:
- id: q12 # stable id
number: "12"
title: Vision
section: Application questions # sidebar grouping
scored: true
word_limit: 1500
previous_score: "8"
status: drafting # not-started | drafting | review | done
question: |
What are your plans for the fellowship?
guidance: |
…
previous_answer: |
…
assessor_feedback: |
…
feedback_response: |
…
suggestions:
- text: Add measurable targets for each workstream
source: A3 # who or what proposed it
decision: accept # accept | reject | decide
implemented: false # true while new_draft reflects it, whatever the decision
notes: ""
new_draft: |
…
Any other text field on a question is shown as an extra editable field. To change the field list, labels or which are reference material, add meta.fields:
meta:
fields:
- { key: question, label: Question, kind: reference }
- { key: new_draft, label: New draft, kind: working, count: true, limit: true, form: true }
count shows a word count; limit compares it with the question's word_limit; form marks text that's pasted into the funder's form (Copy formatted, form preview and warnings).
Working with Claude
Point Claude at the same YAML file and ask it to edit fields directly — for example, "draft new_draft for q12 using the accepted suggestions". Keep the page open while it works: each change appears as soon as the file is written. Leave autosave on so your own edits reach the file before Claude reads it.