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.tools
Build Teams-native agents with the Teams SDK (formerly Teams AI Library v2) — App class, activity routing, adaptive cards, streaming, AI-generated labels, feedback, message extensions, Teams-as-MCP-server, and the bring-your-own-AI pattern with Agent Framework.
tools
Run agents on Microsoft Foundry (formerly Azure AI Foundry) Agent Service — prompt agents vs hosted agents, threads/runs and the Responses API, built-in tools (Bing grounding, code interpreter, file search, MCP, OpenAPI, A2A), connected agents, Entra agent identity, SDKs, and observability/evaluations.
tools
Build and host custom engine agents with the Microsoft 365 Agents SDK — AgentApplication, the Activity protocol, channel reach via Azure Bot Service, hosting Agent Framework or Semantic Kernel engines, and the Agents Toolkit/Playground workflow. Successor to the Bot Framework SDK.
tools
Design, govern, and extend Microsoft Copilot Studio agents — topics, generative orchestration, knowledge, tools and MCP, agent flows, autonomous triggers, publishing channels, Copilot Credits pricing, and solution-based ALM on Power Platform.