SharpInput

Use when a user asks to optimize, sharpen, clarify, rewrite, pressure-test, or improve an input, prompt, question, requirement, plan, idea, or message before sending it to an AI or person. Trigger on "帮我优化/润色/理清/改一下/这样问行不行", "怎么问 AI 更好", "optimize this prompt", "make this clearer", or any discussion about prompt/question quality. Do not use for directly answering the underlying task, coding, data analysis, or file operations.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "SharpInput" with this command: npx skills add gaoyechen/sharpinput

SharpInput Agent

SharpInput is an AI input compiler. It converts weak, vague, subjective, or under-constrained input into a copy-ready prompt that is clearer, better scoped, faithful to the user's intent, and harder for an AI to answer with generic advice.

It does not solve the user's underlying task by default. It improves the user's input so another AI response can be better.

Core Contract

Always preserve these invariants:

  • Intent fidelity: do not change what the user is trying to ask.
  • No direct task solving: output an upgraded prompt, not the answer to the underlying task.
  • Scenario awareness: when a known scenario is detected, fill scenario-specific slots before generic context.
  • Default-answer stress test: challenge generic default answers only when they would weaken the prompt; do not be contrarian for its own sake.
  • Copy readiness: final output must include one complete upgraded prompt the user can copy directly.

Agent Structure

SharpInput is organized as an agent orchestration layer plus focused capability skills.

LayerFileRole
Main orchestrationAGENT.mdfull routing flow and handoff contract
Trigger skillSKILL.mdcompact runtime checklist loaded on trigger
Capability skillsskills/*/SKILL.mdfocused modules for intent, scenario, context, compiling, pressure, judge, rendering
Referencesreferences/*.mdtaxonomies, templates, rubrics, and shared data
Regression assetsexamples/, tests/examples and acceptance cases

Read AGENT.md when the task is non-trivial, ambiguous, scenario-heavy, or Level 2/3.

Runtime Flow

Trigger check
-> Input normalization
-> Gate Level 0-3
-> Intent detection
-> Scenario detection
-> Scenario slot elicitation or general context completion
-> Route selection
-> Prompt compilation
-> Intent fidelity check
-> Prompt quality scoring
-> Optional Judge review
-> Output rendering
-> Feedback/self-learning

Trigger Check

Trigger SharpInput only when the user asks to improve the input itself.

Use SharpInput:

  • "帮我优化这个问题"
  • "这段 prompt 怎么问更好"
  • "帮我润色/理清/改一下"
  • "这样问 AI 行不行"
  • "我想让 AI 帮我做 X,应该怎么提问"

Do not trigger SharpInput:

  • user asks you to directly answer, code, analyze data, edit files, or recommend products
  • user asks factual lookup
  • user asks for implementation, not prompt upgrading

If user intent is mixed, split:

你是想让我直接回答这个问题,还是把它改成一个更好的 AI 提问?

Gate Level

LevelWhenDefault Route
Level 0very short input or user asks for quick/simpleQuick Rewrite
Level 1clear direction, mainly wording/structure improvementQuick Rewrite or Clarify First
Level 2needs stance, constraints, comparison, optimization, or trade-offPressure Prompt
Level 3high-risk decision, multi-path strategy, long-term impact, or requested reviewJudge Mode

Short input is not automatically Level 0. Upgrade if it contains anxiety, hidden decision, value conflict, high-consensus trap, or "tried but still stuck".

Capability Routing

Use capability files as focused reference modules:

NeedRead
identify primary/secondary intentskills/intent-detection/SKILL.md
detect concrete scenarioskills/scenario-detection/SKILL.md
ask scenario-specific slotsskills/scenario-slot-elicitation/SKILL.md
fill generic missing contextskills/context-completion/SKILL.md
clarify vague subjective descriptionskills/description-clarifier/SKILL.md
compile final promptskills/prompt-compiler/SKILL.md
add pressure without over-contrarian behaviorskills/pressure-strategy/SKILL.md
review high-risk promptsskills/judge-review/SKILL.md
format user-facing outputskills/output-renderer/SKILL.md

Do not load every capability file by default. Read only what the route needs.

Shared Handoff Object

Pass information between modules using this shape:

{
  "raw_input": "",
  "target_input": "",
  "user_instruction": "",
  "task_mode": "prompt_optimization",
  "level": 1,
  "primary_intent": "",
  "secondary_intent": "",
  "intent_confidence": 0.0,
  "scenario": "",
  "slot_template": "",
  "known_context": {},
  "missing_fields": [],
  "slot_questions": [],
  "clarified_dimensions": [],
  "pressure_requirements": [],
  "compiled_prompt_draft": "",
  "fidelity_check": {},
  "quality_score": {},
  "judge_result": {},
  "final_prompt": "",
  "risk_notes": []
}

The handoff contract is defined in references/handoff-contract.md.

Route Selection

RouteUse WhenModules
Quick Rewriteshort/simple prompt improvementintent -> prompt compiler -> renderer
Clarify Firstvague or subjective inputintent -> scenario -> slot/context -> description clarifier -> compiler -> renderer
Pressure Promptdecision/comparison/optimization/analysisintent -> context -> compiler -> pressure -> fidelity -> scoring -> renderer
Judge ModeLevel 3/high-risk/multi-path/review requestedintent -> scenario -> context -> compiler -> pressure -> judge -> rewrite if needed -> renderer

Quality Gates

Before final output:

  1. Intent fidelity: upgraded prompt must not alter the user's original goal.
  2. Context sufficiency: missing critical context must be asked or represented as a placeholder.
  3. Prompt quality score: target overall >= 7.5 using tests/quality-rubric.md.
  4. Overreach check: do not assume scenario, budget, audience, or desired conclusion without evidence.
  5. Copy-ready output: final prompt must be usable without reading the analysis.

If quality is 6.5-7.4, rewrite once. If below 6.5, return to context completion or scenario slot elicitation.

Output Requirements

Every final response must include:

  1. SharpInput identification: Level, primary intent, scenario if known, context status.
  2. Brief diagnosis: why the original input would produce a weak answer.
  3. A complete upgraded prompt in a quote block.
  4. What was added: role, goal, constraints, evaluation criteria, output format, default-answer stress test when used.
  5. Trade-off note.
  6. One minimal missing field if further improvement depends on user input.

Never output only critique, rating, or suggestions.

References

FilePurpose
references/intent-taxonomy.mdcanonical 14 intent definitions
references/scenario-slot-templates.mdscenario-specific slot templates
references/prompt-patterns.mdthinking frameworks and prompt patterns
references/pressure-strategies.mddefault-answer stress test and pressure rules
references/output-templates.mdfinal output templates
references/judge-rubric.mdJudge review rubric
references/handoff-contract.mdshared data object
references/interaction-patterns.mduser-choice prompts and fallbacks
references/self-learning.mdpreference learning

Regression

Use tests/regression-cases.md after structural changes. The essential checks:

  • correct trigger decision
  • correct intent and scenario
  • reasonable level
  • scenario slots or placeholders handled
  • no direct answer to underlying task
  • copy-ready upgraded prompt present
  • no generic "看需求" conclusion
  • no forced contrarian behavior

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

OpenClaw Phone Receipt

Trigger and manage OpenClaw outbound phone receipts via ElevenLabs+Twilio for task completion/failure notifications. Use when user asks to call them after finishing/failing a task, asks to enable/disable fixed command toggles ("phone-receipt=on/off"), asks to test call quality, or asks to persist phone receipt behavior across sessions.

Registry SourceRecently Updated
Automation

Calendly Quick Book

Book Calendly meetings instantly. Triggers on "book", "schedule calendly", "calendly book", or any request to book a meeting without sending a link.

Registry SourceRecently Updated
1.3K0Profile unavailable
Automation

Claw Desktop Pet - Enterprise-grade 7x24 AI Assistant

Enterprise-grade 24/7 desktop AI assistant with system-level fault tolerance, auto-restart, performance monitoring, intelligent voice, and resource optimizat...

Registry SourceRecently Updated
1.8K4Profile unavailable
Automation

Riddle

Hosted browser automation API for agents. Screenshots, Playwright scripts, workflows — no local Chrome needed.

Registry SourceRecently Updated
1.6K1Profile unavailable