1. Habit
  2. Skills
  3. CodeGraph and ast-grep skill
stark-ai-de · 3K installs

CodeGraph and ast-grep skill
Runs by itself, weekly analysis stack check.

Code analysis tools stay ready.

Install the CodeGraph and ast-grep skill and make it a habit: follow https://gethabit.dev/skills/stark-ai-de/codegraph-ast-grep.md

  1. 1Copy
  2. 2Paste into Claude Code, Codex or Cursor
  3. 3It runs by itself

3K installs8 starsApache-2.0 licenceSource on GitHub ↗

CodeGraph and ast-grep

by stark-ai-de · 3K installs

The skill

The codegraph and ast-grep skill sets up, updates or diagnoses CodeGraph and the ast-grep CLI so coding agents get semantic repository scope and structural code search, with persisted guidance and safe migrations.

Only when you ask.

The habit

Code analysis tools stay ready.

↻ Runs by itselfweekly analysis stack check

How the habit works.
You don't have to.

Three questionsWhen does it start? How does it check its work? What does it remember?

One run, step by step.
Then it stops.

Stop ruleStops after one doctor pass per run.

  1. 01

    Announce doctor

    The agent states the doctor workflow, the exact root and that nothing will be repaired.

  2. 02

    Inspect the setup

    It checks executables, versions, config, MCP registration, CODEGRAPH_DIR state and repository guidance.

  3. 03

    Ask before deep checks

    Before codegraph status or a graph query that may migrate metadata, it asks you to approve the exact root.

  4. 04

    Gather analytics

    With approval it reports freshness, indexed languages and query readiness; without it, it reports the skipped check.

  5. 05

    Log and recommend

    It writes the diagnosis to the log and suggests setup or update as a separate step.

What it may do.
Nothing more.

Safe by defaultIt writes only in its own folder and asks you before anything goes out.

Is it for you?
Use it when it fits.

Quick checkRead both lists. If the left one sounds like you, the CodeGraph and ast-grep skill helps.

Use it when

  • ✓ setting up semantic code search
  • ✓ updating CodeGraph or ast-grep
  • ✓ the analysis setup seems broken

Skip it when

  • – the stack is already ready
  • – you need a dependency audit

Questions

CodeGraph and ast-grep skill, answered.

Can the loop update the tools?

No. Agent-started runs may only pick doctor; setup and update need your explicit request.

What about telemetry?

The skill sets CODEGRAPH_TELEMETRY=0 for its own checks unless you agreed to telemetry.

How do I install the CodeGraph and ast-grep skill?

Copy the prompt at the top into your agent. It installs the skill from stark-ai-de/agent-skills and sets up the habit. Or run npx skills add stark-ai-de/agent-skills --skill codegraph-ast-grep.

Is the CodeGraph and ast-grep skill free?

Yes. It is published under Apache-2.0. Habit is free too.

CodeGraph and ast-grep. Now as a habit.

Install the CodeGraph and ast-grep skill and make it a habit: follow https://gethabit.dev/skills/stark-ai-de/codegraph-ast-grep.md

  • Free
  • No account
  • Undo in one line

All stark-ai-de skills →More code skills →

Works in

  • Claude Code
  • Codex
  • Cursor
  • ChatGPT
  • Claude app

Made by stark-ai-de, published under Apache-2.0. Habit links to the original and never changes it. Is this your skill?

Copying didn't work here. Select the line and copy it by hand.