Skip to content
OpenSmartRoute
Skillv1.0.0

jikime-workflow-sync

Documentation synchronization workflow specialist for code-to-docs sync, quality verification, and git operations

by David-Li0406(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from David-Li0406/meta-skill-evloving (skill-flow/data/skills-refined-autoskill-36k/skillsmp/jikime-workflow-sync/SKILL.md). Install upstream with npx skills add David-Li0406/meta-skill-evloving --skill jikime-workflow-sync. Copyright stays with the author.

Documentation Synchronization Workflow

Quick Reference

Documentation Synchronization provides a systematic approach for keeping documentation in sync with code changes. It follows the "Sync to Verify to Commit" philosophy.

Core Workflow Phases:

  • Phase 0.5: Quality Verification (tests, linter, type checker)
  • Phase 1: Analysis & Planning (git diff, documentation mapping)
  • Phase 2: Execute Sync (document updates, SPEC status sync)
  • Phase 3: Git Operations (commit, PR management)

When to Use Sync:

  • After completing feature implementation
  • Before creating pull requests
  • When code structure changes significantly
  • After SPEC completion
  • During milestone completion

When NOT to Use Sync:

  • During active development (sync after completion)
  • For quick fixes without documentation impact
  • When documentation is already up to date

Core Philosophy

Living Documentation Principle

Documentation should be generated from code as much as possible:

  • Single Source of Truth: Code is authoritative
  • Automated Generation: Minimize manual writing
  • Freshness: Always include timestamps
  • Traceability: Link docs to code locations

Sync to Verify to Commit

The golden workflow ensures documentation quality:

  • Sync: Update docs based on code changes
  • Verify: Validate quality through TRUST 5
  • Commit: Stage and commit documentation changes

Phase 0.5: Quality Verification

Before syncing documentation, verify code quality.

Language Detection

Detect project language by checking indicator files:

python: [pyproject.toml, setup.py, requirements.txt]
typescript: [tsconfig.json, package.json with typescript]
javascript: [package.json]
go: [go.mod, go.sum]
rust: [Cargo.toml]

Quality Tools by Language

Language Test Lint Type Check
Python pytest ruff mypy/pyright
TypeScript vitest/jest eslint/biome tsc --noEmit
JavaScript vitest/jest eslint/biome -
Go go test golangci-lint go vet
Rust cargo test cargo clippy -

Quality Gate Criteria

tests:
  required: true
  pass_rate: 100%

linter:
  required: true
  max_errors: 0
  max_warnings: 10

type_checker:
  required: language_specific
  max_errors: 0

Failure Handling

When quality verification fails:

  • Display failure details with specific errors
  • Offer options: Fix issues, Skip verification, Abort sync
  • Record skip decisions for audit trail

Phase 1: Analysis & Planning

Git Change Analysis

Analyze changes using git commands:

# Changed files since last commit
git diff --name-only HEAD

# Current status
git status --porcelain

# Recent commit messages (for context)
git log --oneline -10

Documentation Mapping

Map code changes to documentation updates:

Change Type Documentation Action
New file Add to CODEMAP, update README if major
Modified file Update relevant docs
Deleted file Remove from CODEMAP
New API endpoint Update API documentation
New feature Update README features section
SPEC implementation Update SPEC status

Sync Plan Generation

Create a sync plan documenting:

  • Files requiring documentation updates
  • New documents to create
  • Documents to delete or mark as deprecated
  • SPEC status changes

Phase 2: Execute Sync

Document Types

README.md

Project overview and setup guide:

# Project Name

Brief description

## Quick Start
[Setup instructions]

## Architecture
See [docs/CODEMAPS/INDEX.md]

## Features
[Feature list with links to detailed docs]

CODEMAPS

Code architecture documentation:

docs/CODEMAPS/
├── INDEX.md       # Architecture overview
├── frontend.md    # Frontend structure
├── backend.md     # Backend structure
└── database.md    # Database schema

CODEMAP format:

# [Domain] Codemap

**Last Updated:** YYYY-MM-DD
**Entry Points:** Main entry points

## Architecture
[ASCII diagram showing structure]

## Key Modules
| Module | Purpose | Exports | Dependencies |
|--------|---------|---------|--------------|

## Data Flow
[Description of data flow]

SPEC Status Sync

Update SPEC documents with implementation status:

status_fields:
  - Status: Planning | In Progress | Completed
  - Progress: 0-100%
  - Last Updated: YYYY-MM-DD
  - Implementation Notes: Brief summary

Agent Delegation

Delegate sync tasks to specialized agents:

manager-docs:
  tasks:
    - README synchronization
    - CODEMAP generation and update
    - SPEC status sync
    - API documentation

manager-quality:
  tasks:
    - Link integrity verification
    - Consistency check
    - TRUST 5 validation

Phase 3: Git Operations

Staging Documentation

Stage only documentation files:

# Stage documentation
git add README.md docs/ .jikime/specs/*/spec.md

Commit Message Template

docs: sync documentation with code changes

Synchronized:
- README.md (updated features section)
- docs/CODEMAPS/INDEX.md (new module added)
- SPEC-API-001 (status: Completed)

Quality verification:
- Tests: PASS
- Linter: PASS

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

PR Management (Team Mode)

For team workflows:

# Create branch
git checkout -b docs/sync-update

# Commit changes
git commit -m "[message]"

# Create PR
gh pr create --title "docs: sync documentation" --body "[description]"

Quality Standards

TRUST 5 for Documentation

Apply TRUST 5 framework to documentation:

  • Tested: All links working, code examples valid
  • Readable: Clear structure, proper formatting
  • Unified: Consistent terminology and style
  • Secured: No sensitive data exposed
  • Trackable: Timestamps, version info, change history

Documentation Quality Checklist

Before marking sync complete:

  • All internal links verified
  • External links validated
  • Code examples tested
  • Timestamps updated
  • Consistent formatting
  • No sensitive data exposed
  • SPEC status accurate

Execution Modes

Auto Mode (Default)

Sync changed files only:

  • Analyze git diff
  • Update only affected documentation
  • Quick and focused

Full Mode

Complete documentation regeneration:

  • Rebuild all CODEMAPs
  • Refresh all timestamps
  • Verify all links
  • Use when structure changes significantly

Status Mode

Read-only health check:

  • No changes made
  • Report documentation health
  • Identify stale documentation
  • Quick assessment

Worktree Integration

Worktree Detection

Detect when running in git worktree:

git rev-parse --git-dir | grep -q "worktrees"

Worktree-Specific Behavior

When in worktree:

  • Auto-detect SPEC ID from directory name
  • Update SPEC status automatically
  • Offer worktree management options after sync

Post-Sync Options

worktree_options:
  - Return to main directory
  - Continue in worktree
  - Switch to another worktree
  - Remove this worktree

Troubleshooting

Common Issues

Documentation Out of Sync:

  • Run git diff to identify changes
  • Use --full mode to regenerate
  • Verify git history for missing commits

Quality Verification Failing:

  • Review specific failures in output
  • Fix issues before syncing
  • Use --skip-quality only when necessary

Link Integrity Failures:

  • Check moved or renamed files
  • Update references in affected documents
  • Verify external URLs are accessible

Recovery Procedures

When sync encounters issues:

  • Sync creates backups before changes
  • Use git diff to review changes
  • Revert with git checkout -- docs/
  • Re-run sync after fixing issues

Integration Points

With DDD Workflow

After DDD refactoring:

  • Update CODEMAPs to reflect new structure
  • Sync SPEC with implementation progress
  • Document architectural changes

With Testing Workflow

After test completion:

  • Update coverage information
  • Document test strategies
  • Sync quality metrics

With Quality Framework

Quality verification feeds sync:

  • Gate sync on quality checks
  • Record quality status in docs
  • Track quality trends

Version: 1.0.0 Status: Active Last Updated: 2026-01-22

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/david-li0406-meta-skill-evloving-jikime-workflow-sync/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

david-li0406-meta-skill-evloving-jikime-workflow-sync.ocm.jsonjson
{
  "ocm": "1",
  "id": "david-li0406-meta-skill-evloving-jikime-workflow-sync",
  "kind": "skill",
  "name": "jikime-workflow-sync",
  "description": "Documentation synchronization workflow specialist for code-to-docs sync, quality verification, and git operations",
  "publisher": "David-Li0406",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "workflow",
      "sync",
      "documentation",
      "quality",
      "git",
      "living-docs",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Documentation synchronization workflow specialist for code-to-docs sync, quality verification, and git operations"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/David-Li0406/meta-skill-evloving",
      "path": "skill-flow/data/skills-refined-autoskill-36k/skillsmp/jikime-workflow-sync/SKILL.md",
      "ref": "ca3a335628981df10c36e00cb9850df2c247ab9a",
      "url": "https://github.com/David-Li0406/meta-skill-evloving/blob/ca3a335628981df10c36e00cb9850df2c247ab9a/skill-flow/data/skills-refined-autoskill-36k/skillsmp/jikime-workflow-sync/SKILL.md",
      "key": "David-Li0406/meta-skill-evloving/skill-flow/data/skills-refined-autoskill-36k/skillsmp/jikime-workflow-sync/SKILL.md"
    },
    "allowed_tools": [
      "Read",
      "Write",
      "Edit",
      "Bash",
      "Grep",
      "Glob",
      "TodoWrite"
    ]
  },
  "instructions": "# Documentation Synchronization Workflow\n\n## Quick Reference\n\nDocumentation Synchronization provides a systematic approach for keeping documentation in sync with code changes. It follows the \"Sync to Verify to Commit\" philosophy.\n\nCore Workflow Phases:\n\n- Phase 0.5: Quality Verification (tests, linter, type checker)\n- Phase 1: Analysis & Planning (git diff, documentation mapping)\n- Phase 2: Execute Sync (document updates, SPEC status sync)\n- Phase 3: Git Operations (commit, PR management)\n\nWhen to Use Sync:\n\n- After completing feature implementation\n- Before creating pull requests\n- When code ",
  "cost": {
    "context_tokens": 2075
  }
}

Fetch it by URL: GET /api/v1/registry/david-li0406-meta-skill-evloving-jikime-workflow-sync/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.