协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
writing-agent-behavior【开发与工程】Authors and revises Agent Behavior BEHAVIOR.md specs that capture recurring, judgeable agent conduct. Use when creating, reviewing, splitting, grouping, or calibrating behavior specs, or when translating trace failures and runtime guidance into durable behaviors. Do not use it merely to score a completed trajectory or write a runtime prompt.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Write the smallest durable behavior spec that lets people and evaluators distinguish acceptable from unacceptable conduct across real trajectories.
The bundled Agent Behavior specification is the complete format contract for this skill. The skill does not require the Agent Behavior source repository, a network connection, or any documentation outside this directory.
BEHAVIOR.md files before creating a new one.If the repository has manifests, registries, or generated indexes, inspect those before moving or renaming a spec. Folder placement is not necessarily activation.
Use deciding-what-to-save.md. Prefer a sparse set of high-impact, recurring choices over an inventory of every instruction.
A useful candidate usually has all three:
Do not elevate generic virtues, tool syntax, one-off procedures, implementation details, or a disguised scoring rubric. A named runtime mechanism can be a behavior when using that mechanism is itself a durable, recurring control point and the trajectory can prove whether it happened; make that reason explicit in the spec.
A behavior spec is a directory and its BEHAVIOR.md; the file may describe one behavior or several related behaviors.
Before drafting, answer these questions in working notes:
These are authoring questions, not required Markdown sections. Compress them into natural prose when that reads better.
Create .agents/behaviors/<name>/BEHAVIOR.md with the required frontmatter:
---
name: <name>
description: <what this spec covers and when it applies>
---
The name must match the parent directory and satisfy the constraints in the specification. Keep description useful for discovery; do not put the whole behavior there.
Write the body for a teammate who has the trajectory but not the author's background context:
Example:
## Primary-source tax research
When answering a substantive tax question, the agent may use secondary sources to orient its research, but it consults relevant primary authority before deciding on the answer. The answer distinguishes primary authority from explanatory material and makes uncertainty visible when the available authority does not resolve the question. A correct conclusion reached without consulting relevant primary authority does not satisfy this behavior.
Use calibrating-with-trajectories.md for a new or materially changed behavior. A small, deliberate fixture set is usually more useful than a large synthetic corpus.
At minimum, test the wording against:
If reviewers cannot locate the trigger or evidence in a trajectory, revise the behavior's altitude or improve observability. Do not solve an observability problem by inventing hidden facts in the judge.
Behavior specs are normally answer-key context for review and evaluation, not instructions automatically shown to the evaluated agent. In an observational eval, keep the target agent blind to the behavior spec. If the experiment intentionally conditions the agent on the behavior, label that as a separate intervention.
If the repository provides the Agent Behavior CLI, run its validator against the changed spec, for example:
agentbehavior validate .agents/behaviors/<name>
If the command is unavailable, do not install it without authorization. Validate the path, frontmatter, and body manually against the bundled Agent Behavior specification, and report that CLI validation was not run.
Then:
A behavior is ready when a cold reader can answer:
If those answers require oral context, keep editing.