Best for
- Pre-Audit Onboarding: Map attack surface before security audit
- Exploit Research: Locate vulnerable code patterns in target software
- Supply Chain Analysis: Understand third-party library integration points
brucesongs/kali-claw/skills/codebase-onboarding/SKILL.md
Rapidly acquire a mental model of any unfamiliar codebase — from a 500-line script to a 100M+ line monorepo. This skill transforms raw code into structured intelligence: architecture maps, entry points, data flows, security surfaces, and onboarding confidence scores.
Decision brief
Rapidly acquire a mental model of any unfamiliar codebase — from a 500-line script to a 100M+ line monorepo. This skill transforms raw code into structured intelligence: architecture maps, entry points, data flows, security surfaces, and onboarding confidence scores.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Declared | Source record | Install path and trigger |
| Cursor | Declared | Source record | Install path and trigger |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/brucesongs/kali-claw --skill "skills/codebase-onboarding"Inspect the Agent Skill "codebase-onboarding" from https://github.com/brucesongs/kali-claw/blob/a3205f5484ca8fec9fd809f3c16fe41fbc6ac87e/skills/codebase-onboarding/SKILL.md at commit a3205f5484ca8fec9fd809f3c16fe41fbc6ac87e. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Before reading any code:
Count files, LOC, and language distribution
Trace request/data flow from entry point to persistence
Authentication and authorization code locations
Critical path tracing for key operations
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 95/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 67 | Source | Repository attention, not individual Skill quality |
| Compatibility | 2 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
This skill transforms raw code into structured intelligence: architecture maps, entry points, data flows, security surfaces, and onboarding confidence scores.
Domain: knowledge
| Attribute | Value |
|---|---|
| Domain | Knowledge Operations |
| Skill ID | codebase-onboarding |
| Version | 1.0.0 |
| Hacker Laws | Law 1 (Know Your Battlefield), Law 3 (Intelligence Over Force), Law 9 (Systematic Over Random) |
| Related Skills | knowledge-ops, deep-research, social-intelligence |
Rapidly acquire a mental model of any unfamiliar codebase — from a 500-line script to a 100M+ line monorepo. This skill transforms raw code into structured intelligence: architecture maps, entry points, data flows, security surfaces, and onboarding confidence scores.
In security contexts, codebase onboarding is the first step before code audits, vulnerability research, exploit development, and supply chain analysis.
Three modes based on what you need to know, not how much time you have:
| Mode | When to Use | Output |
|---|---|---|
| Targeted | You know what you're looking for (e.g., "find all auth code") | Focused map of specific subsystem |
| Exploratory | You need to understand a feature area or module | Module-level architecture + data flows |
| Comprehensive | Full audit, exploit research, or security review | Complete intelligence package |
Choose mode before starting. Switching modes mid-session is allowed but requires re-baselining.
Before reading any code:
Find existing documentation
Identify the skeleton
package.json, go.mod, Cargo.toml, requirements.txt, pom.xml, build.gradlemain(), app.py, index.js, server.go.env.example, config/, settings.pyDetect framework signatures
Run static index (Targeted/Comprehensive modes)
find . -name "*.py" | xargs wc -l | sort -rn | head -50| Language | Frameworks Detected | Entry Point Detection |
|---|---|---|
| Python | Django, Flask, FastAPI, Celery | main.py, app.py, manage.py, wsgi.py |
| JavaScript | Express, React, Next.js, NestJS | index.js, server.js, app.js |
| TypeScript | Same as JS + Angular | main.ts, index.ts, server.ts |
| Java | Spring Boot, Quarkus, Micronaut | Application.java, Main.java, pom.xml |
| Go | Gin, Echo, Chi, gRPC | main.go, cmd/, internal/ |
| PHP | Laravel, Symfony, WordPress | index.php, artisan, composer.json |
| Language | Notes |
|---|---|
| C / C++ | ctags/cscope required; complex build systems (CMake, Makefile) need manual interpretation |
| Rust | Cargo workspace support good; unsafe block detection is primary security focus |
| Ruby | Rails well-supported; Rack-based apps need manual routing trace |
| C# / .NET | Solution file parsing; dependency injection containers require manual tracing |
Kotlin, Scala, Swift, Objective-C, Erlang, Elixir, Haskell, COBOL, and other languages require primarily manual analysis. Use Phase 0 docs-first approach and lean on test files for behavior discovery.
For very large codebases (100M+ LOC):
Rate onboarding completeness per area:
| Score | Meaning |
|---|---|
| 0–20 | Uncharted — no meaningful understanding |
| 21–40 | Partial — know structure, not behavior |
| 41–60 | Functional — can navigate, some gaps |
| 61–80 | Solid — understand core flows and surfaces |
| 81–100 | Expert — deep understanding, audit-ready |
Report as: Overall: 72/100 | Auth: 85 | Data Layer: 60 | API Surface: 78 | Internal Logic: 65
{
"project": "target-name",
"analyzed_at": "2026-05-11",
"mode": "Comprehensive",
"language_primary": "Go",
"framework": "Gin + GORM",
"loc_total": 85000,
"confidence": {
"overall": 72,
"auth": 85,
"data_layer": 60,
"api_surface": 78,
"internal_logic": 65
},
"entry_points": ["cmd/server/main.go", "cmd/worker/main.go"],
"architecture": "Monolith with event-driven background workers",
"security_surfaces": {
"auth": "JWT via middleware/auth.go",
"input_validation": "Partial — missing in admin routes",
"secrets": "env vars via config/config.go",
"dangerous_patterns": ["SQL concatenation in reports/query.go:145"]
},
"gaps": ["Payment flow not traced", "gRPC service definitions not reviewed"],
"next_steps": ["Audit reports/query.go for SQLi", "Review payment/ module"]
}
graph TD
Client -->|HTTP| Router[Gin Router]
Router --> AuthMW[Auth Middleware]
AuthMW --> Handler[Request Handlers]
Handler --> Service[Business Logic]
Service --> Repo[Repository Layer]
Repo --> DB[(PostgreSQL)]
Service --> Queue[Redis Queue]
Queue --> Worker[Background Worker]
git clone operations; large data egress from source control..env, secrets.yml, *.pem, id_rsa files by automated agents.read_file → search_code → send_http (exfil chain)./etc/, ~/.ssh/.index=agent tool="read_file" | where match(path, "(\.env|secrets|\.pem)")git.clone events from new IP geolocation./etc/, ~/.ssh/ (suspicious).Frequently asked questions
Rapidly acquire a mental model of any unfamiliar codebase — from a 500-line script to a 100M+ line monorepo. This skill transforms raw code into structured intelligence: architecture maps, entry points, data flows, security surfaces, and onboarding confidence scores.
The source record exposes this install command: npx skills add https://github.com/brucesongs/kali-claw --skill "skills/codebase-onboarding". Inspect the command and pinned source before running it.
The pinned source record declares support for: claude code, cursor.
Alternatives
brucesongs/kali-claw
Insecure Design (OWASP A06:2025) focuses on security flaws in system architecture and design phases, rather than code implementation-level bugs.
brucesongs/kali-claw
Binary reverse engineering covers the complete chain from static analysis, dynamic debugging, to vulnerability discovery, exploit development, and malware analysis.
PramodDutta/qaskills
Gate RAG pipelines in CI with versioned golden eval sets, per-metric thresholds, baseline drift detection, and a build that fails when retrieval or answer quality regresses.
brucesongs/kali-claw
Exploit development covers the full chain from vulnerability discovery through crash analysis to working exploit code, spanning buffer overflows, ROP chains, format string bugs, and shellcode injection across x86 and ARM architectures.