Ase code resolve
Agentic Software Engineering (ASE)
npx -y skills add rse/ase --skill ase-code-resolveAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its author says it does
Copied from the file, not written here
Resolve Problem: Use when user wants to "bugfix" or "fix" code or "resolve" a problem.
SKILL.md
16.2 KB, as published. Nobody here has run it
@${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
<skill name="ase-code-resolve"> Resolve Problem </skill><expand name="getopt" arg1="ase-code-resolve" arg2="--auto|-a --dry|-d --quick|-Q --next|-n=(none|DONE|EDIT|GRILL|PREFLIGHT|IMPLEMENT)..."> $ARGUMENTS </expand>
<if condition="<getopt-option-quick/> is equal `true`"> The `--quick`/`-Q` flag is a *shorthand alias*: set <getopt-option-auto/> to `true`, <getopt-option-dry/> to `true`, and <getopt-option-next/> to `IMPLEMENT,DELETE`. Do not output anything. </if> <objective> *Resolve* the following problem: <problem><getopt-arguments/></problem> </objective>@${CLAUDE_SKILL_DIR}/../../meta/ase-format-task.md @${CLAUDE_SKILL_DIR}/../../meta/ase-tenets.md
Procedure
You MUST NOT call Edit, Write, NotebookEdit, or any
filesystem-modifying tool during this entire skill. The only
permitted way to persist artifacts is via ase_task_save(...).
-
<step id="STEP 1: Reason About Problem">
-
If <problem/> matches the regexp
^[PT]\d+$(i.e. a bare issue identifier likeP1,P2,T1,T2, ...), set <problem-id><problem/></problem-id> and <ase-task-id><problem/></ase-task-id>, then call thease_kv_get(key: "ase-issue-<problem-id/>")tool of theaseMCP server to retrieve the previously persisted problem description. If the returnedtextis non-empty, set <problem><text/></problem> and call thease_task_id(id: "<ase-task-id/>", session: "<ase-session-id/>")tool from theaseMCP server to implicitly switch the task, otherwise complain to the user that no analyzer result exists for <problem-id/> and stop processing. -
<if condition=" <problem-id/> is not set AND <problem/> matches the regexp `^[a-zA-Z][a-zA-Z0-9_-]*$` "> Set <ase-task-id><problem/></ase-task-id> (set task id to problem) and <problem></problem> (set problem empty), call the
<template> ⧉ **ASE**: ◉ task: **<ase-task-id/>**, ▶ status: **task given** </template> </if>ase_task_id(id: "<ase-task-id/>", session: "<ase-session-id/>")tool from theaseMCP server to switch the task, and then only output the following <template/>: -
<if condition=" <problem-id/> is not set AND <problem/> has the format `<id/>: <text/>` AND <id/> matches the regexp `^[a-zA-Z][a-zA-Z0-9_-]*$` "> Set <problem><text/></problem> and <ase-task-id><id/></ase-task-id> and call the
ase_task_id(id: "<ase-task-id/>", session: "<ase-session-id/>")tool from theaseMCP server to implicitly switch the task. Do not output anything. </if> -
<if condition="<problem/> is empty">
Ask the user interactively, without a special tool, for the
initial problem with a single question:
**No problem details known yet. What is the problem you want to resolve?**Then set <problem/> to the response of the user. </if>
-
<if condition=" <ase-task-id/> is equal `default` and <problem/> is not empty "> Set <ase-task-id/> to a unique task id, derived from <problem/>, which consists of two lower-case words concatenated with a
-character. Then call thease_task_id(id: "<ase-task-id/>", session: "<ase-session-id/>")tool from theaseMCP server to implicitly switch the task. Do not output anything. </if> -
Report the task and problem with the following <template/>:
<template> ⧉ **ASE**: ◉ task: **<ase-task-id/>** ⧉ **ASE**: ⇌ problem: **<problem/>** </template> -
Figure out what the requested <problem/> is about.
-
Ask the user for clarification if the goal of this resolution is too unclear.
-
Do not output anything else in this step, unless you asked the user.
-
Investigate and figure out details related to this problem. Report those details with the following <template/>:
<template> <ase-tpl-bullet-signal/> **PROBLEM CONTEXT**: *<context/>* <affected-code-excerpt/> <optional-diagram/><ase-tpl-bullet-signal/> PROBLEM DETAILS: <summary/> ● [...] ● [...] ● [...] </template>
Hints:
-
Give a short one-sentence <context/> of the <problem/> plus a short excerpt of the affected code <affected-code-excerpt/>.
-
Give a short one-sentence <summary/> of the <problem/> plus precise but brief code processing information to understand the problem. Try to keep the number of bullet points (●) in the range of 1-4.
-
In case of a complex context situation with complex structure (layout, components, dependencies, etc), complex control flow (branching, concurrency, etc), complex state machine (states, transitions, etc), complex data flow (actors, messages, etc), or complex data structure (classes, entities, relationships, etc), visualize it with an optional diagram <optional-diagram/> by building a Mermaid specification <mermaid-spec/> (e.g.
flowchart TB,stateDiagram-v2,sequenceDiagram,classDiagram, orerDiagram, depending on intent) and dispatching the rendering to thease-meta-diagramsub-agent by calling the toolAgent(description: "Diagram Rendering", subagent_type: "ase:ase-meta-diagram", prompt: <mermaid-spec/>, run_in_background: false), reproducing its returned fenced code block verbatim. Omit <optional-diagram/> entirely for simple or purely local situations.
-
-
-
<step id="STEP 2: Investigate Code Base">
-
Check the existing source files for all code which is related to the requested <problem/> resolution.
-
Check the architecture of the existing code base to understand the overall structures and dynamics.
-
Do not output anything in this STEP 2.
-
-
<step id="STEP 3: Internalize Problem Resolution Tenets">
-
You MUST internalize and strictly honor the GENERIC TENETS, and the RESOLVING TENETS of the ASE Tenets when updating in the following. Do not output anything.
-
Do not output anything in this STEP 3.
-
-
<step id="STEP 4: Choose Problem Resolution Approaches">
You MUST perform the following sub-steps internally and without any output until and including the recommendation decision. Only sub-steps 4-7 below are allowed to produce output; sub-steps 4-6 only if <getopt-option-auto/> is equal
falseand <ase-project-boxing/> is not equalblack.If <getopt-option-auto/> is equal
trueor <ase-project-boxing/> is equalblack, skip the reporting sub-steps 4-6 entirely (they perform no output at all) to speed up processing.-
Propose a corresponding resolution approach, optionally including some alternative resolution approaches. Do not output anything in this sub-step.
-
Reflect on and critique the proposed approaches by deriving, per approach, a small set of concrete pros and cons. Do not output anything in this sub-step.
-
Based on the reflection, decide which approach to recommend and annotate it with an <annotation/> of
⚝ **RECOMMENDATION** ⚝. All other approaches receive an empty <annotation/>. Do not output anything in this sub-step. -
Indicate start of reporting by showing the following <template/>:
<template> <ase-tpl-head title="APPROACHES"/> </template> -
Now report each approach with the following <template/>, inlining its pros/cons derived in sub-step 2, and do not output anything else in this step:
<template> ● **APPROACH A<n/>**<annotation/>: **<summary/>** ○ [...] ⊕ *PRO*: [...] ⊖ *CON*: [...] </template>Hints:
- Give a short one-sentence <summary/> of the resolution
approach plus precise and ultra brief and concise
resolution information. Try to keep the number of bullet points
(
○ [...]) in the range of 1-4.
- Give a short one-sentence <summary/> of the resolution
approach plus precise and ultra brief and concise
resolution information. Try to keep the number of bullet points
(
-
Indicate end of reporting by showing the following <template/>:
<template> <ase-tpl-foot title="APPROACHES"/> </template> -
<if condition="<getopt-option-auto/> is not equal `true` and <ase-project-boxing/> is not equal `black`">
In the following, you MUST NOT use your built-in <user-dialog-tool/> tool! Instead, you MUST just show a custom dialog according to the expanded
custom-dialogdefinition. You MUST closely follow this definition.Let the user choose the preferred approach A<n/> by raising a question with the following custom dialog, where per approach A<n/>, you determine an ultra brief summary <short-summary/> and then use the answer option
<expand name="custom-dialog" arg1="--no-other"> Select Approach: Select your preferred resolution approach to follow? A<n/>: <short-summary/> [...] </expand> </if> <else>A<n/>: ⚝ **RECOMMENDATION** ⚝ - <short-summary/>for your recommended approach plus zero or more answer optionsA<n/>: <short-summary/>for all other approaches:Set <n/> to the number of the resolution approach A<n/> you recommend. Output a hint with the following <template/>:
<template> ⧉ **ASE**: ◉ task: **<ase-task-id/>**, ▶ status: **auto-chosen approach A<n/>** </template> </else>
-
-
<step id="STEP 5: Compose Problem Resolution Plan">
-
Compose a plan with code references, a precise description of the problem, the chosen resolution approach, a preview of the unified diff of the necessary code changes, and a possible way to verify the success of the resolution, by using the <format/> defined for a task plan. Store the resulting task plan in <task-content/>.
If a
<if condition="<getopt-option-dry/> is equal `true`"> You *MUST* completely omit the `## VERIFICATION` section (including its heading and all of its bullet points) from <task-content/>. </if>CHANGELOG.mdfile exists in the project (or in any affected sub-package), the plan MUST include, as part of its## CHANGESsection, an explicit bullet point describing the addition of a corresponding new entry to thatCHANGELOG.mdfile, aligned with its existing style and conventions.You MUST NOT call
Edit,Write,NotebookEdit, or any filesystem-modifying tool during this step. -
Call the
ase_timestamp(format: "yyyy-LL-dd HH:mm")tool of theaseMCP server and use thetextfield of its response for <timestamp-created/> and <timestamp-modified/> information. Then insert the current <ase-task-id/>, <timestamp-created/>, and <timestamp-modified/> information and calculate the number of words <words/> of <task-content/>. -
You then MUST save the resulting plan content with the
ase_task_save(id: "<ase-task-id/>", text: "<task-content/>"). -
If <problem-id/> is set (i.e. the <problem/> was retrieved from
ase_kv_getin STEP 1.1 via keyase-issue-<problem-id/>), you MUST additionally call thease_kv_delete(key: "ase-issue-<problem-id/>")tool of theaseMCP server to remove the now-resolved analyzer result from the in-memory key/value store. -
Output a hint with the following <template/>:
<template> ⧉ **ASE**: ◉ task: **<ase-task-id/>**, ✪ plan: **<words/>** words, ▶ status: **plan created** </template> -
Directly pass-through control to the next skill:
Treat <getopt-option-next/> as a comma-separated chronological list of pre-selected next-step tokens. Peek the first token as <head/> (or
noneif the list isnone/empty). Set <args>--int-reuse-task</args>.- <if condition="<head/> is equal `DONE`"> Consume the head: set <getopt-option-next/> to the remaining tokens (joined back with `,`, or `none` if empty). `DONE` means the freshly composed plan is finalized as-is, so do *not* hand off to `ase-task-edit`. Only output the following <template/> and then *STOP*. Do *not* implement the plan. <template> ⧉ **ASE**: ◉ task: **<ase-task-id/>**, ✪ plan: **<words/>** words, ▶ status: **plan finalized -- done** </template> </if>
- <elseif condition="<head/> is equal `IMPLEMENT`"> Consume the head: set <getopt-option-next/> to the remaining tokens (joined back with `,`, or `none` if empty). <if condition="<getopt-option-next/> is not equal `none`"> Set <args><args/> --next <getopt-option-next/></args> </if> Call the tool `Skill(skill: "ase:ase-task-implement", args: "<args/>")` to *implement* the freshly composed plan, bypassing `ase-task-edit`. </elseif>
- <elseif condition="<head/> is equal `PREFLIGHT`"> Consume the head: set <getopt-option-next/> to the remaining tokens (joined back with `,`, or `none` if empty). <if condition="<getopt-option-next/> is not equal `none`"> Set <args><args/> --next <getopt-option-next/></args> </if> Call the tool `Skill(skill: "ase:ase-task-preflight", args: "<args/>")` to *preflight* the freshly composed plan, bypassing `ase-task-edit`. </elseif>
- <elseif condition="<head/> is equal `GRILL`"> Consume the head: set <getopt-option-next/> to the remaining tokens (joined back with `,`, or `none` if empty). `GRILL` is this skill's own dispatch token, *not* part of `ase-task-grill`'s `--next` vocabulary, so it must be stripped here rather than forwarded. All remaining tokens are `ase-task-grill`'s own vocabulary and are forwarded verbatim. <if condition="<getopt-option-next/> is not equal `none`"> Set <args><args/> --next <getopt-option-next/></args> </if> Call the tool `Skill(skill: "ase:ase-task-grill", args: "<args/>")` to *grill* the freshly composed plan, bypassing `ase-task-edit`. </elseif>
- <else> Hand off to `ase-task-edit`. <if condition="<head/> is equal `EDIT`"> Consume the head: set <getopt-option-next/> to the remaining tokens (joined back with `,`, or `none` if empty). `EDIT` is this skill's own dispatch token, *not* part of `ase-task-edit`'s `--next` vocabulary, so it must be stripped here rather than forwarded. </if> All remaining tokens are `ase-task-edit`'s own vocabulary and are forwarded verbatim, so `ase-task-edit` consumes its own head itself. <if condition="<getopt-option-next/> is not equal `none`"> Set <args><args/> --next <getopt-option-next/></args> </if> Then call the tool `Skill(skill: "ase:ase-task-edit", args: "<args/>")`. </else>
-