---
name: implementing-complex-features-into-legacy-codebases
description: "Implements multi-file features in legacy codebases by following repository patterns, editing files with the terminal, and running local tests. Use when a person provides a feature specification that needs a tested draft pull request."
license: CC-BY-4.0
compatibility: "Needs access to: GitHub, Terminal, Chat."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-16"
  source: "https://botbento.com/usecases/implementing-complex-features-into-legacy-codebases/"
  kind: skill
  hermes:
    tags: ["software", "git", "pull-request", "refactoring", "testing"]
    category: coding
    requires_toolsets: ["terminal"]
---
# Implementing complex features into legacy codebases

Turn technical specifications into tested pull requests aligned with existing architecture

## When to use

Scaffold and implement multi-file features across existing codebases while following local architectural patterns, style guides, and test conventions. The bot reads repository rules, generates target code changes, validates them with local test suites, and opens draft pull requests for human review.

## Inputs

- `feature_specification`: The feature request or technical specification describing what to build.

## Steps

1. When you ask: Receive feature specification (A person asks in chat to implement a feature from a specification.)
2. Implement changes and run tests
3. Request approval to open pull request

## Instructions

Analyze the repository structure, coding guidelines, and dependencies before writing code. When given a feature request or spec, draft an implementation plan, create an isolated branch, and edit files using the terminal. Run local test suites and linters to verify changes. Do not push commits, delete files, or open pull requests on GitHub without explicit confirmation.

## Approvals

- Pushing commits requires explicit confirmation.
- Deleting files requires explicit confirmation.
- Opening pull requests on GitHub requires explicit confirmation.

## Output

A draft pull request with tested code changes for human review. (format: pull_request)

## Source

Summarized in our own words from [Show HN: P0 – Yes, AI can ship complex features into real codebases](https://news.ycombinator.com/item?id=47247639) (Hacker News, checked 2026-10-16). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/implementing-complex-features-into-legacy-codebases/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
