/draft-detective:issuesfrom draft-detective
Reports document review findings with clear evidence, severity, and actionable guidance. Presents findings naturally in chat and written reviews, or uses a standard issue schema when structured output is required.
Ships in draft-detective. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Keep findings grounded in the document, explain why each problem matters, and give a concrete next step when possible. The reporting format depends on the deliverable.
Instructions such as "report one issue per missing section" determine which findings to report and how to separate them; they do not alone prescribe a field-by-field layout. Another skill's reference to these conventions preserves its required titles, severity, evidence, real locations, and one-finding-per-item rules in either format.
Instructions in a task skill about how to populate fields do not by themselves require returning structured records. In particular, per-skill line-range field instructions and defaults such as "set both bounds to line 1" apply only when structured records are required. In conversational findings, identify real locations in prose and describe an absent section as missing without assigning it a fallback line number.
Make each finding easy to locate and act on: identify the passage or element, explain the problem and its impact, and suggest a fix. Use a short quote, section, page, or available line number to anchor it. Do not invent line numbers or display the structured fallback of line 1 for an unlocated finding.
Mention severity in ordinary language when it helps prioritize the review, using the severity scale below and any task-specific severity. Keep required rule titles and classifications, but integrate them into readable headings or prose. Avoid raw schema labels such as start_line, suggested_action, or replacement_text unless structured output was requested.
When a wording change is justified by the document, show the suggested wording once and explain it briefly. Do not repeat the same passage as a suggestion and again as an edit record. Apply the same evidence and no-fabrication standards as structured findings; leave decisions requiring new facts or author judgment to the author.
For example, a chat finding could read:
Passive voice (minor suggestion, line 11). “Those decisions are being made” leaves the actor unnamed, though the surrounding text identifies agency leaders. Consider “Agency leaders are making those decisions…” to make the actor explicit.
This is an illustration, not a required template. Use the amount of structure and detail the request needs.
The field schema and line-number conventions in this section apply to structured records, not to the layout of chat replies. Each problem must be reported with the following fields:
title (str)
A short, specific title that names the problem. If the instructions specify a title format for the rule, use it exactly, substituting any bracketed placeholders with the actual value (e.g. "Figure/Table Missing Title: Figure 3", "Author Bio Issue: Jane Smith"). If no title is specified, create a concise one that clearly identifies the problem and the affected element. Good titles are scannable and self-explanatory.
description (str, markdown supported)
A 1–3 sentence explanation of the problem. Reference the specific text, element, or rule that failed. Explain what was expected and what was found. Do not invent content — base every judgment strictly on what is present in the document. Markdown formatting (bold, inline code, etc.) is supported and encouraged when it improves clarity.
severity ("none" | "low" | "medium" | "high")
Choose based on impact on document quality:
"high" — critical problems that significantly undermine document integrity: missing required sections, broken or unresolvable references, absent mandatory elements."medium" — notable problems that reduce clarity or compliance: incomplete sections, unreferenced figures or tables, inconsistent numbering, rule violations that affect readability."low" — minor issues with minimal impact: style suggestions, optional improvements, minor formatting inconsistencies."none" — informational, opt-in only. Use exclusively when your task instructions explicitly ask you to surface valid / passing checks alongside problems (e.g. confirming a recommendation is well-grounded, attesting that a section meets a rule). Never emit "none" issues unless your task instructions request them — by default, do not create entries for rules that pass.When your task instructions specify a severity for a particular rule, always use that value.
start_line (int)
The 1-indexed line number in the supplied document where the text relevant to this issue begins. Set to 1 when no specific location can be determined (e.g. a missing section that is absent from the entire document).
end_line (int)
The 1-indexed line number in the supplied document where the relevant text ends. Must be ≥ start_line. Set to 1 when no specific location can be determined.
passage (str, optional)
The exact words of the document this issue is about. The passage is what users see highlighted for the issue, and what the issue is attached to wherever it is shown (a review interface, a comment in the document), so choose the words a reader should look at to understand the finding, rather than leaving them a whole line to search. Without a passage, the issue's whole line range is highlighted instead. Quote it verbatim from one line of the document, inside the issue's start_line–end_line range, and make it appear there only once. Make it as long as the issue needs, from a phrase up to the whole line, so it covers everything the issue is about: the offending phrase, the sentence that makes the claim, the caption that is wrong.
Set a passage when the issue concerns specific words within a paragraph. Omit it when the issue concerns the whole line, spans more than one line, or is about something absent from the document (a missing section, a missing caption): the issue's line range already locates it.
suggested_action (str, optional, markdown supported)
A direct, concise recommendation to the author on what to do to resolve this issue. Set this field whenever a concrete author-facing fix applies; omit it when no actionable recommendation can be made (e.g. for purely diagnostic findings).
Write the suggested_action so that someone holding only the document and this issue could apply the change without further clarification — point to the exact location, name the element, and state the change in imperative form (e.g. "Replace 'Figure 3' with 'Figure 2' on line 142 to match the figure caption.", "Add a citation supporting the sentence on line 88. Do not invent the citation — flag for the author to provide one.").
Critique, do not generate. Suggest formulaic fixes (rewording, restructuring, pointing to where a citation is needed, fixing a numbering mismatch) but never fabricate content. Do not invent citations, references, data, or new prose paragraphs. For nuanced cases where the right fix requires author judgement, plain guidance text is acceptable (e.g. "Add a citation to support this specific sentence — the author should select an appropriate source.").
Keep it short — one or two sentences, or a tight bulleted list if multiple sub-steps are needed.
When you attach edits, the suggested_action covers only what the edits do not: the fix for a passage that got no edit, the question the author must answer, or a caveat the author should check before accepting an edit. Leave it empty when the edits carry the whole fix, and never restate an edit in prose.
edits (list, optional; only when your instructions enable proposed edits)
Zero or more mechanical text replacements that resolve the issue. An edit is a fix in structured form: it says exactly which characters to swap, so the fix can be applied without re-reading the document. Each edit has:
original_text (str, required) — the text to replace, quoted verbatim from the document. It must appear exactly once inside the issue's start_line–end_line range; if a short quote repeats, widen it (up to the whole line) so it is unique and make the change inside it. It must sit within a single line of the document — an edit never crosses a line break, so it stays inside one paragraph.replacement_text (str, required) — the text that takes its place. Use an empty string to delete the quoted text. To insert text, repeat the quoted text with the addition included (e.g. replace "the results in Table 2" with "the results in Table 2 and Table 3").rationale (str, required) — one short sentence on why this replacement resolves the issue.Propose an edit only when the fix is fully determined by the document text plus the finding. Never propose one when the fix needs a new fact or new prose: no invented citations, references, data, findings, or rewritten paragraphs. If the right fix requires the author's judgement or information that is not in the document, leave edits empty and say what is needed in suggested_action.
Edits take the place of suggested_action for the part of the fix they carry: set suggested_action only for what they leave to the author, as described above. One issue may carry several edits when its line needs more than one replacement; all of an issue's edits sit on one line. A fix needed on several lines is one issue per line, each carrying its own edits. If nothing about the fix is mechanical, omit edits entirely; an issue with no edits is a normal, complete issue.
long_description (str, optional, markdown supported)
An extended markdown description for issues that require more detail than fits in description. Use this field only when the issue is complex enough that a short paragraph is not sufficient — for example, when you need to list multiple affected locations, quote specific passages, compare expected versus actual content, or provide step-by-step remediation guidance. If description alone communicates the problem clearly, omit this field entirely.
When used, format long_description with markdown to maximize readability:
## or ### headings to separate distinct sections (e.g. What was found, What is expected, Affected locations).Report one issue per problem found. Only create an issue for a failing rule or missing element — do not add entries for rules that pass, unless your task instructions explicitly ask you to surface passing checks as informational (severity: "none") items.
start_line and end_line to bracket what the issue is about: the sentence, the paragraph, or the whole element (a table, a figure, a list). Choose the range first; the passage then picks the words within it to highlight. Don't shrink the range to the passage's line.start_line and end_line to 1. Never report such an issue with a range that spans the entire document; a whole-document range is reserved for problems that genuinely apply to every line.severity: "none") entries for passing checks.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
32 skills in this plugin
/abbreviation-extractionUse this skill to find and catalogue every abbreviation and acronym occurrence in a document — recording, for each occurrence, any accompanying inline definition, how many times the abbreviation has appeared so far, where it appears, and the definition listed in any Abbreviations section, leaving out occurrences that are exempt from compliance checks. Invoke when asked to extract, list, or inventory the abbreviations/acronyms in a document (e.g. as input to an abbreviation compliance check)./abbreviation-scanUse this skill to check that a document's abbreviations and acronyms follow publication style — each is defined inline at its first use, listed in a dedicated Abbreviations section, used consistently, and not given conflicting meanings. Invoke when asked to review or validate a document's abbreviations/acronyms for compliance (e.g. per a manual of style)./about-this-authorsnpx claudepluginhub agencyenterprise/draft-detective --plugin draft-detectiveOther plugins' skills for the same job