organize
Skill1 starsChanged 9 months agoMITView on GitHub
Split large files into manageable chunks following language-specific best practices
6 other projects use a version of this.
Adopted by
Most recently taken up by
- TyrealQ/q-skillstheir own version, first seen Sep 23, 2026
- SethGammon/Citadeltheir own version, first seen Sep 20, 2026
- mcpware/cross-code-organizertheir own version, first seen Sep 12, 2026
- yunshu0909/yunshu_skillshubtheir own version, first seen Aug 10, 2026
- sanghun0724/cmux-claude-skillstheir own version, first seen Apr 19, 2026
- seongjaeryu/bindly-claude-codetheir own version, first seen Jan 28, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- SethGammon/Citadel★ 922same name
- yunshu0909/yunshu_skillshub★ 764same name
- mcpware/cross-code-organizer★ 383same name
- TyrealQ/q-skills★ 108same name
- sanghun0724/cmux-claude-skills★ 33same name
- seongjaeryu/bindly-claude-code★ 8same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- cohesiveSkill
- deslopSkill
- electron-to-electrobunSkill
- utgSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 9 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Check the diff against origin/main, and identify large files that were added or modified in this branch.
- Distinctive: line 22
Keep tightly coupled code together — don't split just to hit a line count
- Distinctive: line 51
Keep interfaces near dependents, not implementations
- Very specific: line 52
Test files mirror source files (foo.go → foo_test.go)
- Distinctive: line 56
Only split files touched by the branch diff
- Distinctive: line 58
Follow the project's existing naming and directory conventions over the guidelines above
- Distinctive: line 59
Do not rename exported symbols — only move them
- Distinctive: line 60
Update all imports, references, and re-exports.
- Distinctive: line 61
Run the project's linter/formatter if configured
- Distinctive: line 62
When in doubt, leave the code together
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Check the diff against origin/main, and identify large files that were added or
modified in this branch. Run git fetch origin to make sure git context is
up-to-date.
Here is the list of files changed in this branch:
!git diff --name-only origin/main
For each changed file, read the full file and determine if it should be split based on the language conventions below. Then execute the splits, updating all imports and references across the project.
When to split
- Files over ~300 lines are candidates; over ~500 should almost always be split
- Files with multiple unrelated concepts or public exports
- Keep tightly coupled code together — don't split just to hit a line count
- Helper/utility functions used by only one caller stay with the caller
- One major class/component per file (applies across all languages)
- Group small related types (enums, data classes) together
Language-specific additions
TypeScript / JavaScript / React
- Colocate component styles and tests alongside the component
- Redux: ducks pattern — one slice file per domain
- Shared types/interfaces go in
types.ts; barrel exports (index.ts) for directory API
Swift / SwiftUI
- Previews stay with their view; protocols and default extensions can share a file
Java / Kotlin
- Inner classes stay with outer class unless large and used externally
- Kotlin: data classes used by only one file can stay
Python
- Separate CLI entry points from library code
Go
- Group by responsibility: types, handlers, middleware
- Keep interfaces near dependents, not implementations
- Test files mirror source files (
foo.go→foo_test.go)
Rules
- Only split files touched by the branch diff
- Preserve external behavior exactly; all existing imports must continue to work
- Follow the project's existing naming and directory conventions over the guidelines above
- Do not rename exported symbols — only move them
- Update all imports, references, and re-exports; verify no circular dependencies
- Run the project's linter/formatter if configured
- When in doubt, leave the code together
Report at the end with a brief summary of files split and the rationale.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

