brownfield-workflow

Organize brownfield changes through requirements, planning, design, manufacturing, and testing phases.

4|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/synthaicode/XRefKit --skill brownfield-workflow-synthaicode
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: brownfield-workflow
Source: https://github.com/synthaicode/XRefKit/tree/main/skills/brownfield-workflow
Command: npx skills add https://github.com/synthaicode/XRefKit --skill brownfield-workflow-synthaicode

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Changing an existing codebase or system is risky when the current implementation is mistaken for the complete specification, unknowns get hidden, and work loses traceability across requirements, design, and testing. This Skill structures brownfield change work into explicit phases with evidence, gates, and human decision points so nothing proceeds on guesses. ## Core Features & Use Cases - Phase-based orchestration: Carry one upstream item through requirements, planning, design, manufacturing, testing, and closure while preserving traceability anchors and recording every unknown with impact, resolver, and owner. - Specification reconciliation and validation: Validate existing requirements for authority, freshness, and testability, then reconcile current specification, current behavior, and new requirements into an approved delta matrix before design. - File-edit integrity and testability gates: Enforce encoding/BOM/newline preservation, compare-and-swap revision checks, uncommitted-work classification, and a testability gate that generates only traceable test-case candidates. - Use Case: A team must modify a legacy service whose documentation is stale. Use this Skill to validate the existing requirement, reconcile it against observed behavior, plan the delta, implement with file-integrity checks, and produce a summary-first closure report with residual risks and handoffs. ## Quick Start Use $brownfield-workflow in the planning phase to define the impact scope and testability inputs for your upstream work item.

Frequently Asked Questions about brownfield-workflow

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

FAQPage Schema
How do I manage a brownfield code change without full specifications?▼

Use a phase-based workflow that validates the existing requirement, reconciles current specification against observed behavior and the new requirement, and records every unknown with impact, resolver, and owner. Never treat current implementation as business truth; unsupported claims are downgraded to unknown.

How to safely edit existing files with AI assistance?▼

Record the file's encoding, BOM, newline convention, and original bytes before editing, then verify a strict decode/re-encode round trip after writing. Use a compare-and-swap revision token immediately before writing and abort if concurrent changes are detected.

What is specification reconciliation in legacy system changes?▼

Specification reconciliation compares the current specification, evidenced current behavior, and the new requirement before design approval. Each item is classified as preserve, change, add, deprecate, incompatible, or unknown, with protected invariants and test impact recorded in a traceable matrix.

Can AI generate test cases for brownfield changes automatically?▼

AI can generate traceable test-case candidates only after a testability gate confirms each behavior has a target, precondition, input, expected result, observation source, and owner. Missing definitions are returned as gaps with resolvers rather than invented values.

When should I not use a brownfield workflow approach?▼

Avoid it for greenfield projects with no existing system to reconcile against, or when no upstream requirement or work item exists to anchor traceability. The workflow depends on current-system evidence and human decision owners to function.