skills/accelint-prompt-manager/SKILL.md
Use when users provide vague, underspecified, or unclear requests where they need help defining WHAT they actually want - across ANY domain (writing, analysis, code, documentation, proposals, reports, presentations, creative work). Trigger aggressively when users express VAGUE GOALS ("make this better", "improve our X", "figure out what to include", "I don't know where to start", "kinda lost on what to do", "not sure what this means"), UNDEFINED SUCCESS ("should look professional", "explain this clearly", "make it convincing", "whatever works best", missing constraints/audience/format), COMMUNICATION UNCLEAR ("how do I explain/communicate this", "my team gets confused when I describe it", "help me figure out what to ask about X"), AMBIGUOUS REQUIREMENTS ("analyze the data" without saying what to look for, "improve documentation" without saying how, "make it more robust" without defining robustness, any request with multiple valid interpretations), or META-PROMPTING ("optimize this prompt", "improve my prompt", "make this clearer", "review my instructions", learning about prompt frameworks like CO-STAR/RISEN/RODES, understanding what makes prompts effective). Trigger for non-technical users and ANY situation where the request needs refinement, structure, or clarification before execution can begin. When in doubt about whether a request is clear enough - trigger.
npx skillsauth add gohypergiant/agent-skills accelint-prompt-managerInstall 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.
Transforms vague, ambiguous, or unclear prompts into optimized, well-structured ones through systematic assessment, pattern detection, framework selection, and validation.
What you produce: An optimized prompt. That's it. Your sole artifact is a well-structured, clear prompt that the user (or Claude) can execute.
What you do NOT do:
Your workflow: Analyze the request → Identify issues → Create optimized prompt → Deliver it directly to the user → Optionally save or copy to clipboard.
Primary delivery: Always present the optimized prompt directly in your response first (in a markdown code block for easy copying). Never save files before delivering the prompt.
Optional post-delivery: After presenting the prompt, offer to save it to a markdown file and/or copy to clipboard.
Example:
These anti-patterns come from production failures and model-specific limitations:
NEVER embed fabrication techniques in single-prompt execution — Mixture-of-Experts (MoE), Tree-of-Thought (ToT), and Graph-of-Thought (GoT) patterns make Claude invent conversations between fake personas rather than deepening its own reasoning. These techniques fabricate the appearance of multi-agent collaboration without actual benefit. Split into separate prompts or use plan mode instead.
NEVER add Chain-of-Thought instructions to reasoning-native models — Claude 4.5+ already uses extended thinking. Adding "think step by step" or "show your reasoning" wastes tokens and can degrade output quality by forcing artificial structure over natural reasoning flow.
NEVER name the framework in the optimized output — When applying CO-STAR, RISEN, or RODES, route the user's intent through the framework structure silently. Don't output "Using CO-STAR framework..." or label sections with framework terminology. The user cares about clarity, not methodology.
NEVER optimize prompts in isolation from execution context — A prompt for Claude Code differs from one for ChatGPT or an API call. Consider: available tools, conversation history, model capabilities, token limits, and whether it's interactive or batch processing. Context determines optimization strategy.
NEVER use vague success criteria — "Make this better", "comprehensive documentation", "clean code" lack objective validation. Pin criteria to measurable outcomes: test coverage percentage, specific edge cases handled, response time constraints, or concrete examples of acceptable output.
NEVER skip constraint specification for creative tasks — Without boundaries, creative prompts produce wildly inconsistent results. Specify: tone, length, style references, what to avoid, audience expectations, and format requirements. Constraints enable creativity by defining the solution space.
NEVER front-load all context in long prompts — The "lost-in-the-middle" problem causes models to weaken attention on middle sections of very long prompts. Place critical instructions at the beginning and end. Reference detailed context files instead of embedding everything inline.
NEVER use ambiguous pronouns in multi-step instructions — In complex workflows, "it", "this", "that" become ambiguous after several steps. Use specific nouns: "the API response", "the user input", "the validated data". Ambiguity compounds across steps, causing execution drift.
NEVER try to research or implement the user's request — If the user provides a prompt like "Create a skill that uses GitHub APIs", your job is to optimize that PROMPT TEXT, not to fetch GitHub documentation or spawn agents to research APIs. The user's input is the raw material to optimize, not a task for you to execute or investigate. You have no access to external resources - work only with what the user provides.
These questions reveal optimization opportunities and prevent misaligned refinements:
Task Type Assessment
Complexity Detection
Context Calibration
Framework Selection
Ambiguity Identification
Start with the 4-phase workflow in this file. When you detect specific patterns or need detailed examples, load references on-demand:
references/credit-killing-patterns.md
references/frameworks.md
references/complexity-detection.md
references/plan-mode-triggers.md
references/ambiguity-examples.md
references/safe-techniques.md
references/template-selection.md
references/optimization-examples.md
Quick reference summary available in AGENTS.md.
Use this progress checklist to track optimization:
- [ ] Phase 1: Intake & Assessment
- [ ] Phase 2: Pattern Detection
- [ ] Phase 3: Framework Selection & Optimization
- [ ] Phase 4: Validation & Handoff
Before starting, confirm the user's intent:
Ask: "I specialize in optimizing prompts to make them clearer and more actionable. Is that what you need, or did you want me to help with the task itself?"
If user wants prompt optimization: Proceed with Phase 1.
If user wants task execution: "I only optimize prompts—I don't execute the tasks they describe. Please exit this skill and I'll help you with the task itself."
Skip this gate question when:
Goal: Understand user intent, skill level, task complexity, and execution context.
Actions:
For Complex Tasks: Recommend plan mode before proceeding. Explain: "This task involves [X dependencies and Y phases]. Plan mode will help design the approach before execution, preventing rework."
Skip Conditions: If user explicitly declines plan mode recommendation, continue with note about complexity.
Output: Clear understanding of intent, user calibration, complexity level, execution context.
Goal: Identify credit-killing patterns, ambiguities, and trade-offs that undermine prompt effectiveness.
Actions:
Scan for Credit-Killing Patterns — Check against common anti-patterns:
If 3+ patterns detected, load references/credit-killing-patterns.md for full catalog.
Flag Ambiguities — List terms/constraints with multiple interpretations:
For each ambiguity, provide 2-3 interpretation options with implications.
Identify Trade-Offs — Expose competing goals:
Present trade-offs explicitly; never assume user preference.
Assess Missing Context — What critical information is absent?
For Newcomers: Explain what's being detected and why it matters. For Experts: Cite pattern names and line numbers directly.
Output: Categorized list of issues (patterns, ambiguities, trade-offs, missing context) with severity levels.
Goal: Apply appropriate framework (CO-STAR, RISEN, RODES) and safe optimization techniques to create clear, actionable prompt.
Actions:
Select Framework — Choose based on task type:
Load references/frameworks.md if selection is unclear.
Apply Framework Silently — Route user intent through framework structure WITHOUT naming it:
Apply Safe Techniques — Use proven optimization methods:
Load references/safe-techniques.md for detailed explanations.
Address Flagged Issues — Resolve each item from Phase 2:
Format for Execution Context — Adapt to where this will run:
Output: Optimized prompt that addresses all detected issues, applies appropriate framework structure, and matches execution context.
Goal: Quality-check optimized prompt and provide clear next steps.
Actions:
Run Quality Checks:
Flag Remaining Ambiguities — If user decisions needed:
Recommend Execution Mode:
Deliver Optimized Prompt Directly:
markdown language identifier for clean formattingOffer Post-Delivery Options: After delivering the optimized prompt, offer:
How to handle each:
./prompts/optimized-prompt-YYYY-MM-DD.md or user's preferred location), then use Write toolecho "prompt text" | pbcopyecho "prompt text" | xclip -selection clipboard (or xsel)echo "prompt text" | clipFor refinements: When user asks to refine the prompt, deliver the refined version and repeat these post-delivery options.
Offer to Iterate:
NEVER offer to execute the task. Your job is prompt optimization + optional save/copy.
Output: Validated, executable prompt delivered directly in your response + clear next steps.
How closely to follow vs adapt these guidelines:
| Task Fragility | Freedom Level | Guidance | |----------------|---------------|----------| | Meta-prompts / System prompts | Low | Follow framework structures exactly — these define behavior for other prompts | | Prompt optimization for production | Medium | Apply frameworks with examples — balance consistency with context-specific needs | | Creative prompt design | High | Use principles and anti-patterns as guardrails — adapt freely to user's creative vision |
Higher fragility (left) = stricter adherence. Lower fragility (right) = more adaptation freedom.
Model-Specific Behavior Differs Significantly Claude 4.5+ uses extended thinking natively, GPT-4 uses internal CoT, older models benefit from explicit CoT instructions. Optimization strategies that work for one model family may degrade performance in another. Always consider target model capabilities.
Memory Blocks Prevent Contradictions In extended conversations, save optimization patterns to memory blocks so future prompts don't contradict established guidelines. Without memory persistence, each optimization starts from scratch and may conflict with previous work.
Token Economy Matters in Production Every word in a system prompt multiplies by number of API calls. Verbose instructions become expensive at scale. Balance clarity with conciseness. Progressive disclosure (load detail on-demand) reduces base token cost.
Security Implications of Prompt Injection When optimizing prompts that handle user input, consider injection attacks. Validate and sanitize inputs, use delimiters to separate instructions from data, and never allow user content to override system instructions.
tools
Implement QRSPI-planned OpenSpec changes with intelligent parallelization. Use when the user wants to apply a QRSPI change, implement tasks with parallelization, or says "apply this QRSPI change", "implement with parallelization", "run the parallel slices". This skill is specifically designed for changes created via accelint-qrspi that include "Parallelization Strategy" sections in tasks.md. It orchestrates parallel sub-agent execution for independent task slices using OpenSpec CLI workflows. Make sure to use this skill when the user mentions applying QRSPI changes, running parallel implementation, or working on changes with vertical slices.
development
Generate or update an ARCHITECTURE.md living document for any codebase. Use this skill whenever a user mentions "architecture.md", "ARCHITECTURE.md", "document my architecture", "architecture overview", "system architecture", "generate architecture doc", "create architecture file", "update architecture", "architecture diagram", or wants a technical overview of how their project is structured. Make sure to use this skill whenever users want to document how their system works — even if they phrase it as "write up the system", "document the tech stack", "create a technical overview", or "help me describe the architecture". Always prefer this skill over ad-hoc architecture documentation.
development
Automate the QRSPI + OpenSpec planning workflow (Questions → Research → Design → Structure) for spec-driven development. Use this skill when the user wants to plan a ticket, start a QRSPI workflow, create a change with QRSPI, or says "plan this with QRSPI", "use QRSPI to plan", "start QRSPI workflow", "create spec-driven change", or asks about planning a feature/change before implementation. This skill handles ONLY the planning phase — it does NOT implement code. After completion, the user continues with /opsx:apply for implementation.
development
Comprehensive TypeScript/JavaScript coding standards focusing on type safety, defensive programming, and code correctness. Use when (1) Writing or reviewing TS/JS code, (2) Fixing type errors or avoiding any/enum/null, (3) Implementing control flow, state management, or error handling, (4) Applying zero-value pattern or immutability, (5) Code review for TypeScript anti-patterns. Covers naming conventions, function design, return values, bounded iteration, input validation. For performance optimization, use accelint-ts-performance skill. For documentation, use accelint-ts-documentation skill.