Skip to content
Back to skills

Organize

ASecurity

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.

  • 67 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 10, 2026
developmentjavascripttypescriptpythongojavaswiftkotlinreactgitapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 10, 2026

npx -y skills add ComeOnOliver/skillshub --skill organize --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Organize?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Organize
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/comeonoliver-organize/badge)](https://www.skillsdirectory.com/skills/comeonoliver-organize)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.