claude-code-patterns

Structure and audit Claude Code artifact knowledge for skills, agents, rules, commands, and hooks.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/aliciapls/ML-Week-2---Healthcare --skill claude-code-patterns-aliciapls
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: claude-code-patterns
Source: https://github.com/aliciapls/ML-Week-2---Healthcare/tree/main/.claude/skills/30-claude-code-patterns
Command: npx skills add https://github.com/aliciapls/ML-Week-2---Healthcare --skill claude-code-patterns-aliciapls

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you design and audit Claude Code artifact systems without repeatedly re-learning the patterns for skills, agents, rules, commands, and hooks.

Core Features & Use Cases

  • Understands how artifact types differ by layer, purpose, and token cost.
  • Provides anti-patterns and fixes for brittle skills, vague agents, noisy commands, and unsafe hooks.
  • Includes token-budget guidance for keeping context lean and choosing the right level of detail.
  • Use it when building a new Claude Code skill, reviewing a directory for quality, or refactoring an existing AI workspace for better performance.

Quick Start

Ask the skill to review a Claude Code artifact directory and recommend how to structure, scope, and compress it for better token efficiency.

Frequently Asked Questions about claude-code-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure Claude Code artifacts to manage token budget efficiently?▼

To manage token budget in Claude Code artifacts, apply progressive disclosure, frontmatter scoping, and explicit templates. This structures workspace knowledge so skills, agents, and rules load only necessary details, keeping context lean.

What are common anti-patterns when building Claude Code skills and agents?▼

Common anti-patterns in Claude Code artifacts include brittle skills, vague agents, noisy commands, and unsafe hooks. Auditing these workspaces identifies structural flaws and applies explicit templates and frontmatter scoping to resolve them.

How do I audit a Claude Code workspace for quality and performance?▼

Audit a Claude Code workspace by reviewing artifact directories against token-aware context management principles. Evaluate skills, agents, rules, commands, and hooks for progressive disclosure and frontmatter scoping to recommend compression and refactoring strategies.

When should I refactor Claude Code workspace artifacts?▼

Refactor Claude Code workspace artifacts when token costs rise from noisy commands or brittle skills. Restructuring with progressive disclosure and explicit templates restores performance by scoping frontmatter and reducing unnecessary context loading.

Does this approach work for both creating and reviewing Claude Code hooks and commands?▼

Yes, this artifact structuring approach applies to creating, reviewing, and refactoring all Claude Code components including hooks and commands. It identifies and fixes unsafe hooks and noisy commands using token-budget guidance and explicit templates.