Skip to content

Keep gathered sources verbatim - #4

Merged
shreyashankar merged 1 commit into
mainfrom
cursor/verbatim-sources-3c09
Aug 26, 2026
Merged

Keep gathered sources verbatim#4
shreyashankar merged 1 commit into
mainfrom
cursor/verbatim-sources-3c09

Conversation

@shreyashankar

Copy link
Copy Markdown
Contributor

Summary

Gathering a source could paraphrase or summarize the writing — WebFetch returns a digest, and the skill said to write a "cleaned" copy. Style analysis then quotes the wrong sample.

This stores the author's words as written:

  • New scripts/save-source.mjs copies a local file or paste as-is, or fetches a URL and strips nav/chrome only (no rewrite)
  • Writes the same file to ~/.claude/skills/my-writing-style/sources/ and ~/.agents/skills/my-writing-style/sources/
  • Prints word count plus first and last lines so the author can confirm it is their prose
  • Skill forbids WebFetch as the stored source; examples must be a contiguous substring of a saved file

If a current sources/ file already looks like a summary, run the generator again and choose Rebuild from scratch (or Add a source with a file/paste).

Test plan

  • npm test — lexical metrics plus verbatim file/paste/HTML extract
  • Re-run the generator on a known essay and confirm sources/<label>.txt matches the original

WebFetch and "cleaned source" were inviting a paraphrase. Save files
and pastes through save-source.mjs, strip page chrome only, and show
first/last lines so the author can confirm it is their writing.
@shreyashankar
shreyashankar merged commit 7dc0fc4 into main Aug 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants