Review software architecture, including package cohesion and inter-package coupling
日本語の概要は準備中です。原文の説明を表示しています。
Refactor Code: Use when user wants to "refactor" or "change" the code base.
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
@${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
<purpose name="ase-code-refactor"> Refactor Source Code </purpose><expand name="getopt" arg1="ase-code-refactor" arg2="--auto|-a --dry|-d --direct|-D --quick|-Q --next|-n=(none|DONE|EDIT|GRILL|DRAFT|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> *Refactor* existing artifacts the following way: <request><getopt-arguments/></request> </objective>@${CLAUDE_SKILL_DIR}/../../meta/ase-format-task.md @${CLAUDE_SKILL_DIR}/../../meta/ase-tenets.md @${CLAUDE_SKILL_DIR}/../../meta/ase-common-code.md
<if condition="
<request/> matches the regexp `^[a-zA-Z0-9#][a-zA-Z0-9#_-]*$`
">
Set <ase-task-id><request/></ase-task-id> (set task id to request)
and <request></request> (set request empty), call the
ase_task_id(id: "<ase-task-id/>", session: "<ase-session-id/>") tool
from the ase MCP server to switch the task, and then only
output the following <template/>:
<if condition="
<request/> has the format `<id/>: <text/>` AND
<id/> matches the regexp `^[a-zA-Z0-9#][a-zA-Z0-9#_-]*$`
">
Set <request><text/></request> and
<ase-task-id><id/></ase-task-id> and call the ase_task_id(id: "<ase-task-id/>", session: "<ase-session-id/>") tool from the
ase MCP server to implicitly switch the task. Do not output
anything.
</if>
**No refactoring details known yet. What is the refactoring you want to request?**
Then set <request/> to the response of the user. </if>
<if condition="
<ase-task-id/> is equal `default` and
<request/> is not empty
">
Call the ase_task_newid(title: "<title/>", proposal: "<proposal/>") tool from the ase MCP server, where <title/> is
a brief title summarizing <request/> and <proposal/> is a task id
derived from <request/>, which consists of two lower-case words
concatenated with a - character, and set <ase-task-id/> to the
id field of its response -- the tool derives the id according
to the task id scheme of the project, so you MUST NEVER
assemble it yourself. Then call the ase_task_id(id: "<ase-task-id/>", session: "<ase-session-id/>") tool from the
ase MCP server to implicitly switch the task. Do not output
anything.
</if>
Report the task and request with the following <template/>:
<template> ⧉ **ASE**: ◉ task: **<ase-task-id/>** ⧉ **ASE**: ⇌ request: **<request/>** </template>Figure out what the artifact refactoring <request/> is about.
Ask the user for clarification if the goal of this refactoring is too unclear.
Do not output anything else in this step, unless you asked the user.
Check the existing source files for all code which is related to the refactoring <request/>.
Check the architecture of the existing code base to understand the overall structures and dynamics.
Do not output anything in this STEP 2.
<task-kind>REFACTORING</task-kind>
<expand name="code-tenets" arg1="<task-kind/>"></expand>
Do not output anything in this STEP 3.
Directly apply the refactoring <request/> by modifying the affected artifacts with a corresponding, complete change set, based on your gathered knowledge about the code base and your internalized refactoring tenets. Also, if a CHANGELOG.md file exists, make an appropriate entry there, too.
Output only the following <template/>:
<template> ⧉ **ASE**: ◉ task: **<ase-task-id/>**, ▶ status: **changes directly applied** </template>Then IMMEDIATELY STOP all further skill processing. You MUST NOT output anything else in this STEP 4 or after it -- independent of <ase-project-boxing/>, whose exposure rules are explicitly overridden here. Especially, do not output a change summary, a list of modified artifacts, a rationale, or a unified diff of the changes.
<expand name="code-approaches" arg1="refactoring" arg2="refactoring"></expand>
</step> <step id="STEP 5: Compose Refactoring Plan">Compose a refactoring plan for the chosen refactoring A<n/> by closely aligning to the existing architecture and the existing code base. Use the <format/> defined for a task plan and inject the information from refactoring A<n/> and all derived realization decisions into it. Store the resulting task plan in <task-content/>.
If a CHANGELOG.md file exists in the project (or in any
affected sub-package), the plan MUST include, as an IMP
bullet-point of its ## DESIGN (HOW) section, an explicit
bullet-point describing the addition of a corresponding new entry
to that CHANGELOG.md file, 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 the
ase MCP server and use the text field of its response for
<timestamp-created/> and <timestamp-modified/> information. Then
insert the current <ase-task-id/>, <timestamp-created/>,
<timestamp-modified/>, and <task-kind/> information.
You then MUST save the resulting plan content with the
ase_task_save(id: "<ase-task-id/>", text: "<task-content/>", create: <create/>) MCP tool call only -- NEVER by executing
a shell command -- where <create/> is true if <ase-task-id/>
was allocated via ase_task_newid in STEP 1, else false. If
this call fails because the task already exists (a concurrent
session took the same id), allocate and switch to a new
<ase-task-id/> exactly as in STEP 1, re-insert it, and save again.
Output a hint with the following <template/>:
<template> ⧉ **ASE**: ◉ task: **<ase-task-id/>**, ▶ status: **plan created** </template>Directly pass through control to the next skill:
<expand name="code-next-dispatch"></expand>
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Review software architecture, including package cohesion and inter-package coupling
日本語の概要は準備中です。原文の説明を表示しています。
Discover additional, third-party components (libraries/frameworks) for the technology stack to provide needed functionality.
日本語の概要は準備中です。原文の説明を表示しています。
Analyze the source code for problems in either the logic and semantics and its related control flow, performance and efficiency, or security.
日本語の概要は準備中です。原文の説明を表示しています。
Craft Source Code: Use when user wants to "create", "add", or "craft" a new feature from scratch.
日本語の概要は準備中です。原文の説明を表示しています。
Edit Source Code: Use when the user wants to "edit" the code base in one shot from a query or a bare analyzer issue id like "P1", fusing crafting, refactoring, and resolving with optional grilling, verification, looping, and Git worktree isolation.
日本語の概要は準備中です。原文の説明を表示しています。
Explains code with WHAT, WHY, ANALOGY, DIAGRAM, CRUXES, and GOTCHAS. Use when you want to know how code works or when the user asks "how does this work?"
日本語の概要は準備中です。原文の説明を表示しています。