Comprehensive documentation synchronization - scan local git changes and propagate updates to ALL design docs, task lists, specs, diagrams, and planning artifacts. Use when finishing a feature, after merging, or when design docs are out of date.
Install with Tessl CLI
npx tessl i github:0xrabbidfly/eric-cartman --skill doc-sync-all80
Quality
72%
Does it follow best practices?
Impact
93%
1.03xAverage score across 3 eval scenarios
Optimize this skill with Tessl
npx tessl skill review --optimize ./.github/skills/doc-sync-all/SKILL.mdYou are a documentation synchronization specialist. Your task is to analyze local git changes on the current branch and systematically update ALL related design documents, task lists, specifications, diagrams, and planning artifacts to maintain consistency across the entire repository.
Documentation should reflect reality, not aspirations. If code exists, docs should describe it. If code changed, docs should be updated. If a task is done, it should be checked off everywhere.
First, understand what changed on the current branch:
# Get list of changed files (staged + unstaged)
git status --porcelain
# Get detailed diff of changes
git diff HEAD
# Get list of new/modified files vs main branch
git diff --name-status main...HEAD
# Get commit messages for context
git log --oneline main..HEADCategorize changes into:
src/**/*.ts, web/**/*.jstests/**/*.ts*.json, *.yaml, *.config.***/*.md, **/*.mmd.github/skills/**indexes/**, catalog/**For each changed file, determine which docs might be affected:
| Change Type | Docs to Check |
|---|---|
New src/tools/*.ts | spec.md (FR-*), research.md (decisions), tasks.md (task status), data-model.md (entities) |
New src/pipeline/steps/*.ts | plan.md (architecture), tasks.md, spec.md (user stories) |
New .github/skills/* | copilot-instructions.md (skills list), tasks.md |
New src/types/*.ts | data-model.md, spec.md (Key Entities) |
Changes to indexes/* | copilot-instructions.md (stats), quickstart.md |
| New tests | TESTING.md, tasks.md (test tasks) |
| New CLI commands | quickstart.md, README.md, spec.md |
Scan and catalog ALL documentation files:
docs/ # Or your project's design folder
├── spec.md # User stories, FRs, acceptance criteria, key entities
├── plan.md # Architecture decisions, module descriptions
├── tasks.md # Phased tasks with [x]/[ ] status
├── data-model.md # Type definitions, entity relationships
├── research.md # Technical decisions with rationale
├── quickstart.md # Getting started guide
├── *.html # Generated infographics/diagrams
├── *.mmd # Mermaid diagrams
├── architecture-*.txt # ASCII architecture diagrams
└── checklists/*.md # Requirement checklists
specs/ # (Optional) OpenSpec-style specifications
├── project.md # Project-wide specifications
├── changes/*.md # Change proposals (numbered)
└── features/**/*.md # Feature specifications
.github/
├── copilot-instructions.md # Session onboarding, skills list
└── skills/*/SKILL.md # Individual skill definitions
Root level:
├── README.md # Project overview
├── TESTING.md # Test strategy
├── AGENTS.md # AI assistant meta-instructions
└── policies/*.yaml # Validation templates**/*.mmd # Mermaid diagrams
**/*.mermaid # Mermaid diagrams (alt extension)
**/pipeline-*.txt # ASCII flow diagrams
**/langgraph-*.md # LangGraph flow descriptions
**/*-infographic.html # Generated HTML infographics
**/architecture-*.md # Architecture documentationFor each task in tasks.md:
[x][ ]Validation pattern:
Task: "T094 [P] Implement `load_intake` tool in `src/tools/load-intake.ts`"
Check: Does src/tools/load-intake.ts exist?
Does it export a working function?
Do tests exist in tests/unit/tools/?
Update: [x] if all yes, [ ] if any noUpdate these sections based on code reality:
| Section | Sync From |
|---|---|
| Functional Requirements | Actual implemented features in src/ |
| Key Entities | Types in src/types/index.ts |
| Data Sources | Files in catalog/, indexes/ |
| Success Criteria | Test coverage, actual metrics |
| Now Implemented | Move items from "Out of Scope" when done |
Add new decision entries when:
Decision entry format:
- Decision: [What was decided]
Rationale: [Why this approach]
Alternatives considered: [What else was evaluated]
Status: [Implemented/Planned/Deferred]Update:
Keep in sync with src/types/index.ts:
Update Session Onboarding section:
Update diagrams when architecture changes:
pipeline-graph.mmd - LangGraph flowlanggraph-flow.md - Flow descriptionspipeline-ascii.txt - ASCII representation1. Run git status and git diff to understand changes
2. List all documentation files using file_search
3. Read tasks.md to understand current phase and pending items
4. Read spec.md for current FRs and entities
5. Read research.md for existing decisionsFor each changed code file:
1. Identify which docs reference this file/module
2. Check if docs reflect current implementation
3. Flag mismatches for updateCreate a change manifest:
## Documentation Update Manifest
### Files to Update:
1. `tasks.md` - Mark T094-T099 complete, update phase summary
2. `spec.md` - Add FR-021 through FR-027, add Tool entities
3. `research.md` - Add Phase 4.1 decisions section
4. `copilot-instructions.md` - Update skills list, working features
5. `data-model.md` - Add Tool, ToolResult, ToolInvocation types
### Specific Changes:
- [file]: [section]: [old] → [new]Use appropriate tools:
replace_string_in_file for section updatesmulti_replace_string_in_file for multiple editsAfter updates:
After synchronization, produce a summary:
## Documentation Sync Complete
**Branch:** feature/tools-layer
**Sync Date:** 2026-01-27
**Changes Analyzed:** 28 files
### Documents Updated:
| Document | Sections Changed | Lines Modified |
|----------|-----------------|----------------|
| tasks.md | Phase 4.1 added | +180 |
| spec.md | FR-021-027, Entities | +45 |
| research.md | Phase 4.1 Decisions | +85 |
| copilot-instructions.md | Session Onboarding | ~50 |
### Cross-Reference Validation:
- ✅ All task file paths exist
- ✅ All FR numbers are unique
- ✅ All entity types defined in types/
- ⚠️ langgraph-flow.mmd needs manual diagram update
### Recommended Follow-ups:
1. Review generated changes for accuracy
2. Update Mermaid diagrams manually if needed
3. Run `npm run build` to verify no broken imports**/*.md
!**/node_modules/**
!**/.git/**
!**/dist/****/*.mmd
**/*.mermaid
**/pipeline-*.txt
**/architecture-*.txt**/tasks.md
**/plan.md
**/spec.md
**/research.md
**/roadmap.md
**/TODO.md**/package.json (scripts section)
**/README.md
**/CHANGELOG.md
**/.github/**/*.md
**/openspec/**/*.mdThis skill works well with:
c62a8c6
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.