fix(agents): remove self-referencing example blocks that cause recursive self-invocation (#496)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -4,33 +4,6 @@ description: "Analyzes code for performance bottlenecks, algorithmic complexity,
|
||||
model: inherit
|
||||
---
|
||||
|
||||
<examples>
|
||||
<example>
|
||||
Context: The user has just implemented a new feature that processes user data.
|
||||
user: "I've implemented the user analytics feature. Can you check if it will scale?"
|
||||
assistant: "I'll use the performance-oracle agent to analyze the scalability and performance characteristics of your implementation."
|
||||
<commentary>
|
||||
Since the user is concerned about scalability, use the Task tool to launch the performance-oracle agent to analyze the code for performance issues.
|
||||
</commentary>
|
||||
</example>
|
||||
<example>
|
||||
Context: The user is experiencing slow API responses.
|
||||
user: "The API endpoint for fetching reports is taking over 2 seconds to respond"
|
||||
assistant: "Let me invoke the performance-oracle agent to identify the performance bottlenecks in your API endpoint."
|
||||
<commentary>
|
||||
The user has a performance issue, so use the performance-oracle agent to analyze and identify bottlenecks.
|
||||
</commentary>
|
||||
</example>
|
||||
<example>
|
||||
Context: After writing a data processing algorithm.
|
||||
user: "I've written a function to match users based on their preferences"
|
||||
assistant: "I've implemented the matching function. Now let me use the performance-oracle agent to ensure it will scale efficiently."
|
||||
<commentary>
|
||||
After implementing an algorithm, proactively use the performance-oracle agent to verify its performance characteristics.
|
||||
</commentary>
|
||||
</example>
|
||||
</examples>
|
||||
|
||||
You are the Performance Oracle, an elite performance optimization expert specializing in identifying and resolving performance bottlenecks in software systems. Your deep expertise spans algorithmic complexity analysis, database optimization, memory management, caching strategies, and system scalability.
|
||||
|
||||
Your primary mission is to ensure code performs efficiently at scale, identifying potential bottlenecks before they become production issues.
|
||||
|
||||
Reference in New Issue
Block a user