Here are both skills at the end of level 4, still in the project's .claude/skills/ folder; step 5.1 moves them into a plugin.
The files at the start
.claude/skills/tidy-imports/SKILL.md
---name: tidy-importsdescription: Sort the import statements at the top of a filewhen_to_use: "After you add or remove imports in a file, or when the user asks to sort or tidy a file's imports."arguments: [path]argument-hint: "[file]"model: sonneteffort: lowdisable-model-invocation: false # Claude may start it after changing a file's imports; it stops for a yes before rewriting a file git has no copy ofallowed-tools: ["Bash(${CLAUDE_SKILL_DIR}/scripts/sort-imports.sh:*)", "Bash(git status:*)"]disallowed-tools: [Edit, Write, NotebookEdit] # the script changes the file; Claude never does---Tidy the imports in $path.... lines 16 to 21 left outRun `git status --porcelain -- "$path"`. If it printsanything, the file has changes git holds no copy of, andthe rewrite cannot be undone from git. Show the check'sreport, say this and stop. Run the script only after theuser replies yes.Run the script on the file, by exactly this path:... lines 30 to 40 left out.claude/skills/tidy-imports-check/SKILL.md
---name: tidy-imports-checkdescription: Report whether the import statements at the top of a file are sorted, without changing the filewhen_to_use: "Before tidy-imports rewrites a file, or when the user asks whether a file's imports are in order."arguments: [path]argument-hint: "[file]"model: sonneteffort: lowdisable-model-invocation: false # tidy-imports calls this skill, so Claude must be able to invoke itallowed-tools: Bash(${CLAUDE_SKILL_DIR}/scripts/check-imports.sh:*)disallowed-tools: [Edit, Write, NotebookEdit] # reads, never writes---Check the imports in $path.Run the script on the file, by exactly this path:```bash${CLAUDE_SKILL_DIR}/scripts/check-imports.sh "$path"```Report its output as it stands. Do not sort, fix or changeanything, even when the imports are out of order.