Documentation sync

From VilnaCRM-Org/user-service · View interactive version

Documentation sync is an AI agent skill from the GitHub repository VilnaCRM-Org/user-service. Keep documentation in sync with code changes. Use when implementing features, modifying APIs, changing architecture, adding configuration, updating security, or making any changes that affect user-facing or developer-facing documentation.

How to use this skill

Skill file

Documentation Synchronization Skill

Overview

This skill ensures documentation in the docs/ directory remains synchronized with codebase changes, maintaining accuracy and completeness for both users and developers.

Core Principle

Documentation is part of the definition of done. No code change is complete until the relevant documentation is updated.

When to Use This Skill

Activate this skill when:

Core Documentation Files

API and Integration

| File | Purpose | Update When |

| ----------------------- | ------------------------------- | ---------------- |

| docs/api-endpoints.md | REST/GraphQL endpoints, schemas | API changes |

| docs/user-guide.md | User-facing features | Feature changes |

| docs/security.md | Auth, authorization | Security changes |

Architecture and Design

| File | Purpose | Update When |

| --------------------------------- | ----------------------- | -------------------- |

| docs/design-and-architecture.md | System design, patterns | Architecture changes |

| docs/developer-guide.md | Dev patterns, examples | Dev workflow changes |

| docs/glossary.md | Domain terminology | New domain concepts |

Operations and Configuration

| File | Purpose | Update When |

| -------------------------------- | ------------------- | -------------- |

| docs/advanced-configuration.md | Env vars, config | Config changes |

| docs/getting-started.md | Setup, installation | Setup changes |

| docs/operational.md | Monitoring, logging | Ops changes |

Development

| File | Purpose | Update When |

| --------------------- | ------------------------- | ---------------- |

| docs/testing.md | Test strategies | Test changes |

| docs/performance.md | Benchmarks, optimizations | Performance work |

| docs/onboarding.md | New dev onboarding | Process changes |

Versioning

| File | Purpose | Update When |

| ----------------------- | ------------ | ------------------- |

| docs/versioning.md | Version info | Version bumps |

| docs/release-notes.md | Changelog | Significant changes |

Documentation Update Workflow

Quick Reference

For each code change:

  1. Identify Impact: Which docs need updates?
  2. Update Content: Follow scenario-specific patterns
  3. Cross-Reference: Ensure links remain valid
  4. Validate Examples: Test all code samples
  5. Review Checklist: Use pre-commit checklist

Common Update Scenarios

| Change Type | Primary Docs | Commands | Guide |

| --------------------- | ------------------------------------------- | ---------------------------- | ----------------------------------------------------------------------------------- |

| REST Endpoint | api-endpoints.md | make generate-openapi-spec | api-endpoints.md |

| GraphQL Operation | api-endpoints.md | make generate-graphql-spec | api-endpoints.md |

| Database Schema | design-and-architecture.md | - | database-and-architecture.md |

| Domain Model | design-and-architecture.md, glossary.md | - | database-and-architecture.md |

| Configuration | advanced-configuration.md | - | configuration-and-operations.md |

| Authentication | security.md, api-endpoints.md | - | configuration-and-operations.md |

| Testing | testing.md | - | configuration-and-operations.md |

| Performance | performance.md | - | configuration-and-operations.md |

See detailed guides: update-scenarios/ directory

Documentation Quality Standards

Consistency

Completeness

Maintenance

See detailed standards: reference/quality-standards.md

Pre-Commit Checklist

Before committing code with documentation updates:

See complete workflow: reference/workflow-checklist.md

Integration with Development

During Development

Documentation is code:

During Code Review

Reviewers check:

During CI/CD

Automated checks:

Supporting Files

For detailed guides, examples, and standards:

Success Criteria

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.