/idea-to-code:file-organizationfrom idea-to-code
Guides file operations like moving, renaming, and reorganizing code, preferring efficient shell commands (git mv/mv) over write/delete patterns to preserve history and metadata.
Ships in idea-to-code. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When reorganizing files, moving files, or renaming files, follow these guidelines:
Use git mv or mv via Bash instead of Write + delete:
git mv old/path/File.java new/path/File.java
Then use Edit to update any necessary content (e.g., package declarations).
IMPORTANT: Never recreate files from scratch when the original exists. Move the file first, then edit its contents.
When reorganizing Java packages:
# 1. Create new directory structure
mkdir -p src/main/java/com/example/newpackage
# 2. Move the file
mv src/main/java/com/example/oldpackage/MyClass.java src/main/java/com/example/newpackage/
# 3. Update the package declaration
# Use Edit tool to change: package com.example.oldpackage;
# To: package com.example.newpackage;
When moving files during refactoring:
Before moving source files in a refactoring:
src/main/java, src/test/java, AND custom source setssrc/integrationTest, src/integration-test, src/componentTest, src/component-testIMPORTANT: This is one situation where ./gradlew build passing is insufficient. You must verify that each test class has a corresponding TEST-*.xml file in the correct build directory. Tests may compile but not run if source sets are misconfigured.
When converting single-module to multi-module:
git show HEAD:path/to/build.gradle to capture original configurationReserve the Write tool for:
Do NOT use Write for:
Use the right tool for file discovery and inspection:
| Task | Use | Instead of |
|---|---|---|
| List/find files | Glob | ls, find |
| Search file contents | Grep | grep, rg |
| Read file contents | Read | cat, head, tail |
| Edit files | Edit | sed, awk |
The dedicated tools:
command 2>/dev/null || echo "fallback"What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub humansintheloop-dev/humansintheloop-dev-workflow-and-tools --plugin idea-to-code24 skills in this plugin
/apply-design-patternsConsult the design pattern catalog before implementing or refactoring code./ask-a-friendWhen stuck on a problem, formulate a well-structured question and copy it to the clipboard for pasting into ChatGPT. Claude should use this skill when debugging efforts stall or when an outside perspective would help./brainstorm-ideaUse when refining an idea in an idea directory through questions and answers and classifying it./commit-guidelinesProvides a pre-commit checklist and commit message formatting standards for this project. Claude should use this skill when creating git commits to ensure messages follow project conventions, including proper co-authorship attribution and concise formatting./create-planUse when creating a steel-thread implementation plan for an idea from its idea, discussion and spec files./debugging-ci-failuresGuidelines for watching CI builds and diagnosing failures. Claude should use this skill when watching a CI build or investigating why a CI build failed.Other plugins' skills for the same job