object-oriented
Skill9 starsChanged 8 months agoMITView on GitHub
Convert files to object-oriented programming style with optional NLP instructions.
In this repository12 other files it gives its agents.
- codex-reviewSkill
- cost-reviewSkill
- coverage-reviewSkill
- db-reviewSkill
- functionalSkill
- learnifySkill
- mermaidSkill
- perf-reviewSkill
- proofreadSkill
- roast-reviewSkill
- testifySkill
- test-runnerSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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 45
Read each specified file to understand its current structure and language
- Distinctive: line 46
If the user included additional instructions (e.g.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Object-Oriented Programming Conversion
Convert the specified files to an object-oriented programming style, appropriate to the language of each file.
Files and instructions: $ARGUMENTS
Core principles to apply
- Encapsulation: group related data and behaviour into classes or objects, hiding internal state behind well-defined interfaces
- Single responsibility: each class should have one clear purpose and reason to change
- Composition over inheritance: prefer composing objects from smaller, focused components rather than deep inheritance hierarchies
- Polymorphism: use interfaces, abstract classes, or protocols to define shared behaviour across different types
- Abstraction: expose only what consumers need, keep implementation details private
- Cohesion: keep related fields and methods together within the same class or module
How to interpret arguments
The arguments are free-form and flexible. They may contain:
- File references of any type and in any format:
@file.ts,file.py,main.go, utils.go,script.sh handler.rb - Additional natural language instructions alongside file references, such as:
- "and also convert the files imported by the specified file"
- "focus only on the data processing logic"
- "keep the existing function signatures as public methods"
Parse the arguments to identify which files to convert and what additional instructions apply. When additional instructions reference related files (e.g. imports, dependents), follow those instructions to identify and convert those files as well.
Examples
/object-oriented@service.ts @handler.ts— convert these two files/object-orientedutils.py, helpers.py— comma-separated, no@prefix/object-oriented@app.go and also convert the files it imports— convert with extended scope/object-oriented@processor.rb focus only on the data transformation methods— convert with targeted instructions
How to proceed
- Read each specified file to understand its current structure and language
- If the user included additional instructions (e.g. "also convert imported files"), follow them to identify further files
- For each file, apply the object-oriented principles above using idiomatic constructs for that file's language
- Preserve the existing functionality — the conversion should not change what the code does, only how it is structured
- Respect the repository's coding style rules while making the conversion
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.

