Skip to content
documentation-sync logo

Documentation Synchronization Skill

documentation-sync

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.

SKILL.md

Full skill instructions

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:

  • API Changes: Adding/​modifying REST or GraphQL endpoints
  • Database Changes: Adding entities, modifying schema
  • Architecture Changes: Changing design patterns, component structure
  • Configuration Changes: Adding environment variables, config options
  • Security Changes: Modifying authentication, authorization
  • Testing Changes: Adding test strategies, new test types
  • Performance Changes: Optimizations, benchmarking
  • Feature Implementation: New user-facing features

Core Documentation Files

API and Integration

FilePurposeUpdate When
docs/​api-endpoints.mdREST/​GraphQL endpoints, schemasAPI changes
docs/​user-guide.mdUser-facing featuresFeature changes
docs/​security.mdAuth, authorizationSecurity changes

Architecture and Design

FilePurposeUpdate When
docs/​design-and-architecture.mdSystem design, patternsArchitecture changes
docs/​developer-guide.mdDev patterns, examplesDev workflow changes
docs/​glossary.mdDomain terminologyNew domain concepts

Operations and Configuration

FilePurposeUpdate When
docs/​advanced-configuration.mdEnv vars, configConfig changes
docs/​getting-started.mdSetup, installationSetup changes
docs/​operational.mdMonitoring, loggingOps changes

Development

FilePurposeUpdate When
docs/​testing.mdTest strategiesTest changes
docs/​performance.mdBenchmarks, optimizationsPerformance work
docs/​onboarding.mdNew dev onboardingProcess changes

Versioning

FilePurposeUpdate When
docs/​versioning.mdVersion infoVersion bumps
docs/​release-notes.mdChangelogSignificant 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 TypePrimary DocsCommandsGuide
REST Endpointapi-endpoints.mdmake generate-openapi-specapi-endpoints.md
GraphQL Operationapi-endpoints.mdmake generate-graphql-specapi-endpoints.md
Database Schemadesign-and-architecture.md-database-and-architecture.md
Domain Modeldesign-and-architecture.md, glossary.md-database-and-architecture.md
Configurationadvanced-configuration.md-configuration-and-operations.md
Authenticationsecurity.md, api-endpoints.md-configuration-and-operations.md
Testingtesting.md-configuration-and-operations.md
Performanceperformance.md-configuration-and-operations.md

See detailed guides: update-scenarios/ directory

Documentation Quality Standards

Consistency

  • ✅ Follow existing doc structure and formatting
  • ✅ Use terminology from docs/​glossary.md
  • ✅ Include code examples with syntax highlighting
  • ✅ Add cross-references to related sections

Completeness

  • ✅ Document all public APIs and endpoints
  • ✅ Include error handling and edge cases
  • ✅ Provide basic and advanced examples
  • ✅ Update version info when needed

Maintenance

  • ✅ Remove outdated information
  • ✅ Update release notes for significant changes
  • ✅ Validate all links and references
  • ✅ Update diagrams if architecture changes

See detailed standards: reference/​quality-standards.md

Pre-Commit Checklist

Before committing code with documentation updates:

  • Identify Impact: Determine which docs need updates
  • Update Content: Apply scenario-specific patterns
  • Cross-Reference: Verify all links remain valid
  • Test Examples: Run all code examples
  • Check Consistency: Verify terminology matches glossary
  • Update Specs: Run make generate-openapi-spec or make generate-graphql-spec if needed
  • Review Changes: Ensure completeness and accuracy

See complete workflow: reference/​workflow-checklist.md

Integration with Development

During Development

Documentation is code:

  • Update docs in same PR as code changes
  • Test documentation examples
  • Validate links and references

During Code Review

Reviewers check:

  • Documentation accuracy
  • Completeness of examples
  • Terminology consistency
  • Link validity

During CI/​CD

Automated checks:

  • Documentation links validation
  • Example code syntax checking
  • Spec generation and validation

Supporting Files

For detailed guides, examples, and standards:

Success Criteria

  • ✅ All affected docs updated
  • ✅ Code examples tested and working
  • ✅ Links and references valid
  • ✅ Terminology consistent
  • ✅ Release notes updated
  • ✅ Docs reflect actual code behavior

More Security skills

supabase logo
Security

supabase

Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...

2.7K 308.9K
View

Comprehensive guides and best practices for Neon Serverless Postgres, covering setup, connection methods, authentication, and platform APIs.

98 216.2K
View

Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.

462 163.8K
View

A skill to evaluate how secure Firestore security rules are. Use this when Firestore security rules are updated to ensure that the generated rules are extremely secure and robust.

462 127.7K
View

Official skill for integrating Firebase AI Logic (Gemini API) into web applications. Covers setup, multimodal inference, structured output, and security.

462 125.1K
View

Complete Better Auth server and client setup with database adapters, session management, plugins, and security configuration.

222 118.2K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View
cloudflare logo
Security

cloudflare

Complete Cloudflare platform integration with decision trees for compute, storage, AI, networking, security, and infrastructure-as-code.

3K 110.7K
View

Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.

253 103K
View
gws-gmail logo
Security

gws-gmail

Send, read, and manage Gmail messages, drafts, labels, and account settings.

31.2K 78.9K
View

Comprehensive website auditing across 230+ rules in 21 categories including SEO, performance, security, and accessibility.

94 72.3K
View
gws-shared logo
Security

gws-shared

Shared authentication, CLI syntax, and output formatting patterns for gws Google Workspace commands.

31.2K 63.4K
View

Security AI tools

StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
GeoSpy logo
Security

GeoSpy

GeoSpy: Pricing, Features, FAQs, and Alternatives for AI Teams

Free
View

Detect AI-generated voices to protect against audio fraud.

Paid
View

Ensure Your Content's Originality with AI Plagiarism Checker

Freemium
View
Img Upscaler logo
Security

Img Upscaler

Upscale images by 400% without quality loss

Freemium
View
AICheatCheck logo
Security

AICheatCheck

Accurately Detect AI-Generated Content with TheChecker.AI

Free
View
D
Security

Detect GPT

Chrome extension that detects and flags AI-generated content

Free
View