Skip to content
Product
Skill

/analyze-codebase

Run comprehensive PLG analysis on a codebase to detect tech stack, existing growth features, and revenue opportunities. Use when the user says "analyze", "scan", "audit codebase", or "find growth opportunities".

BOOST
From plugin
skene
1266 skills6 commands
Install
$ npx -y skills add skenetechnologies/skene --skill analyze-codebase --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/analyze-codebase

Context preview

The summary Claude sees to decide when to auto-load this skill.

Run comprehensive PLG analysis on a codebase to detect tech stack, existing growth features, and revenue opportunities. Use when the user says "analyze", "scan", "audit codebase", or "find growth opportunities".

SKILL.md

analyze-codebase.SKILL.md
name: analyze-codebase
description: Run comprehensive PLG analysis on a codebase to detect tech stack, existing growth features, and revenue opportunities. Use when the user says "analyze", "scan", "audit codebase", or "find growth opportunities".

Analyze Codebase

Run the Skene CLI to analyze the codebase. **The CLI does the analysis, not you.**

Critical rule

**Do NOT substitute your own PLG analysis, findings, or guesses if the CLI fails.** Run the CLI, present its output on success, report the error on failure. That's it.

Agent behavior rules

  • **Autonomous.** Run the CLI, present results, suggest next step. No mid-flow questions.
  • **User cannot type into agent terminals.** The agent handles all CLI input. Pipe safe defaults for routine prompts. Kill stuck terminals and re-run with piped input.

Steps

1. **Discover CLI options** Run `uvx skene analyze --help` to see available flags. Use only flags that appear in the output.

2. **Verify configuration** `ls .skene.config 2>/dev/null` — if missing: "Run `/skene-init` first." Stop.

3. **Run analysis** Default to project root. Choose appropriate flags based on --help output.

   uvx skene analyze .

Tell the user: "Running analysis, this may take a few minutes."

4. **Handle result**

  • **Success**: Read results from `.skene/analysis/`, `skene-context/`, or legacy `skene/` and present them. Suggest `/skene-plan`.
  • **Failure**: Report the exact error, suggest a fix, **stop**. Do NOT generate your own analysis.

Error handling

  • **429 / quota**: "LLM provider quota error. Check billing, then re-run."
  • **Permission errors**: Give user the command to run in their own terminal.
  • **Timeout**: "Try a smaller directory."
  • **Any other error**: Report verbatim.

Output

Success: CLI results + "Run `/skene-plan` next." Failure: Error + fix suggestion. No substitute analysis.

Read more
Ships withskene

Product-Led Growth (PLG) analysis toolkit that detects tech stacks, plans growth loops and builds the loop iteratively.

Get the whole plugin

Other skills on skene.