Update existing index.toon with changes. Detects new/deleted/modified folders and updates the semantic folder index.
63
45%
Does it follow best practices?
Impact
93%
1.40xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./plugins/toondex/skills/redex/SKILL.mdWHEN THIS SKILL IS INVOKED, IMMEDIATELY BEGIN EXECUTING THE STEPS BELOW. DO NOT JUST EXPLAIN THE PROCESS - ACTUALLY RUN THE COMMANDS AND PERFORM THE ANALYSIS.
This skill updates existing index.toon files to reflect codebase changes.
When this skill loads, you MUST:
If index.toon does not exist, tell the user to run /toondex first.
BEGIN EXECUTION IMMEDIATELY:
Run /redex when:
index.toon filesRUN these git commands to find changes since the last index.toon commit:
LAST_REF=$(git log -1 --format="%H" -- index.toon)
git diff --name-only $LAST_REF..HEADParse the output to identify changed folders.
Categorize the changes:
For EACH changed folder, IMMEDIATELY:
###Step 4: Present Diff (DO THIS NOW)
SHOW the user this diff format:
index.toon changes:
MODIFIED:
src/auth:
old: "JWT-based authentication."
new: "Clerk-based authentication. Role middleware." [0.8]
NEW:
src/analytics: "PostHog integration for user tracking." [0.7]
DELETED:
src/legacy (folder no longer exists)
Apply changes? [Y/n]After user approval:
index.toon files (only those with changes)The SessionStart hook automatically checks if the index is outdated and may suggest running /redex when:
When you see: "PROPOSE_REINDEX: index.toon may be outdated...", consider running /redex.
User: /redex
Claude: Detecting changes since last index...
Found changes in 3 folders:
- src/components (15 files modified)
- src/api (new folder)
- src/legacy (deleted)
Re-analyzing...
index.toon changes:
MODIFIED:
src/components:
old: "UI components using shadcn."
new: "UI components using shadcn. Added form components with validation." [0.9]
NEW:
src/api: "REST API endpoints. Express routes with middleware." [0.8]
DELETED:
src/legacy
Apply changes? [Y/n]User: /redex
Claude: No significant changes detected since last index. Your index.toon is up to date!/redex regularly to keep the index current/toondex - Create initial index/toondex --stats - View usage statistics (requires TOONDEX_DEBUG=1)For full documentation, see the main toondex skill or plugins/toondex/skills/toondex/SKILL.md.
b1698b3
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.