global-standards
Project-wide coding standards and conventions specialist. Use PROACTIVELY when writing code, making architectural decisions, or establishing project conventions. Covers coding style, commenting, error handling, validation, tech stack consistency, and project conventions across all languages and frameworks.
Best use case
global-standards is best used when you need a repeatable AI agent workflow instead of a one-off prompt. It is especially useful for teams working in multi. Project-wide coding standards and conventions specialist. Use PROACTIVELY when writing code, making architectural decisions, or establishing project conventions. Covers coding style, commenting, error handling, validation, tech stack consistency, and project conventions across all languages and frameworks.
Project-wide coding standards and conventions specialist. Use PROACTIVELY when writing code, making architectural decisions, or establishing project conventions. Covers coding style, commenting, error handling, validation, tech stack consistency, and project conventions across all languages and frameworks.
Users should expect a more consistent workflow output, faster repeated execution, and less time spent rewriting prompts from scratch.
Practical example
Example input
Use the "global-standards" skill to help with this workflow task. Context: Project-wide coding standards and conventions specialist. Use PROACTIVELY when writing code, making architectural decisions, or establishing project conventions. Covers coding style, commenting, error handling, validation, tech stack consistency, and project conventions across all languages and frameworks.
Example output
A structured workflow result with clearer steps, more consistent formatting, and an output that is easier to reuse in the next run.
When to use this skill
- Use this skill when you want a reusable workflow rather than writing the same prompt again and again.
When not to use this skill
- Do not use this when you only need a one-off answer and do not need a reusable workflow.
- Do not use it if you cannot install or maintain the related files, repository context, or supporting tools.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/global-standards/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How global-standards Compares
| Feature / Agent | global-standards | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Project-wide coding standards and conventions specialist. Use PROACTIVELY when writing code, making architectural decisions, or establishing project conventions. Covers coding style, commenting, error handling, validation, tech stack consistency, and project conventions across all languages and frameworks.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
SKILL.md Source
# Project Standards This skill provides comprehensive guidance on project-wide coding standards, conventions, and best practices that apply across the entire codebase regardless of language or framework. ## When to Use This Skill Use this skill when: - **Writing code** - Ensuring consistency with project standards - **Making architectural decisions** - Following established patterns - **Onboarding** - Understanding project conventions - **Code review** - Checking adherence to standards - **Refactoring** - Maintaining consistency during changes - **Setting up new features** - Following project conventions ## Core Standards Areas ### 1. Coding Style **When to apply:** - Naming variables, functions, classes, modules, or files - Structuring code for readability and maintainability - Deciding on function size and single responsibility - Removing unused code, commented-out blocks, or dead imports - Extracting reusable logic to avoid duplication - Applying consistent formatting and indentation - Refactoring code for clarity and simplicity **Principles:** - Clear, descriptive names that reveal intent - DRY (Don't Repeat Yourself) principle - Single Responsibility Principle - Self-documenting code through structure - Consistent formatting across the codebase **Applies to:** All code files (*.py,*.js, *.ts,*.jsx, *.tsx,*.vue, *.rb,*.go, *.java,*.rs, *.cpp,*.c, *.swift,*.kt) ### 2. Commenting Standards **When to apply:** - Deciding whether code needs a comment - Documenting complex algorithms or non-obvious business logic - Writing docstrings or function documentation - Reviewing existing comments for relevance - Removing outdated or misleading comments - Explaining non-obvious code decisions or workarounds **Principles:** - Minimal, helpful comments - Explain why, not what - Keep code self-documenting through clear naming - Comments should explain complex logic or business rules - Avoid comments that restate what code does - Keep comments evergreen and relevant **Applies to:** All code files across the entire codebase ### 3. Error Handling **When to apply:** - Wrapping code in try-catch or try-except blocks - Creating custom exception or error classes - Implementing error boundaries (React, etc.) - Handling HTTP errors from API calls - Displaying user-friendly error messages - Implementing retry logic with exponential backoff - Cleaning up resources in finally blocks - Deciding where to catch versus propagate errors - Logging errors with appropriate severity levels - Implementing circuit breakers for external services - Handling validation errors with structured responses **Principles:** - User-friendly error messages - Proper exception types and hierarchies - Graceful degradation - Comprehensive logging with context - Resource cleanup in finally blocks - Appropriate error propagation - Retry logic for transient failures **Applies to:** All code that may throw errors (API handlers, service functions, data processing, file operations, external integrations, network requests, database operations) ### 4. Input Validation **When to apply:** - Validating form inputs on the frontend - Validating API request bodies, query parameters, and headers - Implementing server-side validation logic - Creating validation schemas (Zod, Yup, Pydantic, Joi) - Sanitizing user input to prevent XSS, SQL injection - Validating data types, formats, ranges, and required fields - Implementing business rule validation - Displaying validation error messages - Writing custom validators for domain-specific rules - Handling file upload validation **Principles:** - Validate on both client and server sides - Use validation libraries for consistency - Sanitize input to prevent security vulnerabilities - Provide clear, actionable error messages - Validate at system boundaries - Use allowlists over blocklists **Applies to:** Form components, API handlers, request validators, input sanitizers, schema definitions, validation middleware, file uploads, webhooks, external API integrations ### 5. Tech Stack Consistency **When to apply:** - Choosing libraries or packages for new functionality - Implementing features using framework-specific patterns - Setting up new services, integrations, or third-party APIs - Configuring database connections, ORM settings, or query builders - Adding authentication, authorization, or security features - Setting up testing frameworks, tools, or test utilities - Configuring deployment, CI/CD pipelines, or infrastructure - Evaluating whether to add a new dependency - Implementing caching, monitoring, logging, or observability - Choosing between alternative approaches **Principles:** - Consistency with existing technology choices - Follow framework-specific patterns and idioms - Prefer existing tools over adding new dependencies - Document technology decisions - Maintain architectural consistency **Applies to:** Frontend, backend, database, infrastructure, testing, deployment, third-party integrations ### 6. Project Conventions **When to apply:** - Organizing files and directory structure - Writing git commit messages or PR descriptions - Managing environment variables, configuration, and secrets - Adding or updating project dependencies - Setting up or modifying CI/CD workflows - Implementing feature flags - Updating README files or project documentation - Establishing code review processes - Maintaining changelogs or release notes - Configuring linters, formatters, or pre-commit hooks - Setting up development environments - Managing monorepo or multi-package structures **Principles:** - Consistent file and directory organization - Conventional commit messages - Clear documentation - Proper dependency management - Automated quality checks - Clear development workflows **Applies to:** Configuration files (.env, package.json, requirements.txt, pyproject.toml, Dockerfile, docker-compose.yml, Makefile), directories (.github/, .gitlab-ci/, scripts/, docs/), documentation files (README.md, CHANGELOG.md, CONTRIBUTING.md) ## Reference Files For detailed standards documentation, load reference files as needed: - **`references/coding-style.md`** - Detailed coding style guidelines, naming conventions, formatting standards - **`references/commenting.md`** - Commenting best practices, docstring standards, when to comment - **`references/error-handling.md`** - Error handling patterns, exception hierarchies, logging strategies - **`references/validation.md`** - Validation patterns, schema definitions, security considerations - **`references/tech-stack.md`** - Technology stack reference, framework patterns, dependency guidelines - **`references/conventions.md`** - Project conventions, file structure, git workflows, CI/CD standards When working on specific areas, load the appropriate reference file for detailed guidance. ## Best Practices ### Consistency First - Follow existing patterns in the codebase - When in doubt, match the style of surrounding code - Maintain consistency across all files ### Progressive Enhancement - Start with simple, clear code - Add complexity only when necessary - Refactor for clarity and maintainability ### Documentation - Keep documentation up to date - Document decisions and trade-offs - Include examples in documentation ### Quality Gates - Use linters and formatters - Run tests before committing - Review code for standards adherence ## Integration with Other Skills - **code-review**: Use when reviewing code for standards adherence - **dead-code-removal**: Follow coding style when cleaning up code - **debugging**: Apply error handling standards when analyzing errors - **dependency-management**: Follow tech stack standards when managing dependencies
Related Skills
nft-standards
Implement NFT standards (ERC-721, ERC-1155) with proper metadata handling, minting strategies, and marketplace integration. Use when creating NFT contracts, building NFT marketplaces, or implementing digital asset systems.
cc-skill-coding-standards
Universal coding standards, best practices, and patterns for TypeScript, JavaScript, React, and Node.js development.
devflow-file-standards
File naming conventions, directory structure, and YAML frontmatter standards for CC-DevFlow. Consolidates shared conventions from all agents.
global-validation
Implement server-side validation with allowlists, specific error messages, type checking, and sanitization to prevent security vulnerabilities and ensure data integrity. Use this skill when creating or editing form request classes, when validating API inputs, when implementing validation rules in controllers or services, when writing client-side validation for user experience, when sanitizing user input to prevent injection attacks, when validating business rules, when implementing error message display, or when ensuring consistent validation across all application entry points.
global-tech-stack
Understand and adhere to the project's technology stack including Laravel, PHP, React, PostgreSQL, Pest, Tailwind CSS, and all configured tools and services. Use this skill when making architectural decisions, when choosing libraries or packages, when configuring development tools, when setting up testing frameworks, when implementing authentication, when integrating third-party services, when configuring CI/CD pipelines, when setting up local development environments, or when ensuring consistency with the established tech stack across all parts of the application.
global-error-handling
Implement user-friendly error handling with specific exception types, centralized error handling, graceful degradation, and proper resource cleanup. Use this skill when implementing error handling in controllers, services, or API endpoints, when creating custom exception classes, when writing try-catch blocks, when handling external service failures, when implementing retry strategies, when displaying error messages to users, when cleaning up resources in finally blocks, or when implementing fail-fast validation and error detection.
global-conventions
Follow consistent project structure, version control practices, environment configuration, code review processes, and development conventions across the entire application. Use this skill when organizing project files and directories, when writing commit messages or creating pull requests, when managing environment variables and configuration, when participating in code reviews, when defining testing requirements, when using feature flags, when maintaining changelogs, when documenting setup instructions, or when establishing consistent development practices across the team.
global-commenting
Write minimal, evergreen code comments that explain complex logic without documenting obvious behavior or temporary changes. Use this skill when adding comments to PHP files, TypeScript/JavaScript files, or any code files, when documenting complex algorithms or business logic, when adding PHPDoc blocks or JSDoc comments, when writing self-documenting code with clear naming, or when reviewing existing comments for relevance and necessity. Focus on keeping code self-explanatory through clear structure and naming rather than relying heavily on comments.
global-coding-style
Maintain consistent code formatting, naming conventions, type safety, and automated code quality standards across PHP and TypeScript/JavaScript. Use this skill when writing or editing any PHP files (.php), TypeScript/JavaScript files (.ts, .tsx, .js, .jsx), when implementing type declarations and return types, when running code formatters (Laravel Pint, Ultracite) or linters, when running static analysis tools (Larastan), when naming variables, functions, classes, or files, when applying DRY principles, when removing dead code, or when preparing code for review or commit.
standards-extraction
Extract coding standards and conventions from CONTRIBUTING.md, .editorconfig, linter configs. Use for onboarding and ensuring consistent contributions.
code-review-standards
Code review framework and criteria. References security-sentinel for security checks. Use when performing code reviews or defining review standards.
nathan-standards
Development standards for the Nathan n8n-Jira agent automation system. Covers n8n workflows, Python patterns, and project conventions.