Skip to content
Back to skills

Classify Analysis Target

ASecurity

Use when starting any codebase analysis to determine target type, feasibility, and which skills apply before investing tokens

  • 2 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 12, 2026
devopsgodockerterraformsecurity

Security analysis

A100/100

Scanned September 12, 2026

npx -y skills add quangphu1912/codebase-analyzer --skill classify-analysis-target --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Classify Analysis Target?

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

Security grade badge for Classify Analysis Target
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/quangphu1912-classify-analysis-target/badge)](https://www.skillsdirectory.com/skills/quangphu1912-classify-analysis-target)

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: classify-analysis-target
description: Use when starting any codebase analysis to determine target type, feasibility, and which skills apply before investing tokens
---

## Announce at start: "Using codebase-analyzer to classify the analysis target."

<HARD-GATE>
NO TRACK A SKILLS WITHOUT TARGET CLASSIFICATION FIRST.
An unclassified target is an unanalyzable target.
</HARD-GATE>

## `.state` File Creation

This skill creates `docs/analysis/.state` on first run. Write initial state:

```markdown
# Analysis State
classify-analysis-target: complete
```

Format: one line per skill, `skill-name: complete | partial | blocked | skipped`.
Every subsequent skill appends its status on completion.

## Overview

Classify what we're analyzing before burning tokens. This skill determines target type, analysis feasibility, and applicable skills.

## Process

1. **Scan top-level files**: Look for manifest files (package.json, Cargo.toml, go.mod, requirements.txt, Dockerfile, .tf files, .csproj, pom.xml)
2. **Check file types**: `find . -maxdepth 2 -type f | sed 's/.*\.//' | sort | uniq -c | sort -rn | head -20`
3. **Detect obfuscation/minification**: Check for single-line JS files, .pyc-only directories, .wasm files, packed binaries
4. **Identify repo structure**: Single repo, monorepo (packages/ or workspaces/), multi-service (docker-compose)
5. **Classify target type** and applicable skills

## Target Types and Applicable Skills

| Target Type | Track A | Track B Phases |
|-------------|---------|---------------|
| Web app (standard) | All 6 | All phases |
| Mobile (decompiled) | Tech stack only | All phases |
| IaC (Terraform/CF) | Tech stack + deps | Phase 2-3 (3 skills + 4 skills; no agent loop, no prompts) |
| Library/SDK | All 6 | If gated features found |
| Monorepo | All 6 | All phases |
| Container image | Tech stack only | All phases |
| Obfuscated/minified | **BLOCK** | Fail fast |

Note: All Track A skills emit SECURITY_SIGNAL in their output. These aggregate in the Track A summary for downstream security analysis.

## Rationalization Table

| Excuse | Reality |
|--------|---------|
| "Looks like a standard web app" | Similar apps differ. Check manifests before assuming. |
| "I can skip this and just start analyzing" | Wrong skills produce garbage. 30 seconds saves hours. |
| "The user asked a specific question" | Specific questions still need classification to know WHERE to look. |

## Adversarial Lens

Before classifying, ask: is this codebase what it claims to be? A repo named "internal-tools" might be a production system. A "prototype" might be running in production. The declared purpose and actual purpose may differ.

## Red Flags

- Skipping this skill because "it's obviously a web app"
- Proceeding with Track A before writing target-classification.md
- Not checking for obfuscation/minification before analysis

## Output Contract

Write `docs/analysis/target-classification.md` using standard contract.

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.