|
| 1 | +# Agent Implementation Prompt Guide |
| 2 | +**Livepeer Docs Copy Framework — Codex Task** |
| 3 | +**Version 1.0 — March 2026** |
| 4 | + |
| 5 | +--- |
| 6 | + |
| 7 | +## Before running: manual checks |
| 8 | + |
| 9 | +Complete these before handing to the agent. Failures here will cause the |
| 10 | +agent to either overwrite existing content or place files in wrong locations. |
| 11 | + |
| 12 | +**Check 1 — PR template** |
| 13 | +Run: `git show docs-v2:.github/pull_request_template.md` |
| 14 | +- Exists → agent must APPEND the L5 block, not overwrite |
| 15 | +- Does not exist → agent creates the file |
| 16 | + |
| 17 | +**Check 2 — Brief template location** |
| 18 | +Confirm the correct path for `content-brief-template.md` with Rick. |
| 19 | +Likely `tools/templates/content-brief-template.md` but unconfirmed. |
| 20 | +Placeholder `[CONFIRM PATH]` is used in the prompt below — replace before running. |
| 21 | + |
| 22 | +**Check 3 — CI workflow** |
| 23 | +Run: `git show docs-v2:.github/workflows/lint-copy.yml` |
| 24 | +- Exists → agent must update, not create |
| 25 | +- Does not exist → agent creates the file |
| 26 | + |
| 27 | +**Check 4 — ai-tools/ai-skills directory** |
| 28 | +Run: `git show docs-v2:ai-tools/ai-skills/` |
| 29 | +- Confirm the `docs-copy/` subdirectory does not already exist to avoid |
| 30 | + partial overwrites of any prior skill work |
| 31 | + |
| 32 | +--- |
| 33 | + |
| 34 | +## Documents to attach |
| 35 | + |
| 36 | +Provide all five documents to the agent in full: |
| 37 | + |
| 38 | +| Document | Contents | |
| 39 | +|---|---| |
| 40 | +| Doc 7 | Phase 1: brief template, banned reference files, `lint-copy.js`, PR checklist | |
| 41 | +| Doc 9 | Phase 2: `lint-structure.js`, three SKILL.md files, CI workflow | |
| 42 | +| Doc 8 | Phase 3: `lint-patterns.js`, `pattern-observer.js`, two SKILL.md files | |
| 43 | +| Doc 11 | Root `SKILL.md`, `review-gate.md`, `copy-rules.md`, `invocation-guide.md` | |
| 44 | +| Doc 10 | Test suite: `run-all.js`, all fixtures, all expected JSON files | |
| 45 | + |
| 46 | +--- |
| 47 | + |
| 48 | +## The prompt |
| 49 | + |
| 50 | +``` |
| 51 | +Base branch: docs-v2 |
| 52 | +Pull docs-v2 before creating any files. |
| 53 | +
|
| 54 | +--- |
| 55 | +
|
| 56 | +TASK: Create the copy governance framework files as specified in the |
| 57 | +attached documents. Do not modify content. Do not merge files. |
| 58 | +One file per path, exactly as written in the source document. |
| 59 | +
|
| 60 | +--- |
| 61 | +
|
| 62 | +STEP 0 — VERIFY BEFORE CREATING ANYTHING |
| 63 | +
|
| 64 | +1. Confirm docs-v2 is current. |
| 65 | +
|
| 66 | +2. Check whether .github/pull_request_template.md exists. |
| 67 | + - EXISTS: append the L5 checklist block from Doc 7 to the end of the |
| 68 | + existing file. Do not overwrite or remove existing content. |
| 69 | + - DOES NOT EXIST: create the file with the full contents from Doc 7. |
| 70 | +
|
| 71 | +3. Check whether .github/workflows/lint-copy.yml exists. |
| 72 | + - EXISTS: replace it with the updated workflow from Doc 9 (P2-E). |
| 73 | + - DOES NOT EXIST: create it from Doc 9 (P2-E). |
| 74 | +
|
| 75 | +4. Confirm ai-tools/ai-skills/docs-copy/ does not already contain files. |
| 76 | + If it does, stop and report before proceeding. |
| 77 | +
|
| 78 | +If any Step 0 check produces an unexpected result, stop and report. |
| 79 | +Do not proceed until resolved. |
| 80 | +
|
| 81 | +--- |
| 82 | +
|
| 83 | +COMMIT 1 — Reference files (must exist before scripts run) |
| 84 | +
|
| 85 | +tools/scripts/lib/banned-words.txt |
| 86 | + → Full content from Doc 7, P1-B, "Reference File 1" |
| 87 | +
|
| 88 | +tools/scripts/lib/banned-phrases.txt |
| 89 | + → Full content from Doc 7, P1-B, "Reference File 2" |
| 90 | +
|
| 91 | +ai-tools/ai-skills/docs-copy/reference/banned-words.txt |
| 92 | + → Same content as tools/scripts/lib/banned-words.txt |
| 93 | +
|
| 94 | +ai-tools/ai-skills/docs-copy/reference/banned-phrases.txt |
| 95 | + → Same content as tools/scripts/lib/banned-phrases.txt |
| 96 | +
|
| 97 | +Commit message: "feat(copy-framework): add banned word and phrase reference files" |
| 98 | +
|
| 99 | +--- |
| 100 | +
|
| 101 | +COMMIT 2 — Scripts |
| 102 | +
|
| 103 | +tools/scripts/lint-copy.js |
| 104 | + → Full file from Doc 7, P1-B |
| 105 | +
|
| 106 | +tools/scripts/lint-structure.js |
| 107 | + → Full file from Doc 9, P2-D |
| 108 | +
|
| 109 | +tools/scripts/lint-patterns.js |
| 110 | + → Full file from Doc 8, P3-A |
| 111 | +
|
| 112 | +tools/scripts/pattern-observer.js |
| 113 | + → Full file from Doc 8, P3-B |
| 114 | +
|
| 115 | +Commit message: "feat(copy-framework): add lint scripts" |
| 116 | +
|
| 117 | +--- |
| 118 | +
|
| 119 | +COMMIT 3 — Tests |
| 120 | +
|
| 121 | +tests/copy-lint/run-all.js |
| 122 | + → Full file from Doc 10 |
| 123 | +
|
| 124 | +tests/copy-lint/fixtures/pass/clean-guide.mdx |
| 125 | +tests/copy-lint/fixtures/pass/clean-reference.mdx |
| 126 | +tests/copy-lint/fixtures/pass/clean-concept.mdx |
| 127 | + → Full fixture contents from Doc 10 |
| 128 | +
|
| 129 | +tests/copy-lint/fixtures/fail/banned-words.mdx |
| 130 | +tests/copy-lint/fixtures/fail/banned-phrases.mdx |
| 131 | +tests/copy-lint/fixtures/fail/review-flag.mdx |
| 132 | +tests/copy-lint/fixtures/fail/currency.mdx |
| 133 | +tests/copy-lint/fixtures/fail/empty-table-cell.mdx |
| 134 | +tests/copy-lint/fixtures/fail/missing-frontmatter.mdx |
| 135 | +tests/copy-lint/fixtures/fail/accordion-url-only.mdx |
| 136 | +tests/copy-lint/fixtures/fail/hedge-note.mdx |
| 137 | +tests/copy-lint/fixtures/fail/conditional-if.mdx |
| 138 | +tests/copy-lint/fixtures/fail/not-construction.mdx |
| 139 | + → Full fixture contents from Doc 10 |
| 140 | +
|
| 141 | +tests/copy-lint/expected/banned-words.json |
| 142 | +tests/copy-lint/expected/banned-phrases.json |
| 143 | +tests/copy-lint/expected/review-flag.json |
| 144 | +tests/copy-lint/expected/currency.json |
| 145 | +tests/copy-lint/expected/empty-table-cell.json |
| 146 | +tests/copy-lint/expected/missing-frontmatter.json |
| 147 | +tests/copy-lint/expected/accordion-url-only.json |
| 148 | +tests/copy-lint/expected/hedge-note.json |
| 149 | + → Full JSON contents from Doc 10 |
| 150 | +
|
| 151 | +Commit message: "feat(copy-framework): add test suite with fixtures" |
| 152 | +
|
| 153 | +--- |
| 154 | +
|
| 155 | +COMMIT 4 — SKILL.md files |
| 156 | +
|
| 157 | +ai-tools/ai-skills/docs-copy/SKILL.md |
| 158 | + → Full file from Doc 11, "Root: SKILL.md" |
| 159 | +
|
| 160 | +ai-tools/ai-skills/docs-copy/skills/copy-rules.md |
| 161 | + → Full file from Doc 11 (copy-rules section) |
| 162 | + Note: this file imports from reference/banned-words.txt and |
| 163 | + reference/banned-phrases.txt committed in Commit 1. |
| 164 | +
|
| 165 | +ai-tools/ai-skills/docs-copy/skills/structure-rules.md |
| 166 | + → Full file from Doc 9, P2-A |
| 167 | +
|
| 168 | +ai-tools/ai-skills/docs-copy/skills/value-prop-check.md |
| 169 | + → Full file from Doc 9, P2-B |
| 170 | +
|
| 171 | +ai-tools/ai-skills/docs-copy/skills/persona-routing.md |
| 172 | + → Full file from Doc 9, P2-C |
| 173 | +
|
| 174 | +ai-tools/ai-skills/docs-copy/skills/review-gate.md |
| 175 | + → Full file from Doc 11, "review-gate.md — L5 SKILL" |
| 176 | +
|
| 177 | +ai-tools/ai-skills/docs-copy/skills/iteration-diagnostic.md |
| 178 | + → Full file from Doc 8, P3-C |
| 179 | +
|
| 180 | +ai-tools/ai-skills/docs-copy/skills/pattern-observer.md |
| 181 | + → Full file from Doc 8, P3-D |
| 182 | +
|
| 183 | +ai-tools/ai-skills/docs-copy/reference/invocation-guide.md |
| 184 | + → Full file from Doc 11, "invocation-guide.md" |
| 185 | +
|
| 186 | +Commit message: "feat(copy-framework): add SKILL.md files" |
| 187 | +
|
| 188 | +--- |
| 189 | +
|
| 190 | +COMMIT 5 — Brief template and PR checklist |
| 191 | +
|
| 192 | +[CONFIRM PATH]/content-brief-template.md |
| 193 | + → Full template from Doc 7, P1-A |
| 194 | +
|
| 195 | +.github/pull_request_template.md |
| 196 | + → APPEND or CREATE per Step 0 check 2 above |
| 197 | + → L5 checklist content from Doc 7, P1-D |
| 198 | +
|
| 199 | +.github/workflows/lint-copy.yml |
| 200 | + → UPDATE or CREATE per Step 0 check 3 above |
| 201 | + → Full workflow from Doc 9, P2-E |
| 202 | +
|
| 203 | +Commit message: "feat(copy-framework): add brief template, PR checklist, CI workflow" |
| 204 | +
|
| 205 | +--- |
| 206 | +
|
| 207 | +VERIFICATION AFTER ALL COMMITS |
| 208 | +
|
| 209 | +Run the following and report output: |
| 210 | + node tools/scripts/lint-copy.js tests/copy-lint/fixtures/pass/clean-guide.mdx |
| 211 | + node tools/scripts/lint-copy.js tests/copy-lint/fixtures/fail/banned-words.mdx |
| 212 | + node tests/copy-lint/run-all.js |
| 213 | +
|
| 214 | +Expected: |
| 215 | + - clean-guide.mdx → zero errors |
| 216 | + - banned-words.mdx → 4 BANNED_WORD errors, exit code 0 (--warn-only implied) |
| 217 | + - run-all.js → all tests pass, exit code 0 |
| 218 | +
|
| 219 | +If run-all.js fails: report which fixtures failed and the diff between |
| 220 | +expected and actual error IDs. Do not attempt to fix script logic — |
| 221 | +report the failure for human review. |
| 222 | +
|
| 223 | +--- |
| 224 | +
|
| 225 | +FORBIDDEN |
| 226 | +
|
| 227 | +- Do not modify any existing .mdx content files in v2/ |
| 228 | +- Do not modify docs.json |
| 229 | +- Do not modify navigation-exclusions.json |
| 230 | +- Do not modify the .allowlist file |
| 231 | +- Do not merge content from multiple source documents into a single file |
| 232 | +- Do not reformat or rewrite any file contents |
| 233 | +``` |
| 234 | + |
| 235 | +--- |
| 236 | + |
| 237 | +## Adding new items after deployment |
| 238 | + |
| 239 | +**New banned word or phrase:** |
| 240 | +1. Add one line to `tools/scripts/lib/banned-words.txt` or `banned-phrases.txt` |
| 241 | +2. Mirror the addition to `ai-tools/ai-skills/docs-copy/reference/` equivalent |
| 242 | +3. Add a fail fixture with the new word/phrase |
| 243 | +4. Add an expected JSON file for it |
| 244 | +5. Run `node tests/copy-lint/run-all.js` to confirm |
| 245 | + |
| 246 | +**New Tier 2 pattern:** |
| 247 | +1. Add a pattern object to the `PATTERNS` array in `lint-patterns.js` |
| 248 | +2. Add a fail fixture |
| 249 | +3. Add expected JSON |
| 250 | +4. Run the test suite |
| 251 | + |
| 252 | +No other files require changes. Both scripts import from the reference |
| 253 | +files at runtime — there is no compilation or build step. |
0 commit comments