Agent skill

Patterns

by nklisch in nklisch/claude-code-modes

Project code patterns and conventions. An agent skill from nklisch/claude-code-modes.

MITAuto-check passed

Install Patterns

skills CLI
$ npx skills add nklisch/claude-code-modes --skill patterns -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install nklisch/claude-code-modes patterns --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/nklisch/claude-code-modes.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/patterns .claude/skills/patterns && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
patterns
GitHub stars
116
Token cost
~228 tokens
SKILL.md length
51 words
Files
7
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

Project code patterns and conventions. An agent skill from nklisch/claude-code-modes.

  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Patterns is an agent skill from nklisch/claude-code-modes. Project code patterns and conventions. Auto-loads when implementing, designing, verifying, or reviewing code. Provides detailed pattern definitions with code examples.

Its SKILL.md is about 230 tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files (for example `as-const-enum.md`, `cli-runner-factory.md` and `fail-fast-errors.md`).

The repository describes itself as: CLI launcher for Claude Code with behaviorally-tuned system prompts — control agency, quality, and scope instead of fighting the defaults. The licence is MIT.

Example prompts

  • “/patterns”

Requirements

  • Pre-approved tools (allowed-tools): Read, Glob, Grep

What it can do on your machine

Read from SKILL.md and the folder at commit 4dbbb28. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Patterns loads about 228 tokens when it runs. Until then it costs about 44 tokens; SKILL.md has 51 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~44
When it runs · the whole SKILL.md, loaded when a task matches
~228

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from nklisch/claude-code-modes at commit 4dbbb28, republished under its MIT licence (© nklisch). 51 words, ~228 tokens.

Download SKILL.mdSave it as .claude/skills/patterns/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
patterns
description
Project code patterns and conventions. Auto-loads when implementing, designing, verifying, or reviewing code. Provides detailed pattern definitions with code examples.
allowed-tools
Read, Glob, Grep
user-invocable
false

Project Patterns Reference

This skill contains detailed pattern documentation for the claude-code-modes project. See individual pattern files for full details with code examples.

Available patterns:

© nklisch, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files in .claude/skills/patterns of nklisch/claude-code-modes.

  • SKILL.md
  • as-const-enum.md
  • cli-runner-factory.md
  • fail-fast-errors.md
  • pipeline.md
  • private-module-helpers.md
  • test-fixture-spread.md

Open the folder on GitHubat commit 4dbbb28

Compare with similar skills

Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Patterns this skillnklisch/claude-code-modes116—~228Automated safety check: PassMIT
Conventionschampionswimmer/onepixel_backend186—~398Automated safety check: PassNone
Conventionsxiaolai/nlpm146—~3.6kAutomated safety check: PassISC
Ecc Conventionsaffaan-m/ECC275k—~2.8kAutomated safety check: PassMIT
Naming Conventionsthedaviddias/Front-End-Checklist74k—~481Automated safety check: PassMIT
Conventional CommitJanDeDobbeleer/oh-my-posh24k—~1.2kAutomated safety check: NotesMIT

Similar skills

  • Conventions

    championswimmer/onepixel_backend

    Apply onepixel repository conventions for env loading, DB backend selection, auth locals, error payloads, and shortcode semantics.

    186 GitHub stars~398 tokensUpdated 6 mo ago
    Auto-check passed
  • Conventions

    xiaolai/nlpm

    Universal NL conventions: SKILL.md open spec, AGENTS.md, vague quantifiers, naming.

    146 GitHub stars~3.6k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Ecc Conventions

    affaan-m/ECC

    Development conventions and patterns for ECC. An agent skill from affaan-m/ECC.

    275k GitHub stars~2.8k tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Naming Conventions

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing stylesheets, component styles, and responsive behavior related to Use consistent CSS naming conventions.

    74k GitHub stars~481 tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Conventional Commit

    JanDeDobbeleer/oh-my-posh

    Workflow for generating conventional commit messages following the Conventional Commits specification.

    24k GitHub stars~1.2k tokensUpdated today
    DevelopmentAuto-check: notes
  • Backend Conventions

    getsentry/sentry

    Official

    Sentry backend conventions for logging, tracing/spans, span/tag attribute naming, metrics tags, and the options system.

    46k GitHub stars~1.3k tokensUpdated today
    Auto-check passed

More from nklisch/claude-code-modes

  • Sync Upstream

    nklisch/claude-code-modes

    Compare this project's base prompts and model metadata against a Claude Code release.

    116 GitHub stars~1.8k tokensUpdated 7 days ago
    Auto-check: notes
  • Structural Refactor

    nklisch/claude-code-modes

    Project structural organization rules for Bun/TypeScript CLI.

    116 GitHub stars~526 tokensUpdated 7 days ago
    Auto-check: notes
  • Stylistic Refactor

    nklisch/claude-code-modes

    Project stylistic refactoring rules for Bun/TypeScript CLI. An agent skill from nklisch/claude-code-modes.

    116 GitHub stars~523 tokensUpdated 7 days ago
    Auto-check: notes

Questions about Patterns

What does Patterns do?

Project code patterns and conventions. An agent skill from nklisch/claude-code-modes. Patterns is an agent skill from nklisch/claude-code-modes. Project code patterns and conventions.

How do I install Patterns in Claude Code?

Run `npx skills add nklisch/claude-code-modes --skill patterns -a claude-code`. Or copy the skill folder (.claude/skills/patterns in nklisch/claude-code-modes) into .claude/skills/patterns in your project. Claude Code loads it when a task matches its description.

How do I install Patterns in Codex?

Run `npx skills add nklisch/claude-code-modes --skill patterns -a codex`. Or copy the skill folder (.claude/skills/patterns in nklisch/claude-code-modes) into .agents/skills/patterns in your project. Codex loads it when a task matches its description.

Can I use Patterns in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nklisch/claude-code-modes --skill patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/patterns, .gemini/skills/patterns, .github/skills/patterns and .opencode/skills/patterns in your project.

What does Patterns need to run?

SKILL.md names no scripts, command-line tools or credentials: Patterns is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Glob, Grep.

Does Patterns access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Patterns safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Patterns use?

Patterns is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Patterns use?

About 228 tokens (SKILL.md is roughly 912 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Patterns?

Skills that share tags, products or a category with Patterns: Conventions (championswimmer/onepixel_backend, 186 stars), Conventions (xiaolai/nlpm, 146 stars), Ecc Conventions (affaan-m/ECC, 275k stars) and Naming Conventions (thedaviddias/Front-End-Checklist, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Patterns?

nklisch (a GitHub user) maintains it in nklisch/claude-code-modes, which has 116 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 1, 2026.

Source: nklisch/claude-code-modes on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.