一键导入
dub-flow-evals
Use when changing AI-generated branch, commit, or PR metadata for DubStack flow, or when adding new local Evalite coverage for those outputs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when changing AI-generated branch, commit, or PR metadata for DubStack flow, or when adding new local Evalite coverage for those outputs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when managing stacked branch workflows with DubStack, including create/modify, navigation, sync/restack, submit, PR opening, and recovery.
Use when managing stacked branch workflows with DubStack, including create/modify, navigation, sync/restack, submit, PR opening, and recovery.
Use when the user wants fully autonomous delivery in this repo from a clear task through implementation, verification, review, and PR follow-through.
Use when turning staged changes into a DubStack branch, commit, and submitted PR stack with clear naming and user confirmation.
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".
| name | dub-flow-evals |
| description | Use when changing AI-generated branch, commit, or PR metadata for DubStack flow, or when adding new local Evalite coverage for those outputs. |
Use this skill when dub flow metadata quality could change and you need to validate it with the local Evalite harness.
packages/cli/src/lib/ai-metadata.tsdub flow behavior changes that affect generated branch names, commit messages, or PR descriptionspnpm evals
pnpm evals:watch
pnpm evals:export
The first suite lives at packages/cli/evals/dub-flow-metadata.eval.ts.
Target the pure helper, not the mutating command:
generateFlowMetadata(...)This keeps the eval deterministic enough to debug while still exercising the exact AI path shipped by dub flow.
Each case should include:
parentBranchstagedDiffcommitTemplateprTemplatePrefer curated diffs over giant real snapshots. Keep enough signal for the model to infer intent, but not so much noise that failures become hard to interpret.
Add cases for:
Use a hybrid scorer set:
Do not score exact wording. That makes the suite brittle and rewards prompt overfitting instead of better metadata.
Do not enable traceAISDKModel in this repo's Evalite suite unless you verify compatibility first.
The current stack uses ai@6, and the traced-model path caused Evalite SQLite trace persistence failures during setup. Plain AI SDK calls work for the suite today, so start there and only reintroduce tracing after confirming it stores cleanly.
packages/cli/evals/dub-flow-metadata.eval.ts.pnpm evals.pnpm evals:watch while iterating.pnpm evals:export when you want a shareable artifact.flow.ts end-to-end instead of the pure helper