polishup-cli 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/.opencode/commands/polishup.md +6 -0
  2. package/LICENSE +21 -0
  3. package/README.md +177 -3
  4. package/cli/hosts.mjs +171 -0
  5. package/cli/index.mjs +256 -0
  6. package/cli/installations.mjs +300 -0
  7. package/cli/update.mjs +57 -0
  8. package/package.json +53 -6
  9. package/skills/polishup/LICENSE.txt +21 -0
  10. package/skills/polishup/SKILL.md +84 -0
  11. package/skills/polishup/references/code/implementation.md +43 -0
  12. package/skills/polishup/references/code/index.md +13 -0
  13. package/skills/polishup/references/code/rules.md +24 -0
  14. package/skills/polishup/references/colors.md +65 -0
  15. package/skills/polishup/references/research.md +50 -0
  16. package/skills/polishup/references/tools.md +57 -0
  17. package/skills/polishup/references/ui-ux/accessibility.md +136 -0
  18. package/skills/polishup/references/ui-ux/art-direction.md +127 -0
  19. package/skills/polishup/references/ui-ux/audio-and-video.md +121 -0
  20. package/skills/polishup/references/ui-ux/data-visualization.md +130 -0
  21. package/skills/polishup/references/ui-ux/design-ethics.md +98 -0
  22. package/skills/polishup/references/ui-ux/design-evaluation.md +123 -0
  23. package/skills/polishup/references/ui-ux/design-systems.md +110 -0
  24. package/skills/polishup/references/ui-ux/foundations.md +23 -0
  25. package/skills/polishup/references/ui-ux/index.md +29 -0
  26. package/skills/polishup/references/ui-ux/information-architecture.md +132 -0
  27. package/skills/polishup/references/ui-ux/interaction-design.md +155 -0
  28. package/skills/polishup/references/ui-ux/motion-design.md +110 -0
  29. package/skills/polishup/references/ui-ux/performance.md +109 -0
  30. package/skills/polishup/references/ui-ux/responsive-design.md +98 -0
  31. package/skills/polishup/references/ui-ux/rules.md +36 -0
  32. package/skills/polishup/references/ui-ux/ux-research.md +110 -0
  33. package/skills/polishup/references/ui-ux/visual-design.md +147 -0
  34. package/skills/polishup/references/writing/accessibility-and-inclusion.md +57 -0
  35. package/skills/polishup/references/writing/content-and-evidence.md +83 -0
  36. package/skills/polishup/references/writing/content-structure.md +94 -0
  37. package/skills/polishup/references/writing/foundations.md +19 -0
  38. package/skills/polishup/references/writing/index.md +17 -0
  39. package/skills/polishup/references/writing/language-and-style.md +83 -0
  40. package/skills/polishup/references/writing/multilingual-writing.md +51 -0
  41. package/skills/polishup/references/writing/purpose-audience-context.md +72 -0
  42. package/skills/polishup/references/writing/review-and-revision.md +81 -0
  43. package/skills/polishup/references/writing/rules.md +26 -0
  44. package/skills/polishup/references/writing/voice-and-tone.md +72 -0
  45. package/skills/polishup/scripts/NOTICE.txt +27 -0
  46. package/skills/polishup/scripts/color.mjs +5626 -0
@@ -0,0 +1,83 @@
1
+ # Language & Style
2
+
3
+ Use for word choice, sentence clarity, terminology, grammar, punctuation, and local editing. Reuse the established purpose and audience. For larger structural changes, use [Content Structure](content-structure.md); for character and attitude, use [Voice & Tone](voice-and-tone.md).
4
+
5
+ ## Follow language and project conventions
6
+
7
+ Identify the language variety, register (language appropriate to the setting), formality, project style, and exact terms to preserve. Reuse the project dictionary or style sheet. Otherwise follow consistent existing usage; ask when conflicting conventions affect the result.
8
+
9
+ Distinguish the reason for an edit:
10
+
11
+ | Basis | Action |
12
+ | --- | --- |
13
+ | Error under the intended language convention | Correct it; preserve protected quotations or deliberate character speech |
14
+ | Ambiguity that changes meaning or action | Resolve it from the source or ask; do not guess |
15
+ | Comprehension problem | Change the construction that causes difficulty |
16
+ | House-style preference | Apply the project's choice without declaring other valid forms incorrect |
17
+
18
+ Preserve intentional dialect, fragments, and literary constructions when they serve the brief. A checker flag or unfamiliar expression does not establish an error.
19
+
20
+ ## Use precise words and consistent terms
21
+
22
+ Name the actual action, object, degree, or relationship. Prefer common, simple words over rare or formal alternatives when equally precise. Do not choose elaborate wording to sound professional: use "use" instead of "utilize" when no distinction is needed. Retain specialist terminology when readers need it to work, search, or distinguish concepts; explain it where needed. Avoid creating an acronym for a term used only once.
23
+
24
+ Do not assemble abstract nouns into a label when ordinary wording identifies the same thing. If a new term is useful, define it without presenting it as established terminology. Replace awkward synonyms with the correct domain term; keep exact identifiers and meaningful distinctions.
25
+
26
+ Replace vague evaluation with supported detail. If the source provides no detail, identify the gap rather than invent a benefit. Check idiom and domain meaning as well as dictionary equivalence. Preserve the scope and commitment: changing "may" to "will" or "some" to "all" changes the claim.
27
+
28
+ Use one term for one concept. Retain different terms for different concepts; "authentication" and "authorization" are not stylistic alternatives. Keep product names, UI labels, commands, identifiers, placeholders, and defined terms exact when their identity matters. Explain an unfamiliar label rather than silently renaming it. Verify uncertain terminology against an authoritative source.
29
+
30
+ ## Clarify sentence structure
31
+
32
+ Make the main action and its qualifications easy to identify. Check nested clauses, separated word pairs, stacked modifiers, and strings of nouns with unclear relationships. Move conditions beside the affected claim, explain missing relationships, or split the sentence where the meaning allows.
33
+
34
+ Use verbs when a noun phrase unnecessarily hides an action: "The team assessed the proposal" is more direct than "The team conducted an assessment of the proposal." Keep a defined noun when the document needs that exact term for an activity or deliverable. Do not invent an actor or object to complete a rewrite.
35
+
36
+ Choose active or passive voice by responsibility, focus, and what is known. Active voice often identifies responsibility clearly. Passive voice can suit an unknown actor or keep the result in focus. Preserve responsibility when it matters; apply the target language's conventions rather than English word order universally.
37
+
38
+ ## Resolve ambiguity
39
+
40
+ Inspect pronouns, qualifying phrases, negation, words such as "all" or "only", dates, and conditions. If two plausible readings change the outcome, use the source to resolve them or ask a focused question.
41
+
42
+ "After Lina sent Maya the draft, she revised it" leaves the actor unclear. Name the actor only if the source identifies her. Likewise, "Only managers can approve refunds" limits who can approve; "Managers can approve only refunds" limits what they can approve.
43
+
44
+ Keep an obvious pronoun when repeating the noun would add nothing. Preserve intentional ambiguity in requested creative work; resolve accidental ambiguity in instructions and factual claims.
45
+
46
+ ## Remove unnecessary wording
47
+
48
+ Remove wording that adds no needed meaning, context, courtesy, or emphasis. Add missing conditions, relationships, definitions, or explanations. Short sentences can still be difficult; longer explanations can be necessary.
49
+
50
+ | Signal | Repair |
51
+ | --- | --- |
52
+ | Generic opening or announcement of intent | Start with the actual information unless orientation is needed |
53
+ | Same point restated without development | Keep one clear statement; retain useful detail or a distinct implication |
54
+ | Corporate abstraction or unexplained jargon | Name the supported actor, action, object, or consequence |
55
+ | Hyperbole or unverified superiority, speed, or impact | State the supported capability or evidence; do not invent specificity |
56
+ | Abstract significance or benefit added to a factual sentence | Verify what the extra claim adds and what supports it; explain, qualify, or remove it |
57
+ | Repeated rhetorical questions, stock contrasts, or three-part lists | State the relationship directly; retain a device that contributes meaning |
58
+ | Stacked hedges | State what is uncertain and why; preserve necessary qualifications |
59
+ | Repeated headings, bold, emoji, or punctuation | Keep formatting that supports navigation, meaning, or an explicit style requirement |
60
+
61
+ If the only supplied fact is CSV export, replace "Our revolutionary export experience transforms productivity" or "Export records to CSV, ensuring better decisions" with "Export records to CSV." Both versions add an unsupported benefit. Keep an ending phrase when it states a supported purpose, condition, or consequence; an English word ending in "-ing" is not itself a defect.
62
+
63
+ These signals identify possible communication problems, not AI authorship. For unsupported content, use [Content & Evidence](content-and-evidence.md); for duplicated sections, use [Content Structure](content-structure.md). Do not create a universal banned-word list.
64
+
65
+ Do not optimize for an AI-detector score. Do not add mistakes, random word substitutions, forced slang, or invented experience to appear human. Judge the result by accuracy, usefulness, context, and the requested voice; preserve deliberate language choices that serve the brief.
66
+
67
+ ## Check grammar and punctuation
68
+
69
+ Check agreement, tense, aspect, spelling, punctuation, capitalization, and number/date presentation in the intended language and variety. Preserve distinctions that affect meaning. Reuse project conventions for valid alternatives such as spelling variants or serial commas. Record recurring unresolved choices for a substantial document only when needed.
70
+
71
+ In practical or business copy, prefer digits for quantities, measurements, prices, percentages, and comparisons unless project conventions require otherwise. For example, prefer "7 tools" to "seven tools" in a feature list. Follow the relevant conventions for narrative writing, sentence beginnings, legal wording, and protected strings. Change presentation without changing the value or precision.
72
+
73
+ Use a current language authority when uncertain. For example, [EYD V](https://ejaan.kemendikdasmen.go.id/eyd/) distinguishes the separate preposition in "di kantor" from the attached prefix in "dijual"; do not apply that distinction to every occurrence of "di".
74
+
75
+ Apply the [Writing rules](rules.md). Choose other punctuation by the relationship it expresses. Avoid repeated dramatic pauses, stacked asides, and chains of colons or semicolons used for effect. Restructure overloaded sentences without introducing comma splices or altering protected strings. Do not replace every removed em dash with the same punctuation pattern. Flag or ask about a suspected quotation error rather than silently changing attributed words.
76
+
77
+ ## Check flow and readability
78
+
79
+ Read adjacent sentences for continuity, emphasis, and unintended repetition. Vary construction when it improves the passage; do not randomize sentence lengths or replace precise terms to create variation. Keep useful parallelism, deliberate cadence, and clear long sentences. Reading aloud can reveal awkward phrasing but does not prove comprehension.
80
+
81
+ Use readability scores and checker suggestions to locate possible problems. Check which language, readers, and features they measure, including how they handle names and technical terms. A length-based score cannot establish accuracy, clear reasoning, or understanding. Do not apply English grade targets to other languages or delete qualifications to improve a score.
82
+
83
+ Check suggested changes against the original. Can readers identify the same actors, actions, scope, conditions, time, certainty, and emphasis? Report an unresolved meaning question instead of accepting a fluent guess. For a language review, identify the passage, consequence, and justified repair.
@@ -0,0 +1,51 @@
1
+ # Multilingual Writing
2
+
3
+ Use for translation, localization, transcreation, source-meaning checks, or language-specific delivery requirements. Reuse established audience and style decisions. Use [Accessibility & Inclusive Writing](accessibility-and-inclusion.md) when access barriers or representation need separate attention.
4
+
5
+ ## Choose the adaptation approach
6
+
7
+ Identify source and target languages, relevant variety or locale, purpose, and permitted changes when they affect the result. Reuse the existing brief and terminology. A short task does not require a separate localization plan.
8
+
9
+ | Approach | Primary obligation | Boundary |
10
+ | --- | --- | --- |
11
+ | Translation | Convey source meaning in appropriate target-language expression | Syntax and idiom may change; unsupported additions, omissions, and commitments are not authorized |
12
+ | Localization | Adapt content and relevant conventions for a locale | A language is not one country. Formatting a value does not authorize changing it or inventing a local fact |
13
+ | Transcreation | Rework expression for an agreed communicative or persuasive effect | Establish creative freedom. A rewritten slogan may no longer preserve each statement individually |
14
+
15
+ Terminology can vary. Clarify important conflicts between preserving source meaning and creative adaptation rather than silently choosing one.
16
+
17
+ Preserve the intended relationship, register, and effect using suitable target-language forms. A joke, honorific, metaphor, or address can need a different expression. Use relevant language and cultural evidence instead of national stereotypes. Flag an unresolved consequential nuance or seek qualified review.
18
+
19
+ ## Check meaning against the source
20
+
21
+ Keep a reliable source version. Compare consequential passages for actors, actions, recipients, negation, quantities, time, conditions, certainty, attribution, and defined terms. Check omissions, additions, untranslated text, and technical terms used with the wrong meaning. Fluent target wording can still carry the wrong message.
22
+
23
+ For example, translating "Administrators may export selected records" as "All users can export every record" changes permission, actor scope, and content scope. Restore those distinctions even if the target sentence sounds fluent.
24
+
25
+ Preserve names, diacritics, identifiers, placeholders, and quotations according to their role. Distinguish transliteration, an official translated name, and a new translation when relevant. If the source is ambiguous or appears wrong, ask or flag the issue instead of silently correcting it while claiming source fidelity. Use [Content & Evidence](content-and-evidence.md#preserve-meaning-when-summarizing-or-revising) for questions about preserving source meaning.
26
+
27
+ ## Review target-language quality
28
+
29
+ Check whether wording, register, terminology, grammar, and conventions fit the target audience and intended use. [Bilingual revision and monolingual review](https://translation.ec.europa.eu/languages-and-translation-european-commission/translation-quality_en) check source correspondence and target suitability respectively. Neither replaces the other; adapt the method without requiring an institutional workflow.
30
+
31
+ Preserve specialist depth where required. Subject expertise, language proficiency, literacy, and cultural familiarity are distinct. Avoid flattening an author's character or replacing local expression with a generic assistant voice. Use [Voice & Tone](voice-and-tone.md) for expressive decisions.
32
+
33
+ Prioritize important or uncertain passages, considering the language pair, subject, and source quality. Use qualified bilingual or subject review when errors could affect decisions or actions. Check actual capability for less-supported language pairs instead of assuming performance transfers from another pair.
34
+
35
+ Another generated version, translation back into the source language, model agreement, or a favorable score can reveal problems but does not prove correctness or independent verification. State what was checked and the affected uncertainty when adequate review is unavailable. Do not claim a verified or publication-ready translation without the necessary evidence.
36
+
37
+ ## Preserve values and delivery requirements
38
+
39
+ Resolve ambiguous numeric dates from verified context. Do not guess whether a date uses day/month or month/day. Preserve quantities when adapting decimal separators, units, currency, or time presentation. An actual conversion or change to locale-specific facts needs a reliable basis.
40
+
41
+ For reusable messages, provide context for the speaker, action, and placeholder meanings. Keep placeholder identities and meaningful boundaries intact. Flag plural forms, agreement, word order, text expansion, or sentence fragments that require delivery changes; translated fragments are not automatically interchangeable.
42
+
43
+ Identify relevant language changes and text-direction needs. Preserve required characters and diacritics. Word translation alone does not verify mixed-direction rendering, assistive-technology pronunciation, or language-switch behavior. Not every borrowed word requires different language markup; applicable exceptions matter.
44
+
45
+ Writing supplies meaning, language identification, alternatives, and adaptation constraints. UI/UX checks presentation and interaction; Engineering checks encoding, semantics, direction, plural handling, associations, and rendered behavior. Report these implementation needs without claiming they have been built or tested.
46
+
47
+ ## Verify the requested result
48
+
49
+ Check the target against both the source and the intended use. Preserve the authorized degree of adaptation, and keep facts, conditions, values, names, and placeholders intact unless a change was expressly required and supported.
50
+
51
+ For review-only work, identify the affected source/target passage, the discrepancy or suitability problem, its consequence, and a proposed correction or question. A request to translate does not automatically require an accessibility audit or complete product-localization assessment.
@@ -0,0 +1,72 @@
1
+ # Purpose, Audience & Context
2
+
3
+ Use to choose purpose, audience, context, medium, scope, and depth. Reuse established decisions; no questionnaire or separate brief is required.
4
+
5
+ ## Define purpose and speaker
6
+
7
+ Identify what readers should understand, decide, do, or experience. "Migration" is a topic; deciding whether to migrate and performing a migration require different content.
8
+
9
+ Distinguish the reader's need from the publisher's objective. A launch announcement can promote a product while giving readers enough information to assess its relevance and limits. Resolve important conflicts without silently dropping a requirement or a fact readers need for their decision.
10
+
11
+ Choose the primary outcome when goals compete, retaining secondary goals required by the brief. Reflection, fiction, and other experiential work may intentionally delay a conclusion or preserve ambiguity. A private journal need not acquire an external audience or call to action.
12
+
13
+ Establish who the text represents when it affects meaning: an individual, team, organization, narrator, or another requested role. A personal suggestion and an official instruction carry different commitments.
14
+
15
+ ## Assess reader knowledge
16
+
17
+ Identify the primary reader and any secondary readers whose needs change the content. Consider topic expertise, project familiarity, language proficiency, practical experience, questions, objections, and reasons for reading. Use evidence relevant to this piece.
18
+
19
+ Do not substitute demographic labels or job titles for knowledge of readers. An experienced engineer can be new to this project; a specialist reading in another language may need full technical depth with clearer language.
20
+
21
+ Compare required knowledge with what readers can reasonably know. Explain missing terms, relationships, or reasoning; add examples when useful. Keep familiar precise terms and omit background that does not help the task.
22
+
23
+ ## Ask, research, or proceed
24
+
25
+ Use the brief, existing material, correspondence, reader questions, support feedback, observations, or relevant research when available. Inspect inputs likely to change the writing decision. Do not claim reader research that did not occur.
26
+
27
+ Distinguish supplied or observed facts, interpretations, and unknowns. A brief defines the assignment, not every reader's needs. Usage data alone cannot show understanding; experts may not represent newcomers. Imagined personas and model-generated reactions are hypotheses.
28
+
29
+ - Ask when plausible interpretations change the audience, claim, required action, commitment, or essential coverage and context provides no defensible default.
30
+ - Proceed when a reasonable default supports useful work. Disclose an assumption when it materially affects the result.
31
+ - Leave an affected claim or section provisional when a missing fact determines its scope or consequences; complete independent parts.
32
+ - Investigate when the uncertainty warrants research within the authorized task. A short edit does not require an audience interview or new research project.
33
+
34
+ For a requested draft or reusable template, use descriptive placeholders for required missing values when useful, for example [release date]. Distinguish them from literal text. For finished copy, resolve required gaps or identify what remains incomplete; do not present placeholders as verified facts.
35
+
36
+ ## Match genre, medium, and context
37
+
38
+ Consider urgency, available attention, earlier communication, point of use, access needs, device, language, and whether the content may be forwarded or read independently.
39
+
40
+ Distinguish the type of writing from its delivery medium. An email can contain an announcement, apology, or decision memo; the channel alone does not determine formality, length, or structure. Use project examples and the requested outcome to interpret expectations.
41
+
42
+ Respond to known circumstances without assuming readers' emotions. A failed transaction needs an explanation and next step, but does not reveal how every reader feels. Use [Voice & Tone](voice-and-tone.md) when this affects expression.
43
+
44
+ Respect the requested medium. When it is open, choose for the actual use: immediate exchange, persistent lookup, close reading, learning, or another purpose. Digital content can need depth. Propose a consequential format change instead of silently replacing the deliverable.
45
+
46
+ ## Choose depth and scope
47
+
48
+ Decide the coverage, explanation, practical detail, and decision support the outcome requires:
49
+
50
+ | Need | Include |
51
+ | --- | --- |
52
+ | Understand a mechanism | Necessary concepts, relationships, and an example when it explains the mechanism |
53
+ | Carry out a task | Prerequisites, actions, important conditions, expected results, and relevant recovery |
54
+ | Make a decision | Comparable options, evidence, consequences, limitations, and trade-offs |
55
+ | Find a fact | A direct answer with the qualifications needed to interpret it |
56
+ | Experience a narrative or reflection | Detail, pacing, and uncertainty appropriate to the intended effect |
57
+
58
+ Add explanations where knowledge is missing; remove help that gets in the way. Experts may need unfamiliar constraints explained. Newcomers may need one specific answer rather than a field introduction.
59
+
60
+ State exclusions only when readers could reasonably expect the omitted material. For mixed audiences, prioritize the intended reader and keep essential information available to other legitimate recipients. Summaries, optional detail, links, or separate treatments can address different needs; do not produce multiple versions automatically.
61
+
62
+ Distinguish learning a skill from applying existing knowledge. A tutorial and how-to guide can serve different needs without representing beginner and advanced versions of the same text. Do not force documentation categories onto letters, essays, or fiction.
63
+
64
+ If a length limit cannot accommodate a decisive condition or explanation, identify the conflict rather than omit it silently.
65
+
66
+ ## Check audience fit
67
+
68
+ Check decisions actually made: does the piece serve the requested outcome, assume appropriate knowledge, and remain understandable at its point of use? Could a forwarded message or section entry lose necessary context?
69
+
70
+ When relevant reader feedback is available, check whether readers can explain the intended meaning, make the intended judgment, or complete the task. Use suitable criteria for experiential work. A readability score, imagined persona, or favorable model review does not prove reader understanding.
71
+
72
+ For an audience-fit review, explain what does not fit, why it matters, the evidence or assumption behind the finding, and what remains unknown.
@@ -0,0 +1,81 @@
1
+ # Review & Revision
2
+
3
+ Use to diagnose problems, set priorities, choose changes, evaluate feedback, or check revisions. Select relevant checks and topic references; no fixed editing sequence or full-domain read is required.
4
+
5
+ ## Confirm the requested work
6
+
7
+ Identify the requested result, available material, applicable conventions, and qualities that must remain stable. Reuse the brief. Proofreading does not authorize changing the argument; a requested restructuring needs more than spelling corrections.
8
+
9
+ - **Creation:** apply relevant criteria while developing the work. A separate review report is unnecessary unless requested.
10
+ - **Refinement:** make justified changes for the agreed result, retaining satisfactory parts.
11
+ - **Review:** assess and report without changing the text. A proposed replacement can illustrate a finding; applying it requires authorization.
12
+
13
+ Limit conclusions to available material. Report serious out-of-scope concerns without silently expanding the work. Clarify conflicts that change the assignment; routine editing choices need no extra approval.
14
+
15
+ ## Diagnose the problem
16
+
17
+ Connect a finding to the passage, reader need or requirement, and consequence. Read enough surrounding context to distinguish a missing argument, unclear order, language problem, tone mismatch, or preference.
18
+
19
+ | Judgment | Basis | Response |
20
+ | --- | --- | --- |
21
+ | Defect | Demonstrated error in meaning, fact, applicable convention, or explicit requirement | Correct within scope or report with evidence |
22
+ | Contextual risk or trade-off | A plausible difficulty conditional on reader or use, with a competing benefit | Explain the condition and choose a proportionate repair or seek needed evidence |
23
+ | Preference | A defensible alternative without an established advantage for this task | Preserve the original unless the brief calls for change; label optional advice |
24
+
25
+ Keep confidence separate from impact. An uncertain interpretation can matter greatly without being a confirmed defect. Re-read, verify, or ask when alternative meanings require different edits. A polished or specific comment is not necessarily an important finding.
26
+
27
+ ## Choose the editing approach
28
+
29
+ | Work | Use when | Boundary |
30
+ | --- | --- | --- |
31
+ | Developmental or structural editing | Purpose, coverage, argument, narrative, or arrangement needs development | Resolve substantive gaps before polishing dependent text; never invent facts |
32
+ | Stylistic or line editing | Connections, expression, or cadence need attention within a useful draft | Preserve intended character and justified unusual expression |
33
+ | Copy editing | Mechanics, terminology, references, or consistency need correction | Use the actual language and project conventions; do not imply exhaustive fact-checking |
34
+ | Proofreading | Prepared content needs correctness, completeness, or presentation checks | Inspect the supplied or delivered version; avoid discretionary rewriting |
35
+ | Rewriting | The authorized transformation cannot be achieved by local repair | Establish the meaning, commitments, evidence, and voice that must survive |
36
+
37
+ Editing terms and levels vary and can overlap. Agree on the actual work instead of assuming a label includes every activity. Prefer local corrections when sufficient; move a section when that solves more than many sentence edits. Do not rewrite a working document to fix one name.
38
+
39
+ ## Prioritize by impact and dependency
40
+
41
+ Address errors that most affect the intended outcome: wrong facts, changed meaning, missing conditions, unsupported conclusions, unanswered questions, or unusable instructions. A negation or decimal can matter more than several awkward paragraphs.
42
+
43
+ Resolve problems before editing text that depends on them when this avoids rework. Sentence-level defects can themselves change an argument; prioritization is not a rule that small edits must become developmental reviews.
44
+
45
+ With limited time or access, inspect consequential uncertainty first and identify the coverage limit. A sample of checked claims is not verification of the whole document. Group related findings when they have a shared cause. No fixed pass count, severity formula, or minimum number of findings is required.
46
+
47
+ ## Evaluate feedback
48
+
49
+ Separate a reviewer's reported difficulty from their proposed solution. Accept, adapt, decline, or query the suggestion according to its evidence and effect on the text. A request for a different introduction may not solve an unsupported conclusion.
50
+
51
+ For conflicting comments, compare purpose, assumptions, authority, and consequences. Repeated difficulty may reveal a communication problem. Check whether reviewers encountered it independently or repeated the same source. Repetition and majority preference do not prove a factual claim. Clarify conflicting requirements with the responsible user when needed. Preserve the author's judgment. Use existing comments when useful; not every edit needs a response letter or change log.
52
+
53
+ ## Revise and check affected content
54
+
55
+ Keep the original for comparison when needed. Edit the relevant passage and check its context, definitions, references, examples, captions, headings, and repeated facts. A local correction can create repetition or contradictions elsewhere.
56
+
57
+ Use [Content & Evidence](content-and-evidence.md#preserve-meaning-when-summarizing-or-revising) for claims, conditions, and attribution, [Voice & Tone](voice-and-tone.md) for the author's character, and [Multilingual Writing](multilingual-writing.md) for preserving meaning across languages. Preserve exact quotations, identifiers, names, and required wording according to their role.
58
+
59
+ Preservation does not require keeping a verified error or rejecting an authorized new direction. Correct established errors within scope and make consequential claim changes visible. If the intended meaning is unknown, ask or flag it rather than selecting a convenient interpretation.
60
+
61
+ | Question | Suitable check | Limit |
62
+ | --- | --- | --- |
63
+ | Did the repair solve the problem? | Compare the revised passage and context with the original criterion | A visible change or smoother wording does not prove improvement |
64
+ | Did meaning or support change? | Compare important statements and their conditions, inspect the source, or recalculate a changed value | A diff identifies changes but does not establish accuracy or preservation of meaning |
65
+ | Are mechanics and repeated choices correct? | Check the applicable authority, terminology, or style record; use suitable search/checker tools | Checkers can miss context or flag valid names, dialect, and creative effects |
66
+ | Is affected content complete and connected? | Inspect links, references, captions, headings, and repeated facts | A working URL does not establish source support |
67
+ | Can readers use the delivered version? | Inspect the actual medium; seek appropriate reader or subject/language feedback when consequential | Text-only review does not establish comprehension, cultural fit, or product accessibility |
68
+
69
+ A spelling repair may need only the word and affected context checked. A substantial rewrite needs comparison for both intended improvement and regressions. Use the available method; no particular diff tool, checker, model, or harness is required.
70
+
71
+ ## Check final output and report limits
72
+
73
+ Use self-review for a specific question and check important claims against their sources. Compare a revision with the original; fluent wording can still change meaning. Another prompt, session, model, or score does not alone establish independence or correctness. Do not launch additional model sessions or benchmarks without authorization.
74
+
75
+ When final presentation matters, inspect the version readers will receive if available. Confirm requested corrections and their consequences. At proofreading stage, avoid optional rewriting that creates new checking or layout work without clear benefit. Report serious defects rather than polishing around them.
76
+
77
+ Before delivering finished work, remove unintended chat introductions, editing notes, and unusable citation markers. Resolve missing required facts or identify what prevents completion; never fill gaps with invented content. Preserve descriptive placeholders in requested drafts or templates, intended code variables, and protected source text. Mark an incomplete draft clearly rather than presenting it as finished copy. Match formatting to the destination, including plain text where Markdown will not render.
78
+
79
+ Report location, issue, consequence, and proposed action or question. Separate defects, uncertain concerns, and preferences. Do not invent criticism; state when no material issue was found within the inspected scope.
80
+
81
+ For applied refinement, deliver the artifact and explain significant decisions or unresolved limits when useful. Stop when the requested outcome is met, relevant checks support it, and further changes have no clear benefit. If evidence or a requirement remains missing, identify it instead of claiming the document is fully verified, error-free, or accessible.
@@ -0,0 +1,26 @@
1
+ # Writing Rules
2
+
3
+ Apply to generated natural-language text, including explanations, UI copy, documents, code comments, and review comments. Use the [Writing index](index.md) when a decision needs deeper guidance.
4
+
5
+ ## Required rules
6
+
7
+ - Never generate an em dash (U+2014). Preserve it only within source material that must remain verbatim, including quotations, code, data, or other immutable content. Elsewhere use commas, periods, parentheses, or restructure the sentence. Check new text before delivery without normalizing protected source text.
8
+ - Do not fabricate factual claims or evidence, including statistics, references, quotations, testimonials, or credentials. Use a verifiable basis and identify material verification gaps. A real citation must support the attached claim. Do not invent specificity, personal experience, opposing views, or consensus, or hide unsupported claims behind vague authority such as "experts say".
9
+
10
+ ## Default writing style
11
+
12
+ - For informational and action-oriented work, give the answer or action early. Use familiar words and established terms when equally precise; avoid invented technical labels or awkward synonyms. Make actors, actions, conditions, and consequences explicit where needed. Prefer digits for quantities that readers need to scan or compare, preserving exact values and project conventions.
13
+ - Remove empty introductions, generic filler, repeated points, and padding. Avoid dramatic hooks, exaggerated stakes, stock metaphors, and inflated benefits. Replace hype and corporate abstractions with supported information. State uncertainty specifically instead of stacking vague hedges.
14
+ - Explain the actual relationship or useful detail instead of repeating a fact as an insight. Do not append unsupported benefits or significance, such as "ensuring better outcomes". Add supported explanation, qualify the inference, or omit it; do not invent detail to make the sentence specific.
15
+ - Use a measured, courteous tone for routine professional work. Avoid forced enthusiasm, familiarity, reassurance, and flattery. Do not agree with a factual claim just to please the reader or invent balance between unsupported positions. Match the requested genre and authorial character; preserve meaningful creative expression and necessary depth.
16
+ - Use headings, lists, bold, emoji, and punctuation only when they help meaning or navigation. In routine informational writing, avoid stock "not X, but Y" reframing, self-answered questions, forced lists, and dramatic pauses. State the point directly; retain devices needed for an actual distinction or requested style.
17
+ - Avoid sentence-by-sentence connectors, forced three-part slogans, repeated punchy fragments, and uniform paragraph templates. Preserve meaningful transitions, parallelism, and cadence; do not randomize rhythm or terminology.
18
+ - Omit unrequested chat introductions, process narration, placeholder citations, and repetitive summaries from the delivered artifact. Retain necessary explanations and requested drafting notes.
19
+
20
+ Preserve facts, qualifications, technical precision, and protected source text. Adapt defaults to language, genre, audience, and voice; the required rules retain their stated limits. Do not introduce mistakes, forced slang, or invented details to lower a detector score.
21
+
22
+ ## Check the result
23
+
24
+ Check clarity, useful detail, support for implied claims, information and voice preservation, useful formatting, and U+2014 outside protected text. Repair the affected passage without rewriting satisfactory text. Keep necessary depth; expand when needed for understanding.
25
+
26
+ Evidence and examples: [Pew's 2026 language-pattern analysis](https://www.pewresearch.org/data-labs/2026/08/20/how-much-of-the-internet-is-written-with-ai/) and [Paralect's practitioner examples](https://www.paralect.com/blog/signs-of-ai-slop-in-writing). Aggregate patterns and checklists do not establish individual authorship or universal language rules. The em dash prohibition is a project requirement; no frequency quotas or detector targets apply.
@@ -0,0 +1,72 @@
1
+ # Voice & Tone
2
+
3
+ Use to establish or preserve the writer's character, adapt tone, learn from samples, or choose expressive techniques. [Language & Style](language-and-style.md) handles wording and sentence correctness; this reference covers character and effect.
4
+
5
+ ## Distinguish voice, tone, register, and style
6
+
7
+ | Decision | Meaning |
8
+ | --- | --- |
9
+ | Voice | Recognizable character expressed through perspective, diction, rhythm, imagery, and relationship with readers |
10
+ | Tone | Attitude toward the subject, reader, or situation in this passage |
11
+ | Register | Language associated with a setting, activity, relationship, or community, including vocabulary, grammar, and formality |
12
+ | Writing style | Project conventions or a broader set of expressive choices; establish which meaning applies |
13
+
14
+ A brand may keep a recognizable voice while changing tone. An author, narrator, character, or contributor can legitimately use different voices across works. Formality is one choice, not a measure of quality. Here, voice means authorial character; active/passive grammar belongs in Language & Style.
15
+
16
+ ## Choose the intended voice
17
+
18
+ Identify whose voice the text represents. Use the brief, applicable project guidance, and relevant samples. Distinguish the agent's replies from the voice requested for the text.
19
+
20
+ Interpret vague requests as observable choices. "More professional" may mean more precise, restrained, courteous, or formally structured. Use the context to select an interpretation; ask when alternatives would substantially change the result. A short edit does not need a persona document or brand questionnaire.
21
+
22
+ Prefer samples from a comparable genre and relationship. A formal policy provides limited evidence for a condolence note. If the user requests a new direction, adapt supported features rather than treating past style as binding. Clarify consequential conflicts between the brief and examples.
23
+
24
+ ## Adapt writing samples
25
+
26
+ Look for repeated choices in point of view, address, formality, terms, rhythm, imagery, emotion, directness, and humour. Distinguish stable patterns from topic-specific choices or errors. One unusual phrase does not define a voice.
27
+
28
+ Convert observations into decisions for the new work. "Expert but approachable" might require precise terms explained where necessary and direct claims with appropriate limits. "Measured and personal" might require restrained evaluation and first-person observations, but does not authorize an invented biography or anecdote.
29
+
30
+ Adapt useful patterns without copying distinctive passages or importing the sample's facts, promises, emotions, or experiences. Treat style inferred from a short or mismatched sample as provisional. Do not require a large sample collection for every edit or claim exact reconstruction from limited evidence.
31
+
32
+ ## Adapt tone to the situation
33
+
34
+ Consider the event, stakes, communication stage, relationship, and known circumstances. A meaningful achievement may suit celebration; a consequential failure may require restraint, responsibility, and a useful next step. Familiarity, warmth, seriousness, and formality can vary independently.
35
+
36
+ Natural writing need not be informal; professional writing need not be cold. Preserve a suitable brand or author direction.
37
+
38
+ Respond to stated emotion and known circumstances. An export failure establishes inconvenience to address, not proof that every reader is distressed. Do not tell an unknown reader how they feel or promise a recovery time that is unavailable.
39
+
40
+ Separate acknowledgment from factual agreement. Recognize a concern without endorsing an unsupported premise. Explain a consequential disagreement with evidence and a useful next step; do not add praise to soften every correction or manufacture an opposing position to sound balanced. Retain justified agreement, courtesy, and requested advocacy.
41
+
42
+ If an export failed and retry is available, "The export failed. Please try again" states the known result and action. "A tiny hiccup; we'll fix it in no time" minimizes the problem and invents a promise. The right amount of detail depends on the actual failure and next step.
43
+
44
+ ## Use emotion and humour deliberately
45
+
46
+ Show care through accurate acknowledgment, useful help, respect for the reader's time, and clear responsibility. Apologize when the speaker's role and facts warrant it; do not invent blame, intimacy, or a personal bond. Preserve sincere acknowledgment when removing it would change the intended relationship.
47
+
48
+ Judge emotional intensity by purpose. A personal letter, advocacy piece, eulogy, poem, or fictional scene can legitimately be affectionate, angry, exuberant, or unsettling. Do not automatically convert it to restrained business writing.
49
+
50
+ Use humour for an identifiable effect, such as rapport, satire, or a distinctive perspective. Check who or what it targets, its cultural assumptions, whether it works across intended settings, and whether it obscures important instructions. Optional humour with uncertain fit can be omitted without removing warmth. Preserve requested satire or dark humour unless a concrete problem warrants revision.
51
+
52
+ ## Use comparisons and emphasis
53
+
54
+ Choose a comparison, metaphor, repetition, question, or other device for what it helps readers understand, notice, feel, or judge. Keep deliberate expression that serves the brief. Use literal wording in instructions and professional explanations when figurative language would obscure the meaning.
55
+
56
+ For an explanatory analogy, check which relationship it clarifies and where the comparison stops. Remove or replace it if it implies an unsupported mechanism or needs more explanation than a direct account. An analogy can explain a claim; it cannot establish that the claim is true.
57
+
58
+ In routine professional writing, avoid stock "not X, but Y" and "not only X but also Y" reframing and self-answered questions. State the positive claim directly. Use a contrast or question when it resolves a real misunderstanding, explains an actual distinction, or serves the requested style. Do not invent an opposing view merely to reject it, or imply a range or consensus the material does not support. Keep meaningful repetition or a three-item list; do not invent another point for symmetry.
59
+
60
+ Make persuasive emphasis accurate. An opportunity, cost, or risk can be foregrounded, but retain qualifications that change the decision. Do not manufacture urgency, credentials, testimonials, shared values, or lived experience. Check consequential factual claims with [Content & Evidence](content-and-evidence.md).
61
+
62
+ Retain supported conviction and intended enthusiasm; remove intensity that exceeds the evidence or situation. Neutral wording is not automatically more accurate.
63
+
64
+ ## Preserve voice and cultural meaning
65
+
66
+ Before revising, identify the perspective, cadence, imagery, stance, or deliberate irregularity that must remain. Repair a local problem locally when sufficient. Compare the revision with its surroundings and relevant samples. Consistency permits a coherent range, distinct characters, and individual contributors.
67
+
68
+ Check that corrections preserve the requested identity. A grammatically correct rewrite can still erase the writer's character. Watch for generic assistant phrasing replacing a restrained author, promotional excitement replacing a factual update, or identical reassuring language across different situations. A particular word alone does not establish poor quality.
69
+
70
+ Interpret address, indirectness, humour, and self-presentation in the relevant language and setting. Do not infer individual preferences from nationality or impose one culture's business style. When adapting across languages, preserve the intended relationship and effect; use [Multilingual Writing](multilingual-writing.md) for fidelity and locale decisions. Seek qualified feedback when a consequential nuance cannot be resolved.
71
+
72
+ Preserve character while adapting tone. Fix demonstrated mismatches; for a review, explain the intended effect, problem, and suitable change. Label preferences as preferences. Offer alternatives for meaningful choices, and stop when further rewrites add no benefit.
@@ -0,0 +1,27 @@
1
+ PolishUp bundled helper notices
2
+
3
+ This helper includes Color.js (colorjs.io) 0.7.1.
4
+ Source: https://github.com/color-js/color.js
5
+
6
+ MIT License
7
+
8
+ Copyright (c) 2021 Lea Verou, Chris Lilley
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+