bill-feature-guard-cleanup

Automate feature flag removal and legacy code cleanup after full rollout.

13|1|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/Sermilion/skill-bill --skill bill-feature-guard-cleanup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bill-feature-guard-cleanup
Source: https://github.com/Sermilion/skill-bill/tree/main/skills/bill-feature-guard-cleanup
Command: npx skills add https://github.com/Sermilion/skill-bill --skill bill-feature-guard-cleanup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Remove feature flags and legacy code after a feature is fully rolled out. Use when a feature flag has been enabled for all users and the legacy path is no longer needed. Safely deletes Legacy classes, removes flag checks, and inlines the winning code path. Use when user mentions remove feature flag, cleanup flag, delete legacy code, or flag fully rolled out.

Core Features & Use Cases

  • Cleanup Workflow: identify scope, verify safety, remove flag checks, inline the winning path, delete legacy files and tests, and update the flag registry.
  • Pattern-guided cleanup: follows the shell ceremony and uses established patterns in patterns.md to ensure safe, auditable changes.
  • Validation & verification: runs bill-quality-check to confirm nothing is broken and maintains a clean history.

Quick Start

Identify the feature flag, verify rollout safety, and remove legacy code by inlining the winning path.

Frequently Asked Questions about bill-feature-guard-cleanup

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

FAQPage Schema
How do I safely remove feature flags after a full rollout?

Safely removing feature flags after a full rollout involves identifying the scope, verifying safety, removing flag checks, and inlining the winning code path. This process also includes deleting legacy files, updating tests, and updating the flag registry.

What is the best way to clean up legacy code from rolled out features?

The best way to clean up legacy code from rolled out features is using a pattern-guided workflow that follows established patterns to ensure safe, auditable changes. This process includes deleting legacy classes, removing flag checks, inlining the winning path, and updating tests.

How does feature flag cleanup handle tests and validation?

Feature flag cleanup handles tests by updating them to reflect the winning code path and deleting legacy tests. It also runs validation steps and quality checks to confirm nothing is broken and maintains a clean history.

Can I automate flag removal across multiple services?

Yes, you can automate flag removal across multiple services. This cleanup workflow applies to software projects with feature flags across services where the flag is fully rolled out and the legacy path must be removed safely.

When should I not use an automated workflow for flag removal?

You should not use an automated workflow for flag removal when the feature flag is not fully rolled out to all users. This process is strictly for when the legacy path is no longer needed and the winning path is enabled for everyone.

What is a shell ceremony workflow for legacy code cleanup?

A shell ceremony workflow for legacy code cleanup is a structured process that uses established patterns to ensure safe, auditable changes. It guides you through scope identification, verification, flag removal, path inlining, and registry updates.