Skip to content
Back to skills

Codebase Context 1

ASecurity

Automatically discovers and indexes project structure, component signatures, types, and dependencies. Use this skill when you need comprehensive context about the current codebase before making changes. Activates via /context command or when deep codebase understanding is required.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
developmentjavascripttypescriptpythonrustgojavabashreactvuenextjs

Works with

  • api

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill codebase-context-1 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Codebase Context 1?

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

Security grade badge for Codebase Context 1
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-codebase-context-1/badge)](https://www.skillsdirectory.com/skills/david-li0406-codebase-context-1)

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: codebase-context
description: Automatically discovers and indexes project structure, component signatures, types, and dependencies. Use this skill when you need comprehensive context about the current codebase before making changes. Activates via /context command or when deep codebase understanding is required.
license: MIT
compatibility: Requires bash and standard Unix tools (find, grep, wc). Works on macOS, Linux, WSL.
metadata:
  author: alex-portfolio
  version: "1.0"
  category: development
  portable: "true"
allowed-tools: Bash(bash:*) Read
---

# Codebase Context & Slop Inquisitor

A lethal tool for codebase understanding and mediocrity elimination. Drop into any project's `.agent/skills/` directory to hunt down sanitized engineering.

## The BANNED BULLSHIT Protocol

**NEVER suggest, write, or tolerate:**

1. **Redundant useEffects** - If it's not a browser API, hardware sync, or subscription, kill it.
2. **Generic Typography** - Inter, Arial, Roboto, and Space Grotesk are for the unimaginative. Use distinctive, characterful pairings.
3. **Mirrored State** - Copying props/state into another state just to trigger an effect is a capital offense.
4. **Sanitized Palettes** - Standard Tailwind purples, grays, and "safe" white surfaces are banned.
5. **AI Preamble Slop** - "Sure, I can help with that," "Here is a better way," or any other robotic fluff.

## When to Activate

- User invokes `/context` command
- Any slop detection (via `slop-scanner.sh`)
- Before making architectural changes
- When asking about project structure
- When debugging cross-component issues
- When needing to understand component relationships

## Quick Start

Run these commands in sequence:

```bash
# 1. Detect technology stack
bash .agent/skills/codebase-context/scripts/detect-stack.sh

# 2. Scan project structure
bash .agent/skills/codebase-context/scripts/scan-structure.sh

# 3. Extract types (TypeScript projects)
bash .agent/skills/codebase-context/scripts/extract-types.sh
```

## Available Scripts

### detect-stack.sh

Outputs JSON with detected technologies:

- Language (TypeScript, JavaScript, Python, Rust)
- Framework (React, Next.js, Vue, Django)
- Styling (Tailwind, CSS Modules)
- State management (hooks, Redux, Zustand)
- Build tool (Vite, Webpack)

### scan-structure.sh

Outputs Markdown inventory:

- Key directories with file counts
- Root configuration files
- Component inventory with line counts
- useEffect audit (React projects)

### extract-types.sh

Outputs TypeScript type inventory:

- Interfaces
- Type aliases
- Enums

### extract-components.sh

Outputs component signatures:

- Props interfaces
- Hook signatures
- Pattern detection

## Output Synthesis

After running scripts, synthesize into this format:

```markdown
## Project: [Name]

### Stack

- Framework: [detected]
- Styling: [detected]
- State: [detected]

### Key Components

| Name | Lines | Notes |
| ---- | ----- | ----- |
| X    | 123   | ...   |

### Patterns

- [observed patterns]
```

## Integration with User Rules

Cross-reference findings with `MEMORY[user_global]` for:

- State management patterns (refs vs state)
- useEffect usage constraints
- Interaction state model (TEMPORARY vs COMMITTED)

## Portability

To use in another project:

```bash
cp -r .agent/skills/codebase-context /new-project/.agent/skills/
```

See [REFERENCE.md](references/REFERENCE.md) for technical details.

Files in this skill

  • README.md2.7 KB
  • SKILL.md3.3 KB
  • references/REFERENCE.md2.6 KB
  • scripts/detect-stack.sh4.3 KB
  • scripts/extract-components.sh6.1 KB
  • scripts/extract-types.sh1.8 KB
  • scripts/scan-structure.sh3.1 KB
  • scripts/slop-scanner.sh2.6 KB

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…