plugins/claude-code-expert/skills/prompt-engineering/SKILL.md
--- name: prompt-engineering description: Craft effective CLAUDE.md routing, agent system prompts, skill descriptions, rule files, and task framings. Use this skill whenever writing a CLAUDE.md, authoring a subagent, writing a skill description, crafting a /command prompt, framing an ambiguous task for Claude, or debugging why Claude isn't picking up guidance. Triggers on: "write a CLAUDE.md", "agent prompt", "skill description", "pushy description", "task framing", "claude isn't following", "ma
npx skillsauth add markus41/claude plugins/claude-code-expert/skills/prompt-engineeringInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.development
Enhanced plan-authoring skill with Pre-Writing context gathering, task metadata, non-TDD templates, Red Flags, telemetry, and an automated plan linter. Use when you have a spec or requirements for a multi-step task, before touching code.
tools
Documentation intelligence engine with graph-based API docs, algorithm library, and drift detection
tools
Ultraplan cloud planning — kick off a plan in the cloud from your terminal, review and revise in the browser, then execute remotely or send back to CLI
tools
--- name: mcp description: Configure MCP servers for Claude Code — stdio vs HTTP, authentication, Tools/Resources/Prompts distinction, channels (CI webhook, mobile relay, Discord bridge, fakechat), and cost of always-loaded tools. Use this skill whenever adding an MCP server, debugging connection issues, choosing between MCP Tools vs Prompts vs Resources, installing channel servers, or managing .mcp.json. Triggers on: "MCP server", "mcp config", "add Obsidian MCP", "install context7", "channels"