remove-web-platform

remove-web-platform is a skill for Claude Code, Codex from anoopsg/agent_rules. It costs 53 tokens per session (897 once invoked), scanned A, original, MIT.

A procedure for removing the web version of a Flutter project when only Android and iOS should remain. It covers web folders, deployment settings, dependencies, widgets, and conditional code.

In plain words
What is it for?
Use it to delete the web platform, remove web dependencies and components, clean bootstrap code, and run Melos setup afterward.
Why use it?
It prevents unused web files and packages from remaining in the project after web support is dropped. It also helps remove web-only logic without leaving broken references behind.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it to delete the web platform, remove web dependencies and components, clean bootstrap code, and run Melos setup afterward.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anoopsg/agent_rules/remove-web-platform
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add anoopsg/agent_rules --skill remove-web-platform
Clone the repo
git clone --depth 1 https://github.com/anoopsg/agent_rules

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for remove-web-platform

README.md
[![agentmods](https://agentmods.dev/badge/skills/anoopsg/agent_rules/remove-web-platform/github.svg)](https://agentmods.dev/skills/anoopsg/agent_rules/remove-web-platform)
Your own site
<a href="https://agentmods.dev/skills/anoopsg/agent_rules/remove-web-platform"><img src="https://agentmods.dev/badge/skills/anoopsg/agent_rules/remove-web-platform/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for remove-web-platform

Your own site · 80×15
<a href="https://agentmods.dev/skills/anoopsg/agent_rules/remove-web-platform"><img src="https://agentmods.dev/badge/skills/anoopsg/agent_rules/remove-web-platform.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 897 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.00897
Opus 5.5 $0.00021 $0.00359
Sonnet 5.5 $0.00011 $0.00179
Haiku 4.5 $0.00005 $0.00090

Measured 22d ago against content hash 581e97542493, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

remove-web-platform scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 22d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/find_web.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/exclusive/skills/remove-web-platform/SKILL.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Remove Platform Skill

This skill defines the process for completely removing all files, configurations, and dead code associated with the web platform when the app is restricted to mobile (Android/iOS) only.

1. Generate the Checklist

The project itself is the inventory. scripts/find_web.sh ships with this skill (not the project's scripts/) and lists everything web-only that is left, grouped into the numbered sections of §3:

bash <this skill>/scripts/find_web.sh <project_dir>

It exits 1 while anything is left and 0 when clean (docs are listed for review only). Work through its output section by section and re-run it until it exits 0.

Stop and ask before starting if the user wants to keep maintenance mode on mobile: today it only runs on web, so this skill removes it.

2. Rules for Every Finding

  • Branches: keep the mobile side and delete the condition: kIsWeb ? a : b → b; if (!kIsWeb) x; → x;; if (kIsWeb) return; → delete. Then remove show kIsWeb imports that are no longer used.
  • Shared code: delete a symbol only when nothing non-web uses it; otherwise drop just its web branch or parameter. If a file mixes web and non-web parts (e.g. one DTO in a shared area file), remove only the web part.
  • Conditional imports: keep dart.library.io ones (they select native code). Replace a dart.library.js_interop one with its plain native import.
  • Tests: delete tests of removed code, and the web cases inside shared tests.

3. Work Through the Checklist

  1. Web and deploy files: delete them (the web/ folder, Docker/nginx files, the Firebase service-worker script). Projects generated without web won't have them.
  2. Web-only Dart files and folders: delete each *_web.dart file and web folder (views, the web bootstrap, app_ui's web library and widgets). Then fix whatever imported them, which shows up in section 3.
  3. Web branches and imports: apply §2 to every hit (router, guards, app state, pages, app_ui layouts, Firebase setup and options, tests). For a web dependency (e.g. flutter_web_plugins) remove it from pubspec.yaml and run flutter pub get. For the web push key (VAPID), remove the argument, the Environment constant and the key in every env/*.json.
  4. Maintenance feature: remove it end to end. That means the feature folder and its exports, its AppState fields and listener, its gate guard and route, its maintenance i18n section (then melos run translate), and its tests. Remove its backend call from every API layer as well (spec operation and schema, ApiClient method, adapter, service, DTO, mock route and fixture; see the add-api-endpoint skill for where each lives).
  5. Web build config: remove the web build step from CI, the web: block of the launcher-icons config and the web/** line in .gitattributes.
  6. Docs to review: drop the web naming line (*_view_web.dart) from AGENTS.md and web-only sections from docs/ (if present). Keep everything that isn't web-specific.

Read the full file on GitHub · 73 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 22d ago Changed · -56 lines · +2 tokens per session 581e97542493
  2. 3mo ago First seen · 129 lines · 51 tokens per session scan A 88746a07d5b6

Subscribe to this mod's changes

remove-web-platform is a skill published in the GitHub repository anoopsg/agent_rules (2 stars, last pushed 23d ago), licensed MIT. It adds 53 tokens to every session and 897 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

remove-web-platform compared with skills from other repositories

remove-web-platform next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
remove-web-platformanoopsg/agent_rulesSkill223d agoMITA53Claude Code, Codex
orca-emulator-androidstablyai/orcaSkill145ktodayMITA102Claude Code, Codex
glance-canonical-layoutsandroid/skillsSkill11k7d agoApache-2.0A56Claude Code
android-tombstone-symbolicationdotnet/skillsSkill6.4ktodayMITA176Claude Code
dogfoodcallstack/agent-deviceSkill5.6ktodayMITA55Claude Code
winapp-mauimicrosoft/winappCliSkill1.4ktodayMITA68Claude Code
flutter-devMiniMax-AI/skillsSkill14k20d agoMITA83Claude Code