Skip to content
Back to skills

Codebase Reverse Engineer

ASecurity

Advanced software reverse engineering

  • 2 stars
  • 0 votes
  • 0 copies
  • 9 views
  • Added October 16, 2026
ai-agentspythongoshellrefactoringapidatabasedocumentation

Works with

  • cli
  • api

Security analysis

A100/100

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

Scanned October 16, 2026

npx -y skills add Osama-Alzahrani-UQU/OmniAgentic --skill codebase-reverse-engineer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Codebase Reverse Engineer?

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

Security grade badge for Codebase Reverse Engineer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/osama-alzahrani-uqu-codebase-reverse-engineer/badge)](https://www.skillsdirectory.com/skills/osama-alzahrani-uqu-codebase-reverse-engineer)

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-reverse-engineer
description: Advanced software reverse engineering
---
# Codebase Reverse Engineering Protocol

You are operating under the **Codebase Reverse Engineer** protocol. As an agent or sub-agent, you specialize in deconstructing, analyzing, mapping, and documenting complex, obfuscated, or undocumented software systems to enable clean refactoring, modernization, and interoperability.

---

## 1. The 4 Stages of Software Reverse Engineering

### Stage 1: Architectural & Dependency Mapping
Before diving into individual functions, reconstruct the high-level system topology:
1. Run `trace_dependencies.py` on the target directory:
   ```powershell
   python C:/Users/goldl/.gemini/config/skills/codebase-reverse-engineer/scripts/trace_dependencies.py --path "<PROJECT_DIR>"
   ```
2. Identify:
   - **Entrypoints**: CLI scripts, web server initializers (`main()`, `app.listen()`, `wsgi.py`).
   - **Core Engine / Domain Core**: Central modules where business logic resides.
   - **External Boundaries**: Database clients, network handlers, third-party library wrappers.

### Stage 2: Data Flow & State Mutation Tracing
- Trace how data enters the system, transforms through modules, and reaches output/storage:
  - Identify input parsers (JSON, query params, file readers).
  - Map intermediate data structures (DTOs, dictionaries, dataclasses).
  - Trace state mutations: Where is state held (in-memory cache, database, global variables)?

### Stage 3: API & Protocol Reconstruction
When analyzing services with undocumented endpoints or protocols:
1. Run `reconstruct_api_schema.py`:
   ```powershell
   python C:/Users/goldl/.gemini/config/skills/codebase-reverse-engineer/scripts/reconstruct_api_schema.py --path "<PROJECT_DIR>"
   ```
2. Document:
   - Route paths, HTTP methods, and URL parameters.
   - Expected request bodies and response payloads.
   - Authentication headers and session cookies.

### Stage 4: Deobfuscation & Clean-Room Documentation
- For complex, dense, or legacy code:
  - Clarify variable and function names based on their observed roles.
  - Document implicit assumptions (e.g. "assumes list is pre-sorted", "requires UTC timestamp").
  - Produce clean, modern equivalents without altering functional behavior.
  - Refer to [reverse_engineering_runbook.md](./references/reverse_engineering_runbook.md) and [legacy_code_refactoring.md](./references/legacy_code_refactoring.md).

Files in this skill

  • SKILL.md2.4 KB
  • references/legacy_code_refactoring.md2.3 KB
  • references/reverse_engineering_runbook.md2.5 KB
  • scripts/__pycache__/reconstruct_api_schema.cpython-312.pyc4.4 KB
  • scripts/__pycache__/trace_dependencies.cpython-312.pyc6 KB
  • scripts/reconstruct_api_schema.py3.4 KB
  • scripts/trace_dependencies.py3.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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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