Prompt Engineering Specialist - Multi-Framework Enhancement with DEPTH Processing
Transforms vague or basic inputs into highly effective, structured AI prompts. Provides 7 text frameworks with automatic framework selection and CLEAR quality scoring.
Core Principle: Clarity, logic, expression, and reliability through structured methodology.
1. WHEN TO USE
Activation Triggers
Use when:
- Enhancing or improving an AI prompt for any purpose
- Evaluating prompt quality with CLEAR scoring
- Selecting the right prompt framework for a given task
- Transforming vague requests into structured, effective prompts
Keyword Triggers:
$improve, $text, $short, $refine, $json, $yaml
$raw (skip DEPTH, fast pass-through)
- "improve my prompt", "enhance this prompt", "prompt engineering"
- "create a prompt for", "optimize this prompt"
Use Cases
Text Prompt Enhancement
Transform vague requests into structured prompts using RCAF, COSTAR, RACE, CIDI, TIDD-EC, CRISPE, or CRAFT frameworks with CLEAR scoring (40+/50 threshold).
When NOT to Use
Skip this skill when:
- Writing code or debugging (use sk-code skills instead)
- Creating documentation (use sk-doc instead)
- Simple text editing without prompt structure needs
- Direct API calls that do not need prompt optimization
2. SMART ROUTING
Primary Detection Signal
Mode detection from command prefix or content keywords:
# Command prefix detection (highest priority)
[[ "$INPUT" == \$text* ]] && MODE="TEXT"
[[ "$INPUT" == \$improve* ]] && MODE="IMPROVE"
[[ "$INPUT" == \$refine* ]] && MODE="REFINE"
[[ "$INPUT" == \$short* ]] && MODE="SHORT"
[[ "$INPUT" == \$json* ]] && MODE="JSON"
[[ "$INPUT" == \$yaml* ]] && MODE="YAML"
[[ "$INPUT" == \$raw* ]] && MODE="RAW"
Phase Detection
USER REQUEST
|
+- STEP 0: Detect mode ($command or keyword signals)
+- STEP 1: Score intents (top-2 when ambiguity is small)
+- Phase 1: Framework Selection (8 frameworks evaluated)
+- Phase 2: DEPTH Processing (3-10 rounds based on mode)
+- Phase 3: Scoring & Validation (CLEAR)
+- Phase 4: Output Delivery (formatted prompt)
Resource Domains
The router discovers markdown resources recursively from references/ and assets/ and applies intent scoring.
references/depth_framework.md - DEPTH methodology, RICCE integration
references/patterns_evaluation.md - 10 frameworks, CLEAR scoring
references/interactive_mode.md - Conversation flow, state management
references/format_guides.md - Markdown/JSON/YAML format specs (consolidated)
assets/format_guide_markdown.md - Markdown format deep-dive
assets/format_guide_json.md - JSON format deep-dive
assets/format_guide_yaml.md - YAML format deep-dive
Resource Loading Levels
| Level |
When to Load |
Resources |
| ALWAYS |
Every invocation |
SKILL.md (this file) |
| CONDITIONAL |
If text/improve/refine mode |
references/depth_framework.md, references/patterns_evaluation.md |
| CONDITIONAL |
If interactive/ambiguous |
references/interactive_mode.md |
| ON_DEMAND |
If format specified |
references/format_guides.md |
Smart Router Pseudocode
from pathlib import Path
SKILL_ROOT = Path(__file__).resolve().parent
RESOURCE_BASES = (SKILL_ROOT / "references",)
DEFAULT_RESOURCE = "references/depth_framework.md"
INTENT_MODEL = {
"TEXT_ENHANCE": {"keywords": [("improve", 4), ("enhance", 4), ("prompt", 3), ("text", 3), ("refine", 4)]},
"FRAMEWORK": {"keywords": [("framework", 4), ("rcaf", 5), ("costar", 5), ("tidd-ec", 5), ("scoring", 3)]},
"FORMAT": {"keywords": [("json", 4), ("yaml", 4), ("markdown", 3), ("format", 3)]},
}
RESOURCE_MAP = {
"TEXT_ENHANCE": ["references/depth_framework.md", "references/patterns_evaluation.md"],
"FRAMEWORK": ["references/patterns_evaluation.md"],
"FORMAT": ["references/format_guides.md"],
}
AMBIGUITY_DELTA = 1
def _guard_in_skill(relative_path: str) -> str:
resolved = (SKILL_ROOT / relative_path).resolve()
resolved.relative_to(SKILL_ROOT)
if resolved.suffix.lower() != ".md":
raise ValueError(f"Only markdown resources are routable: {relative_path}")
return resolved.relative_to(SKILL_ROOT).as_posix()
def discover_markdown_resources() -> set[str]:
docs = []
for base in RESOURCE_BASES:
if base.exists():
docs.extend(path for path in base.rglob("*.md") if path.is_file())
return {doc.relative_to(SKILL_ROOT).as_posix() for doc in docs}
def classify_intents(user_request):
text = (user_request or "").lower()
scores = {intent: 0 for intent in INTENT_MODEL}
for intent, cfg in INTENT_MODEL.items():
for keyword, weight in cfg["keywords"]:
if keyword in text:
scores[intent] += weight
ranked = sorted(scores.items(), key=lambda pair: pair[1], reverse=True)
primary, primary_score = ranked[0]
if primary_score == 0:
return ("TEXT_ENHANCE", None, scores)
secondary, secondary_score = ranked[1]
if secondary_score > 0 and (primary_score - secondary_score) <= AMBIGUITY_DELTA:
return (primary, secondary, scores)
return (primary, None, scores)
def route_prompt_improver_resources(user_request):
inventory = discover_markdown_resources()
primary, secondary, scores = classify_intents(user_request)
intents = [primary] + ([secondary] if secondary else [])
loaded = []
seen = set()
def load_if_available(relative_path: str):
guarded = _guard_in_skill(relative_path)
if guarded in inventory and guarded not in seen:
load(guarded)
loaded.append(guarded)
seen.add(guarded)
load_if_available(DEFAULT_RESOURCE)
for intent in intents:
for relative_path in RESOURCE_MAP.get(intent, []):
load_if_available(relative_path)
return {"intents": intents, "intent_scores": scores, "resources": loaded}
3. HOW IT WORKS
Enhancement Pipeline
Every prompt enhancement follows this pipeline:
STEP 1: Mode Detection
├─ Command prefix check ($text, $improve, $refine, $short, etc.)
├─ Keyword signal analysis (>=80% confidence = auto-route)
└─ Ambiguous? Ask ONE comprehensive question
↓
STEP 2: Framework Selection
├─ Evaluate 8+ frameworks against request characteristics
├─ Score: complexity, urgency, audience, creativity, precision
└─ Select primary framework + alternative
↓
STEP 3: DEPTH Processing (5-10 rounds)
├─ Discover: 5 perspectives, assumption audit, RICCE Role & Context
├─ Engineer: Framework application, RICCE Constraints & Instructions
├─ Prototype: Template build, RICCE validation
├─ Test: Scoring (CLEAR), quality gates
└─ Harmonize: Final polish, RICCE completeness
↓
STEP 4: Scoring & Delivery
├─ Apply context-appropriate scoring system
├─ Verify threshold met (CLEAR 40+/50)
└─ Deliver enhanced prompt with transparency report
See the Smart Routing pseudocode (Section 2) for the complete routing logic.
Operating Modes
| Mode |
Command |
DEPTH Rounds |
Scoring |
Use Case |
| Interactive |
(default) |
10 |
CLEAR |
Guided enhancement |
| Text |
$text |
10 |
CLEAR |
Standard text prompt |
| Short |
$short |
3 |
CLEAR |
Quick refinement |
| Improve |
$improve |
10 |
CLEAR |
Standard enhancement |
| Refine |
$refine |
10 |
CLEAR |
Maximum optimization |
| JSON |
$json |
10 |
CLEAR |
API-ready format |
| YAML |
$yaml |
10 |
CLEAR |
Config format |
| Raw |
$raw |
0 |
None |
Skip DEPTH |
Framework Selection Matrix
| Complexity |
Primary Need |
Framework |
Success Rate |
| 1-3 |
Speed |
RACE |
88% |
| 1-4 |
Clarity |
RCAF |
92% |
| 3-6 |
Audience |
COSTAR |
94% |
| 4-6 |
Instructions |
CIDI |
90% |
| 5-7 |
Creativity |
CRISPE |
87% |
| 6-8 |
Precision |
TIDD-EC |
93% |
| 7-10 |
Comprehensive |
CRAFT |
91% |
| See patterns_evaluation.md for complete framework details. |
|
|
|
| See depth_framework.md for the DEPTH methodology. |
|
|
|
Scoring Systems
CLEAR (50-point scale): Correctness (10) + Logic (10) + Expression (15) + Arrangement (10) + Reusability (5). Threshold: 40+.
4. RULES
✅ ALWAYS
ALWAYS ask ONE comprehensive question before processing
- Gather: What needs enhancement? Use case/goal? Requirements?
- Exception:
$raw mode skips questions entirely
ALWAYS apply DEPTH processing for the detected mode
- 10 rounds for text modes, 3 for $short, 0 for $raw
ALWAYS enforce minimum 3 perspectives during DEPTH Discover phase
- Target 5 perspectives; 3 is the blocking minimum
- Perspectives: Prompt Engineering, AI Interpretation, User Clarity, Framework Selection, Token Efficiency
ALWAYS validate with RICCE before delivery
- Role, Instructions, Context, Constraints, Examples must be present or justified
ALWAYS apply scoring and verify threshold met
ALWAYS provide a transparency report after delivering the enhanced prompt
- Framework selected, DEPTH rounds applied, score breakdown, assumptions flagged
❌ NEVER
NEVER answer own questions
- Wait for user response before proceeding with enhancement
NEVER skip framework evaluation
- Even for simple prompts, score at least 3 frameworks before selecting
NEVER deliver without scoring
- Every enhanced prompt must have a CLEAR score (except $raw)
NEVER use second-person voice in enhanced prompts
- Use imperative or third-person form in the output
NEVER exceed context with full reference loading
- Load only the references needed for the detected mode
⚠️ ESCALATE IF
ESCALATE IF mode detection confidence < 50%
- Ask: "What type of prompt are you creating? Can you describe the use case?"
ESCALATE IF CLEAR score below threshold after DEPTH
- Suggest: "Score is below target. Options: A) Additional refinement round B) Switch framework C) Accept as-is"
ESCALATE IF request conflicts with prompt engineering scope
- Redirect: "This appears to be a [code/doc/debug] task. Consider using [sk-code/sk-doc] instead."
5. REFERENCES
Core References
Mode-Specific References
Format References
- format_guides.md - Markdown, JSON, YAML format specifications and optimization (consolidated)
Asset Files
- format_guide_markdown.md - Markdown format deep-dive: fundamentals, delivery standards, RCAF/CRAFT structures, advanced patterns, validation, best practices
- format_guide_json.md - JSON format deep-dive: fundamentals, data types, delivery standards, RCAF/CRAFT structures, advanced patterns, validation, best practices
- format_guide_yaml.md - YAML format deep-dive: fundamentals, data types, delivery standards, RCAF/CRAFT structures, advanced patterns, templates, validation, best practices
Reference Loading Notes
- Load only references needed for current intent
- Smart Routing (Section 2) is the single authority for loading rules
- SKILL.md (this file) is always loaded; conditionally load mode-specific references
6. SUCCESS CRITERIA
Enhancement Complete When
- ✅ Mode detected and framework selected with reasoning
- ✅ DEPTH rounds completed per mode specification
- ✅ Scoring applied and threshold verified
- ✅ RICCE validation passed
- ✅ Enhanced prompt delivered with transparency report
- ✅ User can iterate or accept
Quality Targets
- CLEAR Score: 40+ out of 50
- Framework Selection Accuracy: Match task characteristics to framework with >85% alignment
7. INTEGRATION POINTS
Framework Integration
This skill operates within the behavioral framework defined in AGENTS.md.
Key integrations:
- Gate 2: Skill routing via
skill_advisor.py with prompt-related intent boosters
- Tool Routing: Per AGENTS.md Section 6 decision tree
- Memory: Context preserved via Spec Kit Memory MCP
Related Skills
| Skill |
Integration |
| sk-doc |
Documentation outputs from prompt engineering may use sk-doc for formatting |
| sk-doc-visual |
Visual HTML outputs from prompt documentation may route to sk-doc-visual |
| sk-code--web |
Prompts for web development contexts may co-invoke with sk-code--web |
Tool Usage Guidelines
- Read: Load reference files from references/ directory
- Write: Output enhanced prompts to user-specified location
- Glob: Discover available reference files in skill directory
- Bash: Run validation scripts if needed
8. RELATED RESOURCES
Reference Files
Related Skills
sk-doc - Documentation quality and component creation
sk-doc-visual - Visual HTML outputs and interactive diagrams
1---2name: sk-prompt-improver3description: Prompt engineering specialist that transforms vague requests into structured, scored AI prompts using 7 proven frameworks (RCAF, COSTAR, RACE, CIDI, TIDD-EC, CRISPE, CRAFT), DEPTH thinking methodology, and CLEAR scoring across text modes.4---56<!-- Keywords: prompt-engineering, prompt-improvement, DEPTH, RICCE, CLEAR-scoring, framework-selection, RCAF, COSTAR, CRAFT, TIDD-EC, CRISPE -->78# Prompt Engineering Specialist - Multi-Framework Enhancement with DEPTH Processing910Transforms vague or basic inputs into highly effective, structured AI prompts. Provides 7 text frameworks with automatic framework selection and CLEAR quality scoring.1112**Core Principle**: Clarity, logic, expression, and reliability through structured methodology.1314---1516<!-- ANCHOR:when-to-use -->17## 1. WHEN TO USE1819### Activation Triggers2021**Use when**:22- Enhancing or improving an AI prompt for any purpose23- Evaluating prompt quality with CLEAR scoring24- Selecting the right prompt framework for a given task25- Transforming vague requests into structured, effective prompts2627**Keyword Triggers**:28- `$improve`, `$text`, `$short`, `$refine`, `$json`, `$yaml`29- `$raw` (skip DEPTH, fast pass-through)30- "improve my prompt", "enhance this prompt", "prompt engineering"31- "create a prompt for", "optimize this prompt"3233### Use Cases3435#### Text Prompt Enhancement36Transform vague requests into structured prompts using RCAF, COSTAR, RACE, CIDI, TIDD-EC, CRISPE, or CRAFT frameworks with CLEAR scoring (40+/50 threshold).3738### When NOT to Use3940**Skip this skill when:**41- Writing code or debugging (use sk-code skills instead)42- Creating documentation (use sk-doc instead)43- Simple text editing without prompt structure needs44- Direct API calls that do not need prompt optimization4546---4748<!-- /ANCHOR:when-to-use -->49<!-- ANCHOR:smart-routing -->50## 2. SMART ROUTING5152### Primary Detection Signal5354Mode detection from command prefix or content keywords:5556```bash57# Command prefix detection (highest priority)58[[ "$INPUT" == \$text* ]] && MODE="TEXT"59[[ "$INPUT" == \$improve* ]] && MODE="IMPROVE"60[[ "$INPUT" == \$refine* ]] && MODE="REFINE"61[[ "$INPUT" == \$short* ]] && MODE="SHORT"62[[ "$INPUT" == \$json* ]] && MODE="JSON"63[[ "$INPUT" == \$yaml* ]] && MODE="YAML"64[[ "$INPUT" == \$raw* ]] && MODE="RAW"65```6667### Phase Detection6869```text70USER REQUEST71 |72 +- STEP 0: Detect mode ($command or keyword signals)73 +- STEP 1: Score intents (top-2 when ambiguity is small)74 +- Phase 1: Framework Selection (8 frameworks evaluated)75 +- Phase 2: DEPTH Processing (3-10 rounds based on mode)76 +- Phase 3: Scoring & Validation (CLEAR)77 +- Phase 4: Output Delivery (formatted prompt)78```7980### Resource Domains8182The router discovers markdown resources recursively from `references/` and `assets/` and applies intent scoring.8384```text85references/depth_framework.md - DEPTH methodology, RICCE integration86references/patterns_evaluation.md - 10 frameworks, CLEAR scoring87references/interactive_mode.md - Conversation flow, state management88references/format_guides.md - Markdown/JSON/YAML format specs (consolidated)89assets/format_guide_markdown.md - Markdown format deep-dive90assets/format_guide_json.md - JSON format deep-dive91assets/format_guide_yaml.md - YAML format deep-dive92```9394### Resource Loading Levels9596| Level | When to Load | Resources |97|-------|-------------|-----------|98| ALWAYS | Every invocation | SKILL.md (this file) |99| CONDITIONAL | If text/improve/refine mode | references/depth_framework.md, references/patterns_evaluation.md |100| CONDITIONAL | If interactive/ambiguous | references/interactive_mode.md |101| ON_DEMAND | If format specified | references/format_guides.md |102103### Smart Router Pseudocode104105```python106from pathlib import Path107108SKILL_ROOT = Path(__file__).resolve().parent109RESOURCE_BASES = (SKILL_ROOT / "references",)110DEFAULT_RESOURCE = "references/depth_framework.md"111112INTENT_MODEL = {113 "TEXT_ENHANCE": {"keywords": [("improve", 4), ("enhance", 4), ("prompt", 3), ("text", 3), ("refine", 4)]},114 "FRAMEWORK": {"keywords": [("framework", 4), ("rcaf", 5), ("costar", 5), ("tidd-ec", 5), ("scoring", 3)]},115 "FORMAT": {"keywords": [("json", 4), ("yaml", 4), ("markdown", 3), ("format", 3)]},116}117118RESOURCE_MAP = {119 "TEXT_ENHANCE": ["references/depth_framework.md", "references/patterns_evaluation.md"],120 "FRAMEWORK": ["references/patterns_evaluation.md"],121 "FORMAT": ["references/format_guides.md"],122}123124AMBIGUITY_DELTA = 1125126def _guard_in_skill(relative_path: str) -> str:127 resolved = (SKILL_ROOT / relative_path).resolve()128 resolved.relative_to(SKILL_ROOT)129 if resolved.suffix.lower() != ".md":130 raise ValueError(f"Only markdown resources are routable: {relative_path}")131 return resolved.relative_to(SKILL_ROOT).as_posix()132133def discover_markdown_resources() -> set[str]:134 docs = []135 for base in RESOURCE_BASES:136 if base.exists():137 docs.extend(path for path in base.rglob("*.md") if path.is_file())138 return {doc.relative_to(SKILL_ROOT).as_posix() for doc in docs}139140def classify_intents(user_request):141 text = (user_request or "").lower()142 scores = {intent: 0 for intent in INTENT_MODEL}143 for intent, cfg in INTENT_MODEL.items():144 for keyword, weight in cfg["keywords"]:145 if keyword in text:146 scores[intent] += weight147 ranked = sorted(scores.items(), key=lambda pair: pair[1], reverse=True)148 primary, primary_score = ranked[0]149 if primary_score == 0:150 return ("TEXT_ENHANCE", None, scores)151 secondary, secondary_score = ranked[1]152 if secondary_score > 0 and (primary_score - secondary_score) <= AMBIGUITY_DELTA:153 return (primary, secondary, scores)154 return (primary, None, scores)155156def route_prompt_improver_resources(user_request):157 inventory = discover_markdown_resources()158 primary, secondary, scores = classify_intents(user_request)159 intents = [primary] + ([secondary] if secondary else [])160 loaded = []161 seen = set()162163 def load_if_available(relative_path: str):164 guarded = _guard_in_skill(relative_path)165 if guarded in inventory and guarded not in seen:166 load(guarded)167 loaded.append(guarded)168 seen.add(guarded)169170 load_if_available(DEFAULT_RESOURCE)171 for intent in intents:172 for relative_path in RESOURCE_MAP.get(intent, []):173 load_if_available(relative_path)174 return {"intents": intents, "intent_scores": scores, "resources": loaded}175```176177---178179<!-- /ANCHOR:smart-routing -->180<!-- ANCHOR:how-it-works -->181## 3. HOW IT WORKS182183### Enhancement Pipeline184185Every prompt enhancement follows this pipeline:186187```188STEP 1: Mode Detection189 ├─ Command prefix check ($text, $improve, $refine, $short, etc.)190 ├─ Keyword signal analysis (>=80% confidence = auto-route)191 └─ Ambiguous? Ask ONE comprehensive question192 ↓193STEP 2: Framework Selection194 ├─ Evaluate 8+ frameworks against request characteristics195 ├─ Score: complexity, urgency, audience, creativity, precision196 └─ Select primary framework + alternative197 ↓198STEP 3: DEPTH Processing (5-10 rounds)199 ├─ Discover: 5 perspectives, assumption audit, RICCE Role & Context200 ├─ Engineer: Framework application, RICCE Constraints & Instructions201 ├─ Prototype: Template build, RICCE validation202 ├─ Test: Scoring (CLEAR), quality gates203 └─ Harmonize: Final polish, RICCE completeness204 ↓205STEP 4: Scoring & Delivery206 ├─ Apply context-appropriate scoring system207 ├─ Verify threshold met (CLEAR 40+/50)208 └─ Deliver enhanced prompt with transparency report209```210211See the Smart Routing pseudocode (Section 2) for the complete routing logic.212213### Operating Modes214215| Mode | Command | DEPTH Rounds | Scoring | Use Case |216|------|---------|-------------|---------|----------|217| Interactive | (default) | 10 | CLEAR | Guided enhancement |218| Text | `$text` | 10 | CLEAR | Standard text prompt |219| Short | `$short` | 3 | CLEAR | Quick refinement |220| Improve | `$improve` | 10 | CLEAR | Standard enhancement |221| Refine | `$refine` | 10 | CLEAR | Maximum optimization |222| JSON | `$json` | 10 | CLEAR | API-ready format |223| YAML | `$yaml` | 10 | CLEAR | Config format |224| Raw | `$raw` | 0 | None | Skip DEPTH |225226### Framework Selection Matrix227228| Complexity | Primary Need | Framework | Success Rate |229|-----------|-------------|-----------|-------------|230| 1-3 | Speed | RACE | 88% |231| 1-4 | Clarity | RCAF | 92% |232| 3-6 | Audience | COSTAR | 94% |233| 4-6 | Instructions | CIDI | 90% |234| 5-7 | Creativity | CRISPE | 87% |235| 6-8 | Precision | TIDD-EC | 93% |236| 7-10 | Comprehensive | CRAFT | 91% |237See [patterns_evaluation.md](./references/patterns_evaluation.md) for complete framework details.238See [depth_framework.md](./references/depth_framework.md) for the DEPTH methodology.239240### Scoring Systems241242**CLEAR** (50-point scale): Correctness (10) + Logic (10) + Expression (15) + Arrangement (10) + Reusability (5). Threshold: 40+.243244---245246<!-- /ANCHOR:how-it-works -->247<!-- ANCHOR:rules -->248## 4. RULES249250### ✅ ALWAYS2512521. **ALWAYS ask ONE comprehensive question** before processing253 - Gather: What needs enhancement? Use case/goal? Requirements?254 - Exception: `$raw` mode skips questions entirely2552562. **ALWAYS apply DEPTH processing** for the detected mode257 - 10 rounds for text modes, 3 for $short, 0 for $raw2582593. **ALWAYS enforce minimum 3 perspectives** during DEPTH Discover phase260 - Target 5 perspectives; 3 is the blocking minimum261 - Perspectives: Prompt Engineering, AI Interpretation, User Clarity, Framework Selection, Token Efficiency2622634. **ALWAYS validate with RICCE** before delivery264 - Role, Instructions, Context, Constraints, Examples must be present or justified2652665. **ALWAYS apply scoring** and verify threshold met267 - CLEAR 40+/502682696. **ALWAYS provide a transparency report** after delivering the enhanced prompt270 - Framework selected, DEPTH rounds applied, score breakdown, assumptions flagged271272### ❌ NEVER2732741. **NEVER answer own questions**275 - Wait for user response before proceeding with enhancement2762772. **NEVER skip framework evaluation**278 - Even for simple prompts, score at least 3 frameworks before selecting2792803. **NEVER deliver without scoring**281 - Every enhanced prompt must have a CLEAR score (except $raw)2822834. **NEVER use second-person voice in enhanced prompts**284 - Use imperative or third-person form in the output2852865. **NEVER exceed context with full reference loading**287 - Load only the references needed for the detected mode288289### ⚠️ ESCALATE IF2902911. **ESCALATE IF mode detection confidence < 50%**292 - Ask: "What type of prompt are you creating? Can you describe the use case?"2932942. **ESCALATE IF CLEAR score below threshold after DEPTH**295 - Suggest: "Score is below target. Options: A) Additional refinement round B) Switch framework C) Accept as-is"2962973. **ESCALATE IF request conflicts with prompt engineering scope**298 - Redirect: "This appears to be a [code/doc/debug] task. Consider using [sk-code/sk-doc] instead."299300---301302<!-- /ANCHOR:rules -->303<!-- ANCHOR:references -->304## 5. REFERENCES305306### Core References307308- [depth_framework.md](./references/depth_framework.md) - DEPTH methodology (Discover, Engineer, Prototype, Test, Harmonize), RICCE integration309- [patterns_evaluation.md](./references/patterns_evaluation.md) - 10 framework definitions, CLEAR scoring, design directions310311### Mode-Specific References312313- [interactive_mode.md](./references/interactive_mode.md) - Conversation flow, state management, smart routing314315### Format References316317- [format_guides.md](./references/format_guides.md) - Markdown, JSON, YAML format specifications and optimization (consolidated)318319### Asset Files320321- [format_guide_markdown.md](./assets/format_guide_markdown.md) - Markdown format deep-dive: fundamentals, delivery standards, RCAF/CRAFT structures, advanced patterns, validation, best practices322- [format_guide_json.md](./assets/format_guide_json.md) - JSON format deep-dive: fundamentals, data types, delivery standards, RCAF/CRAFT structures, advanced patterns, validation, best practices323- [format_guide_yaml.md](./assets/format_guide_yaml.md) - YAML format deep-dive: fundamentals, data types, delivery standards, RCAF/CRAFT structures, advanced patterns, templates, validation, best practices324325### Reference Loading Notes326327- Load only references needed for current intent328- Smart Routing (Section 2) is the single authority for loading rules329- SKILL.md (this file) is always loaded; conditionally load mode-specific references330331---332333<!-- /ANCHOR:references -->334<!-- ANCHOR:success-criteria -->335## 6. SUCCESS CRITERIA336337### Enhancement Complete When338339- ✅ Mode detected and framework selected with reasoning340- ✅ DEPTH rounds completed per mode specification341- ✅ Scoring applied and threshold verified342- ✅ RICCE validation passed343- ✅ Enhanced prompt delivered with transparency report344- ✅ User can iterate or accept345346### Quality Targets347348- **CLEAR Score**: 40+ out of 50349- **Framework Selection Accuracy**: Match task characteristics to framework with >85% alignment350351---352353<!-- /ANCHOR:success-criteria -->354<!-- ANCHOR:integration-points -->355## 7. INTEGRATION POINTS356357### Framework Integration358359This skill operates within the behavioral framework defined in AGENTS.md.360361Key integrations:362- **Gate 2**: Skill routing via `skill_advisor.py` with prompt-related intent boosters363- **Tool Routing**: Per AGENTS.md Section 6 decision tree364- **Memory**: Context preserved via Spec Kit Memory MCP365366### Related Skills367368| Skill | Integration |369|-------|-------------|370| **sk-doc** | Documentation outputs from prompt engineering may use sk-doc for formatting |371| **sk-doc-visual** | Visual HTML outputs from prompt documentation may route to sk-doc-visual |372| **sk-code--web** | Prompts for web development contexts may co-invoke with sk-code--web |373374### Tool Usage Guidelines375376- **Read**: Load reference files from references/ directory377- **Write**: Output enhanced prompts to user-specified location378- **Glob**: Discover available reference files in skill directory379- **Bash**: Run validation scripts if needed380381---382383<!-- /ANCHOR:integration-points -->384<!-- ANCHOR:related-resources -->385## 8. RELATED RESOURCES386387### Reference Files388- [depth_framework.md](./references/depth_framework.md) - DEPTH thinking methodology389- [patterns_evaluation.md](./references/patterns_evaluation.md) - Framework library and scoring390391### Related Skills392- `sk-doc` - Documentation quality and component creation393- `sk-doc-visual` - Visual HTML outputs and interactive diagrams394395---396397<!-- /ANCHOR:related-resources -->