API Researcher Skill
Overview
Comprehensive API research and documentation skill for the API Researcher Agent. This skill provides structured workflows for investigating external APIs, libraries, and services, producing standardized documentation that includes overviews, authentication guides, endpoint references, and integration instructions.
Prerequisites
- •Web access for documentation lookup
- •Write access to documentation output directories
- •Familiarity with REST APIs, GraphQL APIs, Python libraries, npm packages, or cloud service APIs
Instructions
- •Receive research assignment from orchestrator with library name and scope
- •Gather information from official documentation sources
- •Create all five standard document types using templates
- •Report completion with minimal report format
Checklist
Copy this checklist and track your progress:
- • Receive research assignment with library name and scope
- • Acknowledge assignment in format:
[RESEARCH STARTED] <library> API - <scope> - • Consult official documentation sources (in order: official docs, GitHub repo, API explorer)
- • Verify information: auth method, endpoints, rate limits, error codes
- • Create API Overview Document
- • Create Authentication Guide
- • Create Endpoints Reference
- • Create Integration Guide
- • Create Configuration Template
- • Report completion:
[DONE] <library> API research complete
Output
| Output Type | Description |
|---|---|
| API Overview Document | High-level API description with key features and capabilities |
| Authentication Guide | Auth setup, security requirements, and credential management |
| Endpoints Reference | Comprehensive endpoint documentation with parameters and examples |
| Integration Guide | Step-by-step integration instructions with code samples |
| Configuration Template | Configuration options and environment setup |
Table of Contents
Research Procedures
For the step-by-step research workflow, see research-procedure.md:
- •
- •Step 1: Understand Requirements
- •1.1 Input from Orchestrator
- •1.2 Acknowledgment Format
- •1.3 Verification Checklist
- •
- •Step 2: Gather Information
- •2.1 Sources to Consult (in order)
- •2.2 Information Verification Checklist
- •
- •Step 3: Document Findings
- •3.1 Document Types to Create
- •3.2 Verification Checklist
- •
- •Step 4: Report to Orchestrator
- •4.1 Minimal Report Format
- •4.2 Verification Checklist
Output Templates
For all documentation templates, see output-templates.md:
- •
- •API Overview Document Template
- •
- •Authentication Guide Template
- •
- •Endpoints Reference Template
- •
- •Integration Guide Template
- •
- •Configuration Template
Tools Reference
For available tools and usage, see tools-reference.md:
- •
- •Read Tool - for local files
- •
- •WebFetch Tool - for online documentation
- •
- •WebSearch Tool - for finding resources
- •
- •Write Tool - for documentation output
- •
- •Glob/Grep Tools - for finding existing code
Research Scenarios
For common research patterns, see research-scenarios.md:
- •
- •Scenario 1: Research REST API
- •
- •Scenario 2: Research Python Library
- •
- •Scenario 3: Research Cloud Service API
- •
- •Scenario 4: Research GraphQL API
Collaboration Patterns
For interaction with other agents, see collaboration-patterns.md:
- •
- •Integration with Orchestrator
- •1.1 Receiving Tasks
- •1.2 Reporting Progress
- •1.3 Delivering Results
- •
- •Handling Blockers
- •2.1 Documentation Not Found
- •2.2 API Deprecated
- •2.3 Multiple Versions
- •
- •Handoff Protocol
- •3.1 Handoff Report Format
- •3.2 Return to Orchestrator
- •
- •Collaboration with Other Agents
- •4.1 With Code-Writer Agent
- •4.2 With Documentation-Writer Agent
- •4.3 With Requirements-Analyst Agent
- •
- •Best Practices
Quick Reference
Research Output Files
| File | Template | Purpose |
|---|---|---|
<library>-api-overview.md | output-templates.md | High-level API description |
<library>-authentication.md | output-templates.md | Auth setup and security |
<library>-endpoints.md | output-templates.md | Endpoint reference |
<library>-integration.md | output-templates.md | Integration guide |
<library>-config-template.md | output-templates.md | Configuration options |
Research Workflow
| Step | Action | Verification |
|---|---|---|
| 1 | Understand Requirements | Library name, scope, context clear |
| 2 | Gather Information | Official docs, auth, endpoints, rate limits found |
| 3 | Document Findings | All 5 document types created |
| 4 | Report to Orchestrator | Minimal report with file list sent |
Communication Formats
| Situation | Format |
|---|---|
| Start | [RESEARCH STARTED] <library> API - <scope> |
| Progress | [PROGRESS] <library> API - Phase: <phase> |
| Blocked | [BLOCKED] <library> API - Issue: <issue> |
| Complete | [DONE] <library> API research complete |
Examples
Example 1: Research a REST API
code
Orchestrator: Research the Stripe API for payment processing Agent: [RESEARCH STARTED] Stripe API - payment processing scope 1. Consult official docs at https://stripe.com/docs/api 2. Document authentication (API keys, webhooks) 3. List key endpoints (charges, customers, subscriptions) 4. Create integration guide with code samples Output files: - stripe-api-overview.md - stripe-authentication.md - stripe-endpoints.md - stripe-integration.md - stripe-config-template.md [DONE] Stripe API research complete
Example 2: Research a Python Library
code
Orchestrator: Research the requests library for HTTP calls Agent: [RESEARCH STARTED] requests library - HTTP client scope 1. Read PyPI page and official docs 2. Document installation and basic usage 3. List key methods (get, post, put, delete) 4. Create integration examples [DONE] requests library research complete
Error Handling
| Error | Cause | Solution |
|---|---|---|
| Documentation not found | API has no public docs | Report blocker to orchestrator, suggest alternatives |
| API deprecated | Service is sunset | Document deprecation, find replacement API |
| Multiple versions | API has breaking changes | Document both versions, recommend latest |
| Rate limit hit | Too many doc requests | Wait and retry, use cached versions |
| Authentication unclear | Docs incomplete | Experiment with API, document findings |
Resources
- •research-procedure.md - Step-by-step research workflow
- •output-templates.md - All documentation templates
- •tools-reference.md - Available tools and usage
- •research-scenarios.md - Common research patterns
- •collaboration-patterns.md - Agent interaction patterns