# Coding standards

> Coding standards is an open-source agent skill for developer tools. Gives your agent baseline TypeScript and JavaScript conventions for naming, immutability. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/Fmarzochi/EGC/tree/main/.agents/skills/coding-standards
- **Repository:** https://github.com/fmarzochi/egc
- **GitHub stars:** 71
- **License:** Apache-2.0
- **Skill name:** coding-standards
- **Collection:** https://github.com/Fmarzochi/EGC
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill sets a shared floor of coding conventions that an agent applies across projects: descriptive naming, immutability by default, readability, and the KISS, DRY and YAGNI principles. It also gives the agent a checklist for spotting code smells such as long functions, deep nesting and magic numbers, and for reviewing code against these rules.

The bulk of the document is worked examples in TypeScript and JavaScript showing good and bad patterns for variables, functions, error handling, async work, type safety, simple React components and hooks, REST response shapes, input validation with zod, file layout, comments, and tests. The examples are illustrative snippets rather than scripts, so the skill runs no code of its own.

The skill is written to hand off to narrower guidance. It points the agent to separate skills for frontend and backend patterns, API design, and a shorter rules file for common style, so it is best used as the general baseline rather than a full framework playbook.

## When your agent uses it

> Baseline cross-project coding conventions for naming, readability, immutability, and code-quality review. Use detailed frontend or backend skills for framework-specific patterns.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/Fmarzochi/EGC/tree/HEAD/.agents/skills/coding-standards)
- [License: Apache-2.0](https://github.com/Fmarzochi/EGC/tree/HEAD/.agents/skills/coding-standards)

## Features

- **Naming conventions:** Guidance on descriptive variable names and verb-noun function names, with contrasting examples.
- **Immutability defaults:** Patterns that favor spread syntax and new arrays or objects over direct mutation.
- **Code smell review:** A checklist for long functions, deep nesting, magic numbers and similar anti-patterns.
- **Error handling and async:** Examples of checked fetch errors, parallel awaits with Promise.all and strict typing.
- **Testing and comments:** Advice on AAA test structure, descriptive test names, and comments that explain why.
- **Pointers to specialist skills:** Directs the agent to framework and API design skills for detailed domain patterns.

## Good for

- Review this module for naming and readability issues
- Refactor this function to avoid mutating its input
- Check whether this code follows our baseline conventions before merging
- Explain the immutability and DRY principles to a new contributor
- Flag magic numbers and deeply nested conditionals in a file

## Install

### Claude Code

This skill ships in the `egc` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add Fmarzochi/EGC
/plugin install egc@egc
```

Or copy only this skill to `~/.claude/skills/coding-standards`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/coding-standards &&
cp -R "$tmp/.agents/skills/coding-standards" ~/.claude/skills/coding-standards &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/coding-standards` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/coding-standards` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/coding-standards &&
cp -R "$tmp/.agents/skills/coding-standards" ~/.agents/skills/coding-standards &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/coding-standards` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/coding-standards` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/coding-standards &&
cp -R "$tmp/.agents/skills/coding-standards" ~/.cursor/skills/coding-standards &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/coding-standards` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/Fmarzochi/EGC.git --path .agents/skills/coding-standards
```

Or copy the folder to `~/.gemini/skills/coding-standards` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/coding-standards`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/coding-standards &&
cp -R "$tmp/.agents/skills/coding-standards" ~/.copilot/skills/coding-standards &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/coding-standards` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/Fmarzochi/EGC.git
```

Then copy `EGC/.agents/skills/coding-standards` into your agent's skills folder as `coding-standards`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Coding standards activate?

It is meant for starting a new project or module, reviewing code for quality, refactoring toward conventions, enforcing naming or structure, setting up linting or type checking, and onboarding contributors.

### Does Coding standards cover React or backend architecture in depth?

No. The skill states that it is the shared baseline, and it directs React, backend and API design questions to other skills.

### Does Coding standards run any scripts or change files?

The skill contains no scripts. It is a set of guidelines and code examples that the agent follows when it applies.

### How do I install Coding standards in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/coding-standards to use it in all your projects, or to .claude/skills/coding-standards in one project. Or install the egc plugin, which includes it: /plugin marketplace add Fmarzochi/EGC, then /plugin install egc@egc.

### Does Coding standards run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Coding standards?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Coding standards?

The closest alternatives to Coding standards are Coding standards, Readable code, TypeScript best practices, Coding guidelines and Code simplifier.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Coding standards](https://ai-powered.com/skills/coding-standards-smartworldarafath): Coding standards is an open-source agent skill for developer tools.
- [Readable code](https://ai-powered.com/skills/readable-code): Readable code is an open-source agent skill for developer tools.
- [TypeScript best practices](https://ai-powered.com/skills/typescript-best-practices): TypeScript best practices is an open-source agent skill for developer tools.
- [Coding guidelines](https://ai-powered.com/skills/coding-guidelines): Coding guidelines is an open-source agent skill for developer tools.
- [Code simplifier](https://ai-powered.com/skills/code-simplifier): Code simplifier is an open-source agent skill for developer tools.
- [Go coding standards](https://ai-powered.com/skills/go-coding-standards): Go coding standards is an open-source agent skill for developer tools.
- [Patterns](https://ai-powered.com/skills/patterns-xiaolai): Patterns is an open-source agent skill for developer tools.
- [Ecc conventions](https://ai-powered.com/skills/ecc-conventions): Ecc conventions is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/coding-standards-fmarzochi
