code-agent-meta-patterns

Standardize CLAUDE.md structure and layering for code-agent workflows.

2|Updated Jan 3, 2026
One-click install
npx skills add https://github.com/jlaws/dotfiles --skill code-agent-meta-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-agent-meta-patterns
Source: https://github.com/jlaws/dotfiles/tree/main/.agents/skills/workflow/code-agent-meta-patterns
Command: npx skills add https://github.com/jlaws/dotfiles --skill code-agent-meta-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill standardizes and accelerates the design of code-agent workflows by providing structured CLAUDE.md practices, layering guidelines, and context-management rules, reducing drift and confusion across projects.

Core Features & Use Cases

  • CLAUDE.md optimization: guidance on what to include or avoid to keep CLAUDE.md focused and effective.
  • Layering strategy: a hierarchical model for CLAUDE.md placement (global, project, module) to ensure consistent rules.
  • Skill Design templates: recommended frontmatter conventions, skill structure, and sizing guidelines to maintain scannable, reusable knowledge.
  • Context management guidelines: practices for keeping agent context lean and relevant, with quick reference to file locations in monorepos.
  • Gotchas and maintenance: common pitfalls and checks to prevent stale instructions.

Use cases include creating project-wide CLAUDE.md templates, updating per-directory CLAUDE.md, and setting conventions for code-agent tasks.

Quick Start

Use this skill to optimize code-agent workflows and CLAUDE.md design by applying layering strategies and the recommended templates.

Frequently Asked Questions about code-agent-meta-patterns

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

FAQPage Schema
How do I structure CLAUDE.md files for code agents across a monorepo?

Structure CLAUDE.md files for code agents using a hierarchical layering model with global, project, and module-level placements to ensure consistent rules and lean context management across directories.

What should I include in CLAUDE.md to keep code-agent context lean?

To keep code-agent context lean, include only focused coding conventions, quick file location references for monorepos, and essential workflow guidelines, while avoiding stale instructions and unnecessary documentation drift.

What is the best way to standardize skill design templates for coding agents?

The best way to standardize skill design templates is by enforcing specific frontmatter conventions, skill structure patterns, and sizing guidelines to maintain scannable, reusable knowledge for coding agents.

When do I need per-directory CLAUDE.md files for my project?

You need per-directory CLAUDE.md files when managing large projects or monorepos where module-specific coding conventions and context rules must override or supplement global project instructions.

Why does my code-agent workflow drift across different project directories?

Code-agent workflow drift happens when project directories lack standardized CLAUDE.md practices, layering guidelines, and context-management rules, causing confusion and inconsistent agent behavior.

Does code-agent-meta-patterns require specific dependencies to optimize workflows?

No dependencies are required to optimize code-agent workflows, as the skill applies meta-patterns, layering strategies, and documentation templates directly to your existing CLAUDE.md files.