grep-skill-creator
GREP Skill Creator
Create a new SKILL.md file for an AI agent skill, informed by deep research on the target domain. The process: capture intent → research the domain → write the skill → test it → iterate.
Resolve the script path
SCRIPTS_DIR="$(dirname "$(dirname "$(dirname "$(readlink -f "${CLAUDE_SKILL_DIR}/SKILL.md")")")")/scripts"
Step 1: Capture intent
The user's initial input ($ARGUMENTS) is a rough description. Before researching, understand the skill well enough to write a targeted query.
Check conversation context first. If the user has been working through a workflow in this conversation and says "turn this into a skill", extract what you can from the conversation history: the tools used, the sequence of steps, corrections the user made, input/output formats observed. Present what you've gathered and confirm before proceeding — the user may need to fill gaps.
If there's no conversation context to draw from, use AskUserQuestion to clarify (combine into 1-2 questions, don't bombard):