Skip to content
Frontend
Command

/reflect

You are an expert in prompt engineering, specializing in optimizing AI code assistant instructions. Your task is to analyze and improve the instructions for Claude Code found in u/CLAUDE.md. Follow these steps carefully:

BOOST
From plugin
webf
2.5k2 skills2 commands
Install
$ npx -y skills add openwebf/webf --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/reflect

Context preview

What this command does when you run it.

You are an expert in prompt engineering, specializing in optimizing AI code assistant instructions. Your task is to analyze and improve the instructions for Claude Code found in u/CLAUDE.md. Follow these steps carefully:

Command definition

reflect.md

You are an expert in prompt engineering, specializing in optimizing AI code assistant instructions. Your task is to analyze and improve the instructions for Claude Code found in u/CLAUDE.md. Follow these steps carefully:

1. Analysis Phase: Review the chat history in your context window.

Then, examine the current Claude instructions: <claude_instructions> u/CLAUDE.md </claude_instructions>

Analyze the chat history and instructions to identify areas that could be improved. Look for:

  • Inconsistencies in Claude's responses
  • Misunderstandings of user requests
  • Areas where Claude could provide more detailed or accurate information
  • Opportunities to enhance Claude's ability to handle specific types of queries or tasks

2. Interaction Phase: Present your findings and improvement ideas to the human. For each suggestion: a) Explain the current issue you've identified b) Propose a specific change or addition to the instructions c) Describe how this change would improve Claude's performance

Wait for feedback from the human on each suggestion before proceeding. If the human approves a change, move it to the implementation phase. If not, refine your suggestion or move on to the next idea.

3. Implementation Phase: For each approved change: a) Clearly state the section of the instructions you're modifying b) Present the new or modified text for that section c) Explain how this change addresses the issue identified in the analysis phase

4. Output Format: Present your final output in the following structure:

<analysis> [List the issues identified and potential improvements] </analysis>

<improvements> [For each approved improvement: 1. Section being modified 2. New or modified instruction text 3. Explanation of how this addresses the identified issue] </improvements>

<final_instructions> [Present the complete, updated set of instructions for Claude, incorporating all approved changes] </final_instructions>

Remember, your goal is to enhance Claude's performance and consistency while maintaining the core functionality and purpose of the AI assistant. Be thorough in your analysis, clear in your explanations, and precise in your implementations.

Read more
Ships withwebf

Bring JavaScript and Web Dev to Flutter

Get the whole plugin
Stats
2,514
Stars
163
Forks
Maintained
Maintenance
C++
Language
GPL-3.0
License
3mo ago
Last commit
4y ago
Created
11h ago
Added

Repo: openwebf/webf

Other commands on webf.