Skip to content

Latest commit

Β 

History

History
63 lines (41 loc) Β· 1.91 KB

File metadata and controls

63 lines (41 loc) Β· 1.91 KB

Naming Conventions

Version: 1.5.4

Standardizes naming across the workspace β€” file system, source code, CSS, and metadata. Goal: consistency, cross-platform compatibility, and readability for both humans and AI.

Scope

  • Type: Global (all projects)
  • Priority: 🟒 Standard
  • Trigger: Creating files, directories, branches, commits

Rules

1. File System

MUST use kebab-case (lowercase, hyphens). Cross-platform safe, URI friendly, CLI safe.

βœ… user-profile.tsx, api-service.js Β· ❌ user_data.json, UserProfile.tsx

2. Source Code

Object Convention Examples
Components & classes PascalCase UserCard, AuthService
Variables & functions camelCase isLoading, calculateTotal()
Constants & env vars UPPER_SNAKE_CASE MAX_RETRY_COUNT, API_BASE_URL

3. Styling & Markup

MUST use kebab-case for CSS classes/IDs (.btn-primary, #main-content) and HTML data attributes (data-user-id).

4. Metadata & Config

MUST use camelCase for keys in .para-workspace.yml and project metadata (projectName, lastSync).

5. Workflows & Rules

MUST use kebab-case for filenames: /new-project, naming.md, para-discipline.md.

6. Exceptions

  • Standard docs: README.md, LICENSE, VERSION, CHANGELOG.md (uppercase convention)
  • Tool configs: package.json, tsconfig.json (tool requirements)
  • Top-level Pillars: Projects, Areas, Resources, Archive (PascalCase for visual hierarchy)

Quick Reference

File          β†’ kebab-case
Component     β†’ PascalCase
Variable      β†’ camelCase
Constant      β†’ UPPER_SNAKE_CASE
CSS class     β†’ kebab-case
Config key    β†’ camelCase
Pillar folder β†’ PascalCase

Related

  • PARA Discipline β€” File organization
  • VCS β€” Commit message conventions
  • Source: templates/common/agents/rules/naming.md