@kenneth-liao/sync-context
BRegenerate ~/.claude/rules/elle-core.md from your context files. Run after significant context updates to keep your session rules current. Use when context feels stale, after /update-context changes rules/preferences/identity, or after /upgrade.
Install
agr install @kenneth-liao/sync-context --target claudeWrites 1 file into .claude/skills/, pinned to git-042ed7a1.
- .claude/skills/sync-context/SKILL.md
Document
name: sync-context description: Regenerate ~/.claude/rules/elle-core.md from your context files. Run after significant context updates to keep your session rules current. Use when context feels stale, after /update-context changes rules/preferences/identity, or after /upgrade. user-invocable: true disable-model-invocation: true model: claude-sonnet-4-6
Sync Context
Regenerate ~/.claude/rules/elle-core.md from source files in ~/.claude/.context/core/.
What It Does
- Reads identity.md, preferences.md, rules.md, projects.md
- Generates a compact derived file (~100 lines)
- Writes to
~/.claude/rules/elle-core.md - Reports diff of what changed
Run the Script
uv run python ${CLAUDE_SKILL_DIR}/scripts/sync_context.py
After Running
Read the generated file and report what changed:
cat ~/.claude/rules/elle-core.md
Summarize:
- Number of rules synced
- Number of active projects listed
- Whether identity/preferences sections were populated
- Any warnings (empty sections, missing source files)
When to Run
- After
/update-contextchanges rules, preferences, or identity - After
/upgradecompletes - After manual edits to context files
- When elle-core.md feels out of sync with your actual context
Trustgrade B
- passBody integrity
Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.
- passType matchnot applicable to this artifact type
Whether the artifact is really the kind of thing its metadata claims it is.
- passFreshness
How long since the source repository was last pushed to.
- passPrompt injection
Scans the artifact's own text for instructions aimed at your agent rather than at you.
- warnLicenseno SPDX license detected
Whether the source repository declares an SPDX license permissive enough to redistribute.
How the grade is calculated
Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:
- Aevery check passed
- Bone warning
- Ctwo warnings
- Dprompt injection or body integrity failed, or three warnings
- Fone of those failed, and something else is wrong
These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.
Versions
git-042ed7a156642026-07-31