@rse/ase 0.0.55 → 0.0.57
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/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/.github/plugin/plugin.json +1 -1
- package/plugin/agents/ase-meta-search.md +2 -2
- package/plugin/etc/markdownlint.yaml +1 -0
- package/plugin/meta/ase-constitution.md +2 -1
- package/plugin/meta/ase-control.md +6 -6
- package/plugin/meta/ase-dialog.md +2 -2
- package/plugin/meta/ase-getopt.md +18 -15
- package/plugin/meta/ase-skill.md +24 -7
- package/plugin/package.json +1 -1
- package/plugin/skills/ase-arch-analyze/SKILL.md +3 -10
- package/plugin/skills/ase-arch-analyze/help.md +50 -0
- package/plugin/skills/ase-arch-discover/SKILL.md +5 -12
- package/plugin/skills/ase-arch-discover/help.md +48 -0
- package/plugin/skills/ase-code-analyze/SKILL.md +1 -9
- package/plugin/skills/ase-code-analyze/help.md +47 -0
- package/plugin/skills/ase-code-craft/SKILL.md +29 -19
- package/plugin/skills/ase-code-craft/help.md +66 -0
- package/plugin/skills/ase-code-explain/SKILL.md +1 -9
- package/plugin/skills/ase-code-explain/help.md +43 -0
- package/plugin/skills/ase-code-insight/SKILL.md +1 -9
- package/plugin/skills/ase-code-insight/help.md +43 -0
- package/plugin/skills/ase-code-lint/SKILL.md +1 -9
- package/plugin/skills/ase-code-lint/help.md +54 -0
- package/plugin/skills/ase-code-refactor/SKILL.md +29 -19
- package/plugin/skills/ase-code-refactor/help.md +66 -0
- package/plugin/skills/ase-code-resolve/SKILL.md +30 -20
- package/plugin/skills/ase-code-resolve/help.md +73 -0
- package/plugin/skills/ase-docs-proofread/SKILL.md +3 -12
- package/plugin/skills/ase-docs-proofread/help.md +54 -0
- package/plugin/skills/ase-meta-changes/SKILL.md +1 -9
- package/plugin/skills/ase-meta-changes/help.md +33 -0
- package/plugin/skills/ase-meta-chat/SKILL.md +1 -8
- package/plugin/skills/ase-meta-chat/help.md +45 -0
- package/plugin/skills/ase-meta-commit/SKILL.md +1 -8
- package/plugin/skills/ase-meta-commit/help.md +31 -0
- package/plugin/skills/ase-meta-evaluate/SKILL.md +5 -13
- package/plugin/skills/ase-meta-evaluate/help.md +52 -0
- package/plugin/skills/ase-meta-persona/SKILL.md +11 -5
- package/plugin/skills/ase-meta-persona/help.md +50 -0
- package/plugin/skills/ase-meta-quorum/SKILL.md +1 -8
- package/plugin/skills/ase-meta-quorum/help.md +41 -0
- package/plugin/skills/ase-meta-search/SKILL.md +1 -8
- package/plugin/skills/ase-meta-search/help.md +39 -0
- package/plugin/skills/ase-meta-why/SKILL.md +1 -8
- package/plugin/skills/ase-meta-why/help.md +39 -0
- package/plugin/skills/ase-task-delete/SKILL.md +16 -10
- package/plugin/skills/ase-task-delete/help.md +47 -0
- package/plugin/skills/ase-task-edit/SKILL.md +59 -33
- package/plugin/skills/ase-task-edit/help.md +75 -0
- package/plugin/skills/ase-task-id/SKILL.md +7 -6
- package/plugin/skills/ase-task-id/help.md +42 -0
- package/plugin/skills/ase-task-implement/SKILL.md +27 -16
- package/plugin/skills/ase-task-implement/help.md +56 -0
- package/plugin/skills/ase-task-list/SKILL.md +6 -5
- package/plugin/skills/ase-task-list/help.md +43 -0
- package/plugin/skills/ase-task-preflight/SKILL.md +29 -18
- package/plugin/skills/ase-task-preflight/help.md +58 -0
- package/plugin/skills/ase-task-reboot/SKILL.md +47 -32
- package/plugin/skills/ase-task-reboot/help.md +55 -0
- package/plugin/skills/ase-task-rename/SKILL.md +5 -10
- package/plugin/skills/ase-task-rename/help.md +44 -0
- package/plugin/skills/ase-task-view/SKILL.md +15 -9
- package/plugin/skills/ase-task-view/help.md +43 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ase-code-explain
|
|
3
|
-
argument-hint: "<source-reference>"
|
|
3
|
+
argument-hint: "[--help|-h] <source-reference>"
|
|
4
4
|
description: >
|
|
5
5
|
Explains code with WHAT, WHY, ANALOGY, DIAGRAM, CRUXES, and GOTCHAS.
|
|
6
6
|
Use when you want to know how code works or when the user asks "how does this work?"
|
|
@@ -15,18 +15,10 @@ allowed-tools:
|
|
|
15
15
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-control.md
|
|
16
16
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-skill.md
|
|
17
17
|
|
|
18
|
-
Explain Source Code
|
|
19
|
-
===================
|
|
20
|
-
|
|
21
18
|
<skill name="ase-code-explain">
|
|
22
19
|
Explain Source Code
|
|
23
20
|
</skill>
|
|
24
21
|
|
|
25
|
-
<role>
|
|
26
|
-
Your role is an experienced, *expert-level software developer*,
|
|
27
|
-
specialized in *explaining source code*.
|
|
28
|
-
</role>
|
|
29
|
-
|
|
30
22
|
<objective>
|
|
31
23
|
*Analyze* the source code of $ARGUMENTS, and its directly related source
|
|
32
24
|
code and *explain* it in a *brief*, *standardized*, and *concise* way.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
## NAME
|
|
3
|
+
|
|
4
|
+
`ase-code-explain` - Explain Source Code
|
|
5
|
+
|
|
6
|
+
## SYNOPSIS
|
|
7
|
+
|
|
8
|
+
`ase-code-explain`
|
|
9
|
+
[`--help`|`-h`]
|
|
10
|
+
*source-reference*
|
|
11
|
+
|
|
12
|
+
## DESCRIPTION
|
|
13
|
+
|
|
14
|
+
The `ase-code-explain` skill analyzes and explains the source code of
|
|
15
|
+
the referenced location in a *brief*, *standardized*, and *concise*
|
|
16
|
+
way along six dimensions: *WHAT* (functionality), *WHY* (rationale),
|
|
17
|
+
*ANALOGY* (everyday-life comparison in ELI5 style), *DIAGRAM* (Mermaid
|
|
18
|
+
diagram of control flow, data flow, or structure), *CRUXES* (what to
|
|
19
|
+
notice), and *GOTCHAS* (what to not stumble over).
|
|
20
|
+
|
|
21
|
+
## ARGUMENTS
|
|
22
|
+
|
|
23
|
+
*source-reference*:
|
|
24
|
+
A file, directory, function, or other reference to the source code
|
|
25
|
+
to explain.
|
|
26
|
+
|
|
27
|
+
## EXAMPLES
|
|
28
|
+
|
|
29
|
+
Explain a single source file:
|
|
30
|
+
|
|
31
|
+
```text
|
|
32
|
+
❯ /ase-code-explain src/parser.ts
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Explain a specific function:
|
|
36
|
+
|
|
37
|
+
```text
|
|
38
|
+
❯ /ase-code-explain src/parser.ts#parseExpression
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## SEE ALSO
|
|
42
|
+
|
|
43
|
+
`ase-code-insight`, `ase-code-analyze`, `ase-arch-analyze`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ase-code-insight
|
|
3
|
-
argument-hint: "<code-references>"
|
|
3
|
+
argument-hint: "[--help|-h] <code-references>"
|
|
4
4
|
description: >
|
|
5
5
|
Give insights into the source code.
|
|
6
6
|
user-invocable: true
|
|
@@ -18,18 +18,10 @@ allowed-tools:
|
|
|
18
18
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-control.md
|
|
19
19
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-skill.md
|
|
20
20
|
|
|
21
|
-
Project Insight
|
|
22
|
-
===============
|
|
23
|
-
|
|
24
21
|
<skill name="ase-code-insight">
|
|
25
22
|
Project Insight
|
|
26
23
|
</skill>
|
|
27
24
|
|
|
28
|
-
<role>
|
|
29
|
-
Your role is an experienced, *expert-level software developer*,
|
|
30
|
-
specialized in *analyzing source code* and giving insights.
|
|
31
|
-
</role>
|
|
32
|
-
|
|
33
25
|
<objective>
|
|
34
26
|
Give *insights* into the project through the source code of $ARGUMENTS.
|
|
35
27
|
</objective>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
## NAME
|
|
3
|
+
|
|
4
|
+
`ase-code-insight` - Project Insight
|
|
5
|
+
|
|
6
|
+
## SYNOPSIS
|
|
7
|
+
|
|
8
|
+
`ase-code-insight`
|
|
9
|
+
[`--help`|`-h`]
|
|
10
|
+
*code-references*
|
|
11
|
+
|
|
12
|
+
## DESCRIPTION
|
|
13
|
+
|
|
14
|
+
The `ase-code-insight` skill gives high-level *insights* into the
|
|
15
|
+
project through the referenced source code. The skill produces four
|
|
16
|
+
sections: a *PROJECT ABSTRACT* (summary derived from `README.*` or
|
|
17
|
+
source scanning), a *PROJECT AUTHOR* list (from `git shortlog`),
|
|
18
|
+
a *SOURCE CHURN* table (most-committed files in the last year), and
|
|
19
|
+
a *MODULE STRUCTURE* Mermaid diagram of modules and their imports.
|
|
20
|
+
|
|
21
|
+
## ARGUMENTS
|
|
22
|
+
|
|
23
|
+
*code-references*:
|
|
24
|
+
One or more file or directory references to source code that
|
|
25
|
+
should be inspected for insights.
|
|
26
|
+
|
|
27
|
+
## EXAMPLES
|
|
28
|
+
|
|
29
|
+
Get insights into the current project:
|
|
30
|
+
|
|
31
|
+
```text
|
|
32
|
+
❯ /ase-code-insight src/
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Get insights into a specific subsystem:
|
|
36
|
+
|
|
37
|
+
```text
|
|
38
|
+
❯ /ase-code-insight tool/src/
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## SEE ALSO
|
|
42
|
+
|
|
43
|
+
`ase-code-explain`, `ase-code-analyze`, `ase-arch-analyze`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ase-code-lint
|
|
3
|
-
argument-hint: "<source-reference>"
|
|
3
|
+
argument-hint: "[--help|-h] [--auto|-a] <source-reference>"
|
|
4
4
|
description: >
|
|
5
5
|
Lint source code for potential code quality problems.
|
|
6
6
|
Use when the user wants to "lint" or "check" source code.
|
|
@@ -14,9 +14,6 @@ effort: high
|
|
|
14
14
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-dialog.md
|
|
15
15
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md
|
|
16
16
|
|
|
17
|
-
Lint Source Code
|
|
18
|
-
================
|
|
19
|
-
|
|
20
17
|
<skill name="ase-code-lint">
|
|
21
18
|
Lint Source Code
|
|
22
19
|
</skill>
|
|
@@ -27,11 +24,6 @@ Lint Source Code
|
|
|
27
24
|
$ARGUMENTS
|
|
28
25
|
</expand>
|
|
29
26
|
|
|
30
|
-
<role>
|
|
31
|
-
Your role is an experienced, *expert-level software developer*,
|
|
32
|
-
specialized in *analyzing source code*.
|
|
33
|
-
</role>
|
|
34
|
-
|
|
35
27
|
<objective>
|
|
36
28
|
*Analyze* the code of `<getopt-arguments/>` for *potential problems*
|
|
37
29
|
related to a set of code quality aspects.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
|
|
2
|
+
## NAME
|
|
3
|
+
|
|
4
|
+
`ase-code-lint` - Lint Source Code
|
|
5
|
+
|
|
6
|
+
## SYNOPSIS
|
|
7
|
+
|
|
8
|
+
`ase-code-lint`
|
|
9
|
+
[`--help`|`-h`]
|
|
10
|
+
[`--auto`|`-a`]
|
|
11
|
+
*source-reference*
|
|
12
|
+
|
|
13
|
+
## DESCRIPTION
|
|
14
|
+
|
|
15
|
+
The `ase-code-lint` skill lints the source code of the referenced
|
|
16
|
+
location for *potential code quality problems* related to a fixed set
|
|
17
|
+
of code quality aspects. The investigation is dispatched to a
|
|
18
|
+
sub-agent (`ase:ase-code-lint`) so that scanning details do not leak
|
|
19
|
+
into the user-visible transcript.
|
|
20
|
+
|
|
21
|
+
For each detected problem, the skill renders a unified-diff *SOLUTION*
|
|
22
|
+
preview and either asks the user to `ACCEPT` or `REJECT` the proposed
|
|
23
|
+
correction interactively or — with `--auto` — applies all corrections
|
|
24
|
+
automatically.
|
|
25
|
+
|
|
26
|
+
## OPTIONS
|
|
27
|
+
|
|
28
|
+
`--auto`|`-a`:
|
|
29
|
+
Automatically apply every proposed correction without asking the
|
|
30
|
+
user via the interactive dialog.
|
|
31
|
+
|
|
32
|
+
## ARGUMENTS
|
|
33
|
+
|
|
34
|
+
*source-reference*:
|
|
35
|
+
A file, directory, or other reference to the source code to lint.
|
|
36
|
+
|
|
37
|
+
## EXAMPLES
|
|
38
|
+
|
|
39
|
+
Lint a source file interactively:
|
|
40
|
+
|
|
41
|
+
```text
|
|
42
|
+
❯ /ase-code-lint src/server.ts
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Lint a directory and automatically apply all corrections:
|
|
46
|
+
|
|
47
|
+
```text
|
|
48
|
+
❯ /ase-code-lint --auto src/handlers/
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## SEE ALSO
|
|
52
|
+
|
|
53
|
+
`ase-code-analyze`, `ase-code-resolve`, `ase-code-refactor`,
|
|
54
|
+
`ase-docs-proofread`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ase-code-refactor
|
|
3
|
-
argument-hint: "[<task-id>:] <request>"
|
|
3
|
+
argument-hint: "[--help|-h] [--auto|-a] [--next|-n <option>] [<task-id>:] <request>"
|
|
4
4
|
description: >
|
|
5
5
|
Refactor Code Base:
|
|
6
6
|
Use when user wants to refactor the code base.
|
|
@@ -17,9 +17,6 @@ allowed-tools:
|
|
|
17
17
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-dialog.md
|
|
18
18
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md
|
|
19
19
|
|
|
20
|
-
Refactor Artifacts
|
|
21
|
-
==================
|
|
22
|
-
|
|
23
20
|
<skill name="ase-code-refactor">
|
|
24
21
|
Refactor Artifacts
|
|
25
22
|
</skill>
|
|
@@ -30,10 +27,6 @@ Refactor Artifacts
|
|
|
30
27
|
$ARGUMENTS
|
|
31
28
|
</expand>
|
|
32
29
|
|
|
33
|
-
<role>
|
|
34
|
-
Your role is an experienced, *expert-level software developer*.
|
|
35
|
-
</role>
|
|
36
|
-
|
|
37
30
|
<objective>
|
|
38
31
|
*Refactor* existing artifacts the following way:
|
|
39
32
|
<request><getopt-arguments/></request>
|
|
@@ -61,7 +54,7 @@ permitted way to persist artifacts is via `ase_task_save(...)`.
|
|
|
61
54
|
">
|
|
62
55
|
Set <ase-task-id><request/></ase-task-id> (set task id to request)
|
|
63
56
|
and <request></request> (set request empty), call the
|
|
64
|
-
`ase_task_id(id: <ase-task-id
|
|
57
|
+
`ase_task_id(id: "<ase-task-id/>", session: "<ase-session-id/>")` tool
|
|
65
58
|
from the `ase` MCP server to switch the task, and then only
|
|
66
59
|
output the following <template/>:
|
|
67
60
|
|
|
@@ -73,8 +66,8 @@ permitted way to persist artifacts is via `ase_task_save(...)`.
|
|
|
73
66
|
2. If <request/> has the format `<id/>: <text/>` where <id/> matches
|
|
74
67
|
the regexp `^[a-zA-Z][a-zA-Z0-9_-]*$`, then set
|
|
75
68
|
<request><text/></request> and <ase-task-id><id/></ase-task-id>
|
|
76
|
-
and call the `ase_task_id(id: <ase-task-id
|
|
77
|
-
<ase-session-id/>)` tool from the `ase` MCP server to
|
|
69
|
+
and call the `ase_task_id(id: "<ase-task-id/>", session:
|
|
70
|
+
"<ase-session-id/>")` tool from the `ase` MCP server to
|
|
78
71
|
implicitly switch the task. Do not output anything.
|
|
79
72
|
|
|
80
73
|
3. If <request/> is empty,
|
|
@@ -91,8 +84,8 @@ permitted way to persist artifacts is via `ase_task_save(...)`.
|
|
|
91
84
|
">
|
|
92
85
|
Set <ase-task-id/> to a unique task id, derived from <request/>,
|
|
93
86
|
which consists of two lower-case words concatenated with a
|
|
94
|
-
`-` character. Then call the `ase_task_id(id: <ase-task-id
|
|
95
|
-
session: <ase-session-id/>)` tool from the `ase` MCP server to
|
|
87
|
+
`-` character. Then call the `ase_task_id(id: "<ase-task-id/>",
|
|
88
|
+
session: "<ase-session-id/>")` tool from the `ase` MCP server to
|
|
96
89
|
implicitly switch the task. Do not output anything.
|
|
97
90
|
</if>
|
|
98
91
|
|
|
@@ -270,7 +263,7 @@ permitted way to persist artifacts is via `ase_task_save(...)`.
|
|
|
270
263
|
words <words/> of <content/>.
|
|
271
264
|
|
|
272
265
|
3. You then *MUST* *save* the resulting plan content with the
|
|
273
|
-
`ase_task_save(id: <ase-task-id
|
|
266
|
+
`ase_task_save(id: "<ase-task-id/>", text: "<content/>")`.
|
|
274
267
|
|
|
275
268
|
4. Output a hint with the following <template/>:
|
|
276
269
|
|
|
@@ -278,9 +271,26 @@ permitted way to persist artifacts is via `ase_task_save(...)`.
|
|
|
278
271
|
⧉ **ASE**: ◉ task: **<ase-task-id/>**, ✪ plan: **<words/>** words, ▶ status: **plan created**
|
|
279
272
|
</template>
|
|
280
273
|
|
|
281
|
-
5. Directly pass-through control to the
|
|
282
|
-
|
|
283
|
-
is
|
|
284
|
-
|
|
285
|
-
|
|
274
|
+
5. Directly pass-through control to the next skill:
|
|
275
|
+
|
|
276
|
+
1. <if condition="<getopt-option-next/> is equal `IMPLEMENT`">
|
|
277
|
+
Call the tool `Skill(skill: "ase:ase-task-implement")` to
|
|
278
|
+
*implement* the freshly composed plan, bypassing `ase-task-edit`.
|
|
279
|
+
</if>
|
|
280
|
+
|
|
281
|
+
2. <if condition="<getopt-option-next/> is equal `PREFLIGHT`">
|
|
282
|
+
Call the tool `Skill(skill: "ase:ase-task-preflight")` to
|
|
283
|
+
*preflight* the freshly composed plan, bypassing `ase-task-edit`.
|
|
284
|
+
</if>
|
|
285
|
+
|
|
286
|
+
3. <if condition="
|
|
287
|
+
<getopt-option-next/> is not equal `IMPLEMENT` AND
|
|
288
|
+
<getopt-option-next/> is not equal `PREFLIGHT`
|
|
289
|
+
">
|
|
290
|
+
Set <args></args> (set args to empty).
|
|
291
|
+
<if condition="<getopt-option-next/> is not equal `none`">
|
|
292
|
+
Set <args><args/> --next <getopt-option-next/></args> (append to args).
|
|
293
|
+
</if>
|
|
294
|
+
Then call the tool `Skill(skill: "ase:ase-task-edit", args: <args/>)`.
|
|
295
|
+
</if>
|
|
286
296
|
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
|
|
2
|
+
## NAME
|
|
3
|
+
|
|
4
|
+
`ase-code-refactor` - Refactor Artifacts
|
|
5
|
+
|
|
6
|
+
## SYNOPSIS
|
|
7
|
+
|
|
8
|
+
`ase-code-refactor`
|
|
9
|
+
[`--help`|`-h`]
|
|
10
|
+
[`--auto`|`-a`]
|
|
11
|
+
[`--next`|`-n` *option*]
|
|
12
|
+
[*task-id*:] *request*
|
|
13
|
+
|
|
14
|
+
## DESCRIPTION
|
|
15
|
+
|
|
16
|
+
The `ase-code-refactor` skill refactors existing artifacts by
|
|
17
|
+
investigating the related code, internalizing refactoring tenets
|
|
18
|
+
(Behavior Preservation, Boy Scout Rule, DRY, SRP, loose coupling,
|
|
19
|
+
clear interfaces, ...), proposing one or more *refactoring approaches*
|
|
20
|
+
with pros and cons, letting the user pick the preferred approach,
|
|
21
|
+
and composing a corresponding *task plan*.
|
|
22
|
+
|
|
23
|
+
The skill does *not* directly modify source files. It persists the
|
|
24
|
+
plan via `ase_task_save` and then hands off to `ase-task-edit`,
|
|
25
|
+
`ase-task-preflight`, or `ase-task-implement`, as selected by
|
|
26
|
+
`--next`.
|
|
27
|
+
|
|
28
|
+
## OPTIONS
|
|
29
|
+
|
|
30
|
+
`--auto`|`-a`:
|
|
31
|
+
Automatically pick the recommended refactoring approach without
|
|
32
|
+
asking the user via the interactive dialog.
|
|
33
|
+
|
|
34
|
+
`--next`|`-n` *option*:
|
|
35
|
+
Automatically choose the next step after composing the plan,
|
|
36
|
+
where *option* is either `none` (default, hand-off to
|
|
37
|
+
`ase-task-edit` interactively), `DONE` (stop), `EDIT` (hand off
|
|
38
|
+
to `ase-task-edit`), `PREFLIGHT` (hand off to
|
|
39
|
+
`ase-task-preflight`), or `IMPLEMENT` (hand off to
|
|
40
|
+
`ase-task-implement`).
|
|
41
|
+
|
|
42
|
+
## ARGUMENTS
|
|
43
|
+
|
|
44
|
+
[*task-id*:] *request*:
|
|
45
|
+
Description of the refactoring *request*. Optionally prefixed
|
|
46
|
+
with a *task-id* followed by a colon to bind the resulting plan
|
|
47
|
+
to a specific task id.
|
|
48
|
+
|
|
49
|
+
## EXAMPLES
|
|
50
|
+
|
|
51
|
+
Refactor a module into smaller files:
|
|
52
|
+
|
|
53
|
+
```text
|
|
54
|
+
❯ /ase-code-refactor split src/handlers.ts into per-route modules
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Refactor under a named task and directly hand off to implementation:
|
|
58
|
+
|
|
59
|
+
```text
|
|
60
|
+
❯ /ase-code-refactor --next IMPLEMENT cleanup: extract HTTP client into its own class
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## SEE ALSO
|
|
64
|
+
|
|
65
|
+
`ase-code-craft`, `ase-code-resolve`, `ase-task-edit`,
|
|
66
|
+
`ase-task-preflight`, `ase-task-implement`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ase-code-resolve
|
|
3
|
-
argument-hint: "[<task-id>:] <problem>"
|
|
3
|
+
argument-hint: "[--help|-h] [--auto|-a] [--next|-n <option>] [<task-id>:] <problem>"
|
|
4
4
|
description: >
|
|
5
5
|
Resolve Problem:
|
|
6
6
|
Use when user wants a bug fixed or problem resolved.
|
|
@@ -17,9 +17,6 @@ allowed-tools:
|
|
|
17
17
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-dialog.md
|
|
18
18
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md
|
|
19
19
|
|
|
20
|
-
Resolve Problem
|
|
21
|
-
===============
|
|
22
|
-
|
|
23
20
|
<skill name="ase-code-resolve">
|
|
24
21
|
Resolve Problem
|
|
25
22
|
</skill>
|
|
@@ -30,10 +27,6 @@ Resolve Problem
|
|
|
30
27
|
$ARGUMENTS
|
|
31
28
|
</expand>
|
|
32
29
|
|
|
33
|
-
<role>
|
|
34
|
-
Your role is an experienced, *expert-level software developer*.
|
|
35
|
-
</role>
|
|
36
|
-
|
|
37
30
|
<objective>
|
|
38
31
|
*Resolve* the following problem:
|
|
39
32
|
<problem><getopt-arguments/></problem>
|
|
@@ -60,7 +53,7 @@ permitted way to persist artifacts is via `ase_task_save(...)`.
|
|
|
60
53
|
identifier like `P1`, `P2`, `T1`, `T2`, ...),
|
|
61
54
|
set <problem-id><problem/></problem-id> and
|
|
62
55
|
<ase-task-id><problem/></ase-task-id>, call the `ase_task_id(id:
|
|
63
|
-
<ase-task-id
|
|
56
|
+
"<ase-task-id/>", session: "<ase-session-id/>")` tool from the
|
|
64
57
|
`ase` MCP server to implicitly switch the task, and then
|
|
65
58
|
call the `ase_kv_get(key: "ase-issue-<problem-id/>")` tool of
|
|
66
59
|
the `ase` MCP server to retrieve the previously persisted
|
|
@@ -73,7 +66,7 @@ permitted way to persist artifacts is via `ase_task_save(...)`.
|
|
|
73
66
|
">
|
|
74
67
|
Set <ase-task-id><problem/></ase-task-id> (set task id to problem)
|
|
75
68
|
and <problem></problem> (set problem empty), call the
|
|
76
|
-
`ase_task_id(id: <ase-task-id
|
|
69
|
+
`ase_task_id(id: "<ase-task-id/>", session: "<ase-session-id/>")` tool
|
|
77
70
|
from the `ase` MCP server to switch the task, and then only
|
|
78
71
|
output the following <template/>:
|
|
79
72
|
|
|
@@ -85,8 +78,8 @@ permitted way to persist artifacts is via `ase_task_save(...)`.
|
|
|
85
78
|
3. If <problem/> has the format `<id/>: <text/>` where <id/> matches
|
|
86
79
|
the regexp `^[a-zA-Z][a-zA-Z0-9_-]*$`, then set
|
|
87
80
|
<problem><text/></problem> and <ase-task-id><id/></ase-task-id>
|
|
88
|
-
and call the `ase_task_id(id: <ase-task-id
|
|
89
|
-
<ase-session-id/>)` tool from the `ase` MCP server to
|
|
81
|
+
and call the `ase_task_id(id: "<ase-task-id/>", session:
|
|
82
|
+
"<ase-session-id/>")` tool from the `ase` MCP server to
|
|
90
83
|
implicitly switch the task. Do not output anything.
|
|
91
84
|
|
|
92
85
|
4. If <problem/> is empty,
|
|
@@ -103,8 +96,8 @@ permitted way to persist artifacts is via `ase_task_save(...)`.
|
|
|
103
96
|
">
|
|
104
97
|
Set <ase-task-id/> to a unique task id, derived from <problem/>,
|
|
105
98
|
which consists of two lower-case words concatenated with a
|
|
106
|
-
`-` character. Then call the `ase_task_id(id: <ase-task-id
|
|
107
|
-
session: <ase-session-id/>)` tool from the `ase` MCP server to
|
|
99
|
+
`-` character. Then call the `ase_task_id(id: "<ase-task-id/>",
|
|
100
|
+
session: "<ase-session-id/>")` tool from the `ase` MCP server to
|
|
108
101
|
implicitly switch the task. Do not output anything.
|
|
109
102
|
</if>
|
|
110
103
|
|
|
@@ -318,7 +311,7 @@ permitted way to persist artifacts is via `ase_task_save(...)`.
|
|
|
318
311
|
words <words/> of <content/>.
|
|
319
312
|
|
|
320
313
|
3. You then *MUST* *save* the resulting plan content with the
|
|
321
|
-
`ase_task_save(id: <ase-task-id
|
|
314
|
+
`ase_task_save(id: "<ase-task-id/>", text: "<content/>")`.
|
|
322
315
|
|
|
323
316
|
4. If <problem-id/> is set (i.e. the <problem/> was retrieved from
|
|
324
317
|
`ase_kv_get` in STEP 1.3 via key `ase-issue-<problem-id/>`),
|
|
@@ -333,9 +326,26 @@ permitted way to persist artifacts is via `ase_task_save(...)`.
|
|
|
333
326
|
⧉ **ASE**: ◉ task: **<ase-task-id/>**, ✪ plan: **<words/>** words, ▶ status: **plan created**
|
|
334
327
|
</template>
|
|
335
328
|
|
|
336
|
-
6. Directly pass-through control to the
|
|
337
|
-
|
|
338
|
-
is
|
|
339
|
-
|
|
340
|
-
|
|
329
|
+
6. Directly pass-through control to the next skill:
|
|
330
|
+
|
|
331
|
+
1. <if condition="<getopt-option-next/> is equal `IMPLEMENT`">
|
|
332
|
+
Call the tool `Skill(skill: "ase:ase-task-implement")` to
|
|
333
|
+
*implement* the freshly composed plan, bypassing `ase-task-edit`.
|
|
334
|
+
</if>
|
|
335
|
+
|
|
336
|
+
2. <if condition="<getopt-option-next/> is equal `PREFLIGHT`">
|
|
337
|
+
Call the tool `Skill(skill: "ase:ase-task-preflight")` to
|
|
338
|
+
*preflight* the freshly composed plan, bypassing `ase-task-edit`.
|
|
339
|
+
</if>
|
|
340
|
+
|
|
341
|
+
3. <if condition="
|
|
342
|
+
<getopt-option-next/> is not equal `IMPLEMENT` AND
|
|
343
|
+
<getopt-option-next/> is not equal `PREFLIGHT`
|
|
344
|
+
">
|
|
345
|
+
Set <args></args> (set args to empty).
|
|
346
|
+
<if condition="<getopt-option-next/> is not equal `none`">
|
|
347
|
+
Set <args><args/> --next <getopt-option-next/></args> (append to args).
|
|
348
|
+
</if>
|
|
349
|
+
Then call the tool `Skill(skill: "ase:ase-task-edit", args: <args/>)`.
|
|
350
|
+
</if>
|
|
341
351
|
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
|
|
2
|
+
## NAME
|
|
3
|
+
|
|
4
|
+
`ase-code-resolve` - Resolve Problem
|
|
5
|
+
|
|
6
|
+
## SYNOPSIS
|
|
7
|
+
|
|
8
|
+
`ase-code-resolve`
|
|
9
|
+
[`--help`|`-h`]
|
|
10
|
+
[`--auto`|`-a`]
|
|
11
|
+
[`--next`|`-n` *option*]
|
|
12
|
+
[*task-id*:] *problem*
|
|
13
|
+
|
|
14
|
+
## DESCRIPTION
|
|
15
|
+
|
|
16
|
+
The `ase-code-resolve` skill resolves a *bug* or *problem* by
|
|
17
|
+
investigating the related code, internalizing resolution tenets
|
|
18
|
+
(Surgical Changes, No Cleanups, Minimum Flags, Code Adequacy, Origin
|
|
19
|
+
Proximity, ...), proposing one or more *resolution approaches* with
|
|
20
|
+
pros and cons, letting the user pick the preferred approach, and
|
|
21
|
+
composing a corresponding *task plan*.
|
|
22
|
+
|
|
23
|
+
The *problem* may also be given as a bare issue identifier (e.g. `P1`
|
|
24
|
+
or `T1`) previously produced by `ase-code-analyze` or
|
|
25
|
+
`ase-arch-analyze` and persisted in the `ase` MCP key/value store
|
|
26
|
+
under `ase-issue-<id>`.
|
|
27
|
+
|
|
28
|
+
The skill does *not* directly modify source files. It persists the
|
|
29
|
+
plan via `ase_task_save` and then hands off to `ase-task-edit`,
|
|
30
|
+
`ase-task-preflight`, or `ase-task-implement`, as selected by
|
|
31
|
+
`--next`.
|
|
32
|
+
|
|
33
|
+
## OPTIONS
|
|
34
|
+
|
|
35
|
+
`--auto`|`-a`:
|
|
36
|
+
Automatically pick the recommended resolution approach without
|
|
37
|
+
asking the user via the interactive dialog.
|
|
38
|
+
|
|
39
|
+
`--next`|`-n` *option*:
|
|
40
|
+
Automatically choose the next step after composing the plan,
|
|
41
|
+
where *option* is either `none` (default, hand-off to
|
|
42
|
+
`ase-task-edit` interactively), `DONE` (stop), `EDIT` (hand off
|
|
43
|
+
to `ase-task-edit`), `PREFLIGHT` (hand off to
|
|
44
|
+
`ase-task-preflight`), or `IMPLEMENT` (hand off to
|
|
45
|
+
`ase-task-implement`).
|
|
46
|
+
|
|
47
|
+
## ARGUMENTS
|
|
48
|
+
|
|
49
|
+
[*task-id*:] *problem*:
|
|
50
|
+
Description of the *problem* to resolve, or a bare issue
|
|
51
|
+
identifier like `P1` or `T1` previously produced by an analyzer
|
|
52
|
+
skill. Optionally prefixed with a *task-id* followed by a colon
|
|
53
|
+
to bind the resulting plan to a specific task id.
|
|
54
|
+
|
|
55
|
+
## EXAMPLES
|
|
56
|
+
|
|
57
|
+
Resolve a free-text problem:
|
|
58
|
+
|
|
59
|
+
```text
|
|
60
|
+
❯ /ase-code-resolve fix race condition in cache invalidation
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Resolve a previously analyzed issue and hand off to implementation:
|
|
64
|
+
|
|
65
|
+
```text
|
|
66
|
+
❯ /ase-code-resolve --next IMPLEMENT P1
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## SEE ALSO
|
|
70
|
+
|
|
71
|
+
`ase-code-craft`, `ase-code-refactor`, `ase-code-analyze`,
|
|
72
|
+
`ase-arch-analyze`, `ase-task-edit`, `ase-task-preflight`,
|
|
73
|
+
`ase-task-implement`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ase-docs-proofread
|
|
3
|
-
argument-hint: "<docs-reference>"
|
|
3
|
+
argument-hint: "[--help|-h] [--auto|-a] <docs-reference>"
|
|
4
4
|
description: >
|
|
5
5
|
Analyze the documents for spelling, punctuation, or grammar errors.
|
|
6
6
|
Use when the user wants to "proofread" or "spellcheck" a document.
|
|
@@ -14,11 +14,8 @@ effort: high
|
|
|
14
14
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-dialog.md
|
|
15
15
|
@${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md
|
|
16
16
|
|
|
17
|
-
Proofread Documentation
|
|
18
|
-
=======================
|
|
19
|
-
|
|
20
17
|
<skill name="ase-docs-proofread">
|
|
21
|
-
Analyze
|
|
18
|
+
Analyze documents for spelling, punctuation, or grammar errors
|
|
22
19
|
</skill>
|
|
23
20
|
|
|
24
21
|
<expand name="getopt"
|
|
@@ -27,14 +24,8 @@ Analyze the documents for spelling, punctuation, or grammar errors.
|
|
|
27
24
|
$ARGUMENTS
|
|
28
25
|
</expand>
|
|
29
26
|
|
|
30
|
-
<role>
|
|
31
|
-
Your role is an experienced, *expert-level proofreader*, specialized in
|
|
32
|
-
checking and correcting the *spelling*, *punctuation* and *grammar* of
|
|
33
|
-
documents.
|
|
34
|
-
</role>
|
|
35
|
-
|
|
36
27
|
<objective>
|
|
37
|
-
*
|
|
28
|
+
*Proofread* the documents of `<getopt-arguments/>` for problems in their
|
|
38
29
|
*spelling*, *punctuation*, or *grammar* and propose corrections.
|
|
39
30
|
</objective>
|
|
40
31
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
|
|
2
|
+
## NAME
|
|
3
|
+
|
|
4
|
+
`ase-docs-proofread` - Proofread Documents
|
|
5
|
+
|
|
6
|
+
## SYNOPSIS
|
|
7
|
+
|
|
8
|
+
`ase-docs-proofread`
|
|
9
|
+
[`--help`|`-h`]
|
|
10
|
+
[`--auto`|`-a`]
|
|
11
|
+
*docs-reference*
|
|
12
|
+
|
|
13
|
+
## DESCRIPTION
|
|
14
|
+
|
|
15
|
+
The `ase-docs-proofread` skill analyzes the referenced documents for
|
|
16
|
+
*spelling*, *punctuation*, and *grammar* errors and proposes
|
|
17
|
+
corrections. The investigation is dispatched to a sub-agent
|
|
18
|
+
(`ase:ase-docs-proofread`) so that scanning details do not leak into
|
|
19
|
+
the user-visible transcript.
|
|
20
|
+
|
|
21
|
+
For each detected problem, the skill renders a unified-diff
|
|
22
|
+
*CORRECTION* preview and either asks the user to `ACCEPT` or `REJECT`
|
|
23
|
+
the proposed correction interactively or — with `--auto` — applies
|
|
24
|
+
all corrections automatically.
|
|
25
|
+
|
|
26
|
+
## OPTIONS
|
|
27
|
+
|
|
28
|
+
`--auto`|`-a`:
|
|
29
|
+
Automatically apply every proposed correction without asking the
|
|
30
|
+
user via the interactive dialog.
|
|
31
|
+
|
|
32
|
+
## ARGUMENTS
|
|
33
|
+
|
|
34
|
+
*docs-reference*:
|
|
35
|
+
A file, directory, or other reference to the documents to
|
|
36
|
+
proofread.
|
|
37
|
+
|
|
38
|
+
## EXAMPLES
|
|
39
|
+
|
|
40
|
+
Proofread a single document interactively:
|
|
41
|
+
|
|
42
|
+
```text
|
|
43
|
+
❯ /ase-docs-proofread README.md
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Proofread an entire documentation directory automatically:
|
|
47
|
+
|
|
48
|
+
```text
|
|
49
|
+
❯ /ase-docs-proofread --auto docs/
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## SEE ALSO
|
|
53
|
+
|
|
54
|
+
`ase-code-lint`, `ase-meta-changes`.
|