|
| 1 | +--- |
| 2 | +mode: "agent" |
| 3 | +description: "Agent that reformats Markdown files using Semantic Line Breaks according to the full SemBr specification. The output must be raw Markdown with applied semantic line breaks. Do not parse or interpret the output." |
| 4 | +--- |
| 5 | + |
| 6 | +# Task |
| 7 | + |
| 8 | +Apply **Semantic Line Breaks (SemBr)** to all Markdown (`.md`) documents in the current project. |
| 9 | +The output must be **raw Markdown** text, rewritten according to the specification below. |
| 10 | +Do not include explanations, parsing, summaries, or comments — only return the rewritten Markdown document(s). |
| 11 | + |
| 12 | +## Specification |
| 13 | + |
| 14 | +The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in RFC 2119. |
| 15 | + |
| 16 | +1. Text written as plain text or a compatible markup language MAY use semantic line breaks. |
| 17 | +2. A semantic line break MUST NOT alter the final rendered output of the document. |
| 18 | +3. A semantic line break SHOULD NOT alter the intended meaning of the text. |
| 19 | +4. A semantic line break MUST occur after a sentence, as punctuated by a period (.), exclamation mark (!), or question mark (?). |
| 20 | +5. A semantic line break SHOULD occur after an independent clause as punctuated by a comma (,), semicolon (;), colon (:), or em dash (—). |
| 21 | +6. A semantic line break MAY occur after a dependent clause in order to clarify grammatical structure or satisfy line length constraints. |
| 22 | +7. A semantic line break is RECOMMENDED before an enumerated or itemized list. |
| 23 | +8. A semantic line break MAY be used after one or more items in a list in order to logically group related items or satisfy line length constraints. |
| 24 | +9. A semantic line break MUST NOT occur within a hyphenated word. |
| 25 | +10. A semantic line break MAY occur before and after a hyperlink. |
| 26 | +11. A semantic line break MAY occur before inline markup. |
| 27 | +12. A maximum line length of 80 characters is RECOMMENDED. |
| 28 | +13. A line MAY exceed the maximum line length if necessary, such as to accommodate hyperlinks, code elements, or other markup. |
| 29 | + |
| 30 | +## Goals |
| 31 | + |
| 32 | +1. For Writers: The agent SHALL structure Markdown text so that the physical layout of lines reflects the logical and semantic structure of the author’s thoughts. |
| 33 | +2. For Editors: The agent SHALL produce output that makes grammatical and structural relationships easier to identify, supporting clear and efficient editing without changing meaning. |
| 34 | +3. For Readers: The agent SHALL ensure that applied semantic line breaks do not alter the rendered appearance or interpretation of the text in any Markdown renderer. |
| 35 | + |
| 36 | +Prompt instructions file: |
| 37 | + |
| 38 | +# Task |
| 39 | + |
| 40 | +Apply **Semantic Line Breaks (SemBr)** to all Markdown (`.md`) documents in |
| 41 | +the current project. |
| 42 | + |
| 43 | +The output must be **raw Markdown** text, rewritten according to the |
| 44 | +specification below. |
| 45 | + |
| 46 | +Do not include explanations, parsing, summaries, or comments — only return |
| 47 | +the rewritten Markdown document(s). |
| 48 | + |
| 49 | +## Specification |
| 50 | + |
| 51 | +The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, |
| 52 | +“SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this |
| 53 | +document are to be interpreted as described in RFC 2119. |
| 54 | + |
| 55 | +1. Text written as plain text or a compatible markup language MAY use |
| 56 | + semantic line breaks. |
| 57 | +2. A semantic line break MUST NOT alter the final rendered output of the |
| 58 | + document. |
| 59 | +3. A semantic line break SHOULD NOT alter the intended meaning of the text. |
| 60 | +4. A semantic line break MUST occur after a sentence, as punctuated by a |
| 61 | + period (.), exclamation mark (!), or question mark (?). |
| 62 | +5. A semantic line break SHOULD occur after an independent clause as |
| 63 | + punctuated by a comma (,), semicolon (;), colon (:), or em dash (—). |
| 64 | +6. A semantic line break MAY occur after a dependent clause in order to |
| 65 | + clarify grammatical structure or satisfy line length constraints. |
| 66 | +7. A semantic line break is RECOMMENDED before an enumerated or itemized |
| 67 | + list. |
| 68 | +8. A semantic line break MAY be used after one or more items in a list in |
| 69 | + order to logically group related items or satisfy line length |
| 70 | + constraints. |
| 71 | +9. A semantic line break MUST NOT occur within a hyphenated word. |
| 72 | +10. A semantic line break MAY occur before and after a hyperlink. |
| 73 | +11. A semantic line break MAY occur before inline markup. |
| 74 | +12. A maximum line length of 80 characters is RECOMMENDED. |
| 75 | +13. A line MAY exceed the maximum line length if necessary, such as to |
| 76 | + accommodate hyperlinks, code elements, or other markup. |
| 77 | + |
| 78 | +## Goals |
| 79 | + |
| 80 | +1. For Writers: The agent SHALL structure Markdown text so that the |
| 81 | + physical layout of lines reflects the logical and semantic structure of |
| 82 | + the author’s thoughts. |
| 83 | +2. For Editors: The agent SHALL produce output that makes grammatical and |
| 84 | + structural relationships easier to identify, supporting clear and |
| 85 | + efficient editing without changing meaning. |
| 86 | +3. For Readers: The agent SHALL ensure that applied semantic line breaks |
| 87 | + do not alter the rendered appearance or interpretation of the text in |
| 88 | + any Markdown renderer. |
| 89 | + |
| 90 | +## Formatting Rules |
| 91 | + |
| 92 | +- Preserve existing Markdown structure (headings, lists, code blocks, |
| 93 | + tables, HTML, etc.). |
| 94 | +- Skip fenced code blocks, inline code, and HTML verbatim. |
| 95 | +- Maintain paragraph integrity — do not insert empty lines unless |
| 96 | + already present. |
| 97 | +- When in doubt, prefer breaking after complete thoughts or clauses. |
| 98 | +- Output only the transformed Markdown content — do not add any metadata, |
| 99 | + explanations, or syntax highlighting. |
| 100 | + |
| 101 | +## Input |
| 102 | + |
| 103 | +Markdown file(s) from the workspace. |
| 104 | + |
| 105 | +## Output |
| 106 | + |
| 107 | +Raw Markdown text with Semantic Line Breaks applied. |
| 108 | + |
| 109 | +Do **not** parse, explain, or wrap the output — return only the processed |
| 110 | +Markdown content. |
| 111 | + |
| 112 | +## |
| 113 | + |
| 114 | +```""" |
| 115 | +
|
| 116 | +``` |
0 commit comments