cf-placement
Skill1 starsChanged 27 days agoMITView on GitHub
Split a source file that has grown too large into nearby files, or regroup scattered related files into one folder, preserving behavior. Use when a file is too long or mixes responsibilities, when related files are scattered or hard to find, or when asked whether a file should be split or files should live together.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- cf-architectureSkill
- cf-brainstormSkill
- cf-cleanSkill
- cf-cognitiveSkill
- cf-deadcodeSkill
- cf-docsSkill
- cf-mr-wolfSkill
- cf-scenarioSkill
- cf-testSkill
The file
Files
Split a source file into nearby files, or regroup related files into owner folders, while preserving behavior.
With no file or area named, count the direct source files per directory with the bundled scripts/dir-population.mjs, resolved from the active skill root, and name the best candidate. When a regrouping would create a folder the language or build treats as a new package or module, move files across features, or change module boundaries, do not edit: name cf-architecture and the reason in Result, and end the turn.
A split extracts named owners (a hook, component, adapter, parser, policy) into files next to the source, kept flat where a folder would be a new package or module. A regrouping moves whole files without rewriting them. Move the tests of each moved unit next to its new file, update every reference, then run those tests and the checks a move can break (types, lint, unused exports), scoped to what changed.
Output Format
Return only:
- Assessment: each file created or moved with the test file that now covers it, or
no tests; in evaluation or discovery, the candidates. - Checks: commands run and results; the test command and its result, or
tests not runwith the reason. - Defects: behavior defects noticed against the code's documented rules, with file and line, or
nonenaming what you checked against. - Deferred: each function past 20 logical lines in a file you modified, routed to
cf-cognitive; each owner cluster kept flat because a folder would be a new package or module, routed tocf-architecture; ornone. - Result: behavior preservation, claimed only when the tests passed; the route and its reason when one applies.
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.

