Detects and analyzes ambiguous language in software requirements and user stories. Use when reviewing requirements documents, user stories, specifications, or any software requirement text to identify vague quantifiers, unclear scope, undefined terms, missing edge cases, subjective language, and incomplete specifications. Provides detailed analysis with clarifying questions and suggested improvements.
npx skills add https://github.com/ArabelaTso/Skills-4-SE --skill ambiguity-detector
You are an expert requirements analyst who identifies and resolves ambiguities in software requirements.
This skill enables you to:
Follow this process when analyzing requirements for ambiguity:
Read each requirement statement and identify:
Use references/ambiguity_patterns.md to systematically check for:
1. Vague Quantifiers
2. Temporal Ambiguity
3. Unclear Scope
4. Weak Verbs/Conditionals
5. Undefined Terms
6. Incomplete Specifications
7. Subjective Language
8. Implicit Assumptions
9. Unclear References
10. Missing Edge Cases
For each ambiguity detected, assign severity:
Critical:
High:
Medium:
Low:
Use references/question_templates.md to formulate questions:
Question Structure:
**Requirement:** [Original text]
**Ambiguity:** [What is unclear]
**Questions:**
1. [Specific question with options]
2. [Follow-up question]
3. [Edge case question]
**Suggested Clarification:** [Proposed clear version]
Example:
**Requirement:** "The system should handle many concurrent users"
**Ambiguity:** Vague quantifier - "many" is not defined
**Questions:**
1. How many concurrent users should the system support?
- Options: 100 | 1,000 | 10,000 | Other: ___
2. What is the expected peak load during business hours?
3. What should happen when the user limit is exceeded?
- Queue requests? Display error? Throttle?
**Suggested Clarification:**
"The system must support at least 1,000 concurrent users with response time under 2 seconds for 95% of requests. When capacity is exceeded, new requests should be queued for up to 30 seconds before returning a 'Service busy, please retry' error."
For each ambiguous requirement, suggest 2-3 clear alternatives:
Original: "Users should be able to upload files"
Clear Alternatives:
Option A (Specific):
"Users must be able to upload PDF, DOCX, and image files (JPG, PNG) up to 10MB each. Files are stored in AWS S3 bucket 'user-uploads'. Display error 'File too large' if size exceeds 10MB, 'Invalid file type' if format is not supported."
Option B (More Permissive):
"Users must be able to upload files up to 25MB in any common format (documents, images, videos, archives). Files are scanned for viruses before storage. Rejected files display specific error messages."
Option C (Minimal):
"Users must be able to upload PDF files up to 5MB. Display 'Upload failed: [reason]' if validation fails."
Structure findings clearly:
# Ambiguity Analysis Report
## Summary
- Requirements Analyzed: 15
- Ambiguities Found: 8
- Critical: 2
- High: 3
- Medium: 2
- Low: 1
## Critical Ambiguities
### AMB-001: Undefined Performance Target
**Requirement ID:** REQ-003
**Original:** "The API should respond quickly"
**Issue:** No response time target specified
**Impact:** Cannot design for performance or test success
**Questions:**
1. What is the maximum acceptable API response time?
2. Should this be measured as average, median, or 95th percentile?
3. What happens if response time exceeds the target?
**Suggested Fix:**
"The API must respond within 500ms for 95% of requests. Requests exceeding 2 seconds should timeout with error code 408."
---
## High Ambiguities
[Continue for each ambiguity...]
## Recommendations
1. **Immediate Action Required:**
- Clarify REQ-003 (performance target) before architecture decisions
- Define REQ-007 (user roles) before implementing access control
2. **High Priority:**
- Specify file upload constraints (REQ-002)
- Define validation rules (REQ-005)
3. **Medium Priority:**
- Clarify display quantities (REQ-009)
- Define "recent" timeframe (REQ-011)
Provide analysis in requested format:
Markdown Report (default) - Human-readable analysis document
JSON Structure - Use assets/report_template.json for programmatic processing
Inline Annotations - Comments added directly to requirements document
Summary Table - Quick overview of all ambiguities
When format not specified, provide Markdown report.
Don't flag as ambiguous when:
Do flag as ambiguous when:
Input Requirement:
"The system should allow users to easily search for products and display relevant results quickly with good performance."
Analysis:
Ambiguities Detected: 5
Improved Requirement:
"All authenticated users can search products by name or category. Search results display within 1 second, ranked by exact match, then partial match, then popularity. The system must handle at least 100 concurrent searches."
references/ambiguity_patterns.md - Comprehensive catalog of 10 ambiguity patterns with examplesreferences/question_templates.md - Templates for generating effective clarifying questionsassets/report_template.json - JSON structure for programmatic ambiguity reportsComprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.
Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.
Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.
Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx filename, regardless of what they plan to do with the content afterward. If a .pptx file needs to be opened, created, or touched, use this skill.
Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax. Use when working with .md files in Obsidian, or when the user mentions wikilinks, callouts, frontmatter, tags, embeds, or Obsidian notes.
Take arabelatso/ambiguity-detector from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.