agentleFS
0-uddeshya-00-uddeshya-0/agent-skills/skills/clarify-intent/skill.md

clarify-intent

Skill3 starsChanged 6 months agoMITView on GitHub

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask one targeted question when intent is genuinely ambiguous.

    line 4
  2. Distinctive:

    If asked twice in same session: set needs_clarification false, make best inference, set confidence: "low" — caller should run …

    line 54

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
skill.md

skill: clarify-intent

purpose

Ask one targeted question when intent is genuinely ambiguous. Nothing when it's already clear. Stops agents from acting on wrong assumptions and from interrogating users with lists of questions.

when_to_use

  • User message is short and could mean multiple different things
  • Correct next action depends on an unstated detail
  • You're about to take an irreversible action (send, delete, publish, charge)

when_not_to_use

  • Intent is specific enough to act on without guessing
  • You've already asked a clarifying question this session — infer instead
  • Task is mechanical: translate this, format that, summarize this
  • The question you'd ask is already answered elsewhere in context

input

user_input: string    # What the user said
context: string       # Conversation history or session state

output

{
  "needs_clarification": true | false,
  "clarifying_question": "string | null",
  "clarified_task": "string | null",
  "confidence": "high" | "low"
}

instructions

Read the user input. Is the intent specific enough to act on, or could two different users saying this want two completely different things?

If you need to clarify:
- Ask exactly ONE question
- If there are 2–4 distinct options: use a choice question: "Are you looking to X, Y, or Z?"
- If the option space is large or unknown: ask a targeting question: "Which part of X?" or "Which file/issue/item?"
- Ask only what you need for the immediate next step

If intent is clear:
- State the task as a concrete action sentence starting with a verb
- Do not repeat what the user said — state what you will do

Return JSON only. clarifying_question and clarified_task are mutually exclusive.

constraints

  • Max output tokens: 120
  • Maximum one clarifying question — never a list
  • If asked twice in same session: set needs_clarification false, make best inference, set confidence: "low" — caller should run /assumption-check before acting

example

Input:

user_input: "Can you help with my account?"
context: "User authenticated. Account has billing, profile, API key sections."

Output:

{
  "needs_clarification": true,
  "clarifying_question": "Are you looking to update billing, change your profile, or manage API keys?",
  "clarified_task": null,
  "confidence": "high"
}

Input:

user_input: "Delete the draft I was working on"
context: "User has one draft: id=draft_442, title='Q3 Report', last edited 3 min ago."

Output:

{
  "needs_clarification": false,
  "clarifying_question": null,
  "clarified_task": "Delete draft draft_442 ('Q3 Report').",
  "confidence": "high"
}

feedback_log

<!-- date | situation | what went wrong | better behavior -->

2026-05-29 | user said "fix the bug" in a repo with 47 open issues | skill tried to offer choice question with all options — unusable | added: choice questions only for 2–4 options; large option spaces use targeting question instead

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.