Set up the personal assistant plugin. Run this once after installing the plugin.
Set up Imli with native rules delivery, context system, and default Claude Code settings.
Read current settings:
cat ~/.claude/settings.json
If the file doesn't exist or is empty, create it with the content below. If the file exists, merge the fields below into the existing settings (you MUST preserve other settings).
{
"outputStyle": "personal-assistant:imli"
}
<REQUIRED>
You **MUST** preserve other settings in the `settings.json` file. Only update/add the fields specified above.
</REQUIRED>
<REQUIRED>
After technical setup completes, transition to onboarding:
Check if the user's ~/.claude/settings.json already has Stop or Notification sound hooks:
cat ~/.claude/settings.json | python3 -c "
import sys, json
d = json.load(sys.stdin)
hooks = d.get('hooks', {})
has_stop = bool(hooks.get('Stop'))
has_notif = bool(hooks.get('Notification'))
print(f'Stop hooks: {has_stop}, Notification hooks: {has_notif}')
"
If the user already has Stop and/or Notification sound hooks in settings.json, the plugin's hooks.json will also register them -- this causes duplicate sounds. Inform the user and offer to remove the duplicates from settings.json (the plugin hooks.json will handle them).
ls ~/.claude/.context/ 2>/dev/null
cp -r ${CLAUDE_PLUGIN_ROOT}/context-template/ ~/.claude/.context/
ls ~/.claude/.context/
You should see: CLAUDE.md, context-update.md, core/
Create the rules directory and generate the derived rules file:
mkdir -p ~/.claude/rules
uv run python ${CLAUDE_PLUGIN_ROOT}/skills/sync-context/scripts/sync_context.py
cat ~/.claude/rules/imli-core.md
You should see a compact file with Identity, Communication Preferences, Rules, Active Projects, and Loading Full Context sections.
"Now that Imli is set up, I'd love to get to know you better so I can be truly helpful. Would you like to spend a few minutes telling me about yourself?" </REQUIRED>
If YES: Run /personal-assistant:onboard, which will populate context files. After onboarding, run /sync-context to update imli-core.md with the new information.
If NO: Let them know they can run /personal-assistant:onboard anytime, then skip to "After Setup".
Let the user know:
~/.claude/rules/imli-core.md (no per-message overhead)/sync-context after significant context changes to keep rules current/context-health periodically to audit data quality/evolve after Claude Code updates to check for new capabilities