What problem does it solve?
This Skill automates the complex and time-consuming process of analyzing source code to generate detailed, language-agnostic specifications and design documents. It captures business logic, API contracts, and system behavior, enabling cleaner code migration and better documentation.
Core Features & Use Cases
- Business Logic Extraction: Identifies and tags domain, infrastructure, and mechanical logic within code.
- API Contract Generation: Documents inbound endpoints and outbound API calls with precise request/response shapes.
- Language-Agnostic Artifacts: Produces
specs.md and design.md files that are independent of the source language, suitable for any target platform.
- Use Case: Migrating a legacy TypeScript microservice to Rust. Use this Skill to analyze the TypeScript code, generating detailed specifications that guide the Rust implementation, ensuring all business logic and external interactions are accurately translated.
Quick Start
Use the code-analyzer skill to analyze the source code located at '/path/to/source/code' and output the artifacts to '/path/to/change/directory'.