sync-service-docs

Generate or update service documentation from OpenAPI specs and git diffs.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/Yusufkotavom/AiToEarn --skill sync-service-docs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sync-service-docs
Source: https://github.com/Yusufkotavom/AiToEarn/tree/main/project/aitoearn-backend/.claude/skills/sync-service-docs
Command: npx skills add https://github.com/Yusufkotavom/AiToEarn --skill sync-service-docs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the synchronization and generation of product documentation for specified services. When docs are missing, it generates them from OpenAPI specifications; when docs exist, it updates affected sections based on git diffs and refreshes last updated times and repository hash.

Core Features & Use Cases

  • Generate documentation from OpenAPI specs for services listed in the service configuration table.
  • Update existing docs by diffing git history to reflect changes in API definitions and source code.
  • Produce per-service documentation with consistent structure and metadata, including last updated time and code hash.

Quick Start

Run the command /sync-service-docs with a service name to generate or update its documentation.

Frequently Asked Questions about sync-service-docs

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

FAQPage Schema
How do I auto-generate API documentation from OpenAPI specs?

To auto-generate API documentation from OpenAPI specs, run a sync command targeting a service name to create missing docs or update existing sections based on git diffs. It reads OpenAPI files and source code to produce modular, structured documentation files.

How does git diff documentation synchronization work for existing API docs?

Git diff documentation synchronization works by comparing repository history to identify changes in API definitions and source code. It then updates only the affected documentation sections, refreshing metadata like last updated time and repository code hashes.

Can I update documentation across multiple microservices from a single configuration?

Yes, you can update documentation across multiple microservices by defining them in a service configuration table. The tool processes each specified service individually, reading its OpenAPI schemas and source code to generate or update its modular file outputs.

Does the documentation structure strictly follow the OpenAPI schema definitions?

Yes, the documentation structure is enforced strictly from OpenAPI schemas. This ensures generated docs accurately reflect API endpoints, request parameters, and response payloads without manual structural intervention or custom formatting overrides.

What is the best way to track code changes for incremental documentation updates?

The best way to track code changes for incremental documentation updates is using git history diffing. This approach detects modified API definitions, triggers stepwise doc generation for affected sections, and updates code hashes to maintain synchronization.

Why are last updated times and code hashes tracked in generated API docs?

Last updated times and code hashes are tracked to maintain documentation accuracy and auditability. These metadata fields verify that docs reflect the latest source code state and help identify when incremental updates occur during git diff synchronization.