- Home
- Skills
- Writing & Content
- Manuscript X-ray
Works with the AI Agents you already use
Manuscript X-ray
An agent cannot hold 90,000 words, let alone 200,000, in its context window, so a critique done by the model alone rests on what fits.
$9.99
Manuscript X-ray
Example session with this skill installed
Beta-read my novel in pg1342.txt using manuscript-x-ray. I want to know what works, what to revise first, and where in the file each problem is.
- Read your context and instructions
- Compiled the manuscript x-ray
Beta read: Pride and Prejudice (126,575 words, 61 chapters)
Demonstration. The Project Gutenberg text of Jane Austen's novel was treated as a draft manuscript. The
critique below was written by an agent following SKILL.md: it ran xray.py on the whole book (the report is
pride-and-prejudice-xray.md in this folder), then read only the passages listed at the end. Every location
is chN:LM (chapter N, line M of the file) and opens with xray.py pg1342.txt --show chN:LM.
The book at a glance
A comedy of manners in third person, past tense, carried by an ironic narrator and by talk: chapter 1 is 79%
dialogue, and 39 of the 61 chapters are between 30% and 70%. Chapters are short and even (median 1,823
words), with a few long set pieces: the Netherfield ball (ch18, 5,167 words) and the arrival at Pemberley
(ch43, 4,844 words). Sentences average 20.9 words. The cast is tight: Elizabeth (634 mentions) and Darcy
(417) lead the character index, and Elizabeth is missing from only one chapter.
What works
- The opening line does the narrator's whole job. "It is a truth universally acknowledged, that a
single man in possession of a good fortune must be in want of a wife" (ch1:L678). The X-ray flags the
next sentence (ch1:L681) as present tense in a past-tense book; that is the same generalising voice, and
it is the hook. Keep it. - Characters introduced by speech alone. Chapter 1 is 79% dialogue and sets up Mr and Mrs Bennet
without a line of description: "cried his wife, impatiently" (ch1:L696) against his dry replies. - The letter as a turning point. Chapter 35 is 1% dialogue plus 87% nested narration: Darcy's letter
(ch35:L7742, "Be not alarmed, madam, on receiving this letter"). Changing the mode at the midpoint
makes the reversal feel like evidence, not authorial convenience. - Setting arrives at the emotional peak. The Pemberley approach (
ch43:L9312) slows into landscape
just as Elizabeth's "spirits were in a high flutter", so the long chapter earns its length.
Revision priorities
- The Gardiners arrive late for the job they do.
- What: Gardiner (94 mentions) is absent for 15 chapters, ch10-ch24 (
ch10:L2374). After a passing
mention in Mrs Bennet's chatter (ch9:L2310) the couple first appear at Christmas (ch25:L5739), yet
the final paragraph credits them with "uniting them" (ch61:L14519). - Why it matters: the people who resolve the plot should feel planted, not supplied.
- Suggestion: one short early scene or exchange with Mrs Gardiner before ch25, so the reader knows her
judgement before Elizabeth relies on it.
- What: Gardiner (94 mentions) is absent for 15 chapters, ch10-ch24 (
- Chapter 12 is a bridge, not a scene.
- What: 673 words, 0.4x the median chapter, 0% dialogue, mean sentence 30.7 words and 27% of sentences
over 40 words (ch12:L2865), right after the talk-heavy chapters 10 and 11 (68% and 53% dialogue). - Why it matters: the departure from Netherfield is told in summary ("enough was said of wishing them
to stay",ch12:L2887), so the reader loses Miss Bingley's jealousy at the moment it is named. - Suggestion: fold it into the end of chapter 11, or give the leave-taking one exchange of dialogue.
- What: 673 words, 0.4x the median chapter, 0% dialogue, mean sentence 30.7 words and 27% of sentences
- The long chapters have no internal breaks.
- What: chapter 18 runs 5,167 words (2.8x the median,
ch18:L3965) and chapter 43 4,844 words
(ch43:L9307); the book has no scene breaks at all (every chapter is one scene in the pacing table). - Why it matters: ch18 moves through distinct movements with no place for the reader to pause:
Wickham's absence (ch18:L3970), the dances with Mr Collins and Darcy (ch18:L4005,ch18:L4035),
Collins introducing himself to Darcy (ch18:L4266), supper (ch18:L4338) and Mary singing
(ch18:L4389). - Suggestion: a scene break where the focus jumps, or split ch18 at the supper.
- What: chapter 18 runs 5,167 words (2.8x the median,
- The longest sentences sit in the reflective chapters.
- What: 179 words at
ch36:L8089(Elizabeth reconsidering Wickham after the letter), 125 at
ch16:L3456. The 167-word
sentence atch13:L3007is Mr Collins's letter and is in character. - Suggestion: keep Collins; consider breaking the ch36 sentence at its semicolons so the turn in her
judgement lands as its own beat.
- What: 179 words at
Line-level patterns
- Tags: 477 dialogue tags; said 245 (51%), cried 82, replied 79. 22 tags carry an -ly adverb, and the
same pair recurs: "cried impatiently" atch1:L696andch3:L1095, "said resentfully"ch2:L826,
"replied fretfully"ch2:L848. In period style these are a choice; trimming a few would let the dialogue
show the impatience. - Crutch words: 1212 in all, 9.9 per 1,000 words, "very" 488 of them. The densest chapter is ch5
(19.8 per 1,000,ch5:L1246). - Close repeats: "finish his letter" at
ch10:L2551andch10:L2553is deliberate (the narrator turns
Elizabeth's words into a comic deflation). "a special licence" atch59:L14182andch59:L14183is
Mrs Bennet's breathless speech, in character. Both stay. - Openings: four sentences in a row start with "She" at
ch36:L8068; in a passage of recollection that
rhythm works, but check the run atch50:L11649(also four).
Checked and fine
- POV: no chapter reads as first person; the letters (Collins
ch13:L3007, Darcych35:L7753) are inside
quotation marks, a character's voice. The one paragraph flagged,ch48:L11110, is Mr Collins's second
letter, where an illustration interrupts it and the paragraph after it has no opening quotation mark. No
POV slips. - Tense:
ch1:L681is the narrator's generalisation;ch42:L9131andch42:L9247are the narrator's
asides ("It is not the object of this work to give a description of Derbyshire");ch48:L11110and
ch48:L11114are inside the same Collins letter. - Continuity: no conflicts, but the script tied no eye or hair colours to a named character in this book,
so there was nothing to compare. A continuity check here needs reading.
How this was read
The script measured the whole manuscript (126,575 words). These passages were read in full:
lines 676-698, 1093-1097, 1246-1262, 2310-2312, 2549-2553, 2865-2895, 3005-3012, 3965-3980, 4336-4342,
4386-4392, 5724-5740, 7738-7760, 8066-8091, 9128-9133, 9245-9249, 9312-9325, 11100-11116, 14180-14184 and
14512-14522, plus the lines in ch18
that mention Collins, dancing, Mary or singing (to find the movements of the ball). The numbers are
heuristics (see references/measures.md); the taste calls are the reader's, not the script's.
Connects securely to your tools. The creator never sees your data.
About this skill
The problem
A beta read of a novel needs the whole book. An agent cannot hold 90,000 words, let alone 200,000, in its context window, so a critique done by the model alone rests on what fits. It cannot reliably tell you that a character vanishes for fifteen chapters, that one chapter is three times the length of the others, or that a pair of eyes is black in one chapter and blue in the next. Notes like "the middle drags" also rarely say where.
What it does
xray.py is one Python file with no dependencies. It reads the entire manuscript and writes a report. Every finding in the report has a location chN:LM: chapter N, line M of your file.
- Structure. It finds the chapters by itself, skipping a table of contents and handling Book and Epilogue divisions. It reports words per chapter, scene breaks, and numbering gaps or repeats.
- Pacing. A table with one row per chapter: words, dialogue share, mean sentence length, share of long sentences, and the characters most present. It flags chapters far from the median.
- Characters. An index of the recurring names: mentions, chapters present, first and last appearance, and the longest absence. A character who drops out for many chapters is flagged.
- Point of view and tense. It flags chapters and paragraphs whose person or tense differs from the book's. It measures the narrator's own text: dialogue, and letters or stories inside quotation marks, are a character's voice and are not counted.
- Continuity. It ties eye, hair and beard colours to named characters and flags a colour that contradicts the others.
- Line level. It counts dialogue tags and tag + adverb pairs, filter words, crutch words and echo words. It lists phrases repeated close together, runs of sentences with the same first word, and sentences that open with an -ing word.
The report opens with "Where to look first", a ranked reading list of the flags. Your agent prints each flagged passage with --show chN:LM and reads it. It decides whether the flag is a real problem, a deliberate choice or a false positive. Then it writes the critique: what works, revision priorities, line-level patterns, and what it checked and found fine. Every point cites its location.
What the check run proves
Manuscript X-ray takes the context window out of it: code measures the whole book, and the agent reads only what the code points to. In the check run:
- The whole book is read. On Pride and Prejudice, Frankenstein and War and Peace, the word totals equal an independent count of the text: 126,575 (plus 727 illustration-caption words it skips), 75,041 and 563,001.
- Long books in one run. War and Peace (563,001 words) was measured in one run in under 5 seconds (3.7 s); the check fails above 20. All 365 of its chapters were found, in 17 BOOK/EPILOGUE containers, with 382 table-of-contents lines skipped. Pride and Prejudice gave 61 chapters and Frankenstein 28 (4 letters and 24 chapters), with no settings.
- Every finding has a chapter and line. The three reports have 29, 28 and 47 ranked flags. Every one carries a
chN:LMlocation and the chapter's heading, and the check confirmed each location falls inside its chapter. N counts the headings in order, so with a Prologue first, "Chapter Two" is ch3. - Counts you can verify. The character index matches an independent whole-word count. Elizabeth: 634 mentions in 60 chapters. Wickham: 194 in 34. Darcy, Bennet, Bingley and Jane are within 1%.
- Absences found. Gardiner is absent for 15 chapters (ch10-ch24) in Pride and Prejudice. Kutúzov is absent for 99 chapters (ch76-ch174) in War and Peace. Both were flagged, and both gaps equal the independent count.
- Planted errors caught at their line. One line of War and Peace was changed to give Denísov blue eyes. The report flagged that line,
ch33:L8029, against the two lines that call his eyes black. On the unchanged books it found 0 conflicts. A planted scene break and a skipped chapter number were also caught at their lines. - The sample is real. The example report in the ZIP is the check run's own report on Pride and Prejudice. The sample critique cites 37 locations, and every one is inside its chapter.
How it works
python3 xray.py draft.docx --out xray.md --out xray.json, run from your project folder. This writes the report, plus the full data as JSON. xray.py is a single file that needs no other file of the package, so it runs the same when the agent writes it to a temporary file, as Agensi delivers scripts.- The agent checks "What was read" (word count, chapter count, first heading). If the chapters were not found, it reruns with
--heading REGEX. - It reads "Where to look first" and prints each flagged passage it will discuss with
xray.py draft.docx --show ch12:L2865 --context 6. - It reads the opening, the longest and shortest chapters and the ending, so that it can also say what works.
- It writes the critique in a fixed format. Every point cites
chN:LM, and the numbers are quoted from the report as given.references/measures.mdlists the known false positives of each measure, for example letters set without quotation marks, which read as POV slips.
Formats: .txt, .md and .docx (Word files are read directly, chapters from Heading styles). A .docx copy and a Markdown copy gave the same numbers as the plain text. Python 3.9+ standard library only. The script makes no network connections. It reads only the file you name, writes only inside the current directory, and refuses to overwrite the manuscript.
Use cases
- Beta-read a complete novel and get a critique that cites chapter and line.
- Find the chapters that run long or short, or that change pace.
- See where a character disappears, and for how many chapters.
- Catch eye and hair colours that change between chapters.
- Check a revision for POV slips, tense slips, repeated phrases, tag adverbs and crutch words.
Known limitations
- The measures are heuristics. They point to passages; the reading decides. Letters and diaries set without quotation marks look like POV slips: in War and Peace two letters, Pierre's diary and an essay chapter are flagged as first-person chapters. General statements look like tense slips. Deliberate refrains look like repetition. The agent is told to check each flag and say which ones it dismissed.
- Continuity covers eye, hair and beard colour only. Plot holes, timeline errors and head-hopping between third-person characters need reading. The colour ties are heuristic: on Pride and Prejudice it tied no colours to a named character, so there was nothing to compare.
- First names and surnames are separate rows in the character index.
- In a .docx, only the main text is read (no footnotes or comments), and locations are paragraph numbers.
- Prose fiction only. Chapter, dialogue and POV measures do not fit screenplays, poetry or non-fiction.
- The critique comes from your agent's own reading of the flagged passages. Its quality depends on the model you use.
The measures are heuristics that point to passages: letters and diaries set without quotation marks look like POV slips, general statements like tense slips, refrains like repetition, and the agent checks each flag before calling it a problem. Continuity covers eye, hair and beard colour only; plot holes, timeline errors and head-hopping need reading. First names and surnames are separate rows in the character index. In a .docx only the main text is read and locations are paragraph numbers. Prose fiction only.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed today
- Software
Python
No accounts, API keys or services. Python 3.9+ on the machine.
Permissions
File Scopes
the script refuses to write outside the current directory or over the manuscript, and makes no network connections. The agent reads only the passages it prints with --show. If the form ticks Network Access by itself, untick it: its detector matches the letters c-u-r-l, which appear in the words "curly" and "curls" that the hair-colour measure looks for (xray.py lines 151-226 and 1164, references/measures.md line 221); there is no network code.
What's inside
Frequently Asked Questions
New in Writing & Content
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Writing & Content.