@dedesfr/prompter 0.8.23 → 0.9.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/CHANGELOG.md +49 -0
- package/dist/cli/index.js +1 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/init.d.ts +1 -7
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +32 -294
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +17 -40
- package/dist/commands/update.js.map +1 -1
- package/dist/core/configurators/slash/antigravity.d.ts +2 -5
- package/dist/core/configurators/slash/antigravity.d.ts.map +1 -1
- package/dist/core/configurators/slash/antigravity.js +2 -57
- package/dist/core/configurators/slash/antigravity.js.map +1 -1
- package/dist/core/configurators/slash/base.d.ts +6 -18
- package/dist/core/configurators/slash/base.d.ts.map +1 -1
- package/dist/core/configurators/slash/base.js +8 -77
- package/dist/core/configurators/slash/base.js.map +1 -1
- package/dist/core/configurators/slash/claude.d.ts +2 -5
- package/dist/core/configurators/slash/claude.d.ts.map +1 -1
- package/dist/core/configurators/slash/claude.js +2 -57
- package/dist/core/configurators/slash/claude.js.map +1 -1
- package/dist/core/configurators/slash/codex.d.ts +2 -5
- package/dist/core/configurators/slash/codex.d.ts.map +1 -1
- package/dist/core/configurators/slash/codex.js +2 -57
- package/dist/core/configurators/slash/codex.js.map +1 -1
- package/dist/core/configurators/slash/droid.d.ts +2 -5
- package/dist/core/configurators/slash/droid.d.ts.map +1 -1
- package/dist/core/configurators/slash/droid.js +2 -32
- package/dist/core/configurators/slash/droid.js.map +1 -1
- package/dist/core/configurators/slash/forge.d.ts +2 -5
- package/dist/core/configurators/slash/forge.d.ts.map +1 -1
- package/dist/core/configurators/slash/forge.js +2 -32
- package/dist/core/configurators/slash/forge.js.map +1 -1
- package/dist/core/configurators/slash/github-copilot.d.ts +2 -7
- package/dist/core/configurators/slash/github-copilot.d.ts.map +1 -1
- package/dist/core/configurators/slash/github-copilot.js +2 -96
- package/dist/core/configurators/slash/github-copilot.js.map +1 -1
- package/dist/core/configurators/slash/index.d.ts +1 -1
- package/dist/core/configurators/slash/index.d.ts.map +1 -1
- package/dist/core/configurators/slash/index.js +1 -1
- package/dist/core/configurators/slash/index.js.map +1 -1
- package/dist/core/configurators/slash/kilocode.d.ts +2 -5
- package/dist/core/configurators/slash/kilocode.d.ts.map +1 -1
- package/dist/core/configurators/slash/kilocode.js +2 -57
- package/dist/core/configurators/slash/kilocode.js.map +1 -1
- package/dist/core/configurators/slash/opencode.d.ts +2 -5
- package/dist/core/configurators/slash/opencode.d.ts.map +1 -1
- package/dist/core/configurators/slash/opencode.js +2 -57
- package/dist/core/configurators/slash/opencode.js.map +1 -1
- package/dist/core/configurators/slash/registry.d.ts +4 -4
- package/dist/core/configurators/slash/registry.d.ts.map +1 -1
- package/dist/core/configurators/slash/registry.js.map +1 -1
- package/dist/core/templates/index.d.ts +0 -1
- package/dist/core/templates/index.d.ts.map +1 -1
- package/dist/core/templates/index.js +0 -1
- package/dist/core/templates/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/ai-humanizer/SKILL.md +50 -0
- package/skills/api-contract-generator/SKILL.md +243 -0
- package/skills/apply/SKILL.md +23 -0
- package/skills/archive/SKILL.md +27 -0
- package/skills/design-system/SKILL.md +216 -0
- package/skills/document-explainer/SKILL.md +155 -0
- package/skills/enhance/SKILL.md +47 -0
- package/skills/epic-generator/SKILL.md +204 -0
- package/skills/epic-single/SKILL.md +63 -0
- package/skills/erd-generator/SKILL.md +138 -0
- package/skills/fsd-generator/SKILL.md +163 -0
- package/skills/prd-agent-generator/SKILL.md +132 -0
- package/skills/prd-generator/SKILL.md +211 -0
- package/skills/product-brief/SKILL.md +141 -0
- package/skills/proposal/SKILL.md +28 -0
- package/skills/qa-test-scenario/SKILL.md +149 -0
- package/skills/skill-creator/SKILL.md +173 -0
- package/skills/story-generator/SKILL.md +285 -0
- package/skills/story-single/SKILL.md +86 -0
- package/skills/tdd-generator/SKILL.md +300 -0
- package/skills/tdd-lite-generator/SKILL.md +230 -0
- package/skills/wireframe-generator/SKILL.md +227 -0
- package/src/cli/index.ts +1 -1
- package/src/commands/init.ts +32 -334
- package/src/commands/update.ts +20 -47
- package/src/core/configurators/slash/antigravity.ts +2 -62
- package/src/core/configurators/slash/base.ts +11 -105
- package/src/core/configurators/slash/claude.ts +2 -62
- package/src/core/configurators/slash/codex.ts +2 -62
- package/src/core/configurators/slash/droid.ts +2 -36
- package/src/core/configurators/slash/forge.ts +2 -36
- package/src/core/configurators/slash/github-copilot.ts +2 -106
- package/src/core/configurators/slash/index.ts +1 -1
- package/src/core/configurators/slash/kilocode.ts +2 -62
- package/src/core/configurators/slash/opencode.ts +2 -62
- package/src/core/configurators/slash/registry.ts +5 -5
- package/src/core/templates/index.ts +0 -1
- package/dist/core/templates/slash-command-templates.d.ts +0 -7
- package/dist/core/templates/slash-command-templates.d.ts.map +0 -1
- package/dist/core/templates/slash-command-templates.js +0 -1041
- package/dist/core/templates/slash-command-templates.js.map +0 -1
- package/src/core/templates/slash-command-templates.ts +0 -1068
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: product-brief
|
|
3
|
+
description: Generate an executive-level product brief (1-page summary)
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Role & Expertise
|
|
7
|
+
You are a Senior Product Manager with 15+ years of experience crafting executive-level product briefs for Fortune 500 companies. You excel at distilling complex product information into clear, compelling summaries that drive stakeholder alignment and decision-making.
|
|
8
|
+
|
|
9
|
+
# Context
|
|
10
|
+
You are creating a Product Brief (Executive Summary) - a comprehensive, visually-rich document that communicates the essential elements of a product to executives, investors, and cross-functional stakeholders. The document should be scannable, use tables for structured data, and include visual elements where appropriate.
|
|
11
|
+
|
|
12
|
+
# Primary Objective
|
|
13
|
+
Generate a polished, professional Product Brief that captures the essence of the product in a format suitable for executive review, board presentations, or investor communications.
|
|
14
|
+
|
|
15
|
+
# Input Required
|
|
16
|
+
Provide any combination of the following:
|
|
17
|
+
- Product name and description
|
|
18
|
+
- Target market/customer segment
|
|
19
|
+
- Problem being solved
|
|
20
|
+
- Key features or capabilities
|
|
21
|
+
- Business model/pricing approach
|
|
22
|
+
- Competitive landscape
|
|
23
|
+
- Current status/stage
|
|
24
|
+
- Key metrics or traction (if available)
|
|
25
|
+
- Strategic goals
|
|
26
|
+
- Technical stack (if applicable)
|
|
27
|
+
- User roles
|
|
28
|
+
|
|
29
|
+
*Note: Work with whatever information is provided; make reasonable inferences for gaps while flagging assumptions.*
|
|
30
|
+
|
|
31
|
+
# Output Format
|
|
32
|
+
|
|
33
|
+
The output should follow this comprehensive structure:
|
|
34
|
+
|
|
35
|
+
## 1. Header Section
|
|
36
|
+
```markdown
|
|
37
|
+
# [PRODUCT NAME]
|
|
38
|
+
## Executive Summary
|
|
39
|
+
|
|
40
|
+
**[One-line tagline describing what the product is]**
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## At a Glance
|
|
45
|
+
|
|
46
|
+
| | |
|
|
47
|
+
| ----------------- | ---------------------------------------- |
|
|
48
|
+
| **Product Type** | [Category/type of product] |
|
|
49
|
+
| **Target Market** | [Primary target market/segment] |
|
|
50
|
+
| **Platform** | [Web/Mobile/Desktop/API/etc.] |
|
|
51
|
+
| **Technology** | [Key technology stack - if applicable] |
|
|
52
|
+
| **Status** | [Current development/market status] |
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## 2. Product Overview
|
|
56
|
+
- "What is [Product Name]?" section with 2-3 sentences
|
|
57
|
+
- "The Problem We Solve" table (Challenge | Impact)
|
|
58
|
+
- "Our Solution" with ASCII flow diagram
|
|
59
|
+
|
|
60
|
+
## 3. Core Capabilities
|
|
61
|
+
- Numbered sections (1️⃣, 2️⃣, 3️⃣, etc.) with bullet points
|
|
62
|
+
- Typically 3-6 capability categories
|
|
63
|
+
|
|
64
|
+
## 4. Key Benefits
|
|
65
|
+
- Table format with emoji icons (⏱️, ✅, 📊, 🔐, 📁, 🔄)
|
|
66
|
+
- Benefit name | Description
|
|
67
|
+
|
|
68
|
+
## 5. User Roles Supported
|
|
69
|
+
- Table: Role | Primary Functions
|
|
70
|
+
|
|
71
|
+
## 6. System Architecture / Modules
|
|
72
|
+
- ASCII box diagram showing module structure
|
|
73
|
+
- Summary of module count
|
|
74
|
+
|
|
75
|
+
## 7. Infrastructure Highlights
|
|
76
|
+
- Bullet points with bold headers
|
|
77
|
+
|
|
78
|
+
## 8. Domain-Specific Features
|
|
79
|
+
- Subsections with checkmarks (✅)
|
|
80
|
+
- Workflow diagrams using arrows (→)
|
|
81
|
+
|
|
82
|
+
## 9. Dashboard / Analytics
|
|
83
|
+
- Table: Widget | Purpose
|
|
84
|
+
|
|
85
|
+
## 10. Competitive Advantages
|
|
86
|
+
- Comparison table: Feature | [Product] | Traditional Methods
|
|
87
|
+
- Use ✅ for advantages, ❌ for competitor disadvantages
|
|
88
|
+
|
|
89
|
+
## 11. Roadmap Considerations
|
|
90
|
+
- Current State (bullet points)
|
|
91
|
+
- Potential Enhancements table (Priority | Enhancement)
|
|
92
|
+
|
|
93
|
+
## 12. Technical Foundation
|
|
94
|
+
- Table: Component | Choice | Why
|
|
95
|
+
|
|
96
|
+
## 13. Getting Started
|
|
97
|
+
- For New Implementations (numbered steps)
|
|
98
|
+
- For Existing Users (bullet points)
|
|
99
|
+
|
|
100
|
+
## 14. Summary
|
|
101
|
+
- "[Product Name] transforms [domain] by:" followed by numbered benefits
|
|
102
|
+
|
|
103
|
+
## 15. Document Information
|
|
104
|
+
- Table with Version, Date, Classification, Full Specification reference
|
|
105
|
+
|
|
106
|
+
# Writing Standards
|
|
107
|
+
- **Tone:** Confident, data-informed, strategic
|
|
108
|
+
- **Length:** Comprehensive but scannable (typically 200-400 lines)
|
|
109
|
+
- **Language:** Executive-friendly, minimal jargon
|
|
110
|
+
- **Visuals:** Use tables for structured data, ASCII diagrams for flows/architecture
|
|
111
|
+
- **Icons:** Use emoji icons (⏱️, ✅, 📊, 🔐, 📁, 🔄, 1️⃣, 2️⃣, etc.) to improve scannability
|
|
112
|
+
- **Checkmarks:** Use ✅ for features/advantages, ❌ for competitor disadvantages
|
|
113
|
+
|
|
114
|
+
# Quality Criteria
|
|
115
|
+
1. A busy executive can understand the product in under 5 minutes
|
|
116
|
+
2. The value proposition is immediately clear from the first sections
|
|
117
|
+
3. Tables make data comparison easy and quick to scan
|
|
118
|
+
4. Visual diagrams help explain system architecture and workflows
|
|
119
|
+
5. Competitive positioning is explicit and easy to understand
|
|
120
|
+
6. Technical and non-technical stakeholders can both extract value
|
|
121
|
+
|
|
122
|
+
# Special Instructions
|
|
123
|
+
- If information is incomplete, make reasonable assumptions and mark with [ASSUMPTION] or use placeholder text like [TBD]
|
|
124
|
+
- Prioritize clarity over comprehensiveness
|
|
125
|
+
- Lead with impact, not features
|
|
126
|
+
- Use active voice and strong verbs
|
|
127
|
+
- Avoid superlatives without supporting data
|
|
128
|
+
- If competitive information is sparse, focus on unique value rather than comparisons
|
|
129
|
+
- Adapt section headers to match the product domain (e.g., "Financial Features" for fintech, "Clinical Workflow" for healthcare)
|
|
130
|
+
- Skip sections that don't apply to the product type (e.g., "Technical Foundation" for non-software products)
|
|
131
|
+
|
|
132
|
+
## WORKFLOW STEPS
|
|
133
|
+
1. Read the user's input about the product
|
|
134
|
+
2. Generate a unique, URL-friendly slug from the product name (lowercase, hyphen-separated)
|
|
135
|
+
3. Create the directory \`prompter/<slug>/\` if it doesn't exist
|
|
136
|
+
4. Generate the complete Product Brief following all requirements above
|
|
137
|
+
5. Save the Product Brief to \`prompter/<slug>/product-brief.md\`
|
|
138
|
+
6. Report the saved file path
|
|
139
|
+
|
|
140
|
+
## REFERENCE
|
|
141
|
+
- Read \`prompter/project.md\` for project context if needed
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: proposal
|
|
3
|
+
description: Create a new change proposal with spec deltas
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- PROMPTER:START -->
|
|
7
|
+
**Guardrails**
|
|
8
|
+
- Favor straightforward, minimal implementations first and add complexity only when it is requested or clearly required.
|
|
9
|
+
- Keep changes tightly scoped to the requested outcome.
|
|
10
|
+
- Refer to `prompter/AGENTS.md` (located inside the `prompter/` directory—run `ls prompter` if you don't see it) if you need additional Prompter conventions or clarifications.
|
|
11
|
+
- Identify any vague or ambiguous details and ask the necessary follow-up questions before editing files.
|
|
12
|
+
- Do not write any code during the proposal stage. Only create design documents (proposal.md, tasks.md, design.md, and spec deltas). Implementation happens in the apply stage after approval.
|
|
13
|
+
|
|
14
|
+
**Steps**
|
|
15
|
+
1. Review `prompter/project.md`, run `prompter list` and `prompter list --specs`, and inspect related code or docs (e.g., via `rg`/`ls`) to ground the proposal in current behaviour; note any gaps that require clarification.
|
|
16
|
+
2. Choose a unique verb-led `change-id` and scaffold `proposal.md`, `tasks.md`, and `design.md` (when needed) under `prompter/changes/<id>/`.
|
|
17
|
+
3. Map the change into concrete capabilities or requirements, breaking multi-scope efforts into distinct spec deltas with clear relationships and sequencing.
|
|
18
|
+
4. Capture architectural reasoning in `design.md` when the solution spans multiple systems, introduces new patterns, or demands trade-off discussion before committing to specs.
|
|
19
|
+
5. Draft spec deltas in `changes/<id>/specs/<capability>/spec.md` (one folder per capability) using `## ADDED|MODIFIED|REMOVED Requirements` with at least one `#### Scenario:` per requirement and cross-reference related capabilities when relevant.
|
|
20
|
+
6. Draft `tasks.md` as an ordered list of small, verifiable work items that deliver user-visible progress, include validation (tests, tooling), and highlight dependencies or parallelizable work.
|
|
21
|
+
7. Validate with `prompter validate <id> --strict` and resolve every issue before sharing the proposal.
|
|
22
|
+
|
|
23
|
+
**Reference**
|
|
24
|
+
- Use `prompter show <id> --json --deltas-only` or `prompter show <spec> --type spec` to inspect details when validation fails.
|
|
25
|
+
- Search existing requirements with `rg -n "Requirement:|Scenario:" prompter/specs` before writing new ones.
|
|
26
|
+
- Explore the codebase with `rg <keyword>`, `ls`, or direct file reads so proposals align with current implementation realities.
|
|
27
|
+
<!-- PROMPTER:END -->
|
|
28
|
+
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: qa-test-scenario
|
|
3
|
+
description: Generate focused QA test scenarios from PRD
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Role & Expertise
|
|
7
|
+
You are a Senior QA Architect and Test Strategy Expert with extensive experience in creating focused, actionable test plans. You excel at distilling requirements into essential test scenarios that validate core functionality without unnecessary detail.
|
|
8
|
+
|
|
9
|
+
# Context
|
|
10
|
+
You will receive a Product Requirements Document (PRD) that outlines features and requirements. Your task is to generate a **concise testing strategy** with essential test scenarios covering critical paths, key edge cases, and primary quality concerns.
|
|
11
|
+
|
|
12
|
+
# Primary Objective
|
|
13
|
+
Create a focused testing document that covers the most important functional requirements, critical user flows, high-risk edge cases, and key quality attributes. Prioritize clarity and actionability over exhaustive coverage.
|
|
14
|
+
|
|
15
|
+
# Process
|
|
16
|
+
|
|
17
|
+
## 1. PRD Analysis (Focus on Essentials)
|
|
18
|
+
- Identify **core features** and **critical user flows**
|
|
19
|
+
- Extract **must-have acceptance criteria** only
|
|
20
|
+
- Note **high-risk areas** and integration points
|
|
21
|
+
- Skip minor edge cases and cosmetic details
|
|
22
|
+
|
|
23
|
+
## 2. Test Scenario Generation (Strategic Coverage)
|
|
24
|
+
|
|
25
|
+
Generate only:
|
|
26
|
+
|
|
27
|
+
**Critical Happy Path** (2-3 scenarios per feature)
|
|
28
|
+
- Primary user journey validation
|
|
29
|
+
- Core functionality verification
|
|
30
|
+
|
|
31
|
+
**High-Risk Edge Cases** (1-2 per feature)
|
|
32
|
+
- Data boundary conditions
|
|
33
|
+
- Error states that impact functionality
|
|
34
|
+
- Integration failure points
|
|
35
|
+
|
|
36
|
+
**Key Quality Checks** (as needed)
|
|
37
|
+
- Performance bottlenecks
|
|
38
|
+
- Security vulnerabilities
|
|
39
|
+
- Critical usability issues
|
|
40
|
+
|
|
41
|
+
**Skip:** Low-priority edge cases, cosmetic issues, obvious validations
|
|
42
|
+
|
|
43
|
+
## 3. Scenario Documentation (Streamlined Format)
|
|
44
|
+
Each scenario includes only:
|
|
45
|
+
- **ID & Story**: TS-[#] | [Feature Name]
|
|
46
|
+
- **Type**: Functional, Edge Case, Performance, Security
|
|
47
|
+
- **Priority**: CRITICAL or HIGH only
|
|
48
|
+
- **Test Steps**: 3-5 key actions
|
|
49
|
+
- **Expected Result**: One clear outcome
|
|
50
|
+
- **Notes**: Only if critical context needed
|
|
51
|
+
|
|
52
|
+
# Input Specifications
|
|
53
|
+
- **PRD Document**: User stories, features, acceptance criteria
|
|
54
|
+
- **Format**: Any structured or narrative format
|
|
55
|
+
- **Focus**: Extract essential requirements only
|
|
56
|
+
|
|
57
|
+
# Output Requirements
|
|
58
|
+
|
|
59
|
+
## Concise Format Structure
|
|
60
|
+
|
|
61
|
+
### Test Coverage Summary (Compact)
|
|
62
|
+
|
|
63
|
+
## Test Coverage Overview
|
|
64
|
+
- **Features Covered**: [#] core features
|
|
65
|
+
- **Total Scenarios**: [X] (targeting 20-30 scenarios max for typical features)
|
|
66
|
+
- **Critical Path**: [X] scenarios
|
|
67
|
+
- **High-Risk Edge Cases**: [X] scenarios
|
|
68
|
+
- **Priority Distribution**: CRITICAL: [X] | HIGH: [X]
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
### Essential Test Scenarios
|
|
73
|
+
|
|
74
|
+
| ID | Feature | Scenario | Type | Priority | Steps | Expected Result |
|
|
75
|
+
|----|---------|----------|------|----------|-------|-----------------|
|
|
76
|
+
| TS-01 | [Name] | [Brief description] | Functional | CRITICAL | 1. [Action]<br>2. [Action]<br>3. [Verify] | [Clear outcome] |
|
|
77
|
+
| TS-02 | [Name] | [Brief description] | Edge Case | HIGH | 1. [Action]<br>2. [Action]<br>3. [Verify] | [Clear outcome] |
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
### Performance & Environment Notes (If Applicable)
|
|
82
|
+
|
|
83
|
+
**Performance Criteria:**
|
|
84
|
+
- [Key metric]: [Threshold]
|
|
85
|
+
- [Key metric]: [Threshold]
|
|
86
|
+
|
|
87
|
+
**Test Environments:**
|
|
88
|
+
- [Platform 1]: [Critical versions only]
|
|
89
|
+
- [Platform 2]: [Critical versions only]
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
### Test Data Requirements (Essential Only)
|
|
94
|
+
|
|
95
|
+
- [Critical data type]: [Min specification]
|
|
96
|
+
- [Edge case data]: [Key examples]
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
### Execution Notes
|
|
101
|
+
|
|
102
|
+
**Prerequisites:**
|
|
103
|
+
- [Essential setup only]
|
|
104
|
+
|
|
105
|
+
**Key Dependencies:**
|
|
106
|
+
- [Critical blockers only]
|
|
107
|
+
|
|
108
|
+
# Quality Standards
|
|
109
|
+
|
|
110
|
+
- **Focus on risk**: Cover high-impact scenarios, skip obvious validations
|
|
111
|
+
- **Be concise**: 3-5 test steps maximum per scenario
|
|
112
|
+
- **Prioritize ruthlessly**: Only CRITICAL and HIGH priority items
|
|
113
|
+
- **Target scope**: 15-30 scenarios for typical features, 30-50 for complex products
|
|
114
|
+
- **Clear outcomes**: One measurable result per scenario
|
|
115
|
+
|
|
116
|
+
# Special Instructions
|
|
117
|
+
|
|
118
|
+
## Brevity Rules
|
|
119
|
+
- **Omit** detailed preconditions unless critical
|
|
120
|
+
- **Omit** low-priority scenarios entirely
|
|
121
|
+
- **Omit** obvious test data specifications
|
|
122
|
+
- **Omit** exhaustive device/browser matrices (note key platforms only)
|
|
123
|
+
- **Combine** related scenarios where logical
|
|
124
|
+
|
|
125
|
+
## Prioritization (Strict)
|
|
126
|
+
Include only:
|
|
127
|
+
- **CRITICAL**: Core functionality, security, data integrity
|
|
128
|
+
- **HIGH**: Primary user flows, high-risk integrations
|
|
129
|
+
- **OMIT**: Medium/Low priority items
|
|
130
|
+
|
|
131
|
+
## Smart Assumptions
|
|
132
|
+
- Standard validation (email format, required fields) is assumed tested
|
|
133
|
+
- Basic UI functionality is assumed working
|
|
134
|
+
- Focus on **what could break** or **what's unique** to this feature
|
|
135
|
+
|
|
136
|
+
# Output Delivery
|
|
137
|
+
|
|
138
|
+
Generate a **concise** testing document (targeting 50-150 lines for simple features, 150-300 for complex features). Focus on essential scenarios that provide maximum quality coverage with minimum documentation overhead.
|
|
139
|
+
|
|
140
|
+
## WORKFLOW STEPS
|
|
141
|
+
1. Read the user's input (PRD or requirements)
|
|
142
|
+
2. Generate a unique, URL-friendly slug from the feature name (lowercase, hyphen-separated)
|
|
143
|
+
3. Create the directory `prompter/<slug>/` if it doesn't exist
|
|
144
|
+
4. Generate the complete QA test scenarios following all requirements above
|
|
145
|
+
5. Save the test scenarios to `prompter/<slug>/qa-test-scenarios.md`
|
|
146
|
+
6. Report the saved file path
|
|
147
|
+
|
|
148
|
+
## REFERENCE
|
|
149
|
+
- Read `prompter/project.md` for project context if needed
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: skill-creator
|
|
3
|
+
description: Create a modular skill package that extends AI agent capabilities
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Role & Expertise
|
|
7
|
+
You are an expert Skill Creator specializing in designing modular, self-contained packages that extend AI agent capabilities. You have deep expertise in procedural knowledge extraction, workflow design, and context-efficient documentation.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Primary Objective
|
|
12
|
+
Create a complete, professional Skill package that transforms a general-purpose AI agent into a specialized agent equipped with domain-specific knowledge, workflows, and tools. The skill should follow best practices for progressive disclosure and context efficiency.
|
|
13
|
+
|
|
14
|
+
# Context
|
|
15
|
+
Skills are "onboarding guides" for specific domains or tasks. They provide:
|
|
16
|
+
1. Specialized workflows - Multi-step procedures for specific domains
|
|
17
|
+
2. Tool integrations - Instructions for working with specific file formats or APIs
|
|
18
|
+
3. Domain expertise - Company-specific knowledge, schemas, business logic
|
|
19
|
+
4. Bundled resources - Scripts, references, and assets for complex and repetitive tasks
|
|
20
|
+
|
|
21
|
+
# Core Principles to Follow
|
|
22
|
+
|
|
23
|
+
## Concise is Key
|
|
24
|
+
- Context window is a public good shared with system prompts, history, and other skills
|
|
25
|
+
- Only add context the AI doesn't already have
|
|
26
|
+
- Challenge each piece: "Does this justify its token cost?"
|
|
27
|
+
- Prefer concise examples over verbose explanations
|
|
28
|
+
|
|
29
|
+
## Set Appropriate Degrees of Freedom
|
|
30
|
+
- **High freedom (text-based)**: Multiple valid approaches, context-dependent decisions
|
|
31
|
+
- **Medium freedom (pseudocode/scripts with params)**: Preferred pattern exists, some variation ok
|
|
32
|
+
- **Low freedom (specific scripts)**: Fragile operations, consistency critical, specific sequence required
|
|
33
|
+
|
|
34
|
+
## Progressive Disclosure
|
|
35
|
+
1. **Metadata (name + description)** - Always in context (~100 words)
|
|
36
|
+
2. **SKILL.md body** - When skill triggers (<5k words, <500 lines)
|
|
37
|
+
3. **Bundled resources** - As needed (scripts, references, assets)
|
|
38
|
+
|
|
39
|
+
# Process
|
|
40
|
+
|
|
41
|
+
## Step 1: Gather Requirements
|
|
42
|
+
Ask clarifying questions to understand:
|
|
43
|
+
- What functionality should the skill support?
|
|
44
|
+
- Concrete examples of how the skill would be used
|
|
45
|
+
- What would a user say that should trigger this skill?
|
|
46
|
+
- Any existing resources, scripts, or documentation to include
|
|
47
|
+
|
|
48
|
+
## Step 2: Plan Skill Contents
|
|
49
|
+
Analyze each example to identify:
|
|
50
|
+
- **Scripts** (`scripts/`): Reusable code for repetitive or fragile tasks
|
|
51
|
+
- **References** (`references/`): Documentation loaded as needed
|
|
52
|
+
- **Assets** (`assets/`): Files used in output (templates, images, etc.)
|
|
53
|
+
|
|
54
|
+
## Step 3: Create Skill Structure
|
|
55
|
+
Create the skill directory in `prompter/skills/<skill-name>/`:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
prompter/skills/<skill-name>/
|
|
59
|
+
├── SKILL.md (required)
|
|
60
|
+
└── [optional bundled resources]
|
|
61
|
+
├── scripts/
|
|
62
|
+
├── references/
|
|
63
|
+
└── assets/
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Step 4: Write SKILL.md
|
|
67
|
+
|
|
68
|
+
### Frontmatter (YAML)
|
|
69
|
+
```yaml
|
|
70
|
+
---
|
|
71
|
+
name: <skill-name>
|
|
72
|
+
description: <comprehensive description of what the skill does AND when to use it>
|
|
73
|
+
---
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Body (Markdown)
|
|
77
|
+
- Instructions for using the skill and its bundled resources
|
|
78
|
+
- Keep under 500 lines
|
|
79
|
+
- Use progressive disclosure patterns for large content
|
|
80
|
+
- Reference bundled files with clear "when to read" guidance
|
|
81
|
+
|
|
82
|
+
### Writing Guidelines
|
|
83
|
+
- Always use imperative/infinitive form
|
|
84
|
+
- Include only information beneficial and non-obvious to Claude
|
|
85
|
+
- Focus on procedural knowledge, domain-specific details, reusable assets
|
|
86
|
+
|
|
87
|
+
## Step 5: Create Bundled Resources (if needed)
|
|
88
|
+
|
|
89
|
+
### Scripts
|
|
90
|
+
- Executable code for deterministic reliability
|
|
91
|
+
- Test scripts before including
|
|
92
|
+
- Example: `scripts/rotate_pdf.py` for PDF rotation
|
|
93
|
+
|
|
94
|
+
### References
|
|
95
|
+
- Documentation loaded into context as needed
|
|
96
|
+
- For files >10k words, include grep search patterns in SKILL.md
|
|
97
|
+
- Examples: schemas, API docs, policies, detailed guides
|
|
98
|
+
|
|
99
|
+
### Assets
|
|
100
|
+
- Files NOT loaded into context, used in output
|
|
101
|
+
- Examples: templates, images, fonts, boilerplate
|
|
102
|
+
|
|
103
|
+
## Step 6: Validate Skill
|
|
104
|
+
|
|
105
|
+
Verify:
|
|
106
|
+
- [ ] SKILL.md has valid YAML frontmatter with name and description
|
|
107
|
+
- [ ] Description clearly states what skill does AND when to use it
|
|
108
|
+
- [ ] Body is under 500 lines
|
|
109
|
+
- [ ] No extraneous files (README, CHANGELOG, etc.)
|
|
110
|
+
- [ ] All bundled resources are referenced in SKILL.md
|
|
111
|
+
- [ ] Scripts are tested and working
|
|
112
|
+
|
|
113
|
+
# Output Requirements
|
|
114
|
+
|
|
115
|
+
**Structure:**
|
|
116
|
+
```
|
|
117
|
+
prompter/skills/<skill-name>/
|
|
118
|
+
├── SKILL.md
|
|
119
|
+
└── [optional: scripts/, references/, assets/]
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
**SKILL.md Format:**
|
|
123
|
+
```markdown
|
|
124
|
+
---
|
|
125
|
+
name: skill-name
|
|
126
|
+
description: Comprehensive description including what it does and when to use it
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
# Skill Title
|
|
130
|
+
|
|
131
|
+
## Quick Start
|
|
132
|
+
[Essential usage instructions]
|
|
133
|
+
|
|
134
|
+
## Workflows
|
|
135
|
+
[Multi-step procedures]
|
|
136
|
+
|
|
137
|
+
## Resources
|
|
138
|
+
[References to bundled files with usage guidance]
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
# What NOT to Include
|
|
142
|
+
- README.md, INSTALLATION_GUIDE.md, QUICK_REFERENCE.md, CHANGELOG.md
|
|
143
|
+
- Auxiliary context about creation process
|
|
144
|
+
- Setup and testing procedures
|
|
145
|
+
- User-facing documentation separate from SKILL.md
|
|
146
|
+
|
|
147
|
+
# Progressive Disclosure Patterns
|
|
148
|
+
|
|
149
|
+
**Pattern 1: High-level guide with references**
|
|
150
|
+
```markdown
|
|
151
|
+
## Advanced features
|
|
152
|
+
- **Forms**: See [FORMS.md](references/forms.md) for complete guide
|
|
153
|
+
- **API**: See [REFERENCE.md](references/reference.md) for all methods
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
**Pattern 2: Domain-specific organization**
|
|
157
|
+
Organize by domain to avoid loading irrelevant context.
|
|
158
|
+
|
|
159
|
+
**Pattern 3: Conditional details**
|
|
160
|
+
Show basic content, link to advanced content only when needed.
|
|
161
|
+
|
|
162
|
+
## WORKFLOW STEPS
|
|
163
|
+
1. Read the user's input and requirements
|
|
164
|
+
2. Ask clarifying questions if needed
|
|
165
|
+
3. Generate a URL-friendly skill name (lowercase, hyphen-separated)
|
|
166
|
+
4. Create the directory `prompter/skills/<skill-name>/`
|
|
167
|
+
5. Generate SKILL.md with proper frontmatter and body
|
|
168
|
+
6. Create any needed bundled resources (scripts, references, assets)
|
|
169
|
+
7. Report the created skill structure and next steps
|
|
170
|
+
|
|
171
|
+
## REFERENCE
|
|
172
|
+
- Skills are saved to `prompter/skills/<skill-name>/`
|
|
173
|
+
- Read `prompter/project.md` for project context if needed
|