Incremental Feature Development
2023-10-26

Incremental Database and Schema Changes

Plan database changes that support incremental feature rollout without downtime or data loss.

SCENARIO

Act as a senior engineer planning database or schema changes required for a new feature. Your task is to design a safe, incremental migration strategy.

DATABASE STRATEGY:

  • Prefer additive schema changes
  • Ensure old and new code paths can run simultaneously
  • Avoid destructive operations in early stages

MIGRATION PLAN:

  • Step-by-step schema changes
  • Data backfills if needed
  • Safe cleanup after full rollout

WHAT NOT TO DO:

  • Do NOT deploy breaking schema changes with active traffic
  • Do NOT assume migrations are instantly complete

OUTPUT:

  • Detailed migration stages
  • Rollback strategy
  • Verification checks

INPUT:

Current schema: [Describe] Proposed changes: [Describe]

More Incremental Feature Development Prompts

Incremental Feature Development
Hot

Kill Switch and Rollback Planning

Design kill switches and rollback strategies to safely disable new features when issues arise in production.

Act as a senior software engineer responsible for operational safety in production systems. Your task is to design a kill switch and rollback plan for a new feature so that failures can be mitigated quickly without causing widespread impact.

CONTEXT: A new feature is being introduced incrementally, but failures or unexpected behavior may occur once it is exposed to real users.

YOUR TASK:

  1. Identify failure scenarios that require immediate rollback or shutdown
  2. Design kill switches that can disable the feature without redeploying
  3. Ensure rollback actions are fast, safe, and well-understood

KILL SWITCH DESIGN:

  • Enforcement: Where the kill switch is enforced (entry points, service boundaries)
  • Control: Who can trigger it and how
  • Behavior: Expected system behavior when the switch is activated

ROLLBACK STRATEGY:

  • Code rollback vs configuration rollback
  • Data rollback considerations and limitations
  • How to handle partially rolled-out states

WHAT NOT TO DO:

  • Do NOT rely solely on redeployments as a rollback mechanism
  • Do NOT create kill switches that are hard to discover or operate
  • Do NOT ignore data consistency when disabling features

VALIDATION:

  • Explain how to test kill switches safely
  • Describe drills or checks to ensure rollback works under pressure

OUTPUT:

  • Detailed kill switch design
  • Step-by-step rollback procedures
  • Clear ownership and operational playbook

INPUT: Feature description: [Insert feature details] Operational constraints: [Uptime requirements, access controls]

Incremental Feature Development
Hot

Incremental Feature Development Master Prompt

A senior-level framework for shipping new features incrementally with minimal risk and clear rollback paths.

Act as a senior software engineer experienced in shipping features safely in production systems. Your task is to design an incremental feature development plan that allows new functionality to be introduced, tested, and rolled out without disrupting existing users.

CORE PRINCIPLE: New features must be shipped in small, reversible steps. The system should remain stable, observable, and recoverable at every stage.

FEATURE CONTEXT: A new feature is being added to an existing production system with active users.

INCREMENTAL STRATEGY:

  • Break the feature into the smallest meaningful delivery units
  • Identify which changes can be shipped before the feature is visible
  • Preserve backward compatibility at every step

ISOLATION & CONTROL:

  • Recommend feature flags or configuration gates
  • Define explicit enable, disable, and rollback mechanisms
  • Avoid shared mutable state between old and new behavior

ROLLOUT PLAN:

  • Define rollout stages (internal, beta, partial, full)
  • Specify monitoring signals and success criteria for each stage
  • Define clear rollback triggers

WHAT NOT TO DO:

  • Do NOT ship features that cannot be turned off
  • Do NOT bundle unrelated changes into the same rollout
  • Do NOT remove old behavior until the new path is proven stable

OUTPUT EXPECTATIONS:

  • A staged rollout plan
  • Rollback and kill-switch strategy
  • Explicit risks and mitigations

INPUT: Feature description: [Insert feature details] System constraints: [Traffic, uptime, data sensitivity]