AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Remove Web Platform

skill-anoopsg-agent-rules-remove-web-platform · by anoopsg

>

No reviews yet
0 installs
23 views
0.0% view→install

Install

$ agentstack add skill-anoopsg-agent-rules-remove-web-platform

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-anoopsg-agent-rules-remove-web-platform)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Remove Web Platform? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Remove Platform Skill

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

1. Delete Web and Deployment Files

Delete the web/ directory and any web-only deployment/configurations from the project root:

  • Delete the web platform folder:

web/

  • Delete the web deployment configurations (e.g., Dockerfile, nginx.conf).

2. Clean Up Web Dependencies

Remove web-only plugins or packages from the dependencies list in the root [pubspec.yaml](file:///Users/anoopsg/Documents/Development/OSS/launchpad/build/prototype/pubspec.yaml):

  1. Open pubspec.yaml.
  2. Delete the flutter_web_plugins dependency:

```diff

  • flutterwebplugins:
  • sdk: flutter

```

  1. Run melos package bootstrap:

``bash melos bootstrap ``

3. Delete app_ui Web Components

Delete the web-specific design and styling components in packages/app_ui:

  • Delete the web-specific exports file (e.g., packages/app_ui/lib/app_ui_web.dart).
  • Delete the web-specific widgets directory (e.g., packages/app_ui/lib/src/widgets/web/).

4. Clean Up Bootstrap Files

Remove web-specific initializers in lib/src/_bootstrap/ (or equivalent setup):

  1. Delete any _web.dart bootstrap files.
  2. Remove HTML conditional imports from the main bootstrap file:

```diff -import 'package:myapp/.../stub.dart'

  • if (dart.library.html) '_web.dart'
  • if (dart.library.io) '_native.dart'
  • as lib;

+import 'package:myapp/.../stub.dart'

  • if (dart.library.io) '_native.dart'
  • as lib;

```

5. Scan and Delete Web View Files

In features, web views typically follow a naming convention like *_view_web.dart, while mobile views use *_view.dart. Scan the lib/ directory for any files matching *_view_web.dart and delete them.

6. Clean Up Page and Routing References

Remove imports and references to the deleted web views inside the corresponding parent pages:

  1. Remove the import lines for *_view_web.dart files.
  2. Simplify conditional instantiation of the view, using the mobile view only:

``diff -return kIsWeb ? MyViewWeb(props) : MyView(props); +return MyView(props); ``

  1. Remove error delegation or other conditional calls referencing the web view:

```diff -if (kIsWeb) {

  • MyViewWeb.delegateError(context, message);

-} else {

  • MyView.delegateError(context, message);

-} +MyView.delegateError(context, message); ```

7. Thoroughly Prune kIsWeb Conditional Logic

Search the codebase for kIsWeb and prune the conditional branches:

  • Router: Remove web-only routes and checks in routing configurations.

``diff -initialLocation: kIsWeb ? WebRoute.path : MobileRoute.path, +initialLocation: MobileRoute.path, ``

  • State Notifiers: Inside state managers, unconditionally execute the

mobile flows. ``diff -if (!kIsWeb) _listenToUpdate(); +_listenToUpdate(); ``

  • UI Packages: Search packages/app_ui for kIsWeb usages and remove the

web-specific logic.

8. Clean Up Firebase Configurations

If Firebase is configured, remove web guards in the initialization flow:

  • In Firebase setup files, remove return guards:

``diff -if (kIsWeb) return; ``

9. Verification and Re-generation

After cleanups, run code generation and static analysis to ensure all broken references are resolved:

# Re-generate code models/riverpod providers
melos run generate

# Run static analysis
melos run analyze

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.