/mthines-agent-skills:ai-engineering [guide|review|design] [<area>|<file>]from mthines-agent-skills
Reviews and guides LLM/AI application engineering across prompts, caching, RAG, agent loops, evals, guardrails, and observability. Invoke with /ai-engineering for targeted advice.
Ships in mthines-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Prescriptive guidance for building and reviewing LLM/AI applications. Thirteen orthogonal concerns — load only the rules the current task needs.
This
SKILL.mdis a thin index. Detailed rules live inrules/*.mdand load on demand. Curated source URLs live inreferences/primary-sources.md. Date-flagged changes since 2024 live inreferences/recent-changes.md. Literal scaffolding lives intemplates/.
Parse $ARGUMENTS (first token) and detect the mode:
| Mode | Default | Trigger |
|---|---|---|
guide | yes | Default. Open question ("how should I …", "what's the best way to …"). |
review | $0 == "review", or a file/path is supplied as $ARGUMENTS. | |
design | $0 == "design", or "scaffold a prompt / system prompt / eval". |
State the detected mode and the area(s) in scope before continuing:
Mode: review
Areas: prompt-writing, system-prompt-design
Targets: src/agents/triage.ts (system prompt at L24-78)
Map the user's request to one or more rule files. Load only the rules listed for the matched area(s).
| Area | Rule file | Load when |
|---|---|---|
| Writing user prompts | rules/prompt-writing.md | "improve this prompt", few-shot questions, output format, CoT, structured outputs. |
| Designing system prompts | rules/system-prompt-design.md | Persona, tool docs, ordering, refusals, agent stop conditions. |
| Token cost / latency | rules/token-optimization.md | Prompt caching, model routing, batching, streaming, max_tokens. |
| Multimodal | rules/multimodal.md | Image/audio/PDF inputs, vision-vs-OCR, voice agents, image token costs. |
| Retrieval-augmented generation | rules/rag.md | Chunking, embeddings, hybrid search, reranking, query rewriting. |
| Agents & tool use | rules/agents-and-tools.md | Tool schemas, agent loops, parallel tool calls, error recovery, workflow vs agent. |
| Resilience | rules/resilience.md | Rate limits (429), retries with jitter, circuit breakers, fallback chains, timeouts, idempotency. |
| Memory & long-running state | rules/memory-and-state.md | Conversation summarisation, structured memory, vector memory, memory tools, compaction. |
| Model migration & versioning | rules/model-migration.md | Pin snapshots vs aliases, A/B a new model, deprecations, cross-provider migration, rollback. |
| Evaluation | rules/evals.md | Golden sets, LLM-as-judge, regression CI, error analysis. |
| Testing (engineering) | rules/testing.md | Unit/integration tests, mocks, VCR cassettes, snapshot tests, CI cost discipline. |
| Safety & guardrails | rules/safety-and-guardrails.md | Prompt injection, jailbreaks, output validation, PII, scope control. |
| Observability & versioning | rules/observability-and-versioning.md | Tracing, prompts-as-code, A/B releases, rollback. |
evals.md covers product-quality measurement (golden sets, LLM-as-judge).
testing.md covers engineering-correctness tests (mocks, VCR, snapshots).
Load both when the user asks "how do I test this?" without specifying.
Observability composition.
When the area is Observability & versioning and the task involves OTEL
wiring or attribute naming, invoke the dash0 OTEL skills via Skill()
before answering — they hold the source of truth for spans and
gen_ai.* semconv:
Skill("otel-instrumentation", ...) — SDK setup, exporters, span shape.Skill("otel-semantic-conventions", ...) — attribute naming and
spec validation.If neither skill is in the available-skills list, fall back to the
inline guidance in rules/observability-and-versioning.md and the OTEL
spec.
If the user does not name an area, ask one batched clarifying question listing the thirteen options before loading rules.
guide (default)references/primary-sources.md when a claim
is non-obvious or model-version-specific.references/recent-changes.md and
call out the date in the answer.review$ARGUMENTS.path:line.Do not edit the file in review mode unless the user asks for fixes.
designtemplates/system-prompt-skeleton.md.templates/tool-description.md.templates/eval-rubric.md.templates/golden-set.md.Load on demand — do not preload.
| Area | Files |
|---|---|
| Prompt writing | rules/prompt-writing.md |
| System prompts | rules/system-prompt-design.md |
| Token cost | rules/token-optimization.md |
| Multimodal | rules/multimodal.md |
| RAG | rules/rag.md |
| Agents | rules/agents-and-tools.md |
| Resilience | rules/resilience.md |
| Memory & state | rules/memory-and-state.md |
| Model migration | rules/model-migration.md |
| Evals | rules/evals.md |
| Testing | rules/testing.md |
| Safety | rules/safety-and-guardrails.md |
| Observability | rules/observability-and-versioning.md |
| Source URLs | references/primary-sources.md |
| Date-flagged changes | references/recent-changes.md |
| System prompt template | templates/system-prompt-skeleton.md |
| Tool description template | templates/tool-description.md |
| Eval rubric template | templates/eval-rubric.md |
| Golden-set template | templates/golden-set.md |
tools → system → stable context → volatile context → user input.rules/prompt-writing.md.rules/model-migration.md.Retry-After, jitter retries, fall back across models,
key destructive tool calls for idempotency.
See rules/resilience.md.tools, tool_choice, or thinking mid-conversation — silent cache flush.Retry-After — wastes quota and triggers thundering herds.claude-sonnet-4-7) in production — auto-upgrade silently.user_id and you have a privacy bug.path:line and the rule it violates.design mode, the produced artefact uses the matching template.review mode, findings are prioritised; no edits without consent.lens.md (opens in a new tab)references/primary-sources.md (opens in a new tab)references/recent-changes.md (opens in a new tab)rules/agents-and-tools.md (opens in a new tab)rules/evals.md (opens in a new tab)rules/memory-and-state.md (opens in a new tab)rules/model-migration.md (opens in a new tab)rules/multimodal.md (opens in a new tab)rules/observability-and-versioning.md (opens in a new tab)rules/prompt-writing.md (opens in a new tab)rules/rag.md (opens in a new tab)rules/resilience.md (opens in a new tab)rules/safety-and-guardrails.md (opens in a new tab)rules/system-prompt-design.md (opens in a new tab)rules/testing.md (opens in a new tab)rules/token-optimization.md (opens in a new tab)templates/eval-rubric.md (opens in a new tab)templates/golden-set.md (opens in a new tab)templates/system-prompt-skeleton.md (opens in a new tab)templates/tool-description.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
OpenAI, Anthropic, Langchain, LlamaIndex, Ollama, PyTorch, Hugging Face, LangGraph
ai-engineering, llm, prompt-engineering, rag, agents, evals, guardrails
Generated from the plugin's indexed repository (mthines/agent-skills) — no native marketplace selected
npx claudepluginhub p/mthines-mthines-agent-skills54 skills in this plugin
/animationsAuthors performant CSS-first web animations and picks the right feedback for an interaction — transitions, View Transitions, scroll-driven motion, Motion for React, reduced motion, and perceived performance. Triggers on "animate this", "hover effect", "feel faster", "skeleton loader", "/animations".
/animations-nativeAuthors performant React Native / Expo animations and gestures with Reanimated and react-native-gesture-handler on the UI thread; web animations go to `animations`. Triggers on "reanimated", "react native animation", "gesture handler", "swipe gesture", "/animations-native".
/atelierTakes one change from request to merged PR by sequencing existing skills — aw builds the draft PR, prepare gets it green, a deterministic gate allows the squash-merge only when a user-visible diff that needs a rollout ships behind a deployment-verify flag contract, or a small one carries a classed no-flag marker (and, in a repo with a hosted service, every diff carries a contract or an opt-out) — then reads the default-branch pipeline, fixes a red one once, verifies a no-flag change on the deploy with deployment-verify, and says what a human does next. Resumable from a sticky PR comment; invoke with /atelier.
/attach-mediaUploads local screenshots and recordings to GitHub and embeds them in a PR or issue body or comment as inline-rendering user-attachments URLs, via `gh --attach` with a curl fallback; never writes placeholders. Triggers on "attach screenshots to the PR", "upload this recording to the PR", "/attach-media".
/autonomous-workflowThe phase machinery (0–7) behind the `aw` dispatcher: task intake through a tested draft PR in an isolated worktree, gated by the plan.md brief and the run-checks.mjs sentinel, with companions that never block. Not the entry point — natural-language requests for autonomous work go to the `aw` skill; invoke /autonomous-workflow only to run the phases directly.
/awShips coding work to a tested draft PR from one opt-in entry point: detects the tier, runs Micro/Lite here, and on Full writes a short brief with sealed checks, works to them here, and converges once with a local review loop before the PR; prints a paste-ready /goal. Use when asked to "implement autonomously", "independently", "in isolation", "in a worktree", "end-to-end", "all the way to a PR", "ship this", "land this", "take care of this", "handle this without me", or /aw.
Other plugins' skills for the same job