sync-context

Regenerate the imli-core rules file from updated Claude context files.

1|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/prince-khanna/claude-code-plugins --skill sync-context-prince-khanna
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sync-context
Source: https://github.com/prince-khanna/claude-code-plugins/tree/main/personal-assistant/skills/sync-context
Command: npx skills add https://github.com/prince-khanna/claude-code-plugins --skill sync-context-prince-khanna

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

When Claude's context files are updated, the imli-core.md rules file can become outdated, leading to stale session behavior and incorrect responses.

Core Features & Use Cases

  • Aggregates identity, preferences, rules, and project information from the user's context directory.
  • Generates a concise imli-core.md file that Claude Code loads at session start.
  • Reports a diff and summary of changes, letting the user verify the update.
  • Use Case: After running /update-context or manually editing any context file, invoke this skill to keep the assistant's rules current without manual editing.

Quick Start

Invoke the sync-context skill to regenerate your imli-core rules file after modifying any Claude context files.

Frequently Asked Questions about sync-context

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

FAQPage Schema
How do I sync Claude context files to rules automatically?

This skill aggregates identity, preferences, rules, and project markdown from the context directory to regenerate the imli-core rules file, keeping Claude session behavior current after context updates.

Why does Claude return stale responses after I update context files?

Stale responses occur because the imli-core.md rules file becomes outdated when source context files change. Regenerating the compiled rules file syncs the session behavior with updated markdown.

What is the best way to compile Claude context markdown into a single rules file?

Compiling context markdown is best done by aggregating source files from the core context directory and writing the compiled output to the rules directory, generating a diff summary to verify changes.

Do I need to manually edit the imli-core.md file after updating preferences?

No manual editing is needed. Invoking the sync process regenerates the rules file automatically from updated context files and provides a diff summary for verification.

When should I regenerate the Claude rules file for my projects?

Regenerate the Claude rules file whenever identity, preferences, rules, or project information has changed, ensuring the imli-core.md stays in sync for accurate session behavior.

How does syncing context files show what changed in the rules output?

Syncing context files reports a diff and summary of changes after writing the compiled output, letting you verify exactly what was added or modified in the regenerated rules file.