Feature Toggle Developer

Automate feature toggle removal and cleanup detection in Swift codebases.

509|79|Updated May 26, 2023
One-click install
npx skills add https://github.com/anyproto/anytype-swift --skill feature-toggle-developer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Feature Toggle Developer
Source: https://github.com/anyproto/anytype-swift/tree/main/.claude/skills/feature-toggle-developer
Command: npx skills add https://github.com/anyproto/anytype-swift --skill feature-toggle-developer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires rg.

What problem does it solve?

Removing feature toggles can leave behind orphaned code, unused components, and technical debt, cluttering your codebase. This Skill guides a systematic cleanup, ensuring a clean and efficient codebase with minimal effort.

Core Features & Use Cases

  • Systematic Removal Workflow: Provides a step-by-step process for safely removing toggle definitions and conditional checks, preventing regressions.
  • Automated Cleanup Detection: Identifies unused state variables, view components, ViewModels, imports, and parameters after toggle removal, ensuring nothing is left behind.
  • Use Case: When a feature flag is no longer needed, use this Skill to meticulously remove it from the codebase, automatically detecting and suggesting cleanup for all related code, tests, and files, saving you hours of manual searching.

Quick Start

I need to remove the 'newChatInterface' feature toggle. Guide me through the process and help me clean up any leftover code.

Frequently Asked Questions about Feature Toggle Developer

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

FAQPage Schema
How do I remove feature toggles from Swift code without leaving orphaned code?

Removing feature toggles systematically prevents orphaned code and technical debt. This Skill guides you through locating toggle definitions, evaluating branches, updating usages, and identifying unused state variables, components, imports, and tests left behind after removal.

What's the best way to clean up after deleting a feature flag from a Swift project?

After toggle removal, automated cleanup detection identifies unused ViewModels, view components, parameters, and imports across Swift code and build configurations. The Skill suggests and applies these cleanups to prevent technical debt from accumulating.

Can I automate feature toggle removal across Swift tests and configuration files?

Yes. This Skill automates removal of toggle conditional checks, runs code generation, and updates test files and build configurations. It applies changes uniformly across your codebase to ensure complete cleanup.

How do I prevent regressions when removing feature toggles from production code?

The Skill provides a step-by-step verification workflow that evaluates which branch becomes active after toggle removal, updates all usages and definitions, and runs post-removal checks to catch regressions before they ship.

What happens to unused imports and components after I remove a feature flag?

Automated cleanup detection identifies orphaned imports, unused state variables, and view components that become dead code after toggle removal. The Skill surfaces these for removal or refactoring, keeping your codebase lean.

Do I need any special tools to remove feature toggles from Swift code?

The Skill uses ripgrep (rg) for fast code search and analysis across your Swift project. This dependency enables efficient location of toggle definitions and usages during the removal workflow.