Practical prompt patterns and techniques for effective Claude Code usage.

MITAuto-check passedDevelopment

Install Prompt Patterns

skills CLI
$ npx skills add cloudnative-co/claude-code-starter-kit --skill prompt-patterns -a claude-code

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

GitHub CLI
$ gh skill install cloudnative-co/claude-code-starter-kit prompt-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/cloudnative-co/claude-code-starter-kit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/prompt-patterns .claude/skills/prompt-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
prompt-patterns
GitHub stars
151
Token cost
~887 tokens
SKILL.md length
208 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

Practical prompt patterns and techniques for effective Claude Code usage.

  • Tasks that involve Prompt engineering
  • SKILL.md covers Discovery Patterns, Quality Challenge Patterns, Efficiency Patterns and Debugging Patterns, plus 1 more section
  • Calls claude
  • Tasks that involve Debugging

What it does

Prompt Patterns is an agent skill from cloudnative-co/claude-code-starter-kit. Practical prompt patterns and techniques for effective Claude Code usage. Reference when crafting prompts, planning workflows, or debugging interactions.

Its SKILL.md is about 890 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Prompt engineering and Debugging. The repository describes itself as: One-command setup of a complete Claude Code development environment with interactive wizard. The licence is MIT.

When your agent uses it

  • Tasks that involve Prompt engineering
  • Tasks that involve Debugging

Example prompts

  • “/prompt-patterns”

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • claude

    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

Prompt Patterns loads about 887 tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 208 words of instructions outside code blocks.

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

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 cloudnative-co/claude-code-starter-kit at commit f00e7ce, republished under its MIT licence (© cloudnative-co). 208 words, ~887 tokens.

Download SKILL.mdSave it as .claude/skills/prompt-patterns/SKILL.md (or your agent's skills folder).
name
prompt-patterns
description
Practical prompt patterns and techniques for effective Claude Code usage. Reference when crafting prompts, planning workflows, or debugging interactions.
when_to_use
Use when the user wants help crafting prompts, planning an interaction strategy, or debugging prompt quality.

Prompt Patterns for Claude Code

Discovery Patterns

Interview-Driven Spec

Instead of writing a spec yourself, let Claude interview you:

Start with a minimal description of what I want to build, then interview me
using AskUserQuestion tool. Ask one question at a time until you have enough
information to write a complete specification. Then create the spec document.

Creates better specs than writing them manually. Claude asks questions you wouldn't think of.

Codebase Understanding
Read the entire codebase and explain the architecture to me as if I'm a new
team member. Focus on: data flow, key abstractions, and non-obvious design decisions.

Quality Challenge Patterns

Grill Mode

After implementation, challenge Claude to prove correctness:

Grill me on these changes and don't make a PR until I pass your test.

or

Prove to me this works. Diff between main and this branch, explain every change,
and identify any edge cases we missed.
Elegant Redo

When a fix works but feels hacky:

Knowing everything you know now, scrap this and implement the elegant solution.

Claude's second attempt is almost always better because it has full context of the problem.

Self-Critique
Review the code you just wrote as a senior engineer. Be harsh.
What would you change if this was going into a production system
serving 10 million users?

Efficiency Patterns

Subagent Offloading

When context is getting heavy:

Use subagents to investigate [topic]. Keep the main context clean.

Explicitly telling Claude to use subagents prevents context pollution.

Batch Operations
Process these 5 files in parallel using subagents. Each subagent handles one file.
Collect all results and present a unified summary.
Deep Reasoning

For complex design and architecture decisions:

  • Use Plan Mode for work that benefits from an explicit reviewed plan before changes.
  • Extended thinking is controlled by the harness (thinking toggle / effort settings), not by magic keywords in the prompt.
  • In the prompt itself, ask for depth in natural language, e.g.:
Before implementing, compare alternative designs and their trade-offs.

Debugging Patterns

Bug -> Fix (No Micromanagement)
Here's the bug: [paste error/screenshot]. Fix it.

Claude fixes most bugs by itself. Don't prescribe the solution.

Visual Debugging

Paste a screenshot of the issue, then:

Look at this screenshot. The layout is broken. Fix it.

Session Management Patterns

Phase-wise Gated Plan
Create a phase-wise plan for this feature. Each phase must have:
1. Clear deliverable
2. Test criteria (unit, integration, or manual verification)
3. Rollback plan if verification fails

Do not proceed to the next phase until the current phase passes all tests.
Context-Aware Restart

Before starting a new task in the same session:

/clear

After heavy investigation:

/compact Preserve the key findings about [topic] and the implementation plan
Rename and Resume

Name important sessions for easy retrieval:

/rename [feature-name implementation v2]

Later: claude --resume to pick up where you left off.

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

Files

Just SKILL.md in skills/prompt-patterns of cloudnative-co/claude-code-starter-kit.

Open the folder on GitHubat commit f00e7ce

Compare with similar skills

Prompt 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.

Prompt Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Prompt Patterns this skillcloudnative-co/claude-code-starter-kit151—~887Automated safety check: PassMIT
Panel Operationsartokun/comfyui-mcp793—~5.8kAutomated safety check: PassMIT
Aoti Debugpytorch/pytorch104k1 repos~1.7kAutomated safety check: PassCustom licence
Debug Distributed Hangsgl-project/sglang37k2 repos~2.4kAutomated safety check: PassApache-2.0
CUTLASS FMHA Incremental Rebuildmicrosoft/onnxruntime22k—~1.3kAutomated safety check: PassMIT
Debug Distributedareal-project/AReaL5.8k1 repos~1.6kAutomated safety check: PassApache-2.0

Similar skills

  • Panel Operations

    artokun/comfyui-mcp

    On-demand procedures for the ComfyUI sidebar panel agent that are too long to sit in the system prompt.

    793 GitHub stars~5.8k tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed
  • Aoti Debug

    pytorch/pytorch

    Debug AOTInductor (AOTI) errors and crashes. An agent skill from pytorch/pytorch.

    104k GitHub starsUsed in 1 repo~1.7k tokens
    DevelopmentAuto-check passed
  • Debug Distributed Hang

    sgl-project/sglang

    Debug hanging issues in SGLang distributed inference (TP/PP/DP/EP).

    37k GitHub starsUsed in 2 repos~2.4k tokens
    DevelopmentAuto-check passed
  • Official

    Explains why editing CUTLASS fused-MHA headers in ONNX Runtime can leave stale CUDA kernels after an incremental build, and how to force and verify a real rebuild.

    22k GitHub stars~1.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Debug Distributed

    areal-project/AReaL

    Guide for debugging distributed training issues in AReaL. An agent skill from areal-project/AReaL.

    5.8k GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed
  • The Art of Debugging

    stas00/the-art-of-debugging

    Condensed debugging method and tool recipes for Unix, Python and PyTorch programs: crashes, hangs, segfaults, wrong output, CUDA OOM, NaN values and slowness.

    1.7k GitHub stars~6.1k tokensUpdated yesterday
    DevelopmentAuto-check: notes

More from cloudnative-co/claude-code-starter-kit

All 8 skills in this repo
  • Eval Harness

    cloudnative-co/claude-code-starter-kit

    Formal evaluation framework for Claude Code sessions implementing eval-driven development (EDD) principles.

    151 GitHub starsUsed in 10 repos~1.3k tokens
    Auto-check passed
  • TDD Workflow

    cloudnative-co/claude-code-starter-kit

    A skill your agent uses when the user explicitly asks for TDD or a tests-first workflow, or when developing a new feature with a test coverage requirement.

    151 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Web Content Extraction

    cloudnative-co/claude-code-starter-kit

    Web取得の標準前処理レイヤー。URL・公式ドキュメント・ブログ・ニュース・OSSページを読むときは、原則として毎回このSkillでDefuddleを使い本文をMarkdown/JSON化してから読む。生HTMLのまま要約・分析・比較・レビューしない。トリガー例: URLを読む/Webページ要約/OSS調査/公式Doc確認/記事解析/競合サイト確認/Web一次情報確認。

    151 GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Project Guidelines Example

    cloudnative-co/claude-code-starter-kit

    Example project-specific skill template. An agent skill from cloudnative-co/claude-code-starter-kit.

    151 GitHub stars~446 tokensUpdated today
    Auto-check passed
  • Verification Loop

    cloudnative-co/claude-code-starter-kit

    Comprehensive verification system for Claude Code sessions. An agent skill from cloudnative-co/claude-code-starter-kit.

    151 GitHub stars~733 tokensUpdated today
    Auto-check passed
  • Cloudnative Writing Baseline

    cloudnative-co/claude-code-starter-kit

    日本語の業務文書を作成・修正するときに使用する共通品質基準。事実性、確度、論理、簡潔さ、自然な日本語を守る。提案書、報告、技術説明、議事録、メール、Slack、要約、レビューに適用する。創作、広告コピー、コードや構造化データだけの生成には使用しない。

    151 GitHub stars~1.1k tokensUpdated today
    Auto-check passed

Questions about Prompt Patterns

What does Prompt Patterns do?

Practical prompt patterns and techniques for effective Claude Code usage. Prompt Patterns is an agent skill from cloudnative-co/claude-code-starter-kit. Practical prompt patterns and techniques for effective Claude Code usage.

When should I use Prompt Patterns?

Prompt Patterns fits situations like: tasks that involve Prompt engineering; tasks that involve Debugging.

How do I install Prompt Patterns in Claude Code?

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

How do I install Prompt Patterns in Codex?

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

Can I use Prompt 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 cloudnative-co/claude-code-starter-kit --skill prompt-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/prompt-patterns, .gemini/skills/prompt-patterns, .github/skills/prompt-patterns and .opencode/skills/prompt-patterns in your project.

What does Prompt Patterns need to run?

Going by SKILL.md and its folder, Prompt Patterns needs the command-line tools its instructions call (claude).

Does Prompt 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 Prompt 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 Prompt Patterns use?

Prompt 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 Prompt Patterns use?

About 887 tokens (SKILL.md is roughly 3.5k 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 Prompt Patterns?

Skills that share tags, products or a category with Prompt Patterns: Panel Operations (artokun/comfyui-mcp, 793 stars), Aoti Debug (pytorch/pytorch, 104k stars), Debug Distributed Hang (sgl-project/sglang, 37k stars) and CUTLASS FMHA Incremental Rebuild (microsoft/onnxruntime, 22k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Prompt Patterns?

cloudnative-co (a GitHub organization) maintains it in cloudnative-co/claude-code-starter-kit, which has 151 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 7, 2026.

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