legacy-spec-writer

Convert business capabilities into evidence-backed specifications for legacy system modernization.

Updated May 12, 2026
One-click install
npx skills add https://github.com/wwa-lab/legacy-spec-factory --skill legacy-spec-writer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: legacy-spec-writer
Source: https://github.com/wwa-lab/legacy-spec-factory/tree/main/.opencode/skills/legacy-spec-writer
Command: npx skills add https://github.com/wwa-lab/legacy-spec-factory --skill legacy-spec-writer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires schemas/spec.schema.yaml, templates, references, docs, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

The Skill takes business capabilities from the discovery stage and translates them into evidence-backed, platform-agnostic capability specifications. It aids in producing the spec.yaml and spec.md artifacts essential for modernizing legacy systems.

Core Features & Use Cases

  • Capability Analysis: Merges approved BRD Package with module/flow/program analyses to identify and describe capabilities.
  • Business Rules: Constructs spec.yaml containing declarative business rules confirmed by SMEs, grounded in code or SME validation.
  • Modernization Decisions: Records decisions regarding the target system, ensuring alignment with business goals and technical constraints.
  • Data Model Definition: Maps legacy data structures to target entities, maintaining lineage and constraints.
  • Process Flow & Inputs/Outputs/Exceptions: Defines the operational behavior of the capability in terms of steps, inputs, outputs, and potential exceptions.
  • Use Case: For a legacy system that needs modernization, this Skill can create a comprehensive spec for a specific capability, such as "Credit Limit Enforcement," including all business rules, data model, and process flow.

Quick Start

To generate a specification for the "Credit Limit Enforcement" capability, run the legacy-spec-writer skill on the approved BRD Package and associated analyses.

Frequently Asked Questions about legacy-spec-writer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate evidence-backed specifications for legacy system modernization?

Generating evidence-backed specifications involves translating post-BRD business capabilities into platform-agnostic spec.yaml and spec.md artifacts. The process merges the approved BRD Package with module and flow analyses to define declarative business rules and target data models.

What is the best way to document business rules for a legacy system capability spec?

The best way to document business rules for a legacy system capability spec is by constructing a declarative spec.yaml. These rules must be explicitly confirmed by SMEs and grounded in legacy code analysis or SME validation to ensure spec alignment.

Do I need an approved BRD Package to create capability specifications?

Yes, an approved BRD Package is required to create capability specifications. The Skill merges this package with module and program analyses to identify capabilities, requiring accurate discovery data and explicit SME validation to bridge post-BRD gaps.

How does legacy data model mapping work when modernizing business capabilities?

Legacy data model mapping works by connecting legacy data structures to target entities within the specification. This maintains data lineage and constraints while ensuring alignment with new architecture decisions and the operational behavior of the business capability.

Can I use this approach for post-BRD discovery and gap analysis?

Yes, you can use this approach for post-BRD discovery because it specifically bridges gaps between the approved BRD and technical implementation. It utilizes various artifacts produced by downstream and related analysis skills to ensure accurate spec alignment.

What are the limitations of generating modernization specifications without SME validation?

Without SME validation, generating modernization specifications lacks the explicit confirmation needed for declarative business rules and spec alignment with legacy behaviors. The process depends on accurate data and validation to produce evidence-backed, platform-agnostic specifications.