greglas75/zuvo/content-fix
Claude Code and agent skill by greglas75/zuvo
- community
Checking that the SKILL.md file is still in the repository.
Apply fixes from content-audit findings. Reads audit JSON, classifies fixes by safety tier (SAFE/MODERATE), applies templates per fix type. Handles encoding artifacts (NBSP, mojibake), broken markdown, CMS migration debris, and typography issues. Modes: default (SAFE only), --auto (SAFE+MODERATE), --dry-run, --finding CC1-nbsp-present, --fix-type encoding-strip.
Install
npx vskill@latest install greglas75/zuvo/content-fixSKILL.md
The same SKILL.md was published earlier as greglas75/zuvo/content-fix.
zuvo:content-fix — Apply Content Audit Fixes
Read content-audit JSON findings. Classify by safety tier. Apply mechanical fixes. Verify build. Report.
Scope: Post-audit fix application for content file quality findings. Out of scope: SEO fixes (zuvo:seo-fix), content writing, spelling corrections, link target changes.
Mandatory File Loading
Read these files before any work begins:
Dispatch follows ../../shared/includes/execution-policy.md through env-compat. Reuse existing authorization within that policy; session restrictions take precedence. Run each required gate and report its actual independence or an unmet requirement.
../../shared/includes/env-compat.md-- Agent dispatch and environment adaptation../../shared/includes/content-fix-registry.md-- Canonical fix_type, safety, contracts../../shared/includes/fix-output-schema.md-- JSON report contract../../shared/includes/content-check-registry.md-- Check slugs reference../../shared/includes/backlog-protocol.md-- Filing findings throughbacklog-add../../shared/includes/verification-protocol.md-- Build verification rules../../shared/includes/run-logger.md-- Run logging contract../../shared/includes/retrospective.md-- Retrospective protocol../../shared/includes/knowledge-prime.md-- Project knowledge priming../../shared/includes/knowledge-curate.md-- Learning extraction after work../../shared/includes/no-pause-protocol.md-- HARD rule: no mid-batch pauses
Print the checklist:
If any file is missing, STOP.
Safety Gates (NON-NEGOTIABLE)
GATE 1 — Write Scope
Allowed write targets:
- Content files from the audit manifest (files listed in audit JSON findings)
zuvo/audits/for the fix report (.mdand.json)memory/backlog.md(closing a resolved entry: tick it and its resolution marker; the archive helper moves it) andmemory/findings/(written bybacklog-add)
FORBIDDEN:
- Installing packages or dependencies
- Writing to files not referenced by audit findings
- Modifying config files, build scripts, or non-content files
- Deleting files
GATE 2 — Dirty File Check
Before modifying any file:
git status --porcelain -- <file>— check for BOTH staged and unstaged changes- If the file has ANY uncommitted changes (staged or unstaged): mark finding
as NEEDS_REVIEW
- Do not modify dirty files
GATE 3 — Stale Audit Protection
If audit JSON timestamp is >24h old:
- Default mode (SAFE only): proceed with warning
--automode: require user confirmation before mutating--dry-runmode: proceed with warning
GATE 4 — PROVISIONAL Audit Handling
If audit JSON result is "PROVISIONAL" (has INSUFFICIENT DATA blocking gates):
- Default mode (SAFE only): proceed normally — SAFE fixes are safe regardless
of incomplete gates
--automode: restrict to SAFE fixes only (do not apply MODERATE). Warn:
"Audit is PROVISIONAL — restricting to SAFE fixes. Re-run content-audit with --live-url for full coverage."
Arguments
| Argument | Behavior | |
|---|---|---|
| (default) | Apply SAFE fixes only (encoding-strip, markdown-fix, typography-fix) | |
--auto | Apply SAFE + MODERATE fixes (encoding-mojibake, artifact-remove) | |
--dry-run | Show what would be fixed, change nothing | |
--finding CC1-nbsp-present,CC2-broken-italic | Fix specific findings by stable ID | |
--fix-type encoding-strip,markdown-fix | Fix specific fix_type categories | |
[json-path] | Use specific JSON file instead of latest |
Knowledge Prime
Run the knowledge prime protocol from knowledge-prime.md:
Phase 0: Load Findings
0.1 Locate audit JSON
- If
[json-path]provided: use that file - Otherwise: glob
zuvo/audits/content-audit-*.json, select most recent by timestamp - If no JSON found: "No audit JSON found. Run
zuvo:content-auditfirst." STOP.
0.2 Validate schema
Check version field. Supported: "1.0", "1.1".
Required fields:
0.3 Check freshness
Read timestamp. Apply GATE 3 if >24h old.
0.4 Print summary
Phase 1: Detect Framework & Classify
1.1 Stack detection
Same inline detection as content-audit Phase 0.1.
1.2 Classify findings
For each finding with a non-null fix_type:
| fix_type | Safety | Default mode | --auto mode | |
|---|---|---|---|---|
encoding-strip | SAFE | Apply | Apply | |
markdown-fix | SAFE | Apply | Apply | |
typography-fix | SAFE | Apply | Apply | |
encoding-mojibake | MODERATE | Skip | Apply | |
artifact-remove | MODERATE | Skip | Apply |
Findings with fix_type: null are MANUAL — never auto-applied.
Phase 2: Apply Fixes
2.0 Pre-flight per file
Before modifying any file:
- Save a snapshot of the original content (in memory, for rollback)
- Check GATE 2 (dirty file check)
- If multiple findings target the same file: batch all fixes into one edit
2.1 SAFE fixes (auto-applied)
For each SAFE finding:
`encoding-strip`:
- Replace NBSP (U+00A0) with regular space (U+0020)
- Remove zero-width characters (U+200B, U+200C, U+200D, U+FEFF)
- Remove BOM marker from file start
- Remove soft hyphens (U+00AD)
- Remove replacement characters (U+FFFD) — flag for manual review
- Scope: body content AND frontmatter string fields
- Skip content inside fenced code blocks
`markdown-fix`:
- Close unclosed
*or_at paragraph end (append matching marker) - Fix split italic:
* *text*→*text* - Remove orphan
\lines (stack-aware: only for Hugo/Goldmark)
`typography-fix`:
- Collapse 2+ spaces to 1 (outside code blocks, tables, indentation)
- Fix
..→.(preserve...ellipsis) - Fix
,,→,
2.2 MODERATE fixes (with --auto only)
`encoding-mojibake`:
- Replace garbled sequences using the mojibake signature table from
content-fix-registry.md
- Skip matches inside fenced code blocks (may be intentional examples)
- Verify each replacement produces valid UTF-8
`artifact-remove`:
- Remove WordPress shortcodes: extract inner content where possible
- Remove PHP tags:
<?php ... ?>blocks entirely - Remove
<font>tags: keep inner text - Remove excessive inline styles (>50 chars)
- Joomla paths (`/images/stories/`, `index.php?option=com_`): do NOT
auto-replace — target path is unknown. Mark as NEEDS_REVIEW with evidence and suggested manual action. These are always flagged for human review even in --auto mode.
2.3 MANUAL findings
Never auto-applied. Appear in report as advisory with suggested changes:
- Spelling corrections
- Content duplication resolution
- Frontmatter rewrites
- Link target changes
Phase 3: Build Verification
Detect project build command:
package.jsonscripts:build,astro build,next build- Hugo:
hugobinary - If no build command: skip, note in report
Build verification follows verification-protocol.md:
build_result: PASSrequires exit code 0build_result: FAILfor any non-zero exit code
Build failure → rollback per-file snapshots from Phase 2.0.
Phase 4: Adversarial Review (MANDATORY — do NOT skip)
Record the verdicts after triage: every finding is fixed, rejected (a false positive) or deferred — record each by its ID: in ONE call, ~/.zuvo/adversarial-review --record-disposition ID-1 fixed --record-disposition ID-2 rejected …, per ../../shared/includes/adversarial-loop.md Step 4.9 (the review lists its IDs on stderr).
If adversarial-review is not in PATH: ~/.zuvo/adversarial-review (stable; the versioned cache path breaks after any release)
Wait for complete output. Fix CRITICAL immediately. WARNING (localized) → fix.
Phase 5: Report
5.1 Report template
Retrospective (REQUIRED)
Follow the retrospective protocol from retrospective.md. Gate check → structured questions → TSV emit → markdown append. If gate check skips: print "RETRO: skipped (trivial session)" and proceed.
Append via wrapper (REQUIRED). Never >> directly to ~/.zuvo/runs.log — the wrapper is the gate that verifies a retro entry exists for this run. Order: retro bash executed → wrapper invoked → completion claimed.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/content-fix/SKILL.md
Popularity
- Repository stars
- 7
- 7-day trend score
- 11
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/greglas75/zuvo/content-fix)