prompt-engineer

Optimize Claude Code system prompts using phase-based verification workflows.

Updated Jan 19, 2026
One-click install
npx skills add https://github.com/loriensleafs/brain --skill prompt-engineer-loriensleafs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-engineer
Source: https://github.com/loriensleafs/brain/tree/main/apps/claude-plugin/skills/prompt-engineer
Command: npx skills add https://github.com/loriensleafs/brain --skill prompt-engineer-loriensleafs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a repeatable framework to optimize Claude Code system prompts by applying proven prompt-engineering patterns. It helps reduce prompt-inefficiencies, misalignment between user requests and agent behavior, and the risk of unsafe or unintended executions.

Core Features & Use Cases

  • Pattern-driven prompt optimization: Applies single-turn and multi-turn prompt engineering techniques from the reference materials to structure, verify, and implement prompt changes.
  • Phase-based workflow governance: Guides users through Understand, Plan, Execute, and Verify phases with visual cards and explicit stopping conditions.
  • Quality and safety checks: Enforces anti-pattern checks, verification prompts, and cross-section coherence to improve reliability and reduce hallucinations.
  • Use cases: Ideal for refining prompts for agent workflows, tool instructions, or system behaviors when prompts are not performing as expected, or when prompts require stricter behavior control.

Quick Start

Use this Skill to optimize a Claude Code system prompt by first providing the target prompt text, then following the guidance to produce an optimized version along with rationale.

Frequently Asked Questions about prompt-engineer

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

FAQPage Schema
How do I optimize Claude Code system prompts to stop unwanted agent behavior?

To optimize Claude Code system prompts, apply proven prompt-engineering patterns and anti-pattern checks to reduce misalignment and prevent unsafe executions. This structured workflow refines tool instructions and agent behaviors for stricter control.

What is the best way to apply multi-turn prompt engineering patterns to an existing system prompt?

The best way to apply multi-turn prompt engineering patterns is through a phase-based workflow covering Understand, Plan, Execute, and Verify stages. This process ensures reproducibility, cross-section coherence, and explicit verification against reference materials.

How does anti-pattern checking improve prompt optimization for agent workflows?

Anti-pattern checking improves prompt optimization by identifying and eliminating structural inefficiencies that cause hallucinations or unintended executions. It enforces safety checks and cross-section coherence to ensure solid, reliable agent behavior.

Do I need to provide reference materials for prompt optimization?

Yes, providing reference materials is required for prompt optimization. The workflow relies on reference-grounded techniques to ensure traceability and explicit verification of changes, producing an optimized prompt along with a detailed rationale.

When should I use a phase-based workflow for prompt engineering?

You should use a phase-based workflow for prompt engineering when prompts are not performing as expected or require stricter behavior control. It guides you through structured phases with explicit stopping conditions to ensure safe, reproducible improvements.

Why does my Claude Code prompt keep causing unintended executions despite clear instructions?

Unintended executions happen when prompts contain hidden anti-patterns or lack cross-section coherence. Applying a structured optimization process with explicit verification checks identifies these structural flaws and enforces safer, aligned agent behavior.