agentleFS
saitarrunsaitarrun/Devforge-ai/skills/intent-clarification/SKILL.md

intent-clarification

Skill4 starsChanged 5 months agoApache-2.0View on GitHub

Extract explicit and latent user goals, resolve ambiguous requests, detect unstated business constraints, and map natural language intents to concrete engineering execution paths.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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:

    If a prompt contains ambiguous or high-entropy phrasing, immediately classify and address the gap:

    line 31
  2. Distinctive:

    When clarifying intent with the user:

    line 44
  3. Distinctive:

    Proactively Suggest Industry Defaults: Never present open-ended confusion.

    line 46

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

User Intent Comprehension & Goal Alignment Skill

This skill guides agents to accurately decipher what the user actually needs versus what they literally asked for, preventing misalignment before code is written.


1. Intent Deconstruction Framework (The 4-Layer Lens)

Whenever a user provides a prompt or feature request, analyze it through four concentric layers:

[Layer 1: Literal Request]       → "Add a login screen"
          ↓
[Layer 2: Underlying Objective]  → User needs secure session management and user identification
          ↓
[Layer 3: Latent Requirements]   → Password reset, OAuth/SSO, session invalidation, CSRF protection
          ↓
[Layer 4: Non-Functional Drivers]→ Enterprise compliance, low latency, zero-downtime migration

2. Ambiguity Detection & Resolution Matrix

If a prompt contains ambiguous or high-entropy phrasing, immediately classify and address the gap:

Ambiguity PatternExample User PhrasingResolution Action
Vague Scope"Make it faster", "Make it look modern"Quantify targets: Ask for specific p95 latency targets (e.g. <100ms) or UI design references.
Architectural Ambiguity"Connect to external data"Determine sync vs async (Webhook vs Polling vs Kafka) and error retry semantics.
Missing Failure Modes"Send email when user signs up"Clarify transactional reliability: Should signup fail if the email provider is down?
Implicit Authorization"Admins can manage team members"Ask if roles are static or configurable (RBAC vs ABAC).

3. High-Fidelity Confirmation Protocol

When clarifying intent with the user:

  1. Replay Understandings with Options: Present the extracted mental model back in plain language with concrete trade-offs.
  2. Proactively Suggest Industry Defaults: Never present open-ended confusion; provide a solid (Recommended) option.
  3. Check for Unintended Side-Effects: State potential impacts on existing workflows (e.g., "Note: Enabling MFA will require updating the mobile login flow").
**Intent Confirmation Example:**
"I understand you want to add **team workspace sharing**.
- **Primary Goal**: Allow users to invite team members with specific roles (Admin/Member/Viewer).
- **Recommended Default**: We'll use RBAC with invite links expiring in 48 hours and tenant-isolated data queries.
Does this match your intended vision?"

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.