@rse/ase 0.9.51 → 0.9.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dst/ase-task.js +7 -2
- package/package.json +7 -7
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/.codex-plugin/plugin.json +1 -1
- package/plugin/.github/plugin/plugin.json +1 -1
- package/plugin/etc/stx.conf +2 -2
- package/plugin/meta/ase-common-dissect.md +110 -0
- package/plugin/meta/ase-common-task.md +5 -3
- package/plugin/meta/ase-control.md +53 -0
- package/plugin/meta/ase-format-task.md +6 -0
- package/plugin/meta/ase-skill.md +8 -8
- package/plugin/package.json +2 -2
- package/plugin/skills/ase-arch-analyze/SKILL.md +23 -12
- package/plugin/skills/ase-arch-analyze/help.md +16 -0
- package/plugin/skills/ase-arch-discover/SKILL.md +2 -2
- package/plugin/skills/ase-code-analyze/SKILL.md +27 -18
- package/plugin/skills/ase-code-analyze/help.md +15 -0
- package/plugin/skills/ase-code-craft/SKILL.md +2 -2
- package/plugin/skills/ase-code-dissect/SKILL.md +380 -0
- package/plugin/skills/ase-code-dissect/help.md +121 -0
- package/plugin/skills/ase-code-explain/SKILL.md +2 -2
- package/plugin/skills/ase-code-insight/SKILL.md +2 -2
- package/plugin/skills/ase-code-lint/SKILL.md +2 -2
- package/plugin/skills/ase-code-refactor/SKILL.md +2 -2
- package/plugin/skills/ase-code-resolve/SKILL.md +2 -2
- package/plugin/skills/ase-docs-distill/SKILL.md +2 -2
- package/plugin/skills/ase-docs-proofread/SKILL.md +2 -2
- package/plugin/skills/ase-help-intent/SKILL.md +2 -2
- package/plugin/skills/ase-help-skill/SKILL.md +2 -2
- package/plugin/skills/ase-help-skill/catalog.md +3 -0
- package/plugin/skills/ase-meta-brainstorm/SKILL.md +2 -2
- package/plugin/skills/ase-meta-changelog/SKILL.md +2 -2
- package/plugin/skills/ase-meta-chat/SKILL.md +2 -2
- package/plugin/skills/ase-meta-commit/SKILL.md +2 -2
- package/plugin/skills/ase-meta-config/SKILL.md +2 -2
- package/plugin/skills/ase-meta-diaboli/SKILL.md +2 -2
- package/plugin/skills/ase-meta-diff/SKILL.md +2 -2
- package/plugin/skills/ase-meta-eli5/SKILL.md +2 -2
- package/plugin/skills/ase-meta-evaluate/SKILL.md +2 -2
- package/plugin/skills/ase-meta-proximity/SKILL.md +2 -2
- package/plugin/skills/ase-meta-quorum/SKILL.md +2 -2
- package/plugin/skills/ase-meta-quotes/SKILL.md +2 -2
- package/plugin/skills/ase-meta-review/SKILL.md +2 -2
- package/plugin/skills/ase-meta-search/SKILL.md +2 -2
- package/plugin/skills/ase-meta-steelman/SKILL.md +2 -2
- package/plugin/skills/ase-meta-why/SKILL.md +2 -2
- package/plugin/skills/ase-meta-workflow/SKILL.md +378 -0
- package/plugin/skills/ase-meta-workflow/help.md +117 -0
- package/plugin/skills/ase-meta-workflow/sample.md +70 -0
- package/plugin/skills/ase-meta-workflow/workflow.txt +97 -0
- package/plugin/skills/ase-sync-export/SKILL.md +2 -2
- package/plugin/skills/ase-sync-import/SKILL.md +2 -2
- package/plugin/skills/ase-sync-reconcile/SKILL.md +2 -2
- package/plugin/skills/ase-task-condense/SKILL.md +26 -6
- package/plugin/skills/ase-task-delete/SKILL.md +2 -2
- package/plugin/skills/ase-task-dissect/SKILL.md +299 -0
- package/plugin/skills/ase-task-dissect/help.md +114 -0
- package/plugin/skills/ase-task-edit/SKILL.md +6 -4
- package/plugin/skills/ase-task-grill/SKILL.md +6 -4
- package/plugin/skills/ase-task-id/SKILL.md +2 -2
- package/plugin/skills/ase-task-implement/SKILL.md +2 -2
- package/plugin/skills/ase-task-list/SKILL.md +2 -2
- package/plugin/skills/ase-task-preflight/SKILL.md +2 -2
- package/plugin/skills/ase-task-reboot/SKILL.md +12 -6
- package/plugin/skills/ase-task-rename/SKILL.md +2 -2
- package/plugin/skills/ase-task-view/SKILL.md +2 -2
|
@@ -16,9 +16,9 @@ allowed-tools:
|
|
|
16
16
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-skill.md
|
|
17
17
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md
|
|
18
18
|
|
|
19
|
-
<
|
|
19
|
+
<purpose name="ase-meta-chat">
|
|
20
20
|
Query Foreign LLM for Chat
|
|
21
|
-
</
|
|
21
|
+
</purpose>
|
|
22
22
|
|
|
23
23
|
<expand name="getopt" arg1="ase-meta-chat">
|
|
24
24
|
$ARGUMENTS
|
|
@@ -14,9 +14,9 @@ allowed-tools:
|
|
|
14
14
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-skill.md
|
|
15
15
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md
|
|
16
16
|
|
|
17
|
-
<
|
|
17
|
+
<purpose name="ase-meta-commit">
|
|
18
18
|
Git Commit
|
|
19
|
-
</
|
|
19
|
+
</purpose>
|
|
20
20
|
|
|
21
21
|
<expand name="getopt" arg1="ase-meta-commit">
|
|
22
22
|
$ARGUMENTS
|
|
@@ -16,9 +16,9 @@ effort: high
|
|
|
16
16
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-skill.md
|
|
17
17
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md
|
|
18
18
|
|
|
19
|
-
<
|
|
19
|
+
<purpose name="ase-meta-config">
|
|
20
20
|
Configuration Management
|
|
21
|
-
</
|
|
21
|
+
</purpose>
|
|
22
22
|
|
|
23
23
|
<expand name="getopt"
|
|
24
24
|
arg1="ase-meta-config"
|
|
@@ -14,9 +14,9 @@ effort: xhigh
|
|
|
14
14
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-skill.md
|
|
15
15
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md
|
|
16
16
|
|
|
17
|
-
<
|
|
17
|
+
<purpose name="ase-meta-diaboli">
|
|
18
18
|
Play "Devil's Advocate"
|
|
19
|
-
</
|
|
19
|
+
</purpose>
|
|
20
20
|
|
|
21
21
|
<expand name="getopt"
|
|
22
22
|
arg1="ase-meta-diaboli"
|
|
@@ -21,9 +21,9 @@ allowed-tools:
|
|
|
21
21
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-skill.md
|
|
22
22
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md
|
|
23
23
|
|
|
24
|
-
<
|
|
24
|
+
<purpose name="ase-meta-diff">
|
|
25
25
|
Summarize Diff
|
|
26
|
-
</
|
|
26
|
+
</purpose>
|
|
27
27
|
|
|
28
28
|
<expand name="getopt"
|
|
29
29
|
arg1="ase-meta-diff"
|
|
@@ -17,9 +17,9 @@ allowed-tools:
|
|
|
17
17
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-skill.md
|
|
18
18
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md
|
|
19
19
|
|
|
20
|
-
<
|
|
20
|
+
<purpose name="ase-meta-eli5">
|
|
21
21
|
Explain a Topic Like I'm 5
|
|
22
|
-
</
|
|
22
|
+
</purpose>
|
|
23
23
|
|
|
24
24
|
<expand name="getopt"
|
|
25
25
|
arg1="ase-meta-eli5"
|
|
@@ -15,9 +15,9 @@ effort: high
|
|
|
15
15
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-skill.md
|
|
16
16
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md
|
|
17
17
|
|
|
18
|
-
<
|
|
18
|
+
<purpose name="ase-meta-evaluate">
|
|
19
19
|
Evaluate Alternatives
|
|
20
|
-
</
|
|
20
|
+
</purpose>
|
|
21
21
|
|
|
22
22
|
<expand name="getopt" arg1="ase-meta-evaluate">
|
|
23
23
|
$ARGUMENTS
|
|
@@ -20,9 +20,9 @@ allowed-tools:
|
|
|
20
20
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-dialog.md
|
|
21
21
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md
|
|
22
22
|
|
|
23
|
-
<
|
|
23
|
+
<purpose name="ase-meta-proximity">
|
|
24
24
|
Determine the Conceptual Proximity of a Topic
|
|
25
|
-
</
|
|
25
|
+
</purpose>
|
|
26
26
|
|
|
27
27
|
<expand name="getopt"
|
|
28
28
|
arg1="ase-meta-proximity"
|
|
@@ -19,9 +19,9 @@ allowed-tools:
|
|
|
19
19
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-skill.md
|
|
20
20
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md
|
|
21
21
|
|
|
22
|
-
<
|
|
22
|
+
<purpose name="ase-meta-quorum">
|
|
23
23
|
Query Multiple AIs for Quorum Answer
|
|
24
|
-
</
|
|
24
|
+
</purpose>
|
|
25
25
|
|
|
26
26
|
<expand name="getopt"
|
|
27
27
|
arg1="ase-meta-quorum"
|
|
@@ -19,9 +19,9 @@ allowed-tools:
|
|
|
19
19
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-skill.md
|
|
20
20
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md
|
|
21
21
|
|
|
22
|
-
<
|
|
22
|
+
<purpose name="ase-meta-quotes">
|
|
23
23
|
Find Quotes on a Topic
|
|
24
|
-
</
|
|
24
|
+
</purpose>
|
|
25
25
|
|
|
26
26
|
<expand name="getopt"
|
|
27
27
|
arg1="ase-meta-quotes"
|
|
@@ -19,9 +19,9 @@ allowed-tools:
|
|
|
19
19
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-skill.md
|
|
20
20
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md
|
|
21
21
|
|
|
22
|
-
<
|
|
22
|
+
<purpose name="ase-meta-review">
|
|
23
23
|
Review Staged Changes
|
|
24
|
-
</
|
|
24
|
+
</purpose>
|
|
25
25
|
|
|
26
26
|
<expand name="getopt"
|
|
27
27
|
arg1="ase-meta-review"
|
|
@@ -19,9 +19,9 @@ allowed-tools:
|
|
|
19
19
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-skill.md
|
|
20
20
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md
|
|
21
21
|
|
|
22
|
-
<
|
|
22
|
+
<purpose name="ase-meta-search">
|
|
23
23
|
Search the Internet/Web
|
|
24
|
-
</
|
|
24
|
+
</purpose>
|
|
25
25
|
|
|
26
26
|
<expand name="getopt"
|
|
27
27
|
arg1="ase-meta-search"
|
|
@@ -14,9 +14,9 @@ effort: xhigh
|
|
|
14
14
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-skill.md
|
|
15
15
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md
|
|
16
16
|
|
|
17
|
-
<
|
|
17
|
+
<purpose name="ase-meta-steelman">
|
|
18
18
|
Build the "Steelman" Argument
|
|
19
|
-
</
|
|
19
|
+
</purpose>
|
|
20
20
|
|
|
21
21
|
<expand name="getopt"
|
|
22
22
|
arg1="ase-meta-steelman"
|
|
@@ -12,9 +12,9 @@ effort: high
|
|
|
12
12
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-skill.md
|
|
13
13
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md
|
|
14
14
|
|
|
15
|
-
<
|
|
15
|
+
<purpose name="ase-meta-why">
|
|
16
16
|
Five-Whys Root-Cause Analysis
|
|
17
|
-
</
|
|
17
|
+
</purpose>
|
|
18
18
|
|
|
19
19
|
<expand name="getopt"
|
|
20
20
|
arg1="ase-meta-why"
|
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ase-meta-workflow
|
|
3
|
+
argument-hint: "[--help|-h] [--scope|-s local|user] [--force|-f] <skill-name> <workflow-description>"
|
|
4
|
+
description: >
|
|
5
|
+
Generate a new agent tool skill, written in the style of ASE
|
|
6
|
+
skills, which orchestrates a workflow of sequential actions,
|
|
7
|
+
parallel actions, sub-agent calls, and skill calls. Use when the
|
|
8
|
+
user wants to "generate a skill", create a "workflow", "orchestrate"
|
|
9
|
+
or "chain" multiple ASE skills, or automate a recurring multi-step
|
|
10
|
+
procedure.
|
|
11
|
+
user-invocable: true
|
|
12
|
+
disable-model-invocation: false
|
|
13
|
+
effort: xhigh
|
|
14
|
+
allowed-tools:
|
|
15
|
+
- "Read"
|
|
16
|
+
- "Write"
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
@${CLAUDE_SKILL_DIR}/../../meta/ase-control.md
|
|
20
|
+
@${CLAUDE_SKILL_DIR}/../../meta/ase-skill.md
|
|
21
|
+
@${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md
|
|
22
|
+
|
|
23
|
+
<purpose name="ase-meta-workflow">
|
|
24
|
+
Generate a Workflow Skill
|
|
25
|
+
</purpose>
|
|
26
|
+
|
|
27
|
+
<expand name="getopt"
|
|
28
|
+
arg1="ase-meta-workflow"
|
|
29
|
+
arg2="--scope|-s=(local|user) --force|-f">
|
|
30
|
+
$ARGUMENTS
|
|
31
|
+
</expand>
|
|
32
|
+
|
|
33
|
+
<objective>
|
|
34
|
+
*Generate* a new skill for the current *agent tool* <ase-agent-tool/>,
|
|
35
|
+
written in the style of *ASE* skills, which orchestrates the workflow
|
|
36
|
+
described by:
|
|
37
|
+
<arguments><getopt-arguments/></arguments>
|
|
38
|
+
</objective>
|
|
39
|
+
|
|
40
|
+
References
|
|
41
|
+
----------
|
|
42
|
+
|
|
43
|
+
- The following <sample/> is a *reference skill* demonstrating the
|
|
44
|
+
usual *layout* of a generated workflow skill -- its frontmatter, its
|
|
45
|
+
`ase meta` preamble, and the indentation of its `<flow>`:
|
|
46
|
+
|
|
47
|
+
<sample>
|
|
48
|
+
@${CLAUDE_SKILL_DIR}/sample.md
|
|
49
|
+
</sample>
|
|
50
|
+
|
|
51
|
+
*IMPORTANT*: <sample/> is authoritative for the usual *layout* only.
|
|
52
|
+
The *syntax* of every control construct is defined *exclusively* by
|
|
53
|
+
the `Control Flow Constructs` section above, and its frontmatter and
|
|
54
|
+
preamble show the `claude` flavor only -- the actual frontmatter
|
|
55
|
+
fields and the actual preamble are dispatched on <ase-agent-tool/> as
|
|
56
|
+
defined by the `Generated Skill Contract` below.
|
|
57
|
+
|
|
58
|
+
- The following <graph/> is the *ASE workflow graph*, carrying one
|
|
59
|
+
`<from/> -> <to/>` transition per line, where each side is either an
|
|
60
|
+
`ase-xxx-xxx` skill or an upper-case logical state (`START`, `SKETCH`,
|
|
61
|
+
`APPROACHES`, `TASK`, `ARTIFACT`, `END`):
|
|
62
|
+
|
|
63
|
+
<graph>
|
|
64
|
+
@${CLAUDE_SKILL_DIR}/workflow.txt
|
|
65
|
+
</graph>
|
|
66
|
+
|
|
67
|
+
The <graph/> tells which ASE skill sequences are *usually
|
|
68
|
+
meaningful*. It *guides* the workflow, but it does *not* restrict
|
|
69
|
+
it: a workflow may contain arbitrary *non-ASE* actions, and it may
|
|
70
|
+
contain ASE transitions the <graph/> does not list.
|
|
71
|
+
|
|
72
|
+
- The following <catalog/> is the *accumulated help* of all ASE skills --
|
|
73
|
+
the concatenation of every skill's `help.md` file -- and is the
|
|
74
|
+
*sole* source for the options and arguments of every `<skill/>`
|
|
75
|
+
invocation (for an `ase-xxx-xxx` skill) you emit:
|
|
76
|
+
|
|
77
|
+
<catalog>
|
|
78
|
+
@${CLAUDE_SKILL_DIR}/../ase-help-intent/data.md
|
|
79
|
+
</catalog>
|
|
80
|
+
|
|
81
|
+
Generated Skill Contract
|
|
82
|
+
------------------------
|
|
83
|
+
|
|
84
|
+
A generated skill is a *regular* skill of the current agent tool
|
|
85
|
+
<ase-agent-tool/> which is *independent* of the *ASE plugin*
|
|
86
|
+
installation path. It therefore *MUST* strictly follow this contract:
|
|
87
|
+
|
|
88
|
+
- **Frontmatter**: `name: <new-skill-name/>` and a `description` of one
|
|
89
|
+
to three sentences summarizing the workflow and its trigger phrases.
|
|
90
|
+
|
|
91
|
+
The *remaining* frontmatter fields are *tool-specific*, because every
|
|
92
|
+
agent tool accepts its own field set and its own `allowed-tools`
|
|
93
|
+
grammar, and hence have to be dispatched on <ase-agent-tool/>:
|
|
94
|
+
|
|
95
|
+
<if condition="<ase-agent-tool/> is `codex`">
|
|
96
|
+
Emit *only* an `allowed-tools` field, carrying the space-separated
|
|
97
|
+
string `Bash(ase meta *)`, because *OpenAI Codex* accepts *no*
|
|
98
|
+
frontmatter fields besides `name`, `description`, `license`,
|
|
99
|
+
`allowed-tools`, and `metadata`.
|
|
100
|
+
</if>
|
|
101
|
+
|
|
102
|
+
<elseif condition="<ase-agent-tool/> is `copilot`">
|
|
103
|
+
Emit an `argument-hint` derived from the declared options and
|
|
104
|
+
arguments, plus `user-invocable: true`, `disable-model-invocation:
|
|
105
|
+
false`, and an `allowed-tools` list which *always* contains
|
|
106
|
+
`"shell(ase:*)"` plus any further tool the workflow actually uses.
|
|
107
|
+
*IMPORTANT*: *GitHub Copilot* uses the permission pattern grammar
|
|
108
|
+
`shell(<command/>:*)`, `write(<path/>)`, and `<mcp-server/>(<tool/>)`
|
|
109
|
+
-- a `Bash(...)` entry would be misread as an unknown MCP server, and
|
|
110
|
+
plain tool names like `Skill` or `Agent` are *no* permission patterns
|
|
111
|
+
at all and hence *MUST NOT* be emitted.
|
|
112
|
+
</elseif>
|
|
113
|
+
|
|
114
|
+
<else>
|
|
115
|
+
Emit an `argument-hint` derived from the declared options and
|
|
116
|
+
arguments, plus `user-invocable: true`, `disable-model-invocation:
|
|
117
|
+
false`, and an `allowed-tools` list which *always* contains
|
|
118
|
+
`"Bash(ase meta *)"` plus `"Skill"` and/or `"Agent"` whenever the
|
|
119
|
+
workflow emits `<skill/>` and/or `<agent/>` invocations, plus any
|
|
120
|
+
further tool the workflow actually uses.
|
|
121
|
+
</else>
|
|
122
|
+
|
|
123
|
+
- **Preamble**: the generated skill has to pull in the ASE meta
|
|
124
|
+
definitions through the `ase meta` command, because it resolves them
|
|
125
|
+
from the bundled tool package, whereas the
|
|
126
|
+
`@${CLAUDE_SKILL_DIR}/../../meta/` includes used *inside* the ASE
|
|
127
|
+
plugin have *no* resolvable path from outside of it. Append further
|
|
128
|
+
meta names only when the workflow needs them (`dialog` for a
|
|
129
|
+
`custom-dialog`, `tenets`, `format-task`, ...).
|
|
130
|
+
|
|
131
|
+
*How* the command is pulled in is *tool-specific*, because only
|
|
132
|
+
*Anthropic Claude Code* expands the ``!`<command/>` `` construct
|
|
133
|
+
before the skill content reaches the model, hence dispatch on
|
|
134
|
+
<ase-agent-tool/>:
|
|
135
|
+
|
|
136
|
+
<if condition="<ase-agent-tool/> is `copilot` or `codex`">
|
|
137
|
+
Emit the following <preamble-block/> as the first body element,
|
|
138
|
+
because the ``!`<command/>` `` construct would otherwise reach the
|
|
139
|
+
model *verbatim* and silently stay unexpanded:
|
|
140
|
+
|
|
141
|
+
<preamble-block>
|
|
142
|
+
*IMPORTANT*: *Before* anything else, run the shell command...
|
|
143
|
+
|
|
144
|
+
`ase meta control skill getopt`
|
|
145
|
+
|
|
146
|
+
...and treat its *entire* output as if it were written here. It
|
|
147
|
+
defines the control flow constructs, the skill conventions, and the
|
|
148
|
+
option parsing used below. Do *not* proceed before you have done this.
|
|
149
|
+
</preamble-block>
|
|
150
|
+
</if>
|
|
151
|
+
|
|
152
|
+
<else>
|
|
153
|
+
Emit the *single* line ``!`ase meta control skill getopt` `` as the
|
|
154
|
+
first body line.
|
|
155
|
+
</else>
|
|
156
|
+
|
|
157
|
+
- **Identification**: a `<purpose name="<new-skill-name/>">` block
|
|
158
|
+
carrying a short title-case purpose.
|
|
159
|
+
|
|
160
|
+
- **Argument Parsing**: an `<expand name="getopt" arg1="<new-skill-name/>"
|
|
161
|
+
arg2="<spec/>">$ARGUMENTS</expand>` block -- but *only* when the
|
|
162
|
+
workflow wants to declare options.
|
|
163
|
+
|
|
164
|
+
- **Objective**: an optional `<objective/>` block declaring the
|
|
165
|
+
official objective of the workflow skill.
|
|
166
|
+
|
|
167
|
+
- **Body**: usually the `<flow>` derived in `STEP 3` below.
|
|
168
|
+
But everything is allowed here.
|
|
169
|
+
|
|
170
|
+
Procedure
|
|
171
|
+
---------
|
|
172
|
+
|
|
173
|
+
<flow>
|
|
174
|
+
|
|
175
|
+
1. <step id="STEP 1: Reason About Workflow">
|
|
176
|
+
|
|
177
|
+
1. Set <new-skill-name/> to the *first* whitespace-separated token of
|
|
178
|
+
<getopt-arguments/> and <workflow-description/> to the *entire
|
|
179
|
+
remainder*. Do not output anything.
|
|
180
|
+
|
|
181
|
+
2. <if condition="<new-skill-name/> does not match the regexp `^[a-zA-Z][a-zA-Z0-9_-]*$`">
|
|
182
|
+
Ask the user interactively, without a special tool, for the skill
|
|
183
|
+
name with a single question:
|
|
184
|
+
|
|
185
|
+
`**No valid skill name given. What should the generated skill be named?**`
|
|
186
|
+
|
|
187
|
+
Then set <new-skill-name/> to the response of the user and set
|
|
188
|
+
<workflow-description/> to the *entire* original
|
|
189
|
+
<getopt-arguments/>.
|
|
190
|
+
Repeat this question until the response matches the regexp
|
|
191
|
+
`^[a-zA-Z][a-zA-Z0-9_-]*$`, so that no path separator or traversal
|
|
192
|
+
segment can ever reach <target-skill/>.
|
|
193
|
+
</if>
|
|
194
|
+
|
|
195
|
+
3. <if condition="<workflow-description/> is empty">
|
|
196
|
+
Ask the user interactively, without a special tool, for the
|
|
197
|
+
workflow with a single question:
|
|
198
|
+
|
|
199
|
+
`**No workflow description yet. Which workflow should the skill perform?**`
|
|
200
|
+
|
|
201
|
+
Then set <workflow-description/> to the response of the user.
|
|
202
|
+
</if>
|
|
203
|
+
|
|
204
|
+
4. Determine the *skill locations* of the current agent tool, because
|
|
205
|
+
every agent tool discovers its skills in its *own* directories:
|
|
206
|
+
|
|
207
|
+
<skill-dir-user>~/.claude/skills</skill-dir-user>
|
|
208
|
+
<skill-dir-local>.claude/skills</skill-dir-local>
|
|
209
|
+
<if condition="<ase-agent-tool/> is `copilot`">
|
|
210
|
+
<skill-dir-user>~/.copilot/skills</skill-dir-user>
|
|
211
|
+
<skill-dir-local>.github/skills</skill-dir-local>
|
|
212
|
+
</if>
|
|
213
|
+
<if condition="<ase-agent-tool/> is `codex`">
|
|
214
|
+
<skill-dir-user>~/.codex/skills</skill-dir-user>
|
|
215
|
+
<skill-dir-local>.agents/skills</skill-dir-local>
|
|
216
|
+
</if>
|
|
217
|
+
|
|
218
|
+
<if condition="<getopt-option-scope/> is equal `user`">
|
|
219
|
+
Set <dir><skill-dir-user/></dir>.
|
|
220
|
+
</if>
|
|
221
|
+
<else>
|
|
222
|
+
Set <dir><skill-dir-local/></dir>.
|
|
223
|
+
</else>
|
|
224
|
+
|
|
225
|
+
Then set <target-skill><dir/>/<new-skill-name/>/SKILL.md</target-skill>.
|
|
226
|
+
Expand a leading `~` in <target-skill/> into the absolute home
|
|
227
|
+
directory of the user, as the file tools accept absolute paths only.
|
|
228
|
+
Do not output anything.
|
|
229
|
+
|
|
230
|
+
5. Check whether <target-skill/> already exists.
|
|
231
|
+
|
|
232
|
+
<if condition="<target-skill/> exists and <getopt-option-force/> is not equal `true`">
|
|
233
|
+
Only output the following <template/> and then immediately *STOP*
|
|
234
|
+
processing the entire current skill:
|
|
235
|
+
|
|
236
|
+
<template>
|
|
237
|
+
⧉ **ASE**: ✪ skill: **ase-meta-workflow**, ▶ ERROR: target already exists: **<target-skill/>**
|
|
238
|
+
</template>
|
|
239
|
+
|
|
240
|
+
Directly *after* this error <template/>, and *before* stopping,
|
|
241
|
+
give the corrective hint by expanding the following:
|
|
242
|
+
|
|
243
|
+
<ase-tpl-hint level="minimal">
|
|
244
|
+
Re-run with `--force`/`-f` to overwrite the existing skill.
|
|
245
|
+
</ase-tpl-hint>
|
|
246
|
+
</if>
|
|
247
|
+
|
|
248
|
+
6. Report the workflow with the following <template/>:
|
|
249
|
+
|
|
250
|
+
<template>
|
|
251
|
+
⧉ **ASE**: ✪ workflow: **<new-skill-name/>**, ⎈ tool: **<ase-agent-tool/>**, ◉ target: **<target-skill/>**
|
|
252
|
+
⧉ **ASE**: ✪ workflow: **<new-skill-name/>**, ⇌ description: **<workflow-description/>**
|
|
253
|
+
</template>
|
|
254
|
+
|
|
255
|
+
7. Do not output anything else in this STEP 1, unless you asked the user.
|
|
256
|
+
|
|
257
|
+
</step>
|
|
258
|
+
|
|
259
|
+
2. <step id="STEP 2: Internalize ASE Capabilities">
|
|
260
|
+
|
|
261
|
+
1. Absorb the <catalog/> to know which ASE skills exist and which
|
|
262
|
+
options and arguments each of them accepts.
|
|
263
|
+
|
|
264
|
+
2. Absorb the <graph/> to know which ASE skill sequences are usually
|
|
265
|
+
meaningful, and treat every transition it does *not* list as
|
|
266
|
+
merely *unusual*, never as *forbidden*.
|
|
267
|
+
|
|
268
|
+
3. Do not output anything in this STEP 2.
|
|
269
|
+
|
|
270
|
+
</step>
|
|
271
|
+
|
|
272
|
+
3. <step id="STEP 3: Derive Workflow Structure">
|
|
273
|
+
|
|
274
|
+
1. Decompose <workflow-description/> into an *ordered* list of
|
|
275
|
+
*top-level* actions. Each top-level action becomes a numbered
|
|
276
|
+
list item wrapping a `<step id="STEP <n/>: <title/>">` element,
|
|
277
|
+
and all of them together are wrapped into a single `<flow>`
|
|
278
|
+
element.
|
|
279
|
+
|
|
280
|
+
2. Map every action of <workflow-description/> onto the matching
|
|
281
|
+
control construct:
|
|
282
|
+
|
|
283
|
+
- *sequential* actions become consecutive `<step/>` elements,
|
|
284
|
+
- *concurrent* actions become a `<parallel>` element,
|
|
285
|
+
- *sub-agent* invocations become `<agent/>` elements,
|
|
286
|
+
- *ASE skill* invocations become `<skill name="ase:ase-xxx-xxx"
|
|
287
|
+
args="..."/>` elements, whose options and arguments are taken
|
|
288
|
+
*verbatim* from the <catalog/> and never invented,
|
|
289
|
+
- *foreign skill* invocations become `<skill name="..." args="..."/>`
|
|
290
|
+
elements, whose options and arguments are taken *verbatim*,
|
|
291
|
+
- *repetitions* become `<while/>` or `<for/>` elements,
|
|
292
|
+
- *conditional* actions become `<if/>`/`<elseif/>`/`<else/>` elements,
|
|
293
|
+
- all *remaining* actions become plain instruction prose inside
|
|
294
|
+
their `<step/>`.
|
|
295
|
+
|
|
296
|
+
Every *top-level* `<skill/>` element -- one which is not already
|
|
297
|
+
placed inside an `<agent/>` element -- *MUST* be enclosed in
|
|
298
|
+
its own dedicated `<agent/>` element, always *without* an
|
|
299
|
+
`isolation` attribute and always with `run_in_background=false`,
|
|
300
|
+
because the `TaskCreate` and `TaskUpdate` tool calls of the
|
|
301
|
+
called skill would otherwise interfere with the task tracking of
|
|
302
|
+
the generated workflow skill itself.
|
|
303
|
+
|
|
304
|
+
3. For *every* `<parallel>` element which contains at least one
|
|
305
|
+
`<agent isolation="worktree">`, you *MUST* append a *dedicated*
|
|
306
|
+
consolidation `<step/>` directly after the `<step/>` holding that
|
|
307
|
+
`<parallel>` element, and this consolidation step *MUST* contain
|
|
308
|
+
an `<agent-consolidation/>` element, so the Git WorkTrees of the
|
|
309
|
+
concurrent sub-agents are merged and removed again.
|
|
310
|
+
|
|
311
|
+
4. Determine the *options* of the generated skill: declare an option
|
|
312
|
+
only when <workflow-description/> actually asks for it, and
|
|
313
|
+
express it in the `--<long/>[|-<short/>][=<default/>|=(<c1/>|<c2/>|...)[...]]`
|
|
314
|
+
spec syntax of the `getopt` definition, which also covers the fixed
|
|
315
|
+
*choice* form and the comma-separated *list* form.
|
|
316
|
+
|
|
317
|
+
5. Do not output anything in this STEP 3.
|
|
318
|
+
|
|
319
|
+
</step>
|
|
320
|
+
|
|
321
|
+
4. <step id="STEP 4: Generate Workflow Skill">
|
|
322
|
+
|
|
323
|
+
1. <if condition="<ase-project-boxing/> is not equal `black`">
|
|
324
|
+
Set <structure/> to a compact rendering of the derived workflow --
|
|
325
|
+
one line per `<step/>`, prefixed with its number, and one indented
|
|
326
|
+
line per contained `<parallel/>`, `<agent/>`, `<skill/>`, or
|
|
327
|
+
`<agent-consolidation/>` element -- and report it with the
|
|
328
|
+
following <template/>:
|
|
329
|
+
|
|
330
|
+
<template>
|
|
331
|
+
<ase-tpl-boxed title="WORKFLOW" subtitle="<new-skill-name/>">
|
|
332
|
+
<structure/>
|
|
333
|
+
</ase-tpl-boxed>
|
|
334
|
+
</template>
|
|
335
|
+
</if>
|
|
336
|
+
|
|
337
|
+
2. Assemble <skill-content/> from the derived workflow, strictly
|
|
338
|
+
following the `Generated Skill Contract` above.
|
|
339
|
+
|
|
340
|
+
3. Write <skill-content/> to <target-skill/>, creating the directory
|
|
341
|
+
`<dir/>/<new-skill-name/>` if it does not exist yet. Calculate the
|
|
342
|
+
number of words <words/> of <skill-content/>.
|
|
343
|
+
|
|
344
|
+
4. Report the result with the following <template/>:
|
|
345
|
+
|
|
346
|
+
<template>
|
|
347
|
+
⧉ **ASE**: ✪ workflow: **<new-skill-name/>**, ✎ skill: **<words/>** words, ▶ status: **skill generated**
|
|
348
|
+
⧉ **ASE**: ✪ workflow: **<new-skill-name/>**, ◉ files: **<target-skill/>**
|
|
349
|
+
</template>
|
|
350
|
+
|
|
351
|
+
5. Give the follow-up pointer, dispatched on <ase-agent-tool/>,
|
|
352
|
+
because every agent tool reloads and invokes its skills
|
|
353
|
+
differently, by expanding the following:
|
|
354
|
+
|
|
355
|
+
<if condition="<ase-agent-tool/> is `copilot`">
|
|
356
|
+
<ase-tpl-hint level="minimal">
|
|
357
|
+
Run `/skills reload` to reload all skills.
|
|
358
|
+
Run `/<new-skill-name/>` to execute the new generated workflow.
|
|
359
|
+
</ase-tpl-hint>
|
|
360
|
+
</if>
|
|
361
|
+
<elseif condition="<ase-agent-tool/> is `codex`">
|
|
362
|
+
<ase-tpl-hint level="minimal">
|
|
363
|
+
Run `/skills` to check that the new skill was picked up.
|
|
364
|
+
Mention `$<new-skill-name/>` to execute the new generated workflow.
|
|
365
|
+
</ase-tpl-hint>
|
|
366
|
+
</elseif>
|
|
367
|
+
<else>
|
|
368
|
+
<ase-tpl-hint level="minimal">
|
|
369
|
+
Run `/reload-skills` to reload all skills.
|
|
370
|
+
Run `/<new-skill-name/>` to execute the new generated workflow.
|
|
371
|
+
</ase-tpl-hint>
|
|
372
|
+
</else>
|
|
373
|
+
|
|
374
|
+
6. Do not output anything else in this STEP 4.
|
|
375
|
+
|
|
376
|
+
</step>
|
|
377
|
+
|
|
378
|
+
</flow>
|