Skip to content
Back to skills

Analyze Codebase

ASecurity

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".

  • 122 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 26, 2026
tools

Works with

  • terminal
  • cli

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add SkeneTechnologies/skene --skill analyze-codebase --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Analyze Codebase?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Analyze Codebase
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/skenetechnologies-analyze-codebase/badge)](https://www.skillsdirectory.com/skills/skenetechnologies-analyze-codebase)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.