kitchen-engineer42/pdf2skills/class-organization-and-layout

Claude Code and agent skill by kitchen-engineer42/pdf2skills

Trust tier 2
  • community
Source check pending

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-layout

SKILL.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:

  1. Header comment: Describes the class and provides overall usage instructions
  2. Constructors and destructors
  3. Public routines
  4. Protected routines
  5. Private routines and member data

Class Implementation Member Order

When to apply: When implementing classes in source files

Organize class implementation in this order:

  1. Header comment: Describes the file contents
  2. Class data
  3. Public routines
  4. Protected routines
  5. Private routines

File-to-Class Relationship

When to apply: When organizing project files (in languages that support multiple source files)

  1. Single responsibility: Each file should contain routines supporting a single, unique purpose
  2. 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)
  1. File naming: Relate filename to class name (e.g., CustomerAccount class → CustomerAccount.cpp and CustomerAccount.h)
  2. 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

  1. Use multiple blank lines to clearly identify and separate each class
  2. Avoid over-emphasis:
  • Don't mark every routine and comment with asterisk lines
  • When everything is emphasized, nothing is truly emphasized
  1. 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kitchen-engineer42/pdf2skills/class-organization-and-layout/badge)](https://verified-skill.com/skills/kitchen-engineer42/pdf2skills/class-organization-and-layout)

Something wrong with this skill or its page? Tell us.