No slash command · from bitfab
Modify phase of the Bitfab Setup flow. Invoked by the setup flow; not run directly
Ships in bitfab. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Mode: you were dispatched with a mode (wizard or instrument or modify); which steps apply and where they route below depend on it.
Run only when mode is wizard, instrument or modify.
Adjust an existing trace setup. Requires existing SDK usage in the codebase, if none exists, run Instrument first. Triggered explicitly by /bitfab:setup modify, or selected from the AskUserQuestion at Instrument's existing-SDK-usage menu when existing SDK usage is found.
Every Modify cycle targets exactly one trace function. Never batch multiple trace functions in one cycle, if the user wants more, loop via the step 5 menu.
Skip the search when you already hold the keys: arriving from Instrument's existing-SDK-usage menu means you ran exactly this search one step ago, and re-running it makes the user watch the same greps twice for the same answer. Otherwise gather existing trace functions by searching for SDK patterns (getFunction("key"), get_function("key"), bitfab_function "key", WithFunctionName("key"), plus keyed framework handlers: getLangGraphCallbackHandler("key") / get_langgraph_callback_handler("key") (or the LangChain-named aliases) and getDeepAgentsIntegration("key") / get_deep_agents_integration("key") and getOpenAiAgentHandler("key") / get_openai_agent_handler("key") and getClaudeAgentHandler("key") / get_claude_agent_handler("key") and getVercelAiMiddleware("key") and getPiIntegration("key") and getLiveKitIntegration("key") / get_livekit_integration("key"); plus trace-processor registrations (unkeyed in code, the key is derived server-side from the workflow name): getOpenAiTracingProcessor() / get_openai_tracing_processor()). List each key alongside its root function (or, for keys registered only via a framework handler, the handler registration site, handler keys have no decorated root and that is expected). If none are found, tell the user Modify needs existing instrumentation and suggest /bitfab:setup instrument.
/bitfab:setup modify <key>, or named at Instrument's existing-SDK-usage menu): skip the which-function question, the user already answered it → step 3setup-cleanup skillNext:
wizard or instrument or modify): invoke the setup-cleanup skill with the current mode (wizard or instrument or modify), forwarding $ARGUMENTS minus the leading mode keyword (if the user typed one).Pick exactly ONE trace function to modify. (You only reach this step when the key is not already settled; a key named at Instrument's existing-SDK-usage menu or passed as /bitfab:setup modify <key> routes past it.) Use AskUserQuestion with the list of existing keys. Recommend the one the user most recently instrumented (or the one most recently referenced in the current session) and explain why in one line.
Read the chosen function, its root registration, wrappers, framework handler or processor, keyed client, and replay registry module directly from the current source. Inventory the captured calls and replay mocks that actually exist. The code is the source of truth. Reuse the existing function key and preserve unrelated user edits. Apply the requested change after checking the affected call signatures and replay dependencies.
Apply the user-requested instrumentation changes to the current source. Follow the SDK reference and the existing framework integration. Preserve behavior, arguments, return values, error handling, and streaming semantics. Keep the same trace function key unless the user requested a rename, and update the replay registry module in the same change so it calls the production traced root with reconstructed dependencies. If the change adds a TypeScript withTrace/trace root, or the function already has one, check that a @bitfab/sdk/transform adapter is wired into the build or start command, and wire the matching one when it is missing (@bitfab/sdk/transform/next around the existing next.config, the plugin for the project's bundler, or --import @bitfab/sdk/transform/register on the real start command), preserving existing config wrappers; without it nothing beneath the root is recorded or mocked on replay. If the request requires a behavior-changing refactor, follow the refactor-confirmation appendix before making that refactor. Validate the affected code and report exactly what changed.
Tell the user how to run the app to generate a trace with the modified setup, exact command(s). Do NOT run it yourself. Then MANDATORY STOP: use AskUserQuestion:
We recommend A: generate a trace with the modified setup so the diff is observable end-to-end.
A) Generate a trace for the modified setup: present the script to run; allow the user to let you run it (recommended) → the
setup-cleanupskill B) Modify another trace function: pick another traced function to adjust → step 2 C) Done: stop here → thesetup-cleanupskill
B returns to step 2. A and C exit the Modify loop to cleanup (Modify does not auto-continue to Replay, the user can invoke /bitfab:setup replay separately).
Re-entry rule: If the user requests another instrumentation change, read that workflow from current source and apply the requested change through this skill.
Next:
wizard or instrument or modify): invoke the setup-cleanup skill with the current mode (wizard or instrument or modify), forwarding $ARGUMENTS minus the leading mode keyword (if the user typed one).wizard or instrument or modify): invoke the setup-cleanup skill with the current mode (wizard or instrument or modify), forwarding $ARGUMENTS minus the leading mode keyword (if the user typed one).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub project-white-rabbit/bitfab-claude-plugin --plugin bitfab19 skills in this plugin
/assistantBitfab Assistant (retired)Retired. Only use when the user explicitly types the bitfab assistant command by name; it tells them the assistant has been retired. Never use it for requests about traces, datasets, labels, verdicts, replays, experiments, or improving a traced function: handle those directly with the Bitfab MCP tools/setupBitfab SetupSet up and maintain Bitfab tracing, replay registries, and cloud replay. Use for instrumenting AI/LLM code, adding observability or evaluation, tracing another workflow, changing captured inputs/outputs, re-instrumenting a function, moving side effects across trace boundaries, inspecting missing traces, explaining Bitfab, login, organization switching, session-log consent, database snapshots, templates, or read-only repo instrumentation recommendations (analyze-repo). Also use for 'setup cloud', 'set up cloud replay', or 'replay on GitHub'. Re-enter this skill for each additional function to instrument, even after earlier setup. Do not use for improving output quality, pass rates, verdicts (labeling), or experiments (the agent does those directly with the Bitfab MCP tools), or upgrading SDK/plugin versions (use bitfab:update)