Logo de Internal Proofread

Internal Proofread

Comunidade
danepps
internal-proofread

Proofread long legal, scholarly, academic, policy, or professional drafts for internal textual defects using deterministic whole-document checks, bounded subagent review, independent verification, and machine-enforced completion gates. Use when Codex is asked to proofread, copyedit for errors, conduct an internal pre-circulation review, catch typos or missing and duplicated words, audit internal cross-references, check headings/footnotes/numbering/defined terms, or return a verified proofreading report or marked DOCX from a .docx, Markdown, or text draft. Do not use this workflow as a substitute for substantive legal editing, source verification, or comprehensive Bluebook checking.

Visão geral

Publicado pordanepps
Repositóriolegal-research-skills
Nome da habilidadeinternal-proofread
Estrelas
46
Forks
9
Arquivos incluídos
19
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    Habilidades de IA são Markdown simples, não código específico de um provedor, por isso funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • 19 arquivos incluídos

    Scripts, modelos de documentos e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente leitura e nunca são executados.

  • Código aberto

    Publicada por danepps no GitHub. Leia o conteúdo-fonte antes de instalar.

Instalação

Instale a habilidade de IA Internal Proofread no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL da pasta da habilidade exibida abaixo e confirme.
    https://github.com/danepps/legal-research-skills/tree/main/codex/internal-proofread
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Nova habilidade → Via URL GitHub, depois cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/danepps/legal-research-skills.git /tmp/legal-research-skills
mkdir -p .claude/skills
cp -r /tmp/legal-research-skills/codex/internal-proofread .claude/skills/internal-proofread
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Internal Proofread em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Internal Proofread automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Internal Proofread não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Internal Proofread

Compile the draft into stable text blocks, check its global structure deterministically, distribute owned chunks to bounded readers, and synthesize every candidate through a proof ledger. Preserve the source draft and distinguish genuine errors from stylistic preferences.

Non-negotiable rules

  • Preserve the original draft. Keep all snapshots, packets, ledgers, audits, and intermediate reports inside the hidden run directory.
  • Never move, rename, delete, quarantine, or reorganize any artifact outside the current run directory unless the user expressly asks. Treat files and hidden run directories created by other tools or earlier workflows as out of scope.
  • By default, place the run under <draft-parent>/.codex-proofread/runs/; never create a visible proofread-runs, AI Memos/proofread-runs, packet, ledger, verifier, diagnostic, or temporary file in the user's workspace.
  • Publish nothing visible until the readiness gate passes. For report-only work, the sole visible output is <draft-stem> — Proofread.md beside the draft.
  • Give every published report a provenance header and a final production block naming Codex, the exact model, local date, elapsed wall-clock time through audit, aggregate runtime-reported tokens or the explicit unavailable disclosure, and subagent roles. Never invent accounting or let unavailable tokens block an audited report.
  • Freeze a byte-for-byte source snapshot inside the run directory and bind every artifact to its SHA-256 hash. Never review the live draft path.
  • Give every reviewable block and footnote exactly one primary owner.
  • Use overlap only as context. Do not report context-only defects from a chunk packet.
  • Return structured findings with exact excerpts and stable block coordinates.
  • Do not rewrite for elegance, organization, tone, or substantive argument.
  • Do not silently correct quotations. Query apparent quotation errors unless source comparison was expressly requested.
  • Independently verify every high-impact missing-text, duplication, cross-reference, or numbering finding.
  • Run a smaller independent recall pass over every reviewable block and note after the first merge.
  • Independently audit every high-impact rejected omission, duplication, cross-reference, or numbering candidate.
  • Treat OOXML footnote IDs as storage identifiers, never as Word's displayed note numbers. Resolve note cross-references through display_note_to_block in symbols.json.
  • Prohibit recursive delegation and retry malformed worker output at most once.
  • Do not call a run complete until validate_run.py --require-ready passes.

Initialize the run

Identify the draft and requested output. Ask only when a missing choice would materially change whether the workflow may edit a copy or should report only.

Create a fresh hidden run directory. Omit --run-dir for the standard location. Standard review uses moderately larger packets to control orchestration cost while retaining the mandatory second pass:

bash
python3 <skill-dir>/scripts/init_run.py <draft>

Use --review-depth exhaustive for unusually dense, high-stakes, or expressly exhaustive pre-publication review. It restores the 800–1,200-word primary packet range and smaller recall packets:

bash
python3 <skill-dir>/scripts/init_run.py <draft> --review-depth exhaustive

Read the printed run_dir from initialization and use it for every later command. Supply --run-dir only when an explicit hidden or temporary audit location is required. Never point it at a visible workspace folder.

Initialization copies the live draft to source-snapshot.<ext> and removes its write permissions before extraction. Treat that copy as immutable. draft_path and the readiness gate point to the snapshot; original_draft_path records the live source only for provenance. Later saves to the live draft cannot stale the run. To review later edits, start a new run and create a new snapshot.

The standard local-review chunk is 1,200–1,800 core words with about 120 context words on each side. Reduce the limits further for unusually dense footnotes or tables:

bash
python3 <skill-dir>/scripts/init_run.py <draft> --run-dir <run-dir> \
  --min-words 500 --target-words 700 --max-words 900 --context-words 100

Inspect run-manifest.json, document.json, symbols.json, static-findings.jsonl, and chunks.jsonl. Run basic validation before delegation:

bash
python3 <skill-dir>/scripts/validate_run.py <run-dir>

For DOCX limitations and marked-copy rules, read references/docx-output.md.

Fan out the review

Read references/orchestration.md and references/finding-schema.md completely before spawning agents.

Distribute every file under packets/ to a separate proofread-chunk agent. Distribute boundary, consistency, and every xref_semantic_* lane to proofread-chunk; distribute formal xref, terminology, structure, and every serial_comma_* lane to proofread-mechanical. Semantic xref packets include the source call site, source note, target note, target call site, and nearby note chain; require the reviewer to test support, not merely target existence. Serial-comma packets are a deterministic candidate sweep: every candidate must receive a contextual yes/no review so a clean set supports an affirmative class clearance. Require each worker to return its uniquely identified JSON result. If its role is read-only, the lead writes that result to the assigned file; never ask a read-only worker to change its sandbox. A worker with authorized write access may write only its unique result file.

Use the installed routing when available:

  • proofread-chunk: gpt-5.6-terra, medium reasoning;
  • proofread-mechanical: gpt-5.6-luna, low reasoning;
  • proofread-verifier: gpt-5.6-sol, high reasoning.

Launch each concurrency wave with parallel cold-context spawns (fork_turns="none") in one lead turn, then wait once for the wave. Avoid per-agent polling, repeated status listings, and full-result messages; workers write result files and return only a terse completion notice. Check result identity, source hash, reviewed block IDs, reviewed note IDs, and status. Retry one malformed or incomplete result once. Do not let a worker broaden into source research, substantive editing, or direct document changes.

Audit at least ten percent of chunks reported clean as specified in the orchestration reference. Expand the clean-chunk audit when the threshold is exceeded.

Merge and adjudicate

Merge static and agent candidates:

bash
python3 <skill-dir>/scripts/merge_findings.py <run-dir>

Create the mandatory fine-grained recall pass:

bash
python3 <skill-dir>/scripts/make_recall_packets.py <run-dir>

Give each recall packet to a fresh proofread-chunk, wait for complete ownership, and merge again. Recall packets search for new semantic residue, nonadjacent duplication, transposed defined terms, malformed noun phrases, internal conflicts, and secondary errors; they must not repeat listed first-pass spans.

When another current or prior proofreading report exists for the same draft, ingest it only after the blind passes. This includes an earlier Codex report whose findings should be carried forward and freshly verified:

bash
python3 <skill-dir>/scripts/ingest_challenger.py <run-dir> <report.md>

Resolve or waive every pending challenger-unmatched.jsonl item with a reason, then merge again. Do not assume a challenger is correct merely because it reported an item.

After confirming any repeated-form or rule-class defect, sweep the frozen document for every exact and normalized occurrence of that class. Reopen the merge if the sweep yields additional candidates; do not publish a report that lists only a sampled subset of a known deterministic class.

Re-read each candidate in document.json. Write one disposition row per finding to dispositions.jsonl. Confirm actual errors, reject false positives with reasons, and convert unresolved ambiguity into author queries.

Partition high-impact findings that remain confirmed, likely, queried, or fixed into neutral packets of no more than eight. Give each packet to a fresh proofread-verifier without revealing the first reviewers' conclusions. Require a separate outcome for every finding and write the results to verifier-audit.jsonl.

After provisional dispositions, create and run the rejection audit:

bash
python3 <skill-dir>/scripts/make_rejection_packets.py <run-dir>
python3 <skill-dir>/scripts/merge_rejection_audit.py <run-dir>

Give every rejection packet to a fresh proofread-verifier. Reopen or revise every disposition required by rejection-audit.jsonl. For a whether or if omission, require identification of the subject and finite predicate of the entire clause.

Rerun merge_findings.py after any worker or lane result changes. Keep the lead agent responsible for all dispositions, verifier reconciliation, and final wording.

Report and optionally mark a copy

Build the canonical report:

bash
python3 <skill-dir>/scripts/build_report.py <run-dir>

Put confirmed errors first, followed by likely errors, author queries, pre-publication checks, an optional style-consistency section, and limitations. Use prepublication for correct-for-now slip-opinion pagination placeholders and similar publication-stage tasks; do not call them confirmed errors. For every visible item, include a Find in draft anchor copied exactly from the frozen source: normally 14 words and expanded up to 24 when needed for uniqueness. When a short repeated footnote cannot yield a unique anchor, use a unique anchor from its body-text call site and label it. Keep the shorter Draft field focused on the defect. Use the style disposition for accepted spelling, hyphenation, capitalization, or house-style alternatives that are not textual errors. Summarize the rejected-candidate count; keep full rejection details in the ledgers. Add --include-rejected only when the user wants an audit appendix. Report findings in document order, using section names, visible note numbers, and approximate progress through the draft as human locations. Keep internal block IDs in the audit artifacts; the exact search anchor is the primary user locator.

Default to report-only output. Treat report.md inside the hidden run directory as canonical but internal. Do not ask the user to browse the run directory and do not copy any other artifact into a visible folder.

After the readiness gate passes, publish the only visible report with exact provenance values:

bash
python3 <skill-dir>/scripts/publish_report.py <run-dir> \
  --model <exact-model-label> --tokens <aggregate-run-token-count> \
  --subagents "<actual roles and counts, or none>"

The publisher calculates generation time and elapsed wall-clock time, inserts the provenance header, and records the metadata in the hidden manifest. It may replace an existing Codex-authored report, but it must preserve a non-Codex file at <draft-stem> — Proofread.md and fall back to <draft-stem> — Codex Proofread.md; an explicit occupied --output path is an error. Obtain the model label and aggregate token count from the current Codex run or session accounting. Do not estimate either value. If exact aggregate token accounting is unavailable, replace --tokens N with --tokens-unavailable. This prints tokens unavailable (runtime did not expose exact usage) and records a null count. The final production block follows all report content. Accounting limitations never waive the readiness gate.

If the user requests a marked DOCX, create a separate tracked-change copy only through a direct OOXML method that does not launch an office application. Apply only confirmed corrections; add comments for likely errors and author queries. Re-extract and re-lint the marked copy, confirm ZIP/OOXML integrity and XML parseability, and disclose that pagination and visual layout were not rendered. Never invoke soffice, libreoffice, render_docx.py, the documents skill, or any helper/runtime that launches LibreOffice. If a safe direct-OOXML writer is unavailable, publish the report and explain that the marked DOCX was not created. A specifically requested marked copy is the only exception to the one-visible-file default.

Enforce readiness

Run:

bash
python3 <skill-dir>/scripts/validate_run.py <run-dir> --require-ready

Fix stale merges or reports, first-pass or recall coverage gaps, pending challenger items, missing lane results, undisposed findings, overlapping duplicate findings, and missing retained-finding or rejection audits. Use complete_with_limits only for explicit unresolved limitations; never use it to bypass required coverage or independent verification.

Publish and deliver the visible report only after --require-ready passes. State the tracked-change view, unresolved limitations, and whether the readiness gate passed. Keep the hidden audit directory out of the handoff unless the user asks for it.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Internal Proofread faz?

Proofread long legal, scholarly, academic, policy, or professional drafts for internal textual defects using deterministic whole-document checks, bounded subagent review, independent verification, and machine-enforced completion gates. Use when Codex is asked to proofread, copyedit for errors, conduct an internal pre-circulation review, catch typos or missing and duplicated words, audit internal cross-references, check headings/footnotes/numbering/defined terms, or return a verified proofreading report or marked DOCX from a .docx, Markdown, or text draft. Do not use this workflow as a subst...

Por que usar Internal Proofread no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Internal Proofread é escrito em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. O TypingMind usa suas próprias chaves de API, então o pagamento é feito diretamente aos provedores, em vez de uma assinatura por licença de usuário, e suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Internal Proofread no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/danepps/legal-research-skills/tree/main/codex/internal-proofread. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Internal Proofread?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Internal Proofread?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Internal Proofread com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Internal Proofread é gratuita?

Sim. A habilidade é publicada no GitHub por danepps sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, modelos de documento ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas para chamar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA fornece conhecimento e um processo ao modelo: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇