humanize-library
Skill34 starsChanged 10 days agoMITView on GitHub
Behavior-preserving refactor that makes an existing library, module or folder readable — small focused files, no duplication, clear names, SOLID. Use when asked to humanize, clean up, split large files or remove duplication at a path. Not for new features or bug fixes.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Hive-Academy/ptah-extensionword for word, first seen Nov 3, 2026
Other versions1 project uses a version of this.
Word for word · 1
- Hive-Academy/ptah-extension★ 34100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
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 repository23 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- agent-lanesSkill
- angular-3d-scene-crafterSkill
- angular-frontend-patternsSkill
- angular-gsap-animation-crafterSkill
- ddd-architectureSkill
- execute-phase-gated-taskSkill
- frontend-designSkill
- nestjs-backend-patternsSkill
- nestjs-deploymentSkill
- nx-workspace-architectSkill
- orchestrationSkill
- ptah-surface-authoringSkill
- resilient-nestjs-patternsSkill
- saas-platform-patternsSkill
- saas-workspace-initializerSkill
- session-handoffSkill
- skill-creatorSkill
- technical-content-writerSkill
- tribunalSkill
- ui-ux-designerSkill
- webhook-architectureSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Behavior-preserving only: No new features, no bug fixes, no API shape changes unless the user explicitly asks.
- Distinctive: line 14
Never refactor without a working gate: If typecheck, lint and test do not actually run over the target, repairing that is batch 0 — before …
- Distinctive: line 23
Read the unit manifest. It names the unit, its scripts or targets, and its dependencies.
- Distinctive: line 25
Read local instruction files in the folder and in every parent directory up to the repo root.
- Distinctive: line 29
Read references/discover-the-repo.md and follow it.
- Distinctive: line 48
Write ordered batches. For each: the smell, the target shape, the files touched, the risk, and the exact gate command for that batch.
- Distinctive: line 57
Keep the public entry point exporting the same symbols — or update every dependent in the same batch.
- Distinctive: line 58
Run this batch's gate. Green → commit with a clear message.
- Distinctive: line 59
Never declare a batch done on red.
- Distinctive: line 61
Before commit, walk the safety checklist at the end of references/refactor-recipes.md.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Humanize Library
Behavior-preserving refactor of one existing folder. Framework, layout, DI, test runner and names come from the repo in front of you. Never substitute conventions from another codebase.
Rules that break silently
- Behavior-preserving only. No new features, no bug fixes, no API shape changes unless the user explicitly asks. Found a real bug? Write it down for the user. Do not silently fix it.
- Learn this repo before you cut. Steps 1–2 are the learning. A refactor that violates a rule you never discovered is worse than no refactor.
- Never refactor without a working gate. If typecheck, lint and test do not actually run over the target, repairing that is batch 0 — before a single line of source moves. Home: references/discover-the-repo.md Part B.
- Plan before you cut. Produce the audit and the plan, and get user sign-off before editing.
- Small reversible batches. One concern per batch. Verify after each. Never one giant rewrite.
- Commit each green batch. Stage explicit paths only — never
git add -A, never touch uncommitted work you did not create. Full rule: references/discover-the-repo.md §Git safety.
Step 1 — Scope the target
Confirm the exact path with the user. Then establish what kind of unit it is:
- Read the unit manifest. It names the unit, its scripts or targets, and its dependencies.
- Find the public entry point. The entry point is the refactor's contract. Everything behind it is yours to move; everything it exports must keep its name and shape unless dependents are updated in the same batch.
- Read local instruction files in the folder and in every parent directory up to the repo root. Which files count: references/discover-the-repo.md Part A2.
Step 2 — Discover the repo's contract and gate
Read references/discover-the-repo.md and follow it. It produces two artifacts used in every later step:
- A contract card — the rules this repo actually enforces, each with the evidence that proves it is real (a lint rule, a CI step, a test, a written doc). Rules with no enforcement are preferences; label them as such.
- A verified gate — the exact commands that typecheck, lint and test this specific target, each one run once and observed to pass or fail. A command that silently skips the target is not a gate.
Step 3 — Audit
Run the analyzer:
node <skill-dir>/scripts/analyze_library.mjs <path> --jsonIt reports per file: code lines, export count, max nesting depth, longest function, whether an adjacent test file exists, and a shape (logic / registry / types / generated).
Score the flagged files with references/quality-rubric.md. Calibrate shape before any line-count judgement — §0 of that file is the only home for the weights.
Step 4 — Produce the plan
Write ordered batches. For each: the smell, the target shape, the files touched, the risk, and the exact gate command for that batch. Pick the move from references/refactor-recipes.md.
Order across the plan follows references/quality-rubric.md §Severity ordering (gate repair, characterization tests, and behavior changes each have their place there). One constraint that section does not state: batches that touch the same file are strictly serial. Say so.
Present the plan and wait for approval.
Step 5 — Execute, batch by batch
- Make the change. Prefer mechanical, reviewable edits.
- Keep the public entry point exporting the same symbols — or update every dependent in the same batch. Find every dependent before moving or renaming an exported symbol. How: references/refactor-recipes.md Recipe 9.
- Run this batch's gate. Green → commit with a clear message. Red → fix or revert the batch.
- Never declare a batch done on red. Report failures with the actual output.
Before commit, walk the safety checklist at the end of references/refactor-recipes.md.
Step 6 — Summarize
Give the user: what changed, before/after numbers on the worst offenders, duplication removed, bugs spotted-but-not-fixed, behavior changes that needed sign-off, and the final gate status.
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.

