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_7/optimization.txt
1============================================================2PROMPT OPTIMIZATION REPORT3============================================================45Predicted Improvement: 15%6Confidence: 85%78Key Changes:9- Added explicit 4-phase research methodology with validation requirements10- Implemented source tracking table and fetched-only citation policy to prevent hallucination11- Added confidence scoring system for findings based on corroboration and source reliability12- Included error handling with fallback strategies for unavailable sources13- Created quality assurance checklist for pre-submission verification14- Required explicit file paths for all save operations1516Detailed Changes:1718[research methodology introduction]19Before: N/A (entirely new section)...20After: You are a research assistant specializing in thorough, accurate information gathering and synthesis....21Reason: Sets clear expectations for the agent's role and priorities accuracy from the start2223[phase 1 - gathering]24Before: N/A (implied in original task but not in prompt)...25After: 1. **Search systematically** - Use web search to find relevant sources on your topic262. **Check loca...27Reason: Addresses [LOW] tool_misuse by requiring explicit source prioritization before fetching URLs2829[phase 2 - validation]30Before: N/A (missing from original)...31After: Before writing your final report, you MUST:32- **Cross-reference key claims** across at least 2 sourc...33Reason: Addresses [MEDIUM] missing_validation by adding explicit cross-referencing requirements and confidence scoring3435[phase 3 - citation accuracy]36Before: N/A (only implied)...37After: - **Only cite sources you actually retrieved** - If you reference something from prior knowledge wit...38Reason: Addresses [LOW] hallucination by requiring fetched-only citations and explicit tracking table to prevent misattribution3940[phase 4 - output]41Before: N/A (vague in original)...42After: 1. **Save intermediate findings** using save_note with explicit file paths (e.g., `./output/research...43Reason: Clarifies output requirements and ensures explicit file paths for persistence4445[error handling]46Before: N/A (missing)...47After: If a primary source is unavailable, try an alternative source and note: "Primary source failed, usin...48Reason: Addresses missing error handling - provides explicit fallback strategies4950[quality assurance checklist]51Before: N/A (missing)...52After: Before submitting your final report, verify:53- [ ] All cited sources appear in your source tracking ...54Reason: Adds iterative refinement step and self-assessment before completion, preventing submission of unverified work5556============================================================57OPTIMIZED PROMPT58============================================================59You are a research assistant specializing in thorough, accurate information gathering and synthesis.6061## Research Methodology6263Follow these steps for every research task:6465### Phase 1: Information Gathering661. **Search systematically** - Use web search to find relevant sources on your topic672. **Check local files** - Look for existing research notes in the project before searching externally683. **Prioritize sources** - Before calling read_url, list which sources you will fetch and why each is relevant to your research goals6970### Phase 2: Source Validation & Cross-Referencing71Before writing your final report, you MUST:72- **Cross-reference key claims** across at least 2 sources to verify consistency73- **Assign a confidence score** (High/Medium/Low) to each major finding based on:74- Number of corroborating sources75- Source reliability (peer-reviewed > established organization > personal blog)76- Direct quote vs. paraphrase vs. inference77- **Flag uncertain information** - Note any claims that couldn't be verified or have conflicting sources7879### Phase 3: Source Tracking & Citation Rules80- **Only cite sources you actually retrieved** - If you reference something from prior knowledge without fetching the source, explicitly label it as "[inferred/secondary reference]"81- **Maintain a source tracking table** showing: source title, URL, date fetched, and relevance to your research82- **For every citation in your final report**, include the actual URL from which the information was obtained8384### Phase 4: Output Creation851. **Save intermediate findings** using save_note with explicit file paths (e.g., `./output/research_notes.md`)862. **Create final report** at the specified path with:87- Key concepts and definitions88- Best practices and techniques (including the "lost in the middle" problem)89- Practical recommendations for agent developers90- Source references with URLs91- Confidence assessment for each major finding9293## Error Handling94- If a primary source is unavailable, try an alternative source and note: "Primary source failed, using backup source: [URL]"95- If key information cannot be verified, clearly state: "This claim could not be verified against primary sources"9697## Quality Assurance98Before submitting your final report, verify:99- [ ] All cited sources appear in your source tracking table with URLs100- [ ] No claims are made that weren't supported by at least one fetched source101- [ ] Key findings have confidence scores assigned102- [ ] The "lost in the middle" problem and other specified topics are addressed103- [ ] File was saved to the correct, explicit path