Comprehensive Research Agent

Comprehensive Research Agent

Gives a research agent protocols for validating sources, recovering from tool errors and showing its reasoning across multi-step web research.

Skill files4 files

references/

SKILL.md91 lines
1
---
2
name: comprehensive-research-agent
3
description: "Ensure thorough validation, error recovery, and transparent reasoning in research tasks with multiple tool calls"
4
---
5
6
# Comprehensive Research Agent Best Practices
7
8
This skill addresses common failures in multi-step research tasks: unhandled tool errors, missing validation, opaque reasoning, and premature conclusions. It provides structured protocols for source validation, error recovery, and thinking transparency that significantly improves research quality and reliability.
9
10
## When to Activate
11
12
- Task involves web research with search, read_url, or fetch operations
13
- Task requires gathering information from multiple sources
14
- Task has explicit requirements for completeness or verification
15
- Task includes file operations that need validation (save, write, read)
16
- Any research or information-gathering workflow with 3+ tool interactions
17
18
## Core Concepts
19
20
- Validation Checkpoints: Explicit verification steps at phase transitions to confirm tool outputs, source relevance, and information completeness before proceeding
21
- Error Recovery Protocols: Mandatory acknowledgment and handling of tool failures with fallback strategies rather than silent continuation
22
- Source Traceability: Maintaining clear tracking of which sources were actually retrieved vs. referenced from prior knowledge to prevent hallucination
23
- Substantive Thinking Blocks: Detailed reasoning traces that document insights, connections, gaps, and decision rationale at each step
24
- Cross-Source Validation: Verifying key claims against multiple sources and explicitly noting consensus, contradictions, and information gaps
25
26
## Patterns to Avoid
27
28
- **Silent Tool Failure**: A tool call returns an error (404, timeout, invalid URL) but the agent proceeds without acknowledging it, potentially missing critical information. Always log failures and attempt recovery or document the gap.
29
- **Vague Completion Claims**: Agent declares 'I have enough information' or 'research is comprehensive' without specifying what was learned, what sources support claims, or what gaps remain. Replace with specific summaries of coverage.
30
- **Unvalidated Source Selection**: Agent reads URLs from search results without evaluating relevance, credibility, or recency first. This wastes tool calls on low-quality sources. Always rank and prioritize sources before deep reading.
31
- **Generic Thinking Blocks**: Thinking contains only next-action descriptions ('Now I will search for X') without analysis of what was learned, how it connects to the goal, or what questions remain. Thinking should be substantive and reflective.
32
- **Verification Method Error**: Using list_directory to verify file creation can produce false negatives due to caching. Always use read_file for actual content verification.
33
- **Citation Without Retrieval**: Citing sources (URLs, paper titles) in the final report that were never successfully fetched or read. Track sources explicitly and prohibit citing unretrieved content.
34
- **Redundant Tool Calls**: Making overlapping searches or reading sources without tracking what has already been obtained. Maintain a 'found resources' tracker to avoid duplication.
35
36
## Recommended Practices
37
38
- **Implement Pre-Reading Source Evaluation**: Before reading URLs, rank search results by relevance, credibility, recency, and authority. Document selection rationale in thinking blocks.
39
- **Use Structured Thinking Blocks**: Each thinking block must include: (a) what was learned from the source/action, (b) how it connects to the research goal, (c) any contradictions/gaps identified, (d) strategic decisions made. Avoid generic next-action statements.
40
- **Add Mandatory Error Acknowledgment**: When any tool fails, the next thinking block must explicitly address it: note the failure type, propose a recovery strategy (retry, alternative source, or documented gap), and explain the chosen approach.
41
- **Create Pre-Completion Validation Checklist**: Before declaring research complete, verify: all required sections have specific evidence, all sources were successfully retrieved, key claims are cross-validated, and gaps are documented.
42
- **Implement Cross-Source Validation**: After gathering information from multiple sources, explicitly compare findings. Note where sources agree, where they contradict, and what remains unverified. Use this to assess overall confidence.
43
- **Maintain Source Tracking Table**: Create a simple table in thinking showing which URLs were fetched, which failed, and which were used for specific claims. Never cite unretrieved sources.
44
- **Use Read_File for Verification**: When confirming file writes, use read_file to verify actual content rather than list_directory, which can have caching issues causing false negatives.
45
- **Add Explicit Validation Phase**: After reading sources, write a brief synthesis that confirms usefulness, notes relevance to research goals, and identifies remaining gaps before proceeding to the next phase.
46
47
## Guidelines
48
49
1. After each tool call, explicitly check for errors in the response and acknowledge failures in the next thinking block with recovery strategy
50
2. Before reading URLs, rank sources by relevance/credibility and document selection rationale - never read results without evaluation
51
3. Thinking blocks must be 3-5+ sentences minimum and include: what was learned, connections to goal, gaps/contradictions, and next steps
52
4. Create a pre-completion checklist verifying: all requirements covered, sources retrieved, claims validated, gaps documented
53
5. Maintain source tracking - only cite URLs that were successfully fetched; prohibit citing unretrieved sources
54
6. When writing final reports, include 'Limitations & Gaps' section documenting what was attempted but failed or what remains unverified
55
7. Use read_file (not list_directory) to verify file content after save operations
56
8. Cross-validate key claims across at least 2 sources when possible; explicitly note consensus or contradictions
57
9. Track gathered information to avoid redundant searches - implement 'found resources' tracker for multi-phase research
58
10. Replace vague 'comprehensive' statements with specific summaries: 'Covered X sources on Y topic; missing Z aspects'
59
60
## Examples
61
62
- ***Before (Anti-Pattern)**: 'I searched for context engineering and found several results. Now I'll read some URLs and then write the report. I have enough information to proceed.'
63
64
**After (Pattern)**: 'Search returned 15 results on context engineering. Evaluating relevance: Liu et al. (2024) appears most authoritative on 'lost in the middle' phenomenon; Anthropic documentation likely has current context window specs; Patel (2023) covers RAG best practices. Ranking these as top 3 priorities. Reading top result first. If the primary source fails (URL error), will try backup search for correct documentation URL and note the gap in final report.'
65
- ***Before (Anti-Pattern)**: Tool returns 404 error for Anthropic context windows URL. Agent continues without acknowledgment. Later cites 'Claude has 200K context window' without showing source. Final report cites Google Research paper that was never fetched.
66
67
**After (Pattern)**: Tool returned 404 for Anthropic URL. Thinking: 'Primary source failed. Fallback: search for alternative Anthropic documentation URL or find archived version. If unavailable, note context window data from secondary sources only and add disclaimer about verification status.' Then: 'Cross-validated Claude context window: Anthropic blog (successfully read) and two developer documentation sources agree on 200K. Confident in this claim.' Source tracking table shows: Anthropic URL (failed, backup used), Blog (success), Dev docs (success).
68
69
---
70
71
## Score Expectations
72
73
Complex research tasks with multiple tools (6+) and multi-step reasoning chains typically achieve scores in the **65-75 range**. This is not a limitation of the prompt but reflects:
74
75
- Inherent variability in tool outputs affecting reasoning paths
76
- Multiple valid approaches leading to different intermediate scores
77
- Stochastic nature of long-horizon agent execution
78
79
**Focus on relative improvement and pattern elimination** rather than absolute scores. A 5-10% improvement from optimization is significant for complex tasks.
80
81
---
82
83
## Skill Metadata
84
85
**Generated**: 2026-01-11
86
**Source**: Reasoning Trace Optimizer
87
**Optimization Iterations**: 10
88
**Best Score Achieved**: 72/100 (iteration 4)
89
**Final Score**: 70.0/100
90
**Score Improvement**: 67.6 → 70.0 (+3.6%)
91

© Context Engineering Agent Skills Contributors · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 13,382 prompts

More by @OpenSourceBuffGuy

See all
Close up beauty portrait with damp hair prompt image

Close up beauty portrait with damp hair

Draws a close-up luxury beauty portrait of a woman with green eyes and damp black hair in golden-hour window light, with an 85mm lens look.

image-prompt, gpt-image, portrait, woman, close-up, beauty, reference-image, face-reference, photorealistic, golden-hour, soft-lighting, natural-light, bokeh, luxury, editorial, hairstyles, headshot, cinematic, for-photographers, long-form, muted-colors

POV gloved hands swap a woman's outfit prompt image

POV gloved hands swap a woman's outfit

Plans a ten-second luxury fashion commercial from a storyboard, where gloved first-person hands swap a woman's outfit with timed beats and strict anti-morphing rules.

video-prompt, reference-image, timed-beats, pov, video-ad, fashion, visual-effects, transformation, multi-shot, camera-movement, photorealistic, studio-lighting, dramatic-lighting, luxury, woman, full-body, negative-prompt, guardrails, structured-output, for-filmmakers, for-marketers, gemini, long-form, product-video

Woman winking with peace sign in orange tee prompt image

Woman winking with peace sign in orange tee

Draws a sunny street-fashion portrait of a woman in an orange tee winking and making a peace sign, with outfit, hair and wall details spelled out.

image-prompt, nano-banana, portrait, woman, reference-image, face-reference, fashion, summer, photorealistic, cinematic, vibrant-colors, natural-light, golden-hour, vertical-format, jewelry, hairstyles, negative-prompt, cityscape, street-photography, editorial, medium-shot, text-rendering, for-photographers, long-form

Reviews

Loading reviews…

Discussion

Loading comments…