BotCurrent
← Back to examples

Build & debugFrom the makerActs with your OK

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.

Source: Cognition and named customer · devin.ai · Tool: Devin

Copy this prompt

Paste it into ChatGPT, Claude or Gemini, fill in the [brackets] and add your files. It only drafts. You decide what to send or change.

Use it often? Save it as a skill

Add this job to Claude or Codex once, and your agent knows how to do it without you pasting the prompt each time. Text only, no code.

Download for Claude (.zip)View the skill file

How to add it
Claude app or claude.ai
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

More about skills, and open-source skills we checked

Security scanClear13 of 13 checks passed

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

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

  1. Copy the starter, then open your own AI tool.
  2. Paste it with only the permitted inputs. Check privacy settings and tool compatibility first.
  3. 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

  1. Check evidence that each flag is genuinely obsolete.
  2. Map old/new paths and dependent tests without assuming equivalence.
  3. Outline 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

  1. 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.

  2. 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
  1. Offline flag/dependency descriptions and a proposed cleanup map.

Compatibility unknowns
  1. Unknown: current runtime, flag-provider coverage, repository tooling and regression environment.

External actions requiring approval
  1. 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.

Original source

https://devin.ai/customers/ramp

Attributed to: Cognition and named customer

Vendor report
Original action type
coding_agent_orchestration
What the source reports
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 checks
Detailed 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.
Check source evidence and limits ↓

Function and scope

Software engineering · Single task

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.

Read the attributed source evidence and original caveats below ↓

Why use this

  1. 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.

  2. 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
  1. Every retired flag has an explicit owner-approved surviving behavior.

  2. 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
  1. Block premature retirement in the plan.

  2. Require a dependency explanation without editing or running tests.

Stop conditions
  1. Real flag access, repository changes, tests or release actions are required.

Tasks: Build & debug

Useful for: Software developer

Editorial relevance from the title and source-supported actions; not evidence of the operator’s occupation.
DevinIndependent testing: No
Failure handling, costs and limits

Failure signals and proposed responses

  1. Signal

    A flag is enabled in production but differs in another supported environment.

    Why it matters

    Removing its branch could change behavior outside the main deployment.

    Proposed response

    Keep the retirement unresolved and ask the owner to confirm the full environment scope.

  2. Signal

    A failing test is removed without explaining its dependency.

    Why it matters

    The cleanup may conceal a missed behavior rather than fix it.

    Proposed response

    Require a maintainer-reviewed coverage replacement or a justified retirement decision.

Effort and cost — unknown

Setup work
  1. Identify flag owners, consumers and preserved behavior.

Ongoing review
  1. Reconcile parallel changes and inspect later regression findings.

Unknowns
  1. Unknown: hidden dependency coverage, cleanup effort and test costs.

Limits

  1. This proposed dependency review establishes no preserved runtime behavior or successful feature-flag cleanup.

Original task overview & interpretation

Vendor report

Retire obsolete feature flags while preserving behaviour

Always-on feature flags leave obsolete branches and test dependencies that complicate maintenance.

Suggested result

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.