// Synchronized documentation updates across CLAUDE.md, README.md, .claude/CLAUDE.md, and deployment checklist to ensure consistency. Use when adding new architecture documents, analysis documents, or critical reference documents.
| name | cross-file-documentation-update |
| description | Synchronized documentation updates across CLAUDE.md, README.md, .claude/CLAUDE.md, and deployment checklist to ensure consistency. Use when adding new architecture documents, analysis documents, or critical reference documents. |
| license | MIT |
| allowed-tools | ["Bash","Read","Write","Edit"] |
| metadata | {"token-efficiency":"Doc sync automation saves 13 min per update (15ā2 min)","integration":"All documentation workflows + Orchestrator documentation phase","tech-stack":"Markdown, git, bash scripting, link validation","production-usage":"4+ uses (MONITOR-CODI doc, ADRs, execution plans)"} |
| tags | ["documentation","git","automation"] |
| version | 2.0.0 |
| status | production |
Automated documentation synchronization across 4 key files to prevent inconsistencies and missed updates.
ā Use this skill when:
ā Don't use this skill when:
Before: (15 minutes, 8 file operations)
# Read and edit CLAUDE.md
vim CLAUDE.md
# Find "Critical first reads" section
# Add new entry manually
# Save
# Read and edit README.md
vim README.md
# Find docs/ structure
# Add new entry manually
# Save
# Read and edit .claude/CLAUDE.md
vim .claude/CLAUDE.md
# Find "Documentation Hierarchy"
# Add new entry manually
# Save
# Git operations
git add CLAUDE.md README.md .claude/CLAUDE.md
git commit -m "..."
git push
After: (2 minutes, 1 command)
./core/sync-docs.sh \
--doc-path="docs/11-analysis/MONITOR-CODI-CONTAINER-PROVISIONING-STRATEGY.md" \
--doc-title="MONITOR-CODI Container Provisioning" \
--description="HYBRID approach for file monitoring and agent coordination"
./core/sync-docs.sh \
--doc-path="docs/11-analysis/NEW-ANALYSIS.md" \
--doc-title="Analysis Title" \
--description="Brief description"
./core/sync-docs.sh \
--doc-path="docs/07-adr/ADR-025-decision-name.md" \
--doc-title="ADR-025: Decision Name" \
--description="Architecture decision about X"
./core/sync-docs.sh \
--doc-path="docs/10-execution-plans/SPRINT-3-PLAN.md" \
--doc-title="Sprint 3 Execution Plan" \
--description="Backend integration + multi-LLM features"
./core/sync-docs.sh \
--doc-path="docs/11-analysis/TEST.md" \
--doc-title="Test" \
--description="Test description" \
--dry-run
4 files synchronized:
Location: "Critical first reads" section (line ~29) Format:
**Critical first reads**:
- [`docs/path/to/document.md`](docs/path/to/document.md) - Description
Location: Project Structure ā docs/ directory tree (line ~580)
Format:
āāā docs/ # Documentation
ā āāā 11-analysis/ # System analysis & provisioning strategies
ā ā āāā DOCUMENT-NAME.md # Description
Location: "Documentation Hierarchy" section (line ~24) Format:
**Always read these in order when starting a session:**
1. `/workspace/PROJECTS/t2/CLAUDE.md` - **Main project instructions**
2. This file (`.claude/CLAUDE.md`) - Claude Code customizations
3. `/workspace/PROJECTS/t2/docs/DEFINITIVE-V5-ARCHITECTURE.md` - System design
4. `/workspace/PROJECTS/t2/docs/path/to/document.md` - Description
Standardized commit message:
docs: Add ${DOC_TITLE} to documentation hierarchy
- Added to CLAUDE.md critical reads
- Added to README.md docs/ structure
- Added to .claude/CLAUDE.md hierarchy
- Description: ${DESCRIPTION}
Enforced automatically:
Automatic validations:
See: core/sync-docs.sh for complete implementation
Key functions:
validate_doc_path() - Check file exists, valid formatcheck_duplicates() - Prevent duplicate entriesupdate_claude_md() - Add to critical readsupdate_readme_md() - Add to docs/ structureupdate_claude_config_md() - Add to documentation hierarchygit_commit_push() - Standardized commit messageUsage Statistics:
Success criteria:
Command:
./core/sync-docs.sh \
--doc-path="docs/11-analysis/MONITOR-CODI-CONTAINER-PROVISIONING-STRATEGY.md" \
--doc-title="MONITOR-CODI Container Provisioning" \
--description="Container provisioning (HYBRID approach for file monitoring & agent coordination)"
Execution:
š Cross-File Documentation Update
Document: MONITOR-CODI-CONTAINER-PROVISIONING-STRATEGY.md
Title: MONITOR-CODI Container Provisioning
Description: Container provisioning (HYBRID approach)
ā
Validating document path...
ā
Checking for duplicates...
ā
Updating CLAUDE.md (line 38)
ā
Updating README.md (line 589)
ā
Updating .claude/CLAUDE.md (line 27)
š Git commit...
ā
Commit: 4d41ac6
ā
Push: Success
š Documentation synchronized across 4 files!
Files updated:
CLAUDE.md - Added to critical readsREADME.md - Added to docs/ directory tree.claude/CLAUDE.md - Added to documentation hierarchyError: "Document does not exist"
--skip-validation (not recommended)Error: "Duplicate entry found"
--force-duplicate to add anywayError: "Invalid path format"
docs/XX-category/FILENAME.mddocs/07-adr/, docs/11-analysis/, docs/10-execution-plans/Error: "Git push failed"
git status - Are there uncommitted changes?.claude/agents/project-organizer.mddocs/DOCUMENTATION-INDEX.md