Repository navigation
feat(proofread): make ChatGPT's reply the default copy - #48
Merged
Merged
Conversation
- Step 6 takes the reply as the copy and keeps the agent's text only for changed facts, code, links, broken required formats, or additions. - reply.js replaces send, wait and capture. It stores the reply in the page and returns its length; the agent reads it in slices of 900 characters or fewer and checks the saved file against the page with `verify`. - `prepare` splits long copy into 12,000-character batches, one temporary chat each, and replaces fenced code blocks with numbered placeholders. - `restore` joins the replies, unwraps fences, unescapes frontmatter, unbolds headings, and puts back code blocks and dropped links. - The prompt asks for no notes and no code fence around the copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LWEFNLENkFt9shfESBmWby
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LWEFNLENkFt9shfESBmWby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the problems found while proofreading a large docs site with the proofread skill.
reply.js(send, wait and capture in one script) stores the reply in the page. The agent reads it back in slices of 900 characters or fewer, rejects[TRUNCATED], saves the reply to a file, then checks it against the page by length and SHA-256.prepare: splits long copy into batches of 12 KB or less, and replaces code blocks with placeholders.restorecommand: puts back code blocks, dropped links, frontmatter and heading markup, and reports anything it could not place.prompt.md: asks for no notes and no code fences around the copy.Evidence
node plugins/vstack/skills/proofread/tests/proofread.mjs: ok.build-shell check,claude plugin validate --stricton both manifests, andcheck-versionpass.reply.jsis only syntax-checked, because it needs ChatGPT's page.🤖 Generated with Claude Code
https://claude.ai/code/session_01LWEFNLENkFt9shfESBmWby