Install
$ agentstack add skill-anoopsg-agent-rules-remove-web-platform ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo 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.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
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 →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):
- Open
pubspec.yaml. - Delete the
flutter_web_pluginsdependency:
```diff
- flutterwebplugins:
- sdk: flutter
```
- 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):
- Delete any
_web.dartbootstrap files. - 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:
- Remove the import lines for
*_view_web.dartfiles. - Simplify conditional instantiation of the view, using the mobile view only:
``diff -return kIsWeb ? MyViewWeb(props) : MyView(props); +return MyView(props); ``
- 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_uiforkIsWebusages 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.
- Author: anoopsg
- Source: anoopsg/agent_rules
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.