en un clic
trace-claude-code
上下文管理:Hooks+Ledgers+Handoffs 机制,3.7K Stars
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
上下文管理:Hooks+Ledgers+Handoffs 机制,3.7K Stars
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Basé sur la classification professionnelle SOC
Implements Figma designs to exact 1:1 fidelity by decomposing them into sub-components and building bottom-up with self-correcting validation loops. This skill should be used when implementing UI from Figma files, when a Figma URL is provided, or when the user mentions "implement design", "figma to code", "build from figma", "convert figma", "break down this design", "implement page", "implement component", "generate code", "build Figma design", or "pixel perfect". Works for both full pages and single components. Requires Figma MCP server connection. Do not use for non-Figma design tasks or when the user only wants a screenshot or metadata without implementation.
MCP bundle package
MCP bundle package
AI 研究全流程 Skill:实验设计/数据处理/模型训练/论文写作,1.6K Stars
精选 Claude Code 技能/Hook/命令清单:22K Stars,一站式资源导航
查找 Skill/Agent/命令的一站式枢纽:2.3K Stars,生态导航
| id | skill-continuous-claude |
| name | Continuous Claude v3 |
| version | 1.0.0 |
| description | 上下文管理:Hooks+Ledgers+Handoffs 机制,3.7K Stars |
| category | prompt |
| tags | ["continuous","hooks","ledgers","handoffs","context"] |
| author | parcadei |
| repositoryUrl | https://github.com/parcadei/Continuous-Claude-v3 |
| parameters | {"transport":"bundle","configTemplate":"{\"name\": \"Continuous Claude v3\", \"transport\": \"bundle\", \"type\": \"mcp\"}"} |
Automatically send Claude Code conversations to Braintrust for tracing and observability. Get full visibility into your AI coding sessions with hierarchical traces showing sessions, turns, and every tool call.
Claude Code Session (root trace)
├── Turn 1: "Add error handling"
│ ├── Read: src/app.ts
│ ├── Edit: src/app.ts
│ └── Response: "I've added try-catch..."
├── Turn 2: "Now run the tests"
│ ├── Terminal: npm test
│ └── Response: "All tests pass..."
└── Turn 3: "Great, commit this"
├── Terminal: git add .
├── Terminal: git commit -m "..."
└── Response: "Changes committed..."
Four hooks capture the complete workflow:
| Hook | What it captures |
|---|---|
| SessionStart | Creates root trace when you start Claude Code |
| PostToolUse | Captures every tool call (file reads, edits, terminal commands) |
| Stop | Captures conversation turns (your message + Claude's response) |
| SessionEnd | Logs session summary when you exit |
Run the setup script in any project directory where you want tracing:
bash /path/to/skills/trace-claude-code/setup.sh
The script prompts for your API key and project name, then configures all hooks automatically.
jq command-line tool (brew install jq on macOS)Create .claude/settings.local.json in your project directory:
{
"hooks": {
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "bash /path/to/hooks/session_start.sh"
}
]
}
],
"PostToolUse": [
{
"matcher": "*",
"hooks": [
{
"type": "command",
"command": "bash /path/to/hooks/post_tool_use.sh"
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "bash /path/to/hooks/stop_hook.sh"
}
]
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "bash /path/to/hooks/session_end.sh"
}
]
}
]
},
"env": {
"TRACE_TO_BRAINTRUST": "true",
"BRAINTRUST_API_KEY": "sk-...",
"BRAINTRUST_CC_PROJECT": "my-project"
}
}
Replace /path/to/hooks/ with the actual path to this skill's hooks directory.
| Variable | Required | Description |
|---|---|---|
TRACE_TO_BRAINTRUST | Yes | Set to "true" to enable tracing |
BRAINTRUST_API_KEY | Yes | Your Braintrust API key |
BRAINTRUST_CC_PROJECT | No | Project name (default: claude-code) |
BRAINTRUST_CC_DEBUG | No | Set to "true" for verbose logging |
After running Claude Code with tracing enabled:
claude-code)Each trace shows:
Traces are hierarchical:
Session (root span)
span_attributes.type: "task"metadata.session_id: Unique session identifiermetadata.workspace: Project directoryTurn (child of session)
span_attributes.type: "llm"input: User messageoutput: Assistant responsemetadata.turn_number: Sequential turn numberTool call (child of turn or session)
span_attributes.type: "tool"input: Tool input (file path, command, etc.)output: Tool resultmetadata.tool_name: Name of the tool usedCheck hooks are running:
tail -f ~/.claude/state/braintrust_hook.log
Verify environment variables in .claude/settings.local.json:
TRACE_TO_BRAINTRUST must be "true"BRAINTRUST_API_KEY must be validEnable debug mode:
{
"env": {
"BRAINTRUST_CC_DEBUG": "true"
}
}
Make hook scripts executable:
chmod +x /path/to/hooks/*.sh
Install jq:
brew install jqsudo apt-get install jqReset the tracing state:
rm ~/.claude/state/braintrust_state.json
View detailed hook execution logs:
# Follow logs in real-time
tail -f ~/.claude/state/braintrust_hook.log
# View last 50 lines
tail -50 ~/.claude/state/braintrust_hook.log
# Clear logs
> ~/.claude/state/braintrust_hook.log
hooks/
├── common.sh # Shared utilities (logging, API, state)
├── session_start.sh # Creates root trace span
├── post_tool_use.sh # Captures tool calls
├── stop_hook.sh # Captures conversation turns
└── session_end.sh # Finalizes trace
For programmatic use with the Claude Agent SDK, use the native Braintrust integration:
import { initLogger, wrapClaudeAgentSDK } from "braintrust";
import * as claudeSDK from "@anthropic-ai/claude-agent-sdk";
initLogger({
projectName: "my-project",
apiKey: process.env.BRAINTRUST_API_KEY,
});
const { query, tool } = wrapClaudeAgentSDK(claudeSDK);
See Braintrust Claude Agent SDK docs for details.