# Ase Code Insight

> Ase Code Insight is an Agent Skill for testing & quality published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Give insights into the source code.

- Skill name: `ase-code-insight`
- Category: [Testing & Quality](https://www.openparable.com/skill/testing-quality/1)
- Source: https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/development/ase-code-insight/SKILL.md
- Repository: majiayu000/claude-skill-registry (498 GitHub stars when collected)

## SKILL.md

@${CLAUDE_SKILL_DIR}/../../meta/ase-control.md
@${CLAUDE_SKILL_DIR}/../../meta/ase-skill.md
@${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md

<skill name="ase-code-insight">
Project Insight
</skill>

<expand name="getopt" arg1="ase-code-insight">
    $ARGUMENTS
</expand>

<objective>
Give *insights* into the project through the source code of <getopt-arguments/>.
</objective>

<flow>
1.  <step id="STEP 1: PROJECT ABSTRACT">
    Determine an <abstract/> summary of this project.
    For this, check a potentially existing `README.*` file
    or scan the source files and figure it out indirectly.

    Display the results with the following <template/>:

    <template>
    <ase-tpl-bullet-normal/> **PROJECT ABSTRACT**:

    <abstract/>
    </template>
    </step>

2.  <step id="STEP 2: PROJECT AUTHOR">
    Determine the <author/> of this project.
    For this, run the following command...

    ```
    git shortlog -sn --no-merges HEAD
    ```

    ...and then display the results with the following <template/>:

    <template>
    <ase-tpl-bullet-normal/> **PROJECT AUTHOR**:

    <author/>
    </template>
    </step>

3.  <step id="STEP 3: SOURCE CHURN">
    Display the source files which caused the most churn by
    figuring out which source files have the most commits.
    Display the following <template/>:

    <template>
    <ase-tpl-bullet-normal/> **SOURCE CHURN**:
    </template>

    Then run the following command...

    ```
    git log --format=format: --name-only --since="1 year ago" | grep -v '^$' | sort | uniq -c | sort -nr | head -10
    ```

    ...and then display its result as a table with a table head and
    columns named "Commits" and "Source File". Do not display any
    further explanation of this result.
    </step>

4.  <step id="STEP 4: MODULE STRUCTURE">
    Display the following <template/>:

    <template>
    <ase-tpl-bullet-normal/> **MODULE STRUCTURE**:
    </template>

    Find all modules (or OOP classes) and build a Mermaid specification
    <mermaid-spec/> for a `flowchart TB` diagram with all modules as
    boxes and the imports between modules as the directed edges. Then
    dispatch the rendering to the `ase-meta-diagram` sub-agent by
    calling the tool `Agent(name: "ase-meta-diagram", description:
    "Diagram Rendering", subagent_type: "ase:ase-meta-diagram", prompt:
    <mermaid-spec/>)` and reproduce its returned fenced code block
    verbatim in the response text. Do not display any further
    explanation except for this diagram.
    </step>
</flow>

---

Source: https://www.openparable.com/skill/testing-quality/ase-code-insight (OpenParable). Cite the canonical URL above.
