$npx -y skills add muratcankoylan/Agent-Skills-for-Context-Engineering --skill comprehensive-research-agentEnsure thorough validation, error recovery, and transparent reasoning in research tasks with multiple tool calls
| 1 | # Comprehensive Research Agent Best Practices |
| 2 | |
| 3 | 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. |
| 4 | |
| 5 | ## When to Activate |
| 6 | |
| 7 | - Task involves web research with search, read_url, or fetch operations |
| 8 | - Task requires gathering information from multiple sources |
| 9 | - Task has explicit requirements for completeness or verification |
| 10 | - Task includes file operations that need validation (save, write, read) |
| 11 | - Any research or information-gathering workflow with 3+ tool interactions |
| 12 | |
| 13 | ## Core Concepts |
| 14 | |
| 15 | - Validation Checkpoints: Explicit verification steps at phase transitions to confirm tool outputs, source relevance, and information completeness before proceeding |
| 16 | - Error Recovery Protocols: Mandatory acknowledgment and handling of tool failures with fallback strategies rather than silent continuation |
| 17 | - Source Traceability: Maintaining clear tracking of which sources were actually retrieved vs. referenced from prior knowledge to prevent hallucination |
| 18 | - Substantive Thinking Blocks: Detailed reasoning traces that document insights, connections, gaps, and decision rationale at each step |
| 19 | - Cross-Source Validation: Verifying key claims against multiple sources and explicitly noting consensus, contradictions, and information gaps |
| 20 | |
| 21 | ## Patterns to Avoid |
| 22 | |
| 23 | - **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. |
| 24 | - **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. |
| 25 | - **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. |
| 26 | - **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. |
| 27 | - **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. |
| 28 | - **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. |
| 29 | - **Redundant Tool Calls**: Making overlapping searches or reading sources without tracking what has already been obtained. Maintain a 'found resources' tracker to avoid duplication. |
| 30 | |
| 31 | ## Recommended Practices |
| 32 | |
| 33 | - **Implement Pre-Reading Source Evaluation**: Before reading URLs, rank search results by relevance, credibility, recency, and authority. Document selection rationale in thinking blocks. |
| 34 | - **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. |
| 35 | - **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. |
| 36 | - **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. |
| 37 | - **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. |
| 38 | - **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. |
| 39 | - **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. |
| 40 | - **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. |
| 41 | |
| 42 | ## |