Remove old feature flags without changing behavior
Old feature flags pile up and make code hard to read. Your AI removes the ones that are always on and keeps behavior the same.
What happened
Cognition's customer story says Ramp engineers start a dashboard workflow that runs several Devin sessions at once. It says each one removes always-on flags and updates tests, and a cleanup agent combines the changes into one PR. It says engineers get tagged to review, and failing tests show missed dependencies.
Download the .zip. In Settings, find Skills, choose Upload skill and pick the file. Code execution has to be turned on.
Claude Code
Run this in your terminal:mkdir -p ~/.claude/skills/remove-old-feature-flags-without-changing-behavior && curl -fsSL https://botcurrent.com/skills/remove-old-feature-flags-without-changing-behavior/SKILL.md -o ~/.claude/skills/remove-old-feature-flags-without-changing-behavior/SKILL.md
Codex
Run this in your terminal:mkdir -p ~/.agents/skills/remove-old-feature-flags-without-changing-behavior && curl -fsSL https://botcurrent.com/skills/remove-old-feature-flags-without-changing-behavior/SKILL.md -o ~/.agents/skills/remove-old-feature-flags-without-changing-behavior/SKILL.md
We check every skill file before we offer it. This one is the prompt above in skill form.
Passed Skill file is well formed
Passed Runs its own code or programs
Passed Connects to the internet from code
Passed Touches passwords, keys or private files
Passed Deletes or overwrites things in bulk
Passed Hidden or scrambled code
Passed Tries to override your instructions
Passed Invisible characters in the text
Passed Sends your data somewhere else
Passed Can pay or buy without asking you
Passed Downloads or installs other software
Passed Has a password or key written into it
Passed Asks for admin (sudo) rights
Files scanned: SKILL.md. Links to: botcurrent.com, devin.ai. Fingerprint: 9ccfd37503ce. What we check
Tried it? Did it work for you?
Tell us what went wrong and we’ll fix the prompt: email us.
Votes count only if you allowed optional analytics.
What you'll get
A diff that removes each always-on flag, updates its tests and lists anything that could change behavior.
You'll need
Your list of flags and where they're set
Proof each flag is on everywhere
The tests that cover the flagged code
Before you switch it on
Acts with your OK
If you give this job to an agent that works in your accounts:
Access it needs
Your code repository and Devin dashboard
Keep on “ask me first”
Sending or posting anything, paying or buying, sharing your address or ID, deleting anything
Heads up: Check that a flag is on in every environment before you remove it. A flag that's off for some users will change what they see.
More details: full instructions, sources and safeguards
Before you begin
No code changes, pull requests or release. Qualified reviewers confirm behavior preservation and exact production scope separately.
Use this in your own AI tool
Copy the starter, then open your own AI tool.
Paste it with only the permitted inputs. Check privacy settings and tool compatibility first.
Review the draft and held questions. Any later action needs separate approval.
What you need
Offline flag inventory and affected-code/dependency descriptions.
Retirement evidence, protected behavior and engineering review scope.
Engineer-approved rollback reference and explicit holds for unexplained behavior differences.
Start here
01Check evidence that each flag is genuinely obsolete.
02Map old/new paths and dependent tests without assuming equivalence.
03Outline cleanup candidates and regression checks.
Advanced prompt availability
Advanced prompt
No accepted companion is available for this record. The original material below retains its original status.
Technical setup & run design — optional
Starter
Separate short starter version composed-v1. Untested.
Advanced prompt
No accepted advanced companion is available. Legacy material remains in the original notes with its status.
Compatibility
Unknown; check the actual tool, account and permissions.
Run design
No reviewed run design. No runtime or schedule is activated by BotCurrent.
Setup and access
Proposed inputs
Name
Flag retirement inventory
Owner
Feature owner
Minimum scope
Fictional flag IDs, approved intended states and environment scope
Quality check
Separate retirement approval from a temporarily enabled setting.
Name
Dependency sample
Owner
Maintainer
Minimum scope
Code-path descriptions, test references and configuration consumers
Quality check
Identify fallback, emergency and downstream uses.
Access and setup — proposed or unknown
Proposed minimum
Offline flag/dependency descriptions and a proposed cleanup map.
Compatibility unknowns
Unknown: current runtime, flag-provider coverage, repository tooling and regression environment.
External actions requiring approval
Flag-state changes, code cleanup, shared pull requests, merge and production release.
Source evidence, attribution & limitations
Full source evidence
Vendor report · Coding orchestration
Original task title: Retire obsolete feature flags while preserving behaviour
Editorial candidate. This is source-backed reporting or a documented workflow. BotCurrent has not independently tested this task. A proposed Canadian adaptation is not evidence of a Canadian deployment or compliance certification.
Parallel Devins remove always-on flags and update affected tests. A cleanup agent checks conflicts and combines changes into one PR; test failures expose missed dependencies.
Source outcome limits
Actions and outcomes are attributed vendor claims, not an independent reproduction or an execution guarantee.
Evidence attribution caveat
Actions and outcomes are attributed vendor claims, not an independent reproduction or an execution guarantee.
Source approval description
Engineers invoke the dashboard workflow and are tagged for PR review.
Named tools
Devin API; Ramp admin dashboard; repository tests
Model or version
Unknown
Publication date
Unknown
Source last checked
2026-10-14
Demonstrated in Canada
Unknown
Canadian availability
Unknown
Proposed Canadian adaptation
Proposed: use scoped Canadian development environments, non-sensitive test data and a reviewed resource budget.
Recommended approval boundaries
Require qualified review of evidence, scoped data access and separate human release approval.
Technical specification & detailed checksDetailed steps and output format
At a glance
Suggested result
A feature-flag cleanup pull request with validation findings.Suggested; untested.
Tool
DevinSource-named; check current access.
Suggested inputs
Flag retirement inventory; Dependency sampleProposed; access notes below.
Human review
Require qualified review of evidence, scoped data access and separate human release approval.Suggested boundaries; source approvals below.
Setup notes
Offline flag/dependency descriptions and a proposed cleanup map.Guide notes; proposed setup untested.
Cost
Workflow cost not established. Check current tool pricing, setup and human review costs before trying it.No measured cost or time added.
Content depth
Source-linked example · suggestions untestedDepth does not establish successful execution.
Editorial classification; no execution or compatibility test is implied.
No tool mapping reviewed for this task.
Source-backed example. Practical decision guidance is proposed and untested; this is not a full implementation guide.
The problem
Always-on feature flags leave obsolete branches and test dependencies that complicate maintenance.
Suggested task
Remove retired flags in parallel, update affected tests and consolidate the changes for review.
What you could produce
A feature-flag cleanup pull request with validation findings.
Where these suggestions come from
Core problem: Our interpretation of the task
Agent job: Our interpretation of the task
Expected output: Our interpretation of the task
Relevant job roles: Our interpretation of the task
Benefit type: Our interpretation of the task
Suggestions and their limits
Describes the task’s purpose and intended output; measured benefit, safe unsupervised operation and successful delivery are not established by this framing.
Editorial synthesis based on the linked source. This framing does not add evidence of successful delivery or results.
Before you try it · suggestions untested
Case-specific decision guidance and first checks are original proposals. The linked source supports the attributed task; this added guidance has not been executed.
A flag that appears always enabled may still shape test fixtures, emergency controls or behavior in a less visible environment. Removing its branch can simplify code only if the intended surviving behavior and every relevant dependency are understood.
A retirement-review manifest could connect each flag to its approved state, dependent paths and evidence needed for removal. Engineers could evaluate the cleanup scope without treating a dashboard setting or passing local checklist as proof that all consumers are safe.
Why an agent / simpler alternative
Useful judgment
Trace flag references and identify hidden assumptions across tests, configuration and shared code.
Simpler alternative
Remove a single well-understood flag manually when its consumers and retirement decision are already documented.
Unsuitable when
The flag's lifecycle owner or behavior across environments is uncertain.
Expected deliverable and review checks
Proposed artifact
Flag-to-consumer removal proposal with preserved behavior, unresolved dependencies and integration-review plan.
Critical checks
Every retired flag has an explicit owner-approved surviving behavior.
Test changes retain meaningful coverage instead of merely deleting failures.
Missing output evidence
No new workflow run or output inspection was performed for this overlay; use the canonical source-outcome references.
First check — proposed, unexecuted
Status
proposed_unexecuted
Synthetic fixture
A fictional flag manifest has conflicting environment states and a proposed test deletion with no coverage rationale.
Acceptance checks
Block premature retirement in the plan.
Require a dependency explanation without editing or running tests.
Stop conditions
Real flag access, repository changes, tests or release actions are required.
A feature-flag cleanup pull request with validation findings.
What you need: Source-named agent: Devin. Suggested inputs: Flag retirement inventory; Dependency sample. Offline flag/dependency descriptions and a proposed cleanup map. Workflow costs and current compatibility remain unverified.
Require qualified review of evidence, scoped data access and separate human release approval.
Vendor report. BotCurrent has not independently tested this workflow.
Related tasks
Suggestions share task wording or context; compatibility and execution remain unverified.
Allow optional analytics to help us improve BotCurrent? We use PostHog to see which pages and buttons people use, including recordings with anything you type hidden. Searches and saved items are excluded. Privacy details