Refraction Sync — Documentation skill for Claude Code
Update Refraction documentation to reflect recent code changes.
How to install Refraction Sync
Installs to ~/.claude/commands/signalshell-ghostline-refraction-sync.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/signalshell/ghostline/HEAD/.claude/commands/refraction-sync.md -o ~/.claude/commands/signalshell-ghostline-refraction-sync.md Restart Claude Code, or start a new session, for it to be picked up.
What Refraction Sync does
Update Refraction documentation to reflect recent code changes. Code is authoritative — the docs follow.
Steps
Run `git diff HEAD~1 HEAD --name-only` (or `git diff --staged --name-only` if reviewing staged changes) to see what changed.
For each changed file, determine which Refraction doc(s) are affected:
- Changes to system boundaries or external integrations → update
docs/system.md - Changes to a container's interfaces, technology, or responsibilities → update `docs/contain
- Changes to system boundaries or external integrations → update
Alternatives in Documentation
- OpenAI Docs — Provide authoritative guidance from OpenAI developer documentation 14.6k ★
- Repo Recap — Generate a structured recap of the repository state: open PRs, open issues, recent releases, and executive sum 11.9k ★
- Documentation Sync — Check if documentation matches the current code state 5.8k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Doc Sync Enforcer
Update dialtone-docs content files to reflect source code changes made this session
Refraction Implement
Update code to match Refraction documentation. Docs are authoritative — the code follows.
Analyze Repo Changes Update Docs
Analyzes git repository changes and systematically updates all documentation files to reflect those changes.
Sync Docs
Use when user asks to "update docs", "sync documentation", "fix outdated docs", "update changelog", "docs are
Update Documentation
Analyzes recent changes and updates documentation accordingly.
Sync Public Docs
Sync public VitePress documentation (docs/) with code changes — run before release or periodically on feature
Related Agents
Docs Sync Updater
Use this agent when the user explicitly requests to synchronize documentation files (docs/.md, README.md) base
Service Documentation
Use ONLY when you and the user have identified that existing documentation has drifted significantly from the
Sync Docs Agent
Sync documentation with code state. Use for standalone /sync-docs command or /next-task Phase 11 docs update.