home / skills / tlabs-xyz / tbtc-v2-performance / global--coding-style

global--coding-style skill

/.codex/skills/global--coding-style

This skill enforces the agent-os global coding style across projects to ensure consistent TypeScript quality and readability.

npx playbooks add skill tlabs-xyz/tbtc-v2-performance --skill global--coding-style

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
375 B
---
name: global--coding-style
description: Apply the Agent OS standard for global coding style.
tags: [agent-os, standard, global]
---

# Global Coding Style

Use this skill when working on global coding style in this repo.

## Instructions

- Follow the standard in `agent-os/standards/global/coding-style.md`.

## References

- `agent-os/standards/global/coding-style.md`

Overview

This skill applies the Agent OS standard for global coding style across TypeScript projects. It enforces consistent formatting, naming, and structural conventions to improve readability and maintainability. Use it to align code with the organization's shared style expectations and reduce stylistic debate during reviews.

How this skill works

The skill inspects source files for formatting, naming, and structural patterns defined by the Agent OS global coding style. It flags deviations and suggests fixes for issues like whitespace, import order, naming conventions, and file organization. The skill can be used as part of code review or pre-commit checks to ensure consistency before changes are merged.

When to use it

  • When starting a new TypeScript project that should follow organization-wide style
  • During pull requests to validate style before merging
  • When onboarding contributors to enforce a consistent codebase
  • When refactoring to ensure updated code adheres to the standard
  • As part of CI pipelines to prevent regressions in coding style

Best practices

  • Run the style checks locally before opening a pull request to reduce feedback cycles
  • Fix style issues in focused commits to keep functional changes separate from formatting
  • Use automated tools (formatters/linters) configured to match the standard for repeatable results
  • Document and communicate exceptions to the standard in team guidelines
  • Keep the style configuration versioned and review it periodically to reflect practical team needs

Example use cases

  • Automate formatting and linting in CI to block merges that violate the global style
  • Review and correct import ordering and duplicate imports across a large codebase
  • Standardize naming conventions for functions, types, and interfaces during a refactor sprint
  • Onboard new contributors by validating their PRs against the established coding style
  • Run a repository-wide audit to identify and fix inconsistent file and folder structures

FAQ

Does this skill modify code automatically?

It can suggest fixes and integrate with automated formatters; whether code is modified automatically depends on your tooling and configuration.

Which files and languages are checked?

Primary focus is TypeScript and repo-wide files that affect coding style, such as source files, configuration, and shared modules.