declaration-order
CommunityStandardize code structure for clarity.
Software Engineering#consistency#file organization#readability#coding standards#code structure#class design
Authoroborchers
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the chaos of disorganized code by enforcing consistent ordering of declarations within files and classes, making codebases predictable and easier to navigate.
Core Features & Use Cases
- Universal File Shape: Enforces a top-to-bottom order for docstrings, imports, constants, types, classes, functions, and entry points.
- Consistent Class Structure: Orders class members logically (constants, constructor, public methods, private methods, etc.).
- Use Case: When reviewing a new Python module, ensure all constants are at the top, followed by type definitions, then the main class with its methods ordered consistently (e.g., CRUD), and finally any module-level functions.
Quick Start
Organize the current file according to the standard declaration order rules.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: declaration-order Download link: https://github.com/oborchers/fractional-cto/archive/main.zip#declaration-order Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.