doc-sync-enforcer

Validate staged code changes against documentation files before committing.

Updated Dec 28, 2025
One-click install
npx skills add https://github.com/mbelenmontoya/hara --skill doc-sync-enforcer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doc-sync-enforcer
Source: https://github.com/mbelenmontoya/hara/tree/main/.claude/skills/doc-sync-enforcer
Command: npx skills add https://github.com/mbelenmontoya/hara --skill doc-sync-enforcer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents code changes from becoming outdated with documentation, ensuring that your project's documentation accurately reflects its current state.

Core Features & Use Cases

  • Automated Documentation Checks: Verifies that API routes, components, design tokens, and utility changes are reflected in relevant documentation files.
  • Proactive Reminders: Alerts you to necessary documentation updates before committing code.
  • Use Case: After modifying an API route, this Skill will remind you to update FINAL_SPEC.md and README.md to reflect the changes, preventing inconsistencies.

Quick Start

Ask the doc-sync-enforcer skill to check documentation for your latest code changes before committing.

Frequently Asked Questions about doc-sync-enforcer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I keep documentation in sync with code changes before committing?

To keep documentation in sync with code changes, you can analyze staged file modifications and categorize them to prompt necessary updates. This ensures API routes, components, design tokens, and utilities are accurately reflected in docs before a commit.

What is documentation synchronization for API routes and components?

Documentation synchronization for API routes and components is the process of validating code updates against project documentation files. It maintains documentation integrity by enforcing updates to specs and readmes whenever relevant code is modified.

How do I validate code updates against FINAL_SPEC.md and README.md?

To validate code updates against FINAL_SPEC.md and README.md, enforce documentation checks that categorize staged file modifications. This process alerts you to necessary documentation updates, preventing inconsistencies between the codebase and your specs.

Can I automate documentation checks for design tokens and utilities?

Yes, you can automate documentation checks for design tokens and utilities by analyzing staged file modifications. This verifies that changes to these elements are accurately reflected in relevant documentation files like CLAUDE.md.

Why does my project documentation become outdated after modifying an API route?

Project documentation becomes outdated after modifying an API route because code changes are often committed without corresponding doc updates. Enforcing documentation synchronization alerts you to update specs and readmes, preventing these inconsistencies.