Skip to content

product-development: retrofit guide for codebases without specs #47

In review

Description

@prometheas

Problem

Many projects adopt the skill after their code exists. Their features are real but undocumented, or are documented in other formats, such as Spec Kit, OpenSpec, design and plan files from other agent workflows, or old wikis. The skill has no path from "a codebase" to "a set of features in the right stages".

Proposal

A retrofit reference with four steps.

  1. Maintainer braindump. The agent interviews the maintainer the way the Vision Grill does: what the product does, for whom, which parts matter and which are dead.
  2. Feature lenses. A feature lens is one discovery strategy, run by its own subagent. Each lens reports candidate features with evidence:
    • domain model;
    • screens and flows;
    • API and CLI surface;
    • jobs and integrations;
    • roles and feature flags;
    • tests;
    • prior specs (Spec Kit, OpenSpec, design and plan files);
    • history (pull requests, conventional-commit scopes and git blame).
  3. Feature inventory. The agent reconciles the lens reports into one inventory: candidate features, their evidence and the code they span. The maintainer approves it. Approval sets scope for the retrofit only. It ratifies nothing, and no feature reaches features/ without a promotion PR. The inventory is working material and is deleted once the features are seeded.
  4. Routing. Each approved feature goes to one of three places:

Specs in other formats count as evidence for shaping. Code alone never admits a spec to features/. Market and positioning details found along the way go to research notes. Retiring any existing document needs maintainer approval, under the same rules as the modernization guide.

Large codebases

After the braindump, the guide recommends Matt Pocock's wayfinder skill when at least two of these hold:

  • more than 5 apps or packages;
  • more than about 1,000 source files;
  • more than one surface, such as web and mobile, or an API and a CLI;
  • two or more sources of prior specs;
  • more than about 10 candidate features.

wayfinder has disable-model-invocation, so the agent explains why it is recommending it and the user invokes it. This repository doesn't ship it. The guide links its public source, and the four steps work without it.

Acceptance criteria

  • A retrofit reference documents the four steps, the eight lenses and the wayfinder rule with a link to its source, and SKILL.md links it.
  • The guide works end to end when wayfinder is not installed.
  • Each lens has a short subagent prompt template that returns candidate features with evidence.
  • The guide states that the feature inventory is deleted after seeding, and that code alone never admits a spec.
  • A synthetic example inventory shows one feature routed to each destination.

Non-goals

Activity

  1. added
    enhancement
    on Nov 29, 2026
  2. prometheas commented on Nov 30, 2026

    @prometheas
    ContributorAuthor

    Open decision for the maintainer, from PR #59 (the retrofit guide for codebases without specs)

    How does a retrofit change reach Shipped and then Canonized when its behavior was already live before it was ratified?

    The settled design covers the handoff: the promotion PR's merge triggers its draft, and it's sent once no implementation-level question is open. What's not settled is the ship signal for behavior that was live before ratification:

    • what evidence establishes Shipped for such a change;
    • which release check, if any, precedes recording that historical signal.

    The current Release Check looks forward to a release that hasn't happened yet, and canonization (#21) expects a recorded ship signal for every ratified change.

    Interim behavior in PR #59: for this case the guide stops at the promotion PR and records no ship signal.

    Not blocking: the rest of the guide is delivered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions