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.
Scanned 2/12/2026
Install via CLI
openskills install majiayu000/claude-skill-registry---
name: file-organization-and-structure
description: 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.
---
# 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
1. Use at least two blank lines to separate each routine from others
2. **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
1. **Alternative approach:** Arrange related routines alphabetically
2. **Applicable scenarios:**
- Programs cannot be decomposed into classes
- Editor doesn't allow easy function lookup
3. **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:
1. File description comment
2. `#include` files
3. Constant definitions applicable to multiple classes (if file contains multiple classes)
4. Enums applicable to multiple classes (if file contains multiple classes)
5. Macro function definitions
6. Type definitions applicable to multiple classes (if file contains multiple classes)
7. Imported global variables and functions
8. Exported global variables and functions
9. File-private variables and functions
10. 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 maintainNo comments yet. Be the first to comment!
Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.
SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.
Python backend development expertise for FastAPI, security patterns, database operations, Upstash integrations, and code quality. Use when: (1) Building REST APIs with FastAPI, (2) Implementing JWT/OAuth2 authentication, (3) Setting up SQLAlchemy/async databases, (4) Integrating Redis/Upstash caching, (5) Refactoring AI-generated Python code (deslopification), (6) Designing API patterns, or (7) Optimizing backend performance.
Drive the full internationalization journey for a project — detect the stack, recommend a library, set up the chosen library, wrap existing strings, and optionally connect a translation platform. Use when the user asks to add or configure i18n, internationalization, localization, multi-language support, or translations — including when they explicitly mention LinguiJS, Lingui, next-intl, "wrap strings", "find hardcoded text", "make my app translatable", or "set up translations". Triggers on g...
PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.