kitchen-engineer42/pdf2skills/class-organization-and-layout
Claude Code and agent skill by kitchen-engineer42/pdf2skills
- community
Checking that the SKILL.md file is still in the repository.
Organize class members in standard order, separate classes with blank lines, and maintain one-class-per-file structure. Use when designing class interfaces, implementing classes, organizing project files, or establishing OOP coding standards.
Install
npx vskill@latest install kitchen-engineer42/pdf2skills/class-organization-and-layoutSKILL.md
Class Organization and Layout
Apply these principles to create consistent, maintainable class structures.
Class Interface Member Order
When to apply: When defining class interfaces in header files
Present class members in this order:
- Header comment: Describes the class and provides overall usage instructions
- Constructors and destructors
- Public routines
- Protected routines
- Private routines and member data
Class Implementation Member Order
When to apply: When implementing classes in source files
Organize class implementation in this order:
- Header comment: Describes the file contents
- Class data
- Public routines
- Protected routines
- Private routines
File-to-Class Relationship
When to apply: When organizing project files (in languages that support multiple source files)
- Single responsibility: Each file should contain routines supporting a single, unique purpose
- One-to-one relationship:
- Place only one class per file when language permits (C++, Java, VB)
- Exception: compelling reasons exist (e.g., several small classes forming a single pattern)
- File naming: Relate filename to class name (e.g.,
CustomerAccountclass →CustomerAccount.cppandCustomerAccount.h) - Concept reinforcement: Files reinforce that grouped routines belong to the same class
Class Visual Separation
When to apply: When separating different classes within a file
- Use multiple blank lines to clearly identify and separate each class
- Avoid over-emphasis:
- Don't mark every routine and comment with asterisk lines
- When everything is emphasized, nothing is truly emphasized
- Hierarchical separation (if special characters must be used):
- Establish character hierarchy (densest to sparsest)
- Example: Asterisks for class separation, dashes for routine separation, blank lines for important comments
- Never place two lines of asterisks or dashes together
Principle: In formatting, less is more.
Result
- Class boundaries are clearly visible
- Visual noise is minimized
- File structure reinforces class organization
- Members follow consistent ordering conventions
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills_samples/Steve McConnell Code Complete A Practical Handbook of Software Construction_output/class-organization-and-layout/SKILL.md
Popularity
- Repository stars
- 102
- Repository forks
- 30
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 25 Apr 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kitchen-engineer42/pdf2skills/class-organization-and-layout)