doc-weaver

Synchronize architecture docs and code-facing guides with source changes.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/espensev/ai-skills --skill doc-weaver
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doc-weaver
Source: https://github.com/espensev/ai-skills/tree/main/gemini-skills/skills/doc-weaver
Command: npx skills add https://github.com/espensev/ai-skills --skill doc-weaver

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Architecture and code-facing documentation often drift as code evolves. Doc Weaver keeps both in sync, ensuring consistency between high-level architecture docs and implementation details.

Core Features & Use Cases

  • Contract-first synchronization: Enforces alignment between architecture docs and code-facing guides.
  • Guardrail-driven edits: Applies changes within defined scope to avoid unintended writes.
  • Use Case: When a library API changes, Doc Weaver updates the corresponding architecture diagrams and developer guides to reflect the new API surface.

Quick Start

Scan the repository and propagate updated architecture and code-facing documentation to reflect recent changes now.

Frequently Asked Questions about doc-weaver

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

FAQPage Schema
How do I keep architecture docs synchronized with code changes automatically?

To synchronize architecture docs with code changes automatically, use a contract-first tool that applies guardrail-driven edits. It scans source updates and propagates corresponding changes to architecture diagrams and code-facing guides to maintain consistency.

Why does code-facing documentation drift from architecture docs in software repositories?

Code-facing documentation drifts from architecture docs because high-level design and implementation details evolve independently across multiple modules. Without enforced synchronization, updates to library APIs fail to reflect in the corresponding developer guides.

How do I update developer guides and architecture diagrams when a library API changes?

To update developer guides and architecture diagrams when a library API changes, apply a synchronization tool with read and write access to documentation. It enforces scoped edits to reflect the new API surface accurately across all affected modules.

Do I need contract-first planning and guardrails for documentation synchronization?

Yes, contract-first planning and guardrails defined in GEMINI.md are required for documentation synchronization. These guardrails enforce alignment between architecture docs and code-facing guides, applying changes strictly within a defined scope to avoid unintended writes.

What is the best way to enforce scoped edits when synchronizing source and documentation?

The best way to enforce scoped edits when synchronizing source and documentation is using guardrail-driven rules. This prevents unintended writes by strictly limiting updates to the defined architectural scope and relevant code-facing guides.

Can I use this documentation synchronization approach across multiple modules and teams?

Yes, this documentation synchronization approach is designed for software repositories spanning multiple modules and teams. It maintains lockstep consistency between architecture diagrams, API docs, and implementation guides regardless of the team structure.