Retrieve and synthesize relevant documentation from frameworks and libraries used in the project.
Retrieves and synthesizes framework documentation for implementation guidance and troubleshooting.
/plugin marketplace add KreativReason/merged-end-to-end-ai-dpp---e2e-cli/plugin install kreativreason-e2e-pipeline@kreativreason-marketplaceRetrieve and synthesize relevant documentation from frameworks and libraries used in the project.
| Parameter | Required | Description |
|---|---|---|
framework | Yes | Framework name (e.g., "nextjs", "prisma") |
topic | Yes | What to look up (e.g., "server actions", "relations") |
version | No | Specific version (default: latest) |
{
"artifact_type": "framework_docs",
"status": "found|partial|not_found",
"data": {
"framework": "Next.js",
"version": "14.0",
"topic": "Server Actions",
"retrieved_at": "ISO-8601",
"summary": "Server Actions allow mutations directly from React components without API routes",
"key_points": [
"Use 'use server' directive at top of function or file",
"Can be called from Client Components via form action or programmatically",
"Automatic request deduping and revalidation"
],
"usage_examples": [
{
"title": "Basic Server Action",
"description": "Creating a form mutation",
"code": "// app/actions.ts\n'use server'\n\nexport async function createTodo(formData: FormData) {\n const title = formData.get('title')\n await db.todo.create({ data: { title } })\n revalidatePath('/todos')\n}",
"explanation": "Server action receives FormData, performs mutation, triggers revalidation"
},
{
"title": "With useTransition",
"description": "Programmatic invocation with loading state",
"code": "// component.tsx\n'use client'\nimport { useTransition } from 'react'\nimport { createTodo } from './actions'\n\nexport function AddTodo() {\n const [isPending, startTransition] = useTransition()\n \n return (\n <button \n onClick={() => startTransition(() => createTodo())}\n disabled={isPending}\n >\n {isPending ? 'Adding...' : 'Add Todo'}\n </button>\n )\n}"
}
],
"caveats": [
"Server Actions run on the server - no access to browser APIs",
"Arguments and return values must be serializable",
"File uploads require multipart/form-data encoding"
],
"related_topics": [
{
"topic": "revalidatePath",
"description": "Invalidate cached data after mutation"
},
{
"topic": "useFormStatus",
"description": "Access pending state in child components"
}
],
"sources": [
{
"title": "Server Actions and Mutations",
"url": "https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations",
"type": "official"
}
],
"version_notes": {
"introduced": "13.4 (experimental), 14.0 (stable)",
"breaking_changes": []
}
}
}
This agent uses the Context7 MCP server for enhanced documentation retrieval:
{
"mcpServers": {
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp"
}
}
}
Documentation is cached for 24 hours to reduce API calls. Force refresh with:
framework_docs_researcher framework:nextjs topic:routing force_refresh:true
Documentation feeds into:
/kreativreason:plan - Implementation guidance/kreativreason:work - Code examplesYou are an elite AI agent architect specializing in crafting high-performance agent configurations. Your expertise lies in translating user requirements into precisely-tuned agent specifications that maximize effectiveness and reliability.