prefactor-skill-selector
Prefactor Skill Selector
Use this file as a router for Prefactor skills.
Available Skills
skills/bootstrap-existing-agent-with-prefactor-cli/SKILL.md: bootstrap Prefactor resources for an existing agent using CLI (profile,environment,agent,agent_instance) and prepare runtime env vars/package choice.skills/instrument-existing-agent-with-prefactor-sdk/SKILL.md: instrument an existing agent with Prefactor SDK so coding tools can see runs, llm/tool spans, token usage, and failures.skills/create-provider-package-with-core/SKILL.md: create a new provider package as a thin adapter over@prefactor/corewith core-first boundaries and tracing conventions.skills/report-agent-risk-data/SKILL.md: populatedata_riskfields on span types for compliance tracking and data governance after an agent is already instrumented.
Selection Rules
- If the request is about provisioning Prefactor resources via CLI for an existing app, load
skills/bootstrap-existing-agent-with-prefactor-cli/SKILL.mdfirst. - If the request is about adding telemetry to an existing agent without rewriting business logic, load
skills/instrument-existing-agent-with-prefactor-sdk/SKILL.md. - If the request is about creating a custom provider adapter with
@prefactor/core, loadskills/create-provider-package-with-core/SKILL.md. - If the request is about adding risk or compliance metadata to span types, load
skills/report-agent-risk-data/SKILL.md.
Default Workflow
When instrumenting an existing agent, default to this order:
- Run
skills/bootstrap-existing-agent-with-prefactor-cli/SKILL.mdto set up resources (environment,agent,agent_instance). - Install required Prefactor npm package(s) via the project's package manager.
- Choose the matching adapter package if available (
@prefactor/langchain,@prefactor/ai,@prefactor/openclaw). - For adapter-style instrumentation (
@prefactor/langchainor@prefactor/ai), keepinit,withSpan, andshutdownimports from that same adapter package (or pass an explicit tracer when using corewithSpan). - If no matching adapter package exists, use
skills/create-provider-package-with-core/SKILL.md. - Instrument the existing agent with
skills/instrument-existing-agent-with-prefactor-sdk/SKILL.md. - Optionally populate compliance metadata with
skills/report-agent-risk-data/SKILL.md.
More from prefactordev/typescript-sdk
instrument-existing-agent-with-prefactor-sdk
Use when an existing agent already works without Prefactor and you need to add tracing for runs, llm calls, tool calls, and failures with minimal behavior changes.
39create-provider-package-with-core
Use when building a custom provider integration on top of @prefactor/core so your app can instrument agent, llm, and tool workflows without relying on a prebuilt adapter package.
35bootstrap-existing-agent-with-prefactor-cli
Use when an existing agent needs Prefactor resources created via the Prefactor CLI before SDK instrumentation is added.
32report-agent-risk-data
Use when an agent is already instrumented with Prefactor and you need to populate data_risk fields on its span types to enable compliance tracking and data governance.
5ai-sdk
Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat".
2caveman
>
1