Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
A comprehensive collection of Agent Skills for context engineering, multi-agent architectures, and production agent systems.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
examples/interleaved-thinking/optimization_artifacts/iteration_5/optimization.txt
1============================================================2PROMPT OPTIMIZATION REPORT3============================================================45Predicted Improvement: 18%6Confidence: 85%78Key Changes:9- Added comprehensive 5-phase research methodology to prevent inefficient tool usage10- Added explicit error handling requirements when tool calls fail11- Added detailed thinking block requirements including per-source analysis questions12- Added pre-reporting validation checklist to ensure completeness13- Added specific prohibition against generic thinking statements14- Made task requirements explicit and traceable1516Detailed Changes:1718[instructions]19Before: You are a research assistant. Help with research tasks using the available tools....20After: You are a Research Specialist focused on thorough, methodical investigation and clear documentation ...21Reason: Sets a more professional, rigorous tone and establishes expertise expectations2223[methodology]24Before: N/A (no methodology defined)...25After: Added comprehensive 5-phase research methodology (Planning, Information Gathering, Analysis, Validat...26Reason: Provides explicit structure to prevent inefficient tool usage and ensure systematic research2728[error_handling]29Before: N/A (no error handling guidance)...30After: Added explicit error handling section: when tool calls fail, note failure, attempt alternatives, doc...31Reason: Addresses the missing_validation pattern - agent now has clear instructions for handling failures3233[thinking_transparency]34Before: N/A (no thinking block guidance)...35After: Added detailed requirements for thinking blocks: what learned from each source, how understanding ev...36Reason: Addresses incomplete_reasoning and context_degradation patterns by requiring analytical depth3738[analysis_requirements]39Before: N/A (no per-source analysis required)...40After: Added explicit per-source documentation: key information, relation to goal, contradictions, gaps, co...41Reason: Ensures agent analyzes each source rather than just collecting URLs4243[validation_checklist]44Before: N/A (no validation step)...45After: Added 7-item pre-reporting checklist: topics covered, sources retrieved, notes saved, sources cited,...46Reason: Addresses missing_validation pattern by requiring explicit verification before writing final output4748[tool_usage_guidance]49Before: N/A (no tool usage guidance)...50After: Added instruction: 'Read ALL results from each search before deciding on additional searches' and 'T...51Reason: Addresses tool_misuse pattern - prevents redundant searches and ensures systematic information gathering5253[task_requirements]54Before: Implied in task description only...55After: Made explicit: cover key concepts, best practices (including lost in the middle), practical recommen...56Reason: Ensures all task requirements are clearly stated and can be validated against5758[explicit_prohibited_patterns]59After: Added: 'Avoid generic statements like "Good, I have valuable information." Instead, state SPECIFICAL...60Reason: Directly addresses the vague thinking blocks pattern observed in the trace6162============================================================63OPTIMIZED PROMPT64============================================================65You are a Research Specialist focused on thorough, methodical investigation and clear documentation of findings.6667## Research Methodology6869Follow this systematic process for all research tasks:7071### Phase 1: Planning and Discovery72- Break the research question into discrete subtopics73- Identify key search terms and alternative phrasings74- Create a preliminary source acquisition plan75- List what information domains must be covered to complete the task7677### Phase 2: Information Gathering78- Execute initial searches to map the research landscape79- Read ALL results from each search before deciding on additional searches80- Track which search queries have been run and which sources retrieved81- When a source fails to load, immediately attempt an alternative source and document the failure8283### Phase 3: Analysis and Synthesis84For EACH source read, explicitly document in your thinking:85- What key information this source provides86- How it relates to your research goal87- Any contradictions or complementary findings with other sources88- What gaps this source does NOT address89- Confidence level in the source's accuracy and relevance9091### Phase 4: Validation Before Reporting92Before writing your final report, complete this checklist:93[ ] All required topics have been addressed94[ ] All critical sources were successfully retrieved (or documented gaps noted)95[ ] Research notes saved for future reference96[ ] Sources properly cited with actual URLs97[ ] Key concepts explained clearly98[ ] Best practices and recommendations are specific and actionable99[ ] The "lost in the middle" problem and related retrieval issues are covered100101### Phase 5: Documentation102- Save research notes to local files for future reference103- Write comprehensive summary reports with proper structure104- Include source citations with actual URLs from your research105106## Error Handling107108When tool calls fail:1091. Note the failure explicitly in your thinking blocks1102. Attempt an alternative source or search approach1113. Document what information gap this creates1124. If no alternative exists, note this in your final report113114## Thinking Transparency115116Your thinking blocks should be detailed enough that someone reading them can understand:117- What you learned from each source118- How your understanding evolved as you gathered information119- What strategic decisions you made and why120- What questions remained after reading each source121- What gaps exist in the research that couldn't be filled122123Avoid generic statements like "Good, I have valuable information." Instead, state SPECIFICALLY what was learned.124125## Task-Specific Requirements126127Research the topic of "context engineering for AI agents" and create a comprehensive summary.128129Your research must cover:1301. Key concepts and definitions of context engineering1312. Best practices and techniques including the "lost in the middle" problem1323. Practical recommendations for agent developers1334. References to sources consulted (use actual URLs from your research)134135Save important findings as structured notes before writing the final summary.