trace-claude-code
Automatically trace Claude Code conversations to Braintrust for observability. Captures sessions, conversation turns, and tool calls as hierarchical traces.
External research workflow for docs, web, APIs - NOT codebase exploration
$ npx -y skills add parcadei/Continuous-Claude-v3 --skill research-external --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/research-externalContext preview
The summary Claude sees to decide when to auto-load this skill.
External research workflow for docs, web, APIs - NOT codebase exploration
name: research-external description: External research workflow for docs, web, APIs - NOT codebase exploration model: sonnet allowed-tools: [Bash, Read, Write, Task]
Research external sources (documentation, web, APIs) for libraries, best practices, and general topics.
> **Note:** The current year is 2025. When researching best practices, use 2024-2025 as your reference timeframe.
/research-external <focus> [options]
If the user types just `/research-external` with no or partial arguments, guide them through this question flow. Use AskUserQuestion for each phase.
question: "What kind of information do you need?"
header: "Type"
options:
- label: "How to use a library/package"
description: "API docs, examples, patterns"
- label: "Best practices for a task"
description: "Recommended approaches, comparisons"
- label: "General topic research"
description: "Comprehensive multi-source search"
- label: "Compare options/alternatives"
description: "Which tool/library/approach is best"**Mapping:**
question: "What specifically do you want to research?" header: "Topic" options: [] # Free text input
Examples of good answers:
If user selected library focus:
question: "Which package registry?"
header: "Registry"
options:
- label: "npm (JavaScript/TypeScript)"
description: "Node.js packages"
- label: "PyPI (Python)"
description: "Python packages"
- label: "crates.io (Rust)"
description: "Rust crates"
- label: "Go modules"
description: "Go packages"Then ask for specific library name if not already provided.
question: "How thorough should the research be?"
header: "Depth"
options:
- label: "Quick answer"
description: "Just the essentials"
- label: "Thorough research"
description: "Multiple sources, examples, edge cases"**Mapping:**
question: "What should I produce?"
header: "Output"
options:
- label: "Summary in chat"
description: "Tell me what you found"
- label: "Research document"
description: "Write to thoughts/shared/research/"
- label: "Handoff for implementation"
description: "Prepare context for coding"**Mapping:**
Based on your answers, I'll research: **Focus:** library **Topic:** "Prisma ORM connection pooling" **Library:** prisma (npm) **Depth:** thorough **Output:** doc Proceed? [Yes / Adjust settings]
| Focus | Primary Tool | Purpose | |-------|--------------|---------| | `library` | nia-docs | API docs, usage patterns, code examples | | `best-practices` | perplexity-search | Recommended approaches, patterns, comparisons | | `general` | All MCP tools | Comprehensive multi-source research |
| Option | Values | Description | |--------|--------|-------------| | `--topic` | `"string"` | **Required.** The topic/library/concept to research | | `--depth` | `shallow`, `thorough` | Search depth (default: shallow) | | `--output` | `handoff`, `doc` | Output format (default: doc) | | `--library` | `"name"` | For `library` focus: specific package name | | `--registry` | `npm`, `py_pi`, `crates`, `go_modules` | For `library` focus: package registry |
Extract from user input:
FOCUS=$1 # library | best-practices | general TOPIC="..." # from --topic DEPTH="shallow" # from --depth (default: shallow) OUTPUT="doc" # from --output (default: doc) LIBRARY="..." # from --library (optional) REGISTRY="npm" # from --registry (default: npm)
Primary tool: **nia-docs** - Find API documentation, usage patterns, code examples.
# Semantic search in package (cd $CLAUDE_OPC_DIR && uv run python -m runtime.harness scripts/mcp/nia_docs.py \ --package "$LIBRARY" \ --registry "$REGISTRY" \ --query "$TOPIC" \ --limit 10) # If thorough depth, also grep for specific patterns (cd $CLAUDE_OPC_DIR && uv run python -m runtime.harness scripts/mcp/nia_docs.py \ --package "$LIBRARY" \ --grep "$TOPIC") # Supplement with official docs if URL known (cd $CLAUDE_OPC_DIR && uv run python -m runtime.harness scripts/mcp/firecrawl_scrape.py \ --url "https://docs.example.com/api/$TOPIC" \ --format markdown)
**Thorough depth additions:**
Primary tool: **perplexity-search** - Find recommended approaches, patterns, anti-patterns.
# AI-synthesized research (sonar-pro) (cd $CLAUDE_OPC_DIR && uv run python scripts/mcp/perplexity_search.py \ --research "$TOPIC best practices 2024 2025") # If comparing alternatives (cd $CLAUDE_OPC_DIR && uv run python scripts/mcp/perplexity_search.py \ --reason "$TOPIC vs alternatives - which to choose?")
**Thorough depth additions:**
# Chain-of-thought for complex decisions (cd $CLAUDE_OPC_DIR && uv run python scripts/mcp/perplexity_search.py \ --reason "$TOPIC tradeoffs and considerations 2025") # Deep comprehensive research (cd $CLAUDE_OPC_DIR && uv run python scripts/mcp/perplexity_search.py \ --deep "$TOPIC comprehensive guide 2025") # Recent devel
A persistent, learning, multi-agent development environment built on Claude Code Continuous Claude transforms Claude Code into a continuously learning system that maintains context across sessions, orchestrates specialized agents, and eliminates wasting
Repo: parcadei/Continuous-Claude-v3
Automatically trace Claude Code conversations to Braintrust for observability. Captures sessions, conversation turns, and tool calls as hierarchical traces.
Guide for integrating Agentica SDK with Claude Code CLI proxy
Reference guide for Agentica multi-agent infrastructure APIs