code-standards

Setup universal code quality standards in your project. Use when the user wants to generate coding standards files (CLAUDE.md, AGENTS.md, GEMINI.md, etc.) or mentions 'code standards', 'code review setup', or similar intent in any language.

16 stars

Best use case

code-standards is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Setup universal code quality standards in your project. Use when the user wants to generate coding standards files (CLAUDE.md, AGENTS.md, GEMINI.md, etc.) or mentions 'code standards', 'code review setup', or similar intent in any language.

Teams using code-standards should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/code-standards/SKILL.md --create-dirs "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/data-ai/code-standards/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/code-standards/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How code-standards Compares

Feature / Agentcode-standardsStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Setup universal code quality standards in your project. Use when the user wants to generate coding standards files (CLAUDE.md, AGENTS.md, GEMINI.md, etc.) or mentions 'code standards', 'code review setup', or similar intent in any language.

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

# Code Standards — Universal AI Tool Configuration Generator

Generate code standards files based on Linus Torvalds' "Good Taste" philosophy. Auto-detects AI tools in your project and creates the appropriate configuration files in the user's language.

## When to Use

- User wants to set up coding standards for a project
- User wants to sync code quality rules across AI coding tools
- User mentions "code standards", "init claude md", "code review", or equivalent in any language

## Instructions for Agent

### Step 1: Detect Language & Read Template

Detect the user's language. Read the matching template from this skill's `references/` directory:

- Simplified Chinese → `references/code-standards-zh-CN.md`
- Traditional Chinese → `references/code-standards-zh-TW.md`
- Japanese → `references/code-standards-ja.md`
- All other languages → `references/code-standards-en.md`

### Step 2: Detect AI Tools

```bash
PROJECT_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)

[ -d "$PROJECT_ROOT/.cursor" ] && echo "CURSOR"
[ -f "$PROJECT_ROOT/AGENTS.md" ] || [ -d "$PROJECT_ROOT/.codex" ] && echo "CODEX"
[ -f "$PROJECT_ROOT/GEMINI.md" ] || [ -d "$PROJECT_ROOT/.gemini" ] && echo "GEMINI"
[ -d "$PROJECT_ROOT/.github" ] && echo "COPILOT"
[ -d "$PROJECT_ROOT/.windsurf" ] || [ -f "$PROJECT_ROOT/.windsurfrules" ] && echo "WINDSURF"
[ -f "$PROJECT_ROOT/.aider.conf.yml" ] && echo "AIDER"
[ -d "$PROJECT_ROOT/.clinerules" ] || [ -d "$PROJECT_ROOT/.roo" ] && echo "CLINE"
```

### Step 3: Generate Files

Write the template content directly. No confirmation needed — the user invoked this skill, that IS the intent.

**Always generate:** `CLAUDE.md`

**For each detected tool, also generate:**

| Tool | File | Notes |
|------|------|-------|
| Cursor | `.cursor/rules/code-standards.mdc` | Prepend `---\ndescription: "Linus Torvalds code standards"\nalwaysApply: true\n---\n` |
| Codex | `AGENTS.md` | Same content |
| Gemini | `GEMINI.md` | Same content |
| Copilot | `.github/copilot-instructions.md` | `mkdir -p .github` first |
| Windsurf | `.windsurfrules` | Same content |
| Aider | `CONVENTIONS.md` | Same content |
| Cline/Roo | `.clinerules/code-standards.md` | `mkdir -p .clinerules` first |

### Step 4: Report

Report created files in the user's language. Keep it brief.

## Response Guidelines

1. **Execute immediately** — No confirmation, no "shall I proceed?". Just write.
2. **Unconditionally overwrite existing files** — Always overwrite CLAUDE.md and other config files without asking. The invocation is explicit intent to replace.
3. **Respond in user's language** — Match the language they used to invoke.
4. **No extra commentary** — Detect, write, report. Done.

## Error Handling

| Situation | Action |
|-----------|--------|
| Not in a git repo | Use current directory as root |
| No tools detected | Only generate `CLAUDE.md` |
| Permission denied | Report error with path |
| Template not found | Fall back to English |

Related Skills

academic-writing-standards

16
from diegosouzapw/awesome-omni-skill

Expert knowledge of academic writing standards for peer-reviewed papers, including citation integrity, style compliance, clarity, and scientific writing best practices. Use when reviewing or editing academic manuscripts, papers, or research documentation.

arweave-standards

16
from diegosouzapw/awesome-omni-skill

GitHub repository skill for ArweaveTeam/arweave-standards

spring-boot-rest-api-standards

16
from diegosouzapw/awesome-omni-skill

Provides REST API design standards and best practices for Spring Boot projects. Use when creating or reviewing REST endpoints, DTOs, error handling, pagination, security headers, HATEOAS and architecture patterns.

NestJS API Standards

16
from diegosouzapw/awesome-omni-skill

Response wrapping, pagination, and error standardization.

bgo

10
from diegosouzapw/awesome-omni-skill

Automates the complete Blender build-go workflow, from building and packaging your extension/add-on to removing old versions, installing, enabling, and launching Blender for quick testing and iteration.

Coding & Development

moai-lang-r

16
from diegosouzapw/awesome-omni-skill

R 4.4+ best practices with testthat 3.2, lintr 3.2, and data analysis patterns.

moai-lang-python

16
from diegosouzapw/awesome-omni-skill

Python 3.13+ development specialist covering FastAPI, Django, async patterns, data science, testing with pytest, and modern Python features. Use when developing Python APIs, web applications, data pipelines, or writing tests.

moai-icons-vector

16
from diegosouzapw/awesome-omni-skill

Vector icon libraries ecosystem guide covering 10+ major libraries with 200K+ icons, including React Icons (35K+), Lucide (1000+), Tabler Icons (5900+), Iconify (200K+), Heroicons, Phosphor, and Radix Icons with implementation patterns, decision trees, and best practices.

moai-foundation-trust

16
from diegosouzapw/awesome-omni-skill

Complete TRUST 4 principles guide covering Test First, Readable, Unified, Secured. Validation methods, enterprise quality gates, metrics, and November 2025 standards. Enterprise v4.0 with 50+ software quality standards references.

moai-foundation-memory

16
from diegosouzapw/awesome-omni-skill

Persistent memory across sessions using MCP Memory Server for user preferences, project context, and learned patterns

moai-foundation-core

16
from diegosouzapw/awesome-omni-skill

MoAI-ADK's foundational principles - TRUST 5, SPEC-First TDD, delegation patterns, token optimization, progressive disclosure, modular architecture, agent catalog, command reference, and execution rules for building AI-powered development workflows

moai-cc-claude-md

16
from diegosouzapw/awesome-omni-skill

Authoring CLAUDE.md Project Instructions. Design project-specific AI guidance, document workflows, define architecture patterns. Use when creating CLAUDE.md files for projects, documenting team standards, or establishing AI collaboration guidelines.