@${CLAUDE_SKILL_DIR}/../../meta/ase-control.md @${CLAUDE_SKILL_DIR}/../../meta/ase-skill.md @${CLAUDE_SKILL_DIR}/../../meta/ase-dialog.md @${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md
$ARGUMENTS
The following is the accumulated help of all ASE skills --
the concatenation of every skill's help.md file -- and is the sole
catalog you match against:
REPEAT the following sub-steps in a LOOP until the user either executes the generated command or cancels the dialog in sub-step 4:
Match Intent:
Match the current against the and select the single best-fitting skill. From that skill's
## SYNOPSIS,## OPTIONS, and## ARGUMENTSsections in , generate a concrete command that realizes :- Set to the selected skill's name (e.g.
ase-code-lint). - Set to the concrete option flags and positional
arguments -- derived from the skill's
## OPTIONSand## ARGUMENTS-- that best realize (may be empty). - Set /ase: (the full command line, with surplus inner spaces collapsed).
- Set to a very brief, single-sentence justification of why the selected skill and its options match .
- Set to the selected skill's name (e.g.
Guard No Match:
Render Command:
Output the generated command with the following :
❯
<command/>RATIONALE:
Dispatch Command:
In the following, you MUST NOT use your built-in tool! Instead, you MUST just show a custom dialog according to the expanded
custom-dialogdefinition. You MUST closely follow this definition.Let the user decide what to do with the generated command by raising a question with the following custom dialog (invoked with
--other, so that any free-text instruction is accepted as an intent refinement):Check the tool and dispatch accordingly:
If is
CANCEL: Break out of the loop and stop processing without any further output.If is
EXECUTE: Break out of the loop, output the following , and then call the toolSkill(skill: "ase:<name/>", args: "<arguments/>")to execute the generated command:If matches
OTHER: <text/>: Set (fold the free-text instruction into the intent). Then you MUST continue the loop at sub-step 2.1 to re-match the refined intent.