legacy-webview-implementation

legacy-webview-implementation is a skill for Claude Code, Codex from emilianoeloi/ios-WK-UI-WebView. It costs 33 tokens per session (426 once invoked), scanned A, original, MIT.

A step-by-step implementation guide for changing older Objective-C iPhone and iPad WebView code. It covers both WKWebView and the older UIWebView fallback, plus the JavaScript bridge between the app and web pages.

In plain words
What is it for?
Use it to plan and implement small WebView fixes, preserve existing handler names and message queues, add focused tests, and build the project for verification.
Why use it?
It requires the current behavior and affected files to be understood before editing, which reduces accidental changes to navigation and bridge protocols.

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 plan and implement small WebView fixes, preserve existing handler names and message queues, add focused tests, and build the project for verification.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/emilianoeloi/ios-wk-ui-webview/legacy-webview-implementation
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 emilianoeloi/ios-WK-UI-WebView --skill legacy-webview-implementation
Clone the repo
git clone --depth 1 https://github.com/emilianoeloi/ios-WK-UI-WebView

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 legacy-webview-implementation

README.md
[![agentmods](https://agentmods.dev/badge/skills/emilianoeloi/ios-wk-ui-webview/legacy-webview-implementation/github.svg)](https://agentmods.dev/skills/emilianoeloi/ios-wk-ui-webview/legacy-webview-implementation)
Your own site
<a href="https://agentmods.dev/skills/emilianoeloi/ios-wk-ui-webview/legacy-webview-implementation"><img src="https://agentmods.dev/badge/skills/emilianoeloi/ios-wk-ui-webview/legacy-webview-implementation/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 legacy-webview-implementation

Your own site · 80×15
<a href="https://agentmods.dev/skills/emilianoeloi/ios-wk-ui-webview/legacy-webview-implementation"><img src="https://agentmods.dev/badge/skills/emilianoeloi/ios-wk-ui-webview/legacy-webview-implementation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 426 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.00033 $0.00426
Opus 5 $0.00016 $0.00213
Sonnet 5 $0.00007 $0.00085
Haiku 4.5 $0.00003 $0.00043

Measured 10d ago against content hash 4eede8072ba2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

legacy-webview-implementation 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 10d ago.

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.

.github/skills/legacy-webview-implementation/SKILL.md · 60 lines

What it actually says

Legacy WebView Implementation

Purpose

Implement production-safe fixes and enhancements in this legacy iOS WebView project.

Phase 0 — Read (no edits)

  1. Confirm target behavior from README and the current code path
  2. If the runtime flow or bridge contract is unclear, run legacy-webview-analysis first

Gate

  1. State the minimal file touch set before editing. If the request is ambiguous, stop and ask instead of guessing scope.

Phase 1 — Implement

  1. Patch minimally in Objective-C and preserve existing conventions
  2. Keep WKWebView and fallback expectations aligned
  3. Preserve bridge contract (handler names, protocol queue semantics)
  4. Add focused tests when behavior can be isolated

Phase 2 — Validate

  1. Build with the canonical command from AGENTS.md:
xcodebuild -project ios-WK-UI-Webview.xcodeproj \
  -scheme ios-WK-UI-Webview \
  -destination 'generic/platform=iOS Simulator' \
  IPHONEOS_DEPLOYMENT_TARGET=12.0 build
  1. If the build cannot run in your environment, state the limitation explicitly — never claim validation that did not happen

Quality Rules

  • Keep architecture simple and focused on requested behavior
  • Do not change unrelated files or flows
  • Prefer centralized constants over duplicated literals
  • Add comments only for non-obvious bridge/navigation edge cases

Anti-example (do not do)

"While fixing the redirect, I also modernized the delegate wiring and renamed two handlers for clarity."

Unrequested scope. Handler names are a public contract; renames are a migration, not a fix.

Definition of Done

  • Change is scoped and understandable
  • Core navigation/bridge flow remains stable
  • Validation completed (build/test or explicit limitation note)
  • No accidental API or contract breakage
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. 10d ago First seen · 60 lines · 33 tokens per session scan A 4eede8072ba2

Subscribe to this mod's changes

legacy-webview-implementation is a skill published in the GitHub repository emilianoeloi/ios-WK-UI-WebView (3 stars, last pushed 2mo ago), licensed MIT. It adds 33 tokens to every session and 426 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

truesheet-usage

Consumer-side guide for integrating @lodev09/react-native-true-sheet into a React Native app. Use this skill whenever the user wants to add, configure, control, or debug a bottom sheet using TrueSheet — including ref-based sheets, named global sheets, web support with TrueSheetProvider/useTrueSheet, React Navigation…

lodev09/react-native-true-sheet · 169 tokens

uniwind

Uniwind — Tailwind CSS v4 styling for React Native. Use when adding, building, or debugging components in a React Native project that uses Uniwind classNames. Covers setup, Metro config, global.css, theming, className props, accent- color props, platform/data/state/responsive variants, CSS variables, custom utilities…

uni-stack/uniwind · 130 tokens

maui-blazor-hybrid

Build/debug MAUI Blazor Hybrid. USE FOR: BlazorWebView vs HybridWebView, Razor UI, embedded HTML/JS, AddMauiBlazorWebView, root components, JS/.NET messaging, trim-safe JSON, wwwroot assets, auth/data handoff, DevFlow CDP route/DOM debugging. DO NOT USE FOR: pure XAML UI or browser-only apps.

dotnet/maui-labs · 88 tokens

react-native-expert

Expert in React Native, cross-platform mobile development, native modules, and performance optimization. Use when the user mentions mobile, JavaScript, TypeScript, cross platform, iOS, or Android, or when the task involves React Native Architecture, Component Types, Hooks Essentials, or Navigation.

personamanagmentlayer/pcl · 62 tokens

migrate-nativewind-to-uniwind

Migrate a React Native project from NativeWind to Uniwind. Use when the user wants to replace NativeWind with Uniwind, upgrade from NativeWind, switch to Uniwind, or mentions NativeWind-to-Uniwind migration. Handles package removal, config migration, Tailwind 4 upgrade, cssInterop removal, theme conversion, and all…

uni-stack/uniwind · 82 tokens

swiftui-uikit-interop

Bridge UIKit and SwiftUI in both directions on iOS 26. Covers UIViewRepresentable / UIViewControllerRepresentable (makeUIView/updateUIView, makeUIViewController/updateUIViewController, Coordinator + makeCoordinator for delegate/target-action, sizeThatFits(:uiView:context:) with ProposedViewSize, dismantleUIView)…

TalissonVitorino/kmp-ios-skills · 259 tokens