Aidlc reverse engineering skill

From guyon-it-consulting/kiro-ui · View interactive version

Aidlc reverse engineering skill is an AI agent skill from the GitHub repository guyon-it-consulting/kiro-ui. Systematically analyse an existing codebase — discovering its structure, architecture, APIs, data models, dependencies, and quality posture — and produce structured design artifacts that make the system understandable to downstream work.

How to use this skill

Skill file

Reverse Engineering

Purpose

Systematically analyse an existing codebase to produce structured, accurate design artifacts that describe what exists. These artifacts become the shared understanding the team works from.

Principles

Approach

1. Discovery (breadth-first)

Scan the workspace for signals in this order:

  1. Package manifest — package.json, pom.xml, build.gradle, Cargo.toml, go.mod, pyproject.toml, *.csproj. These define the unit boundaries.
  2. Infrastructure-as-Code — CDK, Terraform, CloudFormation, Pulumi, SAM. These reveal deployment topology.
  3. API definitions — OpenAPI specs, Smithy models, GraphQL schemas, Protobuf files. These reveal contracts.
  4. Entry points — handlers, controllers, main files, CLI commands. These reveal runtime shape.
  5. Config and CI — .env, CI/CD pipelines, Docker files, deployment scripts. These reveal operational context.
  6. Tests — test directories, fixtures, mocks. These reveal what's considered critical.

2. Business context synthesis

From what you discovered, answer:

3. Architecture extraction

From the discovered components, build:

4. Quality assessment

Without running tools (unless available), assess:

Definitions

Application

When applied at the reverse-engineering stage, this skill produces the seven output artifacts defined in the stage definition: business-overview.md, architecture.md, code-structure.md, api-documentation.md, component-inventory.md, technology-stack.md, and dependencies.md.

When applied as a contributor to other stages (e.g., requirements-analysis on a brownfield project), this skill manifests as: validating that stated requirements align with the existing system's actual architecture, flagging requirements that conflict with current system boundaries, and identifying existing capabilities that may already satisfy requirements.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.