agentleFS
darellchua2darellchua2/civiltekk-opencode-claude-skills/skills/code-principles-skill/SKILL.md

code-principles-skill

Skill7 starsChanged 56 days agoApache-2.0View on GitHub

Code principles router — one entry point for clean code, code smells and refactoring, SOLID, design patterns, object design (responsibility-driven), complexity tradeoffs (KISS/YAGNI/DRY), and clean architecture. Routes each design or review question to the right principle route.

The file

Files
SKILL.md

Code Principles Router

One entry point for code-quality principle questions. Identify the question type, run only the matched route's file, and follow it.

Provenance: routes consolidated from the seven former principle skills (#690). Three routes (clean-code, code-smells, solid-principles) carry opt-in autoresearch iteration-protocol sections — engage them only when the task is an autonomous loop.

Routes (load exactly one)

QuestionRouteReadSkip-when
Readability, naming, small functionsclean-codereferences/routes/clean-code.mdsmell hunt → code-smells
Detect/fix smells + refactoring guidancecode-smellsreferences/routes/code-smells.mdreadability → clean-code
SOLID application/reviewsolid-principlesreferences/routes/solid-principles.mdconcrete smells → code-smells
GoF pattern selection/reviewdesign-patternsreferences/routes/design-patterns.mdprinciple questions → solid-principles
Responsibility-driven object designobject-designreferences/routes/object-design.mdSOLID mechanics → solid-principles
KISS/YAGNI/DRY tradeoffscomplexity-managementreferences/routes/complexity-management.mdsmell-level → code-smells
Layering, dependency rule, slicingclean-architecturereferences/routes/clean-architecture.mdclass-level → object-design

Route files open with their own Load when / Skip when lines.

Hard rules

  • One route per question; if a task spans two (e.g. "refactor this class" = smells + SOLID), run them sequentially — never preload both.
  • The three retrofitted routes' iteration-protocol sections are OPT-IN: engage only for autonomous keep/revert loop tasks (protocol source: autoresearch-skill).
  • Each route file owns its detail; this router never restates it.

Gates

  • Zero-preload: only the matched route file enters context.
  • Findings cite the route file's rules (file:line), not generalities.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.