/claude-code-expert:cc-prompt-engineeringfrom claude-code-expert
Crafts effective prompts for Claude Code including CLAUDE.md files, agent system prompts, skill descriptions, rule files, and task framings. Use when writing guidance or debugging Claude not following instructions.
Ships in claude-code-expert. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Instructions that make Claude Code do the right thing consistently. Everything below is a prompt — just scoped differently.
| Surface | Loaded | Use for |
|---|---|---|
| CLAUDE.md | always | Routing, build commands, conventions, hard rules |
| Skill description (frontmatter) | always | Trigger conditions, what/when |
| Skill body | on activation | Workflow, decision trees, MCP delegation |
| Agent system prompt | on invocation | Role, approach, output format |
Target: ≤120 lines, routing-only, no reference material.
Structure:
# {Project Name}
## Build & Test
- Install: `pnpm install`
- Build: `pnpm build`
- Test: `pnpm test`
- Lint: `pnpm lint`
## Tech Stack
{one line per layer: runtime, framework, DB, infra, CI/CD}
## Key Paths
- Source: {src}
- Tests: {tests}
- Docs: {docs}
## Decision trees
- Auth tasks → check {auth-dir} first
- DB migrations → check {migrations-dir} first
## Conventions
- {convention 1}
- {convention 2}
## Don't touch
- {auto-generated files}
Rules:
.claude/rules/{topic}.md and reference it.Per skill-creator guidance, Claude undertriggers skills by default. Counteract by making descriptions specific and forceful.
Bad:
description: How to build dashboards.
Good:
description: How to build a simple fast dashboard to display internal Anthropic data. Make sure to use this skill whenever the user mentions dashboards, data visualization, internal metrics, or wants to display any kind of company data, even if they don't explicitly ask for a "dashboard".
Include:
Three-section structure:
## Role
{Single-sentence role statement}
## Approach
1. {Step 1}
2. {Step 2}
3. {Step 3}
## Output format
{Exact shape of the return value}
Rules:
allowed-tools frontmatter, not in prose.When invoking an agent or /command, frame the task so it stands alone:
Task: {one-sentence what}
Context: {what matters and why}
Already tried: {what's been ruled out}
Constraints: {what must hold}
Out of scope: {what not to touch}
Expected output: {specific shape}
Missing any of these → agent invents answers or goes off-scope.
.claude/rules/*.md).claude/rules/*.md files auto-load alongside CLAUDE.md. Use for:
typescript.md, python.md)git-workflow.md, testing.md)Each rules file ≤ 150 lines. Reference from CLAUDE.md: @.claude/rules/typescript.md.
| Symptom | Likely cause |
|---|---|
| "Claude isn't following this rule" | Rule is in a skill body but skill isn't triggering — move to CLAUDE.md |
| "Claude invokes skill at wrong times" | Description too broad; narrow the triggers |
| "Claude never picks up skill" | Description too abstract; make pushy |
| "Claude ignores agent output format" | Format described in prose, not as a template |
| "CLAUDE.md is huge and ignored" | Move content to references; keep CLAUDE.md as routing |
| Need | Tool |
|---|---|
| Starting templates | cc_docs_full_reference("prompt-engineering") |
| Validate skill quality | run plugin-validator or skill-reviewer agent |
{stack_name}) → rot.What SKILL.md sets; muted values are Claude Code's defaults
21 skills in this plugin
/cc-agentic-patternsSelect and wire an agentic design pattern (reflection, prompt chaining, routing, parallelization, orchestrator-workers, evaluator-optimizer, ReAct, blackboard) into the 5-layer Claude Code stack. Use this skill whenever deciding how to structure a multi-step task, whether to spawn subagents, how to run parallel review, or when to use which pattern. Triggers on: "which pattern", "orchestrate", "parallel review", "self-review", "chain of thought", "eval-optimizer loop", "blackboard", "ReAct", "how to decompose this task"./cc-agent-teamsSelect and coordinate multi-agent teams (topology kits, role-based squads, lifecycle, worktree isolation). Use this skill whenever launching parallel agents, designing a review board, running a debug council, scheduling an orchestrator-workers team, configuring agent tool restrictions, or deciding between solo and team execution. Triggers on: "launch a team", "parallel agents", "review board", "debug council", "architect-implementer-reviewer", "swarm", "multi-agent", "subagents for X", "team topology", "agent lifecycle"./cc-auto-modeAuto mode permission handling — classifier-based approvals, PermissionDenied hook, defer permissionDecision, and autonomy profiles for hands-off Claude Code usage/cc-autonomy-modeConfigure Claude Code's autonomous operating mode — profile selection (conservative, balanced, aggressive, unattended-review), permission blocks, and the three gate agents (planner, verifier, reviewer). Use this skill whenever enabling autonomous mode, switching profiles, tightening permissions for production branches, or setting up unattended execution. Triggers on: "autonomy", "unattended mode", "auto-approve", "permission mode", "autonomy profile", "gates", "/cc-autonomy", "planner verifier reviewer", "let claude run on its own"./cc-context-budgetingManage Claude Code's context window — token arithmetic, /compact strategy, anchor preservation, progressive loading, session analytics. Use this skill whenever a session gets long, context approaches limits, after /compact, when deciding what to load into CLAUDE.md vs leave in references, or when analyzing session cost/token usage. Triggers on: "context full", "compact", "too many tokens", "budget", "session analytics", "save tokens", "context window", "/compact strategy"./cc-deep-code-intelligenceEvidence-driven deep analysis for hard coding problems — architecture decisions, root-cause investigation, high-stakes refactor planning, performance bottleneck isolation. Use this skill whenever the user asks for "the best approach", a "deep analysis", "root cause", "principal engineer review", or runs /cc-intel. Also triggers on hard debugging questions, major architectural choices, tricky performance problems, or any task where a hypothesis tree and evidence table matter more than a fast answer.npx claudepluginhub thelobbi/claude --plugin claude-code-expertOther plugins' skills for the same job