.wai/resources/agent-config/skills/extract-prompt/SKILL.md
Analyze a conversation and extract a reusable prompt that captures the successful pattern. Generalizes specific instructions into templates.
npx skillsauth add charly-vibes/wai extract-promptInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Analyze this conversation and extract a reusable prompt that captures the successful pattern.
Review the entire conversation and identify:
What was the goal?
What made it successful?
What was the key pattern?
Identify the core pattern:
The problem it solves: [General class of problems this addresses]
The approach: [The method or structure that worked]
Critical elements:
Optional elements:
Convert the specific conversation into general instructions:
From specific: "Read src/auth/oauth.ts and explain how it works"
To general: "Read [FILE] and explain how it works"
From specific: "Don't suggest improvements to the authentication system"
To general: "Document what exists without suggesting improvements"
Create a structured prompt document following the template:
---
title: [Descriptive Title]
type: prompt
tags: [tag1, tag2, tag3]
tools: [applicable-tools]
status: draft
created: [YYYY-MM-DD]
version: 1.0.0
related: []
source: extracted-from-conversation
---
# [Title]
## Applicability
[When is this prompt appropriate? What problems does it solve?]
**Critical for:**
- [Use case 1]
- [Use case 2]
**Do NOT use for:**
- [Anti-pattern 1]
- [Anti-pattern 2]
## The Prompt
\```
[The actual prompt text, generalized and structured]
[Include key sections like:]
## Critical Rules
[Non-negotiable guidelines]
## Process
[Step-by-step workflow if applicable]
### Step 1: [Name]
[Instructions]
### Step 2: [Name]
[Instructions]
## Guidelines
[Best practices and recommendations]
\```
## Usage Scenario
**Context:**
[Describe a concrete scenario]
**Input:**
\```
[What you would actually say to the AI]
\```
**Expected Output:**
\```
[What the AI should produce]
\```
## Success Criteria
[What success looks like]
- [Expected outcome 1]
- [Expected outcome 2]
## Variations
[Different versions for different contexts]
## Related Links
[Links to sources or related information]
## Additional Context
[Caveats or tips]
## Changelog
- 1.0.0 ([YYYY-MM-DD]): Initial extraction from conversation
Include specific details:
What we did: [Summary of this specific conversation]
What worked well: [Specific things that led to success]
What could be generalized: [Parts that apply to similar situations]
Example from this conversation: [Use this conversation as the example in the prompt]
Following naming conventions:
For workflows (multi-step):
prompt-workflow-[descriptive-slug].md
For tasks (single focused task):
prompt-task-[descriptive-slug].md
For system prompts:
prompt-system-[descriptive-slug].md
Type: prompt Status: draft (needs testing) Tags: [Extract 3-5 relevant tags] Tools: [Which tools would this work with?]
I've extracted a reusable prompt from our conversation.
**Pattern identified:** [Name of pattern]
**Key insight:** [What made this work]
**Proposed filename:** content/prompt-[type]-[slug].md
**Draft prompt:**
[Show the structured prompt document]
This prompt could be useful for [use cases].
Shall I:
1. Save this prompt to the content/ directory
2. Make adjustments first
3. Test it in a new conversation
testing
Compare original and distilled prompts to verify the distillation is faithful and lossless. Checks completeness, accuracy, and appropriate conciseness.
development
Implement features following Test-Driven Development methodology. Red-Green-Refactor cycle with phased approach and verification at each step.
development
Orchestrate multi-agent code review with three waves - parallel analysis, cross-validation, and convergence check. Simulates specialist reviewers and synthesizes findings.
development
Apply Steve Yegge's Rule of 5 iterative review to any artifact - code, plans, research, issues, specs, or documents. Five stages from draft through excellence.