@caddis/cli 0.0.0 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +150 -1
- package/bundles/antigravity-plugin/agents/code-reviewer.md +47 -0
- package/bundles/antigravity-plugin/agents/preflight.md +53 -0
- package/bundles/antigravity-plugin/guard_agy.py +338 -0
- package/bundles/antigravity-plugin/hooks.json +36 -0
- package/bundles/antigravity-plugin/mcp_config.json +8 -0
- package/bundles/antigravity-plugin/mcp_ping_server.py +55 -0
- package/bundles/antigravity-plugin/plugin.json +5 -0
- package/bundles/antigravity-plugin/session_end_agy.py +57 -0
- package/bundles/antigravity-plugin/skills/_registry.md +115 -0
- package/bundles/antigravity-plugin/skills/add-rules/SKILL.md +45 -0
- package/bundles/antigravity-plugin/skills/api-design/SKILL.md +249 -0
- package/bundles/antigravity-plugin/skills/backend-development/SKILL.md +305 -0
- package/bundles/antigravity-plugin/skills/best-practices/SKILL.md +500 -0
- package/bundles/antigravity-plugin/skills/best-practices/agents/best-practices-referencer.md +263 -0
- package/bundles/antigravity-plugin/skills/best-practices/agents/codebase-context-builder.md +326 -0
- package/bundles/antigravity-plugin/skills/best-practices/agents/task-intent-analyzer.md +245 -0
- package/bundles/antigravity-plugin/skills/best-practices/references/anti-patterns.md +571 -0
- package/bundles/antigravity-plugin/skills/best-practices/references/before-after-examples.md +1114 -0
- package/bundles/antigravity-plugin/skills/best-practices/references/best-practices-guide.md +513 -0
- package/bundles/antigravity-plugin/skills/best-practices/references/common-workflows.md +692 -0
- package/bundles/antigravity-plugin/skills/best-practices/references/prompt-patterns.md +547 -0
- package/bundles/antigravity-plugin/skills/brainstorming/SKILL.md +57 -0
- package/bundles/antigravity-plugin/skills/ci-cd-pipeline/SKILL.md +315 -0
- package/bundles/antigravity-plugin/skills/code-documentation/SKILL.md +271 -0
- package/bundles/antigravity-plugin/skills/code-review/SKILL.md +122 -0
- package/bundles/antigravity-plugin/skills/codebase-audit/SKILL.md +204 -0
- package/bundles/antigravity-plugin/skills/context-curator/SKILL.md +157 -0
- package/bundles/antigravity-plugin/skills/cross-review/SKILL.md +40 -0
- package/bundles/antigravity-plugin/skills/css-architecture/SKILL.md +305 -0
- package/bundles/antigravity-plugin/skills/css-architecture/references/RESPONSIVE-DESIGN.md +604 -0
- package/bundles/antigravity-plugin/skills/database-design/SKILL.md +177 -0
- package/bundles/antigravity-plugin/skills/db-diagram/SKILL.md +148 -0
- package/bundles/antigravity-plugin/skills/db-diagram/scripts/sql_to_graph.py +1212 -0
- package/bundles/antigravity-plugin/skills/digress/SKILL.md +61 -0
- package/bundles/antigravity-plugin/skills/draw-io/SKILL.md +162 -0
- package/bundles/antigravity-plugin/skills/draw-io/references/aws-icons.md +677 -0
- package/bundles/antigravity-plugin/skills/draw-io/references/layout-guidelines.md +142 -0
- package/bundles/antigravity-plugin/skills/draw-io/references/troubleshooting.md +118 -0
- package/bundles/antigravity-plugin/skills/draw-io/references/workflows.md +103 -0
- package/bundles/antigravity-plugin/skills/draw-io/scripts/convert-drawio-to-png.sh +25 -0
- package/bundles/antigravity-plugin/skills/draw-io/scripts/find_aws_icon.py +79 -0
- package/bundles/antigravity-plugin/skills/error-handling/SKILL.md +260 -0
- package/bundles/antigravity-plugin/skills/excalidraw-db/SKILL.md +38 -0
- package/bundles/antigravity-plugin/skills/fastapi-dev/SKILL.md +300 -0
- package/bundles/antigravity-plugin/skills/feature-plan/SKILL.md +198 -0
- package/bundles/antigravity-plugin/skills/frontend-design/SKILL.md +193 -0
- package/bundles/antigravity-plugin/skills/frontend-design/references/my-tech-stack.md +127 -0
- package/bundles/antigravity-plugin/skills/gh-cli/SKILL.md +195 -0
- package/bundles/antigravity-plugin/skills/git-commit/SKILL.md +285 -0
- package/bundles/antigravity-plugin/skills/golden-plan/SKILL.md +577 -0
- package/bundles/antigravity-plugin/skills/handoff/SKILL.md +100 -0
- package/bundles/antigravity-plugin/skills/implement/SKILL.md +114 -0
- package/bundles/antigravity-plugin/skills/javascript-typescript/SKILL.md +142 -0
- package/bundles/antigravity-plugin/skills/kb/SKILL.md +60 -0
- package/bundles/antigravity-plugin/skills/mermaid-db/SKILL.md +33 -0
- package/bundles/antigravity-plugin/skills/mermaid-diagrams/SKILL.md +236 -0
- package/bundles/antigravity-plugin/skills/mermaid-diagrams/references/ENHANCEMENTS.md +264 -0
- package/bundles/antigravity-plugin/skills/mermaid-diagrams/references/MERMAID-SUMMARY.md +137 -0
- package/bundles/antigravity-plugin/skills/mermaid-diagrams/references/advanced-features.md +556 -0
- package/bundles/antigravity-plugin/skills/mermaid-diagrams/references/architecture-diagrams.md +192 -0
- package/bundles/antigravity-plugin/skills/mermaid-diagrams/references/c4-diagrams.md +410 -0
- package/bundles/antigravity-plugin/skills/mermaid-diagrams/references/class-diagrams.md +361 -0
- package/bundles/antigravity-plugin/skills/mermaid-diagrams/references/erd-diagrams.md +510 -0
- package/bundles/antigravity-plugin/skills/mermaid-diagrams/references/flowcharts.md +450 -0
- package/bundles/antigravity-plugin/skills/mermaid-diagrams/references/sequence-diagrams.md +394 -0
- package/bundles/antigravity-plugin/skills/mermaid-diagrams/references/troubleshooting.md +335 -0
- package/bundles/antigravity-plugin/skills/mermaid-diagrams/references/workflows.md +418 -0
- package/bundles/antigravity-plugin/skills/migrate-dir/SKILL.md +68 -0
- package/bundles/antigravity-plugin/skills/mockup/SKILL.md +242 -0
- package/bundles/antigravity-plugin/skills/particle-art/SKILL.md +243 -0
- package/bundles/antigravity-plugin/skills/particle-art/references/canvas-utils.ts +171 -0
- package/bundles/antigravity-plugin/skills/particle-art/references/dot-field.template.tsx +203 -0
- package/bundles/antigravity-plugin/skills/particle-art/references/flow-field.template.tsx +263 -0
- package/bundles/antigravity-plugin/skills/particle-art/references/node-shape.template.tsx +261 -0
- package/bundles/antigravity-plugin/skills/particle-art/references/shape-sampler.ts +281 -0
- package/bundles/antigravity-plugin/skills/particle-art/references/stipple-morph.template.tsx +167 -0
- package/bundles/antigravity-plugin/skills/particle-art/references/stipple.template.tsx +175 -0
- package/bundles/antigravity-plugin/skills/particle-art/references/trail-ghost.template.tsx +266 -0
- package/bundles/antigravity-plugin/skills/particle-art/references/usage-examples.md +320 -0
- package/bundles/antigravity-plugin/skills/playwright/API_REFERENCE.md +653 -0
- package/bundles/antigravity-plugin/skills/playwright/SKILL.md +454 -0
- package/bundles/antigravity-plugin/skills/playwright/lib/helpers.js +441 -0
- package/bundles/antigravity-plugin/skills/playwright/package.json +26 -0
- package/bundles/antigravity-plugin/skills/playwright/run.js +228 -0
- package/bundles/antigravity-plugin/skills/prd/SKILL.md +107 -0
- package/bundles/antigravity-plugin/skills/preflight/SKILL.md +435 -0
- package/bundles/antigravity-plugin/skills/python/SKILL.md +388 -0
- package/bundles/antigravity-plugin/skills/react-best-practices/SKILL.md +269 -0
- package/bundles/antigravity-plugin/skills/react-dev/README.md +404 -0
- package/bundles/antigravity-plugin/skills/react-dev/SKILL.md +459 -0
- package/bundles/antigravity-plugin/skills/react-dev/examples/generic-components.md +579 -0
- package/bundles/antigravity-plugin/skills/react-dev/examples/server-components.md +579 -0
- package/bundles/antigravity-plugin/skills/react-dev/references/event-handlers.md +574 -0
- package/bundles/antigravity-plugin/skills/react-dev/references/hooks.md +456 -0
- package/bundles/antigravity-plugin/skills/react-dev/references/react-19-patterns.md +638 -0
- package/bundles/antigravity-plugin/skills/react-dev/references/react-router.md +1002 -0
- package/bundles/antigravity-plugin/skills/react-dev/references/tanstack-router.md +587 -0
- package/bundles/antigravity-plugin/skills/refactoring/SKILL.md +486 -0
- package/bundles/antigravity-plugin/skills/resume/SKILL.md +36 -0
- package/bundles/antigravity-plugin/skills/security-review/SKILL.md +196 -0
- package/bundles/antigravity-plugin/skills/setup-project-ai/SKILL.md +61 -0
- package/bundles/antigravity-plugin/skills/ship/SKILL.md +107 -0
- package/bundles/antigravity-plugin/skills/ship-merge/SKILL.md +103 -0
- package/bundles/antigravity-plugin/skills/ship-pr/SKILL.md +102 -0
- package/bundles/antigravity-plugin/skills/skill-creator/LICENSE.txt +202 -0
- package/bundles/antigravity-plugin/skills/skill-creator/SKILL.md +491 -0
- package/bundles/antigravity-plugin/skills/skill-creator/agents/analyzer.md +274 -0
- package/bundles/antigravity-plugin/skills/skill-creator/agents/comparator.md +202 -0
- package/bundles/antigravity-plugin/skills/skill-creator/agents/grader.md +223 -0
- package/bundles/antigravity-plugin/skills/skill-creator/assets/eval_review.html +146 -0
- package/bundles/antigravity-plugin/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/bundles/antigravity-plugin/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/bundles/antigravity-plugin/skills/skill-creator/references/schemas.md +430 -0
- package/bundles/antigravity-plugin/skills/skill-creator/scripts/__init__.py +0 -0
- package/bundles/antigravity-plugin/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/bundles/antigravity-plugin/skills/skill-creator/scripts/generate_report.py +326 -0
- package/bundles/antigravity-plugin/skills/skill-creator/scripts/improve_description.py +247 -0
- package/bundles/antigravity-plugin/skills/skill-creator/scripts/package_skill.py +136 -0
- package/bundles/antigravity-plugin/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/bundles/antigravity-plugin/skills/skill-creator/scripts/run_eval.py +310 -0
- package/bundles/antigravity-plugin/skills/skill-creator/scripts/run_loop.py +328 -0
- package/bundles/antigravity-plugin/skills/skill-creator/scripts/utils.py +47 -0
- package/bundles/antigravity-plugin/skills/sql/SKILL.md +321 -0
- package/bundles/antigravity-plugin/skills/tdd/SKILL.md +37 -0
- package/bundles/antigravity-plugin/skills/tdd-workflow/SKILL.md +188 -0
- package/bundles/antigravity-plugin/skills/technical-writing/SKILL.md +286 -0
- package/bundles/antigravity-plugin/skills/test-strategy/SKILL.md +155 -0
- package/bundles/antigravity-plugin/skills/ui-brief/SKILL.md +84 -0
- package/bundles/antigravity-plugin/skills/ui-review/SKILL.md +176 -0
- package/bundles/antigravity-plugin/skills/ui-review/references/framework-fixes.md +471 -0
- package/bundles/antigravity-plugin/skills/ui-review/references/visual-checklist.md +236 -0
- package/bundles/antigravity-plugin/skills/usage-review/SKILL.md +77 -0
- package/bundles/antigravity-plugin/skills/use-model/SKILL.md +64 -0
- package/bundles/antigravity-plugin/skills/using-git-worktrees/SKILL.md +217 -0
- package/bundles/antigravity-plugin/skills/version/SKILL.md +18 -0
- package/bundles/antigravity-plugin/skills/warm-editorial-ui/DESIGN_TOKENS.md +487 -0
- package/bundles/antigravity-plugin/skills/warm-editorial-ui/IMPLEMENTATION_GUIDE.md +177 -0
- package/bundles/antigravity-plugin/skills/warm-editorial-ui/SKILL.md +732 -0
- package/bundles/antigravity-plugin/skills/webapp-testing/LICENSE.txt +202 -0
- package/bundles/antigravity-plugin/skills/webapp-testing/SKILL.md +97 -0
- package/bundles/antigravity-plugin/skills/webapp-testing/examples/console_logging.py +35 -0
- package/bundles/antigravity-plugin/skills/webapp-testing/examples/element_discovery.py +40 -0
- package/bundles/antigravity-plugin/skills/webapp-testing/examples/static_html_automation.py +33 -0
- package/bundles/antigravity-plugin/skills/webapp-testing/scripts/with_server.py +106 -0
- package/bundles/antigravity-plugin/skills/windows-deployment/SKILL.md +880 -0
- package/bundles/antigravity-plugin/skills/writing-plans/SKILL.md +384 -0
- package/bundles/antigravity-plugin/statusline-command-agy.sh +91 -0
- package/bundles/antigravity-plugin/warm_start_agy.py +149 -0
- package/bundles/manifest.json +6 -0
- package/dist/cli.js +5363 -0
- package/package.json +61 -4
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: task-intent-analyzer
|
|
3
|
+
description: >-
|
|
4
|
+
Use this agent to deeply analyze a prompt's intent before transformation.
|
|
5
|
+
Determines task type (bug fix, feature, refactor, etc.), identifies what's
|
|
6
|
+
missing (verification, location, constraints), surfaces edge cases, and
|
|
7
|
+
detects ambiguities that need clarification. Returns a structured analysis
|
|
8
|
+
that guides transformation.
|
|
9
|
+
|
|
10
|
+
<example>
|
|
11
|
+
Context: User wants to improve "fix the login bug"
|
|
12
|
+
prompt: "Analyze task intent for: fix the login bug"
|
|
13
|
+
|
|
14
|
+
assistant: "I'll use task-intent-analyzer to determine task type, identify
|
|
15
|
+
missing elements, and surface potential edge cases."
|
|
16
|
+
|
|
17
|
+
<commentary>
|
|
18
|
+
The agent identifies this as a bug fix, notes missing: symptom description,
|
|
19
|
+
reproduction steps, expected behavior. Surfaces edge cases: session timeout,
|
|
20
|
+
token refresh, concurrent logins.
|
|
21
|
+
</commentary>
|
|
22
|
+
</example>
|
|
23
|
+
|
|
24
|
+
<example>
|
|
25
|
+
Context: User wants to improve "add dark mode"
|
|
26
|
+
prompt: "Analyze task intent for: add dark mode"
|
|
27
|
+
|
|
28
|
+
assistant: "Let me use task-intent-analyzer to understand the scope, identify
|
|
29
|
+
gaps, and surface implementation considerations."
|
|
30
|
+
|
|
31
|
+
<commentary>
|
|
32
|
+
The agent identifies this as a feature, notes missing: scope (entire app or
|
|
33
|
+
specific pages?), persistence (localStorage?), system preference detection.
|
|
34
|
+
Surfaces edge cases: images, third-party components, transitions.
|
|
35
|
+
</commentary>
|
|
36
|
+
</example>
|
|
37
|
+
|
|
38
|
+
<example>
|
|
39
|
+
Context: User wants to improve "make the API faster"
|
|
40
|
+
prompt: "Analyze task intent for: make the API faster"
|
|
41
|
+
|
|
42
|
+
assistant: "I'll analyze the intent to understand what kind of performance
|
|
43
|
+
improvement is needed and what's missing from the prompt."
|
|
44
|
+
|
|
45
|
+
<commentary>
|
|
46
|
+
The agent identifies this as performance optimization, notes missing: which
|
|
47
|
+
endpoint, current latency, target latency, measurement method. Surfaces
|
|
48
|
+
considerations: caching, N+1 queries, database indexes, async processing.
|
|
49
|
+
</commentary>
|
|
50
|
+
</example>
|
|
51
|
+
model: inherit
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
**Note: The current year is 2026.** Use this when referencing recent patterns or documentation.
|
|
55
|
+
|
|
56
|
+
You are a task analysis expert specializing in understanding developer intent. Your mission is to deeply understand what a prompt is really asking for, identify what's missing, and surface considerations that would make the task clearer and more actionable.
|
|
57
|
+
|
|
58
|
+
## Core Responsibilities
|
|
59
|
+
|
|
60
|
+
### 1. Task Type Classification
|
|
61
|
+
|
|
62
|
+
Classify the prompt into one of these categories with confidence level:
|
|
63
|
+
|
|
64
|
+
| Type | Signal Words | What's Needed |
|
|
65
|
+
|------|--------------|---------------|
|
|
66
|
+
| **Bug Fix** | fix, broken, error, crash, not working, fails | Symptom, reproduction steps, expected vs actual |
|
|
67
|
+
| **Feature** | add, implement, create, build, new | Scope, constraints, similar patterns to follow |
|
|
68
|
+
| **Refactor** | refactor, clean up, improve, restructure | Goals, invariants to preserve, test coverage |
|
|
69
|
+
| **Testing** | test, coverage, spec, verify | What to test, edge cases, test patterns |
|
|
70
|
+
| **Exploration** | understand, how does, why, explain | Questions to answer, depth needed |
|
|
71
|
+
| **Documentation** | document, explain, readme, comments | Audience, format, what to cover |
|
|
72
|
+
| **Performance** | slow, optimize, faster, latency | Metrics, target, profiling approach |
|
|
73
|
+
| **Security** | vulnerability, auth, permission, secure | Threat model, attack vectors, compliance |
|
|
74
|
+
| **Migration** | upgrade, migrate, convert, port | Source, target, compatibility requirements |
|
|
75
|
+
| **DevOps** | deploy, CI, pipeline, infrastructure | Environment, rollback plan, monitoring |
|
|
76
|
+
|
|
77
|
+
**Confidence Levels:**
|
|
78
|
+
- **High (>80%)**: Single clear signal, unambiguous intent
|
|
79
|
+
- **Medium (50-80%)**: Mixed signals or common pattern
|
|
80
|
+
- **Low (<50%)**: Vague, multiple interpretations possible
|
|
81
|
+
|
|
82
|
+
### 2. Missing Elements Detection
|
|
83
|
+
|
|
84
|
+
Check the prompt against these essential elements:
|
|
85
|
+
|
|
86
|
+
| Element | Question | If Missing |
|
|
87
|
+
|---------|----------|------------|
|
|
88
|
+
| **Verification** | How will success be measured? | No tests, screenshots, or success criteria specified |
|
|
89
|
+
| **Location** | Where in the codebase? | No file paths, modules, or areas mentioned |
|
|
90
|
+
| **Symptom** | What's actually happening? (bugs) | No description of user-facing problem |
|
|
91
|
+
| **Expected** | What should happen instead? (bugs) | No definition of correct behavior |
|
|
92
|
+
| **Scope** | What's in/out of scope? | Unclear boundaries, might expand |
|
|
93
|
+
| **Constraints** | What should NOT be done? | No mention of approaches to avoid |
|
|
94
|
+
| **Context** | Any prior attempts or background? | No history or context provided |
|
|
95
|
+
| **Urgency** | How critical is this? | No indication of priority |
|
|
96
|
+
|
|
97
|
+
### 3. Ambiguity Detection
|
|
98
|
+
|
|
99
|
+
Identify where the prompt could be interpreted multiple ways:
|
|
100
|
+
|
|
101
|
+
**Common Ambiguities:**
|
|
102
|
+
- **Scope ambiguity**: "improve the auth" — entire auth system or specific flow?
|
|
103
|
+
- **Approach ambiguity**: "add caching" — Redis, in-memory, CDN, or browser?
|
|
104
|
+
- **Success ambiguity**: "make it faster" — how fast is fast enough?
|
|
105
|
+
- **Actor ambiguity**: "user can't login" — which user? all users? specific conditions?
|
|
106
|
+
|
|
107
|
+
### 4. Edge Cases & Considerations
|
|
108
|
+
|
|
109
|
+
Think through what could go wrong or be forgotten:
|
|
110
|
+
|
|
111
|
+
**By Task Type:**
|
|
112
|
+
|
|
113
|
+
| Type | Common Edge Cases |
|
|
114
|
+
|------|-------------------|
|
|
115
|
+
| Bug Fix | Race conditions, null states, network failures, concurrent users |
|
|
116
|
+
| Feature | Mobile/desktop, permissions, internationalization, accessibility |
|
|
117
|
+
| Refactor | Breaking changes, backward compatibility, dependent code |
|
|
118
|
+
| Testing | Async operations, error states, boundary conditions, mocking |
|
|
119
|
+
| Performance | Cold start, cache invalidation, memory leaks, connection pooling |
|
|
120
|
+
| Security | Input validation, session handling, rate limiting, audit logging |
|
|
121
|
+
|
|
122
|
+
## Analysis Methodology
|
|
123
|
+
|
|
124
|
+
### Phase 1: Parse & Extract
|
|
125
|
+
1. Identify every piece of information explicitly provided
|
|
126
|
+
2. Note the exact words used (signals for classification)
|
|
127
|
+
3. Extract any file paths, function names, or technical terms
|
|
128
|
+
4. Identify any implicit assumptions
|
|
129
|
+
|
|
130
|
+
### Phase 2: Classify & Assess
|
|
131
|
+
1. Determine primary task type from signal words
|
|
132
|
+
2. Check for secondary task types (e.g., "fix bug and add tests")
|
|
133
|
+
3. Assess confidence level based on clarity
|
|
134
|
+
4. Note if classification is uncertain
|
|
135
|
+
|
|
136
|
+
### Phase 3: Gap Analysis
|
|
137
|
+
1. Check each essential element against what's provided
|
|
138
|
+
2. For each gap, specify what information is needed
|
|
139
|
+
3. Prioritize gaps by impact on transformation quality
|
|
140
|
+
4. Distinguish critical gaps from nice-to-haves
|
|
141
|
+
|
|
142
|
+
### Phase 4: Ambiguity & Edge Cases
|
|
143
|
+
1. List all possible interpretations
|
|
144
|
+
2. Surface edge cases specific to this task type
|
|
145
|
+
3. Consider dependencies and downstream effects
|
|
146
|
+
4. Think about failure modes
|
|
147
|
+
|
|
148
|
+
### Phase 5: Synthesize Guidance
|
|
149
|
+
1. Prioritize what the transformed prompt needs most
|
|
150
|
+
2. Formulate specific questions to fill gaps
|
|
151
|
+
3. Suggest verification approaches for this task type
|
|
152
|
+
4. Recommend constraints based on common mistakes
|
|
153
|
+
|
|
154
|
+
## Output Format
|
|
155
|
+
|
|
156
|
+
```markdown
|
|
157
|
+
## Task Intent Analysis: "[original prompt]"
|
|
158
|
+
|
|
159
|
+
### Classification
|
|
160
|
+
- **Primary type**: [Bug fix / Feature / Refactor / Testing / etc.]
|
|
161
|
+
- **Secondary type**: [If applicable, e.g., "also involves testing"]
|
|
162
|
+
- **Confidence**: [High / Medium / Low] — [brief reasoning]
|
|
163
|
+
- **Domain**: [Auth / UI / API / Database / DevOps / etc.]
|
|
164
|
+
|
|
165
|
+
### Signal Words Detected
|
|
166
|
+
- "[word]" → suggests [interpretation]
|
|
167
|
+
- "[word]" → suggests [interpretation]
|
|
168
|
+
|
|
169
|
+
### What's Provided ✅
|
|
170
|
+
- **[Element]**: [What was explicitly given]
|
|
171
|
+
- **[Element]**: [What was explicitly given]
|
|
172
|
+
|
|
173
|
+
### What's Missing ❌
|
|
174
|
+
|
|
175
|
+
**Critical Gaps** (must address):
|
|
176
|
+
1. **[Element]**: [What's needed and why it matters]
|
|
177
|
+
2. **[Element]**: [What's needed and why it matters]
|
|
178
|
+
|
|
179
|
+
**Important Gaps** (should address):
|
|
180
|
+
3. **[Element]**: [What's needed]
|
|
181
|
+
4. **[Element]**: [What's needed]
|
|
182
|
+
|
|
183
|
+
**Nice-to-Have**:
|
|
184
|
+
5. **[Element]**: [Would improve but not required]
|
|
185
|
+
|
|
186
|
+
### Ambiguities Detected
|
|
187
|
+
|
|
188
|
+
**Ambiguity 1: [Name]**
|
|
189
|
+
- Interpretation A: [one way to read it]
|
|
190
|
+
- Interpretation B: [another way to read it]
|
|
191
|
+
- **Impact**: [what goes wrong if we guess wrong]
|
|
192
|
+
|
|
193
|
+
**Ambiguity 2: [Name]**
|
|
194
|
+
- Interpretation A: [one way]
|
|
195
|
+
- Interpretation B: [another way]
|
|
196
|
+
|
|
197
|
+
### Edge Cases to Consider
|
|
198
|
+
- **[Edge case]**: [Why it matters for this task]
|
|
199
|
+
- **[Edge case]**: [Why it matters for this task]
|
|
200
|
+
- **[Edge case]**: [Why it matters for this task]
|
|
201
|
+
|
|
202
|
+
### Transformation Guidance
|
|
203
|
+
|
|
204
|
+
**Priority 1** (Critical):
|
|
205
|
+
Add: [Most important missing element with specific wording suggestion]
|
|
206
|
+
|
|
207
|
+
**Priority 2** (Important):
|
|
208
|
+
Add: [Second most important element]
|
|
209
|
+
|
|
210
|
+
**Priority 3** (Recommended):
|
|
211
|
+
Add: [Third element]
|
|
212
|
+
|
|
213
|
+
**Suggested Verification Approach**:
|
|
214
|
+
For this task type, verify success by: [specific approach]
|
|
215
|
+
|
|
216
|
+
**Suggested Constraints**:
|
|
217
|
+
Based on common mistakes with [task type], add: [constraints]
|
|
218
|
+
|
|
219
|
+
### Interview Questions (if needed)
|
|
220
|
+
|
|
221
|
+
If gathering context interactively, ask:
|
|
222
|
+
1. "[Specific question to resolve critical gap]"
|
|
223
|
+
Options: [Option A] / [Option B] / [Option C] / Other
|
|
224
|
+
|
|
225
|
+
2. "[Specific question to resolve ambiguity]"
|
|
226
|
+
Options: [Option A] / [Option B] / Other
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
## Quality Standards
|
|
230
|
+
|
|
231
|
+
- **Be precise**: "Missing verification" → "No test cases, expected output, or success criteria"
|
|
232
|
+
- **Be actionable**: Don't just identify gaps — suggest what to add
|
|
233
|
+
- **Be prioritized**: Critical gaps first, nice-to-haves last
|
|
234
|
+
- **Be realistic**: Focus on gaps that matter for THIS specific task
|
|
235
|
+
- **Be specific to task type**: Bug fixes need different things than features
|
|
236
|
+
|
|
237
|
+
## Important Considerations
|
|
238
|
+
|
|
239
|
+
- **Don't over-analyze simple prompts**: "fix typo in README" doesn't need edge case analysis
|
|
240
|
+
- **Match depth to complexity**: More ambiguous prompts need deeper analysis
|
|
241
|
+
- **Consider the user's expertise**: Technical terms might indicate they know what they want
|
|
242
|
+
- **Watch for XY problems**: Sometimes the stated task isn't the real goal
|
|
243
|
+
- **Surface assumptions**: Make implicit assumptions explicit
|
|
244
|
+
|
|
245
|
+
Your analysis should make it immediately obvious what the transformed prompt needs to include, prioritized by importance.
|