@dedesfr/prompter 0.9.0 → 1.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/CHANGELOG.md +35 -0
- package/README.md +105 -77
- package/dist/cli/index.js +25 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +35 -9
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/login.d.ts +4 -0
- package/dist/commands/login.d.ts.map +1 -0
- package/dist/commands/login.js +56 -0
- package/dist/commands/login.js.map +1 -0
- package/dist/commands/logout.d.ts +4 -0
- package/dist/commands/logout.d.ts.map +1 -0
- package/dist/commands/logout.js +14 -0
- package/dist/commands/logout.js.map +1 -0
- package/dist/commands/update.d.ts +0 -2
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +19 -48
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/whoami.d.ts +4 -0
- package/dist/commands/whoami.d.ts.map +1 -0
- package/dist/commands/whoami.js +42 -0
- package/dist/commands/whoami.js.map +1 -0
- package/dist/core/auth-store.d.ts +10 -0
- package/dist/core/auth-store.d.ts.map +1 -0
- package/dist/core/auth-store.js +39 -0
- package/dist/core/auth-store.js.map +1 -0
- package/dist/core/config.d.ts +0 -7
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +0 -128
- package/dist/core/config.js.map +1 -1
- package/dist/core/registry.d.ts +18 -0
- package/dist/core/registry.d.ts.map +1 -0
- package/dist/core/registry.js +94 -0
- package/dist/core/registry.js.map +1 -0
- package/package.json +7 -1
- package/AGENTS.md +0 -123
- package/CLAUDE.md +0 -17
- package/build.js +0 -20
- package/convex-setup.md +0 -403
- package/dist/core/prompt-templates.d.ts +0 -23
- package/dist/core/prompt-templates.d.ts.map +0 -1
- package/dist/core/prompt-templates.js +0 -3485
- package/dist/core/prompt-templates.js.map +0 -1
- package/prompt/ai-humanizer.md +0 -45
- package/prompt/api-contract-generator.md +0 -234
- package/prompt/apply.md +0 -17
- package/prompt/archive.md +0 -21
- package/prompt/design-system.md +0 -210
- package/prompt/document-explainer.md +0 -149
- package/prompt/epic-generator.md +0 -198
- package/prompt/epic-single.md +0 -47
- package/prompt/erd-generator.md +0 -130
- package/prompt/fsd-generator.md +0 -157
- package/prompt/prd-agent-generator.md +0 -147
- package/prompt/prd-generator.md +0 -195
- package/prompt/product-brief.md +0 -289
- package/prompt/proposal.md +0 -22
- package/prompt/qa-test-scenario.md +0 -133
- package/prompt/skill-creator.md +0 -350
- package/prompt/story-generator.md +0 -278
- package/prompt/story-single.md +0 -70
- package/prompt/tdd-generator.md +0 -294
- package/prompt/tdd-lite-generator.md +0 -224
- package/prompt/wireframe-generator.md +0 -219
- package/skills/ai-context-generator/SKILL.md +0 -54
- package/skills/ai-context-generator/references/AGENTS.template.md +0 -83
- package/skills/ai-context-generator/references/CLAUDE.template.md +0 -39
- package/skills/ai-context-generator/references/behavioral-guidelines.md +0 -71
- package/skills/ai-context-generator/references/discovery-checklist.md +0 -40
- package/skills/ai-context-generator/references/examples/AGENTS.good.md +0 -103
- package/skills/ai-context-generator/references/extraction-checklist.md +0 -23
- package/skills/ai-context-generator/references/overlays/laravel.md +0 -44
- package/skills/ai-humanizer/SKILL.md +0 -50
- package/skills/api-contract-generator/SKILL.md +0 -243
- package/skills/apply/SKILL.md +0 -23
- package/skills/archive/SKILL.md +0 -27
- package/skills/cerebro/SKILL.md +0 -187
- package/skills/cerebro/references/agents.md +0 -213
- package/skills/code-review/SKILL.md +0 -373
- package/skills/code-review/assets/report-template-agent.md +0 -212
- package/skills/code-review/assets/report-template-compact.md +0 -81
- package/skills/code-review/assets/report-template-full.md +0 -264
- package/skills/code-review/assets/report-template-human.md +0 -168
- package/skills/code-review/references/universal-patterns.md +0 -495
- package/skills/design-md/README.md +0 -34
- package/skills/design-md/SKILL.md +0 -172
- package/skills/design-md/examples/DESIGN.md +0 -154
- package/skills/design-system/SKILL.md +0 -216
- package/skills/design-system-generator/SKILL.md +0 -324
- package/skills/design-system-generator/assets/design-system-template.md +0 -348
- package/skills/design-system-generator/references/extraction-patterns.md +0 -321
- package/skills/doc-builder/SKILL.md +0 -115
- package/skills/doc-builder/references/ui-patterns.md +0 -394
- package/skills/document-explainer/SKILL.md +0 -155
- package/skills/document-translator/SKILL.md +0 -58
- package/skills/enhance/SKILL.md +0 -47
- package/skills/enhance-prompt/README.md +0 -34
- package/skills/enhance-prompt/SKILL.md +0 -204
- package/skills/enhance-prompt/references/KEYWORDS.md +0 -114
- package/skills/epic-generator/SKILL.md +0 -204
- package/skills/epic-single/SKILL.md +0 -63
- package/skills/erd-generator/SKILL.md +0 -138
- package/skills/feature-planner/SKILL.md +0 -305
- package/skills/feature-planner/assets/implementation-plan-template.md +0 -85
- package/skills/frontend-design/LICENSE.txt +0 -177
- package/skills/frontend-design/SKILL.md +0 -42
- package/skills/fsd-generator/SKILL.md +0 -163
- package/skills/gamma-builder/SKILL.md +0 -134
- package/skills/laravel-code-review/SKILL.md +0 -383
- package/skills/laravel-code-review/assets/report-template-agent.md +0 -195
- package/skills/laravel-code-review/assets/report-template-compact.md +0 -79
- package/skills/laravel-code-review/assets/report-template-full.md +0 -253
- package/skills/laravel-code-review/assets/report-template-human.md +0 -159
- package/skills/laravel-code-review/references/laravel-patterns.md +0 -571
- package/skills/laravel-code-review/references/php84-features.md +0 -442
- package/skills/mcp-builder/LICENSE.txt +0 -202
- package/skills/mcp-builder/SKILL.md +0 -236
- package/skills/mcp-builder/reference/evaluation.md +0 -602
- package/skills/mcp-builder/reference/mcp_best_practices.md +0 -249
- package/skills/mcp-builder/reference/node_mcp_server.md +0 -970
- package/skills/mcp-builder/reference/python_mcp_server.md +0 -719
- package/skills/mcp-builder/scripts/connections.py +0 -151
- package/skills/mcp-builder/scripts/evaluation.py +0 -373
- package/skills/mcp-builder/scripts/example_evaluation.xml +0 -22
- package/skills/mcp-builder/scripts/requirements.txt +0 -2
- package/skills/meeting-notes/SKILL.md +0 -159
- package/skills/meeting-notes/evals/evals.json +0 -23
- package/skills/prd-agent-generator/SKILL.md +0 -132
- package/skills/prd-generator/SKILL.md +0 -211
- package/skills/product-brief/SKILL.md +0 -141
- package/skills/project-orchestrator/SKILL.md +0 -487
- package/skills/project-orchestrator/assets/caddy-vps-setup.md +0 -180
- package/skills/project-orchestrator/assets/plan-summary-template.md +0 -159
- package/skills/prompter-specs/SKILL.md +0 -115
- package/skills/prompter-workflow/SKILL.md +0 -166
- package/skills/prompter-workflow/evals/evals.json +0 -89
- package/skills/proposal/SKILL.md +0 -28
- package/skills/qa-test-scenario/SKILL.md +0 -149
- package/skills/skill-creator/SKILL.md +0 -173
- package/skills/sph-generator/SKILL.md +0 -488
- package/skills/story-generator/SKILL.md +0 -285
- package/skills/story-single/SKILL.md +0 -86
- package/skills/tdd-generator/SKILL.md +0 -300
- package/skills/tdd-lite-generator/SKILL.md +0 -230
- package/skills/ui-ux-pro/SKILL.md +0 -199
- package/skills/ui-ux-pro/assets/design-spec-template.md +0 -173
- package/skills/ui-ux-pro/references/component-patterns.md +0 -255
- package/skills/ui-ux-pro/references/design-principles.md +0 -167
- package/skills/wireframe-generator/SKILL.md +0 -227
- package/src/cli/index.ts +0 -223
- package/src/commands/archive.ts +0 -302
- package/src/commands/change.ts +0 -292
- package/src/commands/config.ts +0 -233
- package/src/commands/guide.ts +0 -50
- package/src/commands/init.ts +0 -597
- package/src/commands/list.ts +0 -194
- package/src/commands/show.ts +0 -138
- package/src/commands/spec.ts +0 -251
- package/src/commands/update.ts +0 -129
- package/src/commands/upgrade.ts +0 -30
- package/src/commands/validate.ts +0 -326
- package/src/core/artifact-graph/graph.ts +0 -167
- package/src/core/artifact-graph/index.ts +0 -44
- package/src/core/artifact-graph/instruction-loader.ts +0 -302
- package/src/core/artifact-graph/resolver.ts +0 -226
- package/src/core/artifact-graph/schema.ts +0 -124
- package/src/core/artifact-graph/state.ts +0 -64
- package/src/core/artifact-graph/types.ts +0 -65
- package/src/core/completions/command-registry.ts +0 -382
- package/src/core/completions/completion-provider.ts +0 -128
- package/src/core/completions/generators/bash-generator.ts +0 -191
- package/src/core/completions/generators/fish-generator.ts +0 -188
- package/src/core/completions/generators/powershell-generator.ts +0 -223
- package/src/core/completions/generators/zsh-generator.ts +0 -281
- package/src/core/completions/templates/bash-templates.ts +0 -24
- package/src/core/completions/templates/fish-templates.ts +0 -40
- package/src/core/completions/templates/powershell-templates.ts +0 -25
- package/src/core/completions/templates/zsh-templates.ts +0 -36
- package/src/core/completions/types.ts +0 -90
- package/src/core/config-schema.ts +0 -230
- package/src/core/config.ts +0 -181
- package/src/core/configurators/slash/antigravity.ts +0 -10
- package/src/core/configurators/slash/base.ts +0 -109
- package/src/core/configurators/slash/claude.ts +0 -10
- package/src/core/configurators/slash/codex.ts +0 -10
- package/src/core/configurators/slash/droid.ts +0 -10
- package/src/core/configurators/slash/forge.ts +0 -10
- package/src/core/configurators/slash/github-copilot.ts +0 -10
- package/src/core/configurators/slash/index.ts +0 -10
- package/src/core/configurators/slash/kilocode.ts +0 -10
- package/src/core/configurators/slash/opencode.ts +0 -10
- package/src/core/configurators/slash/registry.ts +0 -51
- package/src/core/converters/json-converter.ts +0 -62
- package/src/core/global-config.ts +0 -136
- package/src/core/parsers/change-parser.ts +0 -234
- package/src/core/parsers/markdown-parser.ts +0 -237
- package/src/core/parsers/requirement-blocks.ts +0 -234
- package/src/core/prompt-templates.ts +0 -3504
- package/src/core/schemas/base.schema.ts +0 -20
- package/src/core/schemas/change.schema.ts +0 -42
- package/src/core/schemas/index.ts +0 -20
- package/src/core/schemas/spec.schema.ts +0 -17
- package/src/core/skill-discovery.ts +0 -68
- package/src/core/specs-apply.ts +0 -483
- package/src/core/styles/palette.ts +0 -8
- package/src/core/templates/agents-template.ts +0 -459
- package/src/core/templates/claude-template.ts +0 -2
- package/src/core/templates/index.ts +0 -3
- package/src/core/templates/project-template.ts +0 -32
- package/src/core/validation/constants.ts +0 -48
- package/src/core/validation/types.ts +0 -19
- package/src/core/validation/validator.ts +0 -449
- package/src/core/view.ts +0 -219
- package/src/index.ts +0 -1
- package/src/utils/change-metadata.ts +0 -171
- package/src/utils/change-utils.ts +0 -131
- package/src/utils/file-system.ts +0 -252
- package/src/utils/index.ts +0 -12
- package/src/utils/interactive.ts +0 -29
- package/src/utils/item-discovery.ts +0 -66
- package/src/utils/match.ts +0 -26
- package/src/utils/shell-detection.ts +0 -62
- package/src/utils/task-progress.ts +0 -43
- package/tsconfig.json +0 -28
|
@@ -1,149 +0,0 @@
|
|
|
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
|
|
@@ -1,173 +0,0 @@
|
|
|
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
|