kitchen-engineer42/pdf2skills/file-organization-and-structure
Claude Code and agent skill by kitchen-engineer42/pdf2skills
- community
Checking that the SKILL.md file is still in the repository.
Organize routines within files using blank line separation, consider alphabetical ordering when appropriate, and follow C++ standard file structure. Use when organizing source files, when language doesn't support class-based organization, or when editor navigation is limited.
Install
npx vskill@latest install kitchen-engineer42/pdf2skills/file-organization-and-structureSKILL.md
File Organization and Structure
Apply these principles to create well-organized source files.
Routine Separation Within Files
When to apply: When a file contains multiple routines
- Use at least two blank lines to separate each routine from others
- Visual distinction:
- Use two to three blank lines to create visual difference from internal routine spacing
- Blank lines are as effective as asterisk or dash lines, and easier to input and maintain
Routine Ordering Strategy
When to apply: When organizing routines within a file and no stronger principle applies
- Alternative approach: Arrange related routines alphabetically
- Applicable scenarios:
- Programs cannot be decomposed into classes
- Editor doesn't allow easy function lookup
- Advantage: Saves search time
C++ Source File Content Order
When to apply: When organizing C++ source files
Follow this typical order for C++ source file contents:
- File description comment
#includefiles- Constant definitions applicable to multiple classes (if file contains multiple classes)
- Enums applicable to multiple classes (if file contains multiple classes)
- Macro function definitions
- Type definitions applicable to multiple classes (if file contains multiple classes)
- Imported global variables and functions
- Exported global variables and functions
- File-private variables and functions
- Classes, including constant definitions, enums, and type definitions within each class
Result
- Routine boundaries are clearly visible
- File structure follows consistent conventions
- Code is easier to navigate and maintain
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
- 7-day trend score
- 0
Refreshed 18 Mar 2026, 7 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/file-organization-and-structure)