协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
agent-core【开发与工程】Guides agents building, running, streaming, testing, and composing Pydantic AI Agent instances with dependencies, instructions, history, usage limits, specs, and handoffs.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is to create, configure, run, stream, persist, test, or compose pydantic_ai.Agent instances.
Agent(...), run*, iter, retry, usage-limit, dependency, or AgentSpec parameters.TestModel, FunctionModel, Agent.override, capture_run_messages, usage limits, or diagnosing common runtime failures.Agent(model, instructions=..., deps_type=..., output_type=...); prefer instructions over system_prompt unless previous system prompts must be retained in message_history.RunContext[Deps] only as the first parameter for dynamic instructions, system prompts, tools, output validators, and history processors that need runtime context.run() for async full results, run_sync() for synchronous callers, run_stream() for final-output streaming, run_stream_events() for all raw model/tool events, and iter() for graph-node control.message_history=result.new_messages() or result.all_messages() to continue a conversation; route deep message serialization, trimming, and output-tool handoff details to ../outputs-and-messages/SKILL.md.Agent.from_spec(), Agent.from_file(), or the spec= run/override parameter when agent configuration is declarative YAML/JSON/dict.TestModel, FunctionModel, models.ALLOW_MODEL_REQUESTS = False, and Agent.override(...) for tests; never rely on live provider credentials for unit tests.../tools-and-toolsets/SKILL.md.../outputs-and-messages/SKILL.md.../models-and-providers/SKILL.md.../mcp-and-integrations/SKILL.md.Agent.to_cli(), Agent.to_web(), pai, clai, and application entry points, read ../cli-and-apps/SKILL.md.openai:gpt-5.2 only where live provider access is intentional.tool_retries, output_retries) in new code; use retries={'tools': N, 'output': M} at construction and retries={'output': N} per run.history_processors= in new agents; use capabilities=[ProcessHistory(...)] for history processing and route advanced capability design to mcp-and-integrations.run_stream() executes tool calls after an early final-looking text/output; use run_stream_events() or iter() when every tool event matters.