Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/agents/content/guidance/shared/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ When prompting the user for input, use visual markers to make prompts more notic

- **Any yes/no question** (approval, decisions, confirmations): End with `👍🏼👎🏼`.
- **All other questions** (open-ended, clarifications): End with `🤔`
- **Numbered options (2+ choices)**: Follow the recommendation-gradient convention — mark each option ■■■/■■□/■□□/□□□ and list `➕` pros and `➖` cons. Skip the gradient for yes/no questions and next-steps menus. When a response contains 2+ option-style questions, prefix each with `Q1`, `Q2`, etc. Full spec: `_data/recommendation-gradient.md` in the agents skills tree.

Examples:

Expand Down
40 changes: 32 additions & 8 deletions packages/agents/content/skills/_data/recommendation-gradient.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,52 @@ Rank options on correctness — behavior, API quality, architectural soundness,

## Format

Marker, then option title and colon. Each pro (`➕`) and con (`➖`) goes on its own line, indented by 3 spaces. Apply this even when an option has only one pro or con. Lead with the strongest argument. Use semicolons between items and a period on the last.
Marker, then option title and colon. Each pro (`➕`) and con (`➖`) goes on its own line, prefixed with 3 non-breaking-space characters (NBSP, U+00A0) for visual indent — regular ASCII spaces are commonly stripped or normalized in model output, so a visible character is needed to make the indent reliable. Apply this even when an option has only one pro or con. Lead with the strongest argument. Use semicolons between items and a period on the last.

## Question identifiers

When a single response contains 2+ option-style questions, prefix each question with `Q1`, `Q2`, etc., so the user can reference answers unambiguously (e.g., "Q1: option 2"). For a single option-style question, omit the identifier.

## Examples

Single question with markers:

```
Want me to:
1. ■□□ Use a single config file:
➕ minimal surface area;
➖ couples concerns.
   ➕ minimal surface area;
   ➖ couples concerns.
2. ■■■ Split into two configs:
➕ separates lifecycle and runtime concerns;
➕ matches existing repo pattern.
   ➕ separates lifecycle and runtime concerns;
   ➕ matches existing repo pattern.
3. □□□ Use three configs:
➖ over-decomposed for current scope.
   ➖ over-decomposed for current scope.
```

Single question without markers (pure taste call):

```
Want me to:
1. Use camelCase:
➕ matches the host file's local style.
   ➕ matches the host file's local style.
2. Use kebab-case:
➕ matches the package's public API style.
   ➕ matches the package's public API style.
```

Multiple questions in one response (Q1/Q2 identifiers):

```
**Q1 — Naming convention?**
1. Use camelCase:
   ➕ matches the host file's local style.
2. Use kebab-case:
   ➕ matches the package's public API style.

**Q2 — File location?**
1. ■■□ Co-locate with consumer:
   ➕ keeps related code close.
2. ■□□ Place in shared utility module:
   ➕ reusable across packages.
```

## Don'ts
Expand Down
4 changes: 0 additions & 4 deletions packages/agents/content/skills/collaboration/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ When you do ask, prefer forms the user can answer unambiguously:
- **A clean yes/no question** (end with `👍🏼👎🏼`).
- **A numbered options list.** Include a "some other approach (describe)" option if alternatives should stay open.

## Asking with a recommendation gradient

When asking numbered clarifying questions with 2+ options, follow the [recommendation gradient](../_data/recommendation-gradient.md) format.

## Efficient context usage

When you deem appropriate, proactively dispatch subagents to perform tasks. Good examples:
Expand Down
1 change: 0 additions & 1 deletion packages/agents/content/skills/design-and-plan/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ Invoke the `assess-ticket` skill with the resolved ticket source and mode `drift
- Success criteria and edge cases
- Prefer multiple choice when possible
- Only one question per message
- When using numbered options, follow the [recommendation gradient](../_data/recommendation-gradient.md): mark each option with ■■■ / ■■□ / ■□□ / □□□ and list `➕` pros and `➖` cons per the format defined there.

**Important:** Do not use interactive prompt mechanisms (pop-ups, arrow-key selectors, structured choice tools) for multiple-choice questions. Ask the question as plain text in the message body, with options as a numbered list.

Expand Down
Loading