platform-adapter

platform-adapter is an agent for Claude Code from wasintoh/toh-framework. It costs 92 tokens per session (2,938 once invoked), scanned A, original, MIT.

An integration agent for adapting web apps to other platforms: LINE MINI Apps, progressive web apps (PWAs), and mobile or desktop apps built with Capacitor. It uses current official platform documentation before writing code.

In plain words
What is it for?
Use it when converting a web app for LINE, iOS or Android app stores, or desktop distribution, and when the project needs platform-specific setup and documentation.
Why use it?
It provides a defined path from a web app to platform-specific versions while accounting for each platform's rules and software development kits (SDKs).

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it when converting a web app for LINE, iOS or Android app stores, or desktop distribution, and when the project needs platform-specific setup and documentation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/wasintoh/toh-framework/platform-adapter
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.

Clone the repo
git clone --depth 1 https://github.com/wasintoh/toh-framework

Made for: Claude Code.

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 platform-adapter

README.md
[![agentmods](https://agentmods.dev/badge/agents/wasintoh/toh-framework/platform-adapter/github.svg)](https://agentmods.dev/agents/wasintoh/toh-framework/platform-adapter)
Your own site
<a href="https://agentmods.dev/agents/wasintoh/toh-framework/platform-adapter"><img src="https://agentmods.dev/badge/agents/wasintoh/toh-framework/platform-adapter/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 platform-adapter

Your own site · 80×15
<a href="https://agentmods.dev/agents/wasintoh/toh-framework/platform-adapter"><img src="https://agentmods.dev/badge/agents/wasintoh/toh-framework/platform-adapter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,938 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.00092 $0.02938
Opus 5.5 $0.00037 $0.01175
Sonnet 5.5 $0.00018 $0.00588
Haiku 4.5 $0.00009 $0.00294

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

Security

Grade A, and why

platform-adapter 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 1mo 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.

src/agents/platform-adapter.md · 311 lines

How it starts

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

Platform Adapter Agent v2.1

🧠 Memory Protocol (Tiered Loading)

Read only what the task needs — never all 7 files by reflex. If the orchestrator delegated this task, use the context it passed instead of re-reading.

BEFORE WORK
├── Tier 1 — ALWAYS read (~800 tokens)
│   ├── .toh/memory/active.md    (current task)
│   └── .toh/memory/summary.md   (features to adapt)
├── Tier 2 — read for this task type (build / code work)
│   ├── architecture.md + components.md  (existing structure & components)
│   └── changelog.md                     (only when debugging a past attempt)
└── Tier 3 — read only when referenced
    ├── decisions.md    (past platform decisions)
    └── agents-log.md   (other agents' activity)

AFTER WORK (write per relevance)
├── active.md      → ALWAYS (current state + next steps)
├── summary.md     → when platform setup is complete
├── changelog.md   → | 📱 Platform | [action] | [files] |
├── agents-log.md  → | HH:MM | 📱 Platform Adapter | [task] | ✅ | [files] |
└── architecture.md / components.md / decisions.md → per relevance
   (platform routes/structure · platform components · platform decisions)

⚠️ Always save active.md before finishing.

Identity

Name: Platform Adapter
Role: Expert Cross-Platform Engineer
Expertise: LINE MINI App (LIFF SDK), PWA, Capacitor (iOS/Android) · Expo/Tauri (secondary/legacy) · Platform APIs
Mindset: One codebase, pull current docs first, adapt not rewrite

"I convert one web app to every platform — LINE, home screen, App Store, desktop — without losing quality."

📢 Agent Announcement

When starting work, announce:

[📱 Platform Adapter] Starting: {task_description}

When completing work, announce:

[📱 Platform Adapter] ✅ Complete: {summary}
Platform: {LINE/Mobile/Desktop}

When running in parallel with other agents:

[📱 Platform Adapter] Running in PARALLEL with [{other_agent_emoji} {other_agent_name}]

Core Philosophy

ADAPT, DON'T REBUILD  +  DOCS FIRST, CODE SECOND

Web code is foundation
Platform-specific code is enhancement
Shared logic = maximized · Platform code = minimized

🥇 Golden rule: LIFF / Capacitor / Serwist / Tauri ออกเวอร์ชันใหม่บ่อย →
   ดึง docs ปัจจุบัน (Context7 / WebFetch) + เช็ค `npm view [pkg] version`
   ก่อนเขียน platform code เสมอ. อ่าน details ใน skill: platform-specialist.

Read the full file on GitHub · 311 lines

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. 1mo ago Changed · +1 lines 22e848ef3517
  2. 1mo ago First seen · 310 lines · 92 tokens per session scan A 0546b7c52172

Subscribe to this mod's changes

platform-adapter is an agent published in the GitHub repository wasintoh/toh-framework (98 stars, last pushed 1mo ago), licensed MIT. It adds 92 tokens to every session and 2,938 once invoked, about $0.0004 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-30.

Related

Other agents, from other repositories

kotlin-reviewer

Kotlin and Android/KMP code reviewer. Reviews Kotlin code for idiomatic patterns, coroutine safety, Compose best practices, clean architecture violations, and common Android pitfalls.

masrisystems/dot-agents · 38 tokens

rn-pr-qa

Device-tests a GitHub pull request on iOS simulator, Android emulator, and/or a physical device using rn-dev-agent. Installs the PR head, exercises the change, and reports pass/fail with repro steps and screenshots/logs. PARENT-SESSION-ONLY: requires MCP tools (cdp, device, rnsession) — do NOT spawn via Task tool, run…

Lykhoyda/rn-dev-agent · 299 tokens

explorer-rag-cli

MUST BE USED PROACTIVELY. Universal read-only explorer agent for navigating and exploring JVM (Java + Kotlin) codebases. Combines graph navigation via the jrag CLI (call chains, routes, service boundaries, clients, producers, impact, FQN resolution) with jrag search (locate code/config by meaning, keywords, or natural…

HumanBean17/jrag · 147 tokens

mobile-app-engineer

Use when you need to implement or review mobile app architecture and cross-platform UI behavior.

FluxonLab/Skillry · 22 tokens

ecc-performance-optimizer

Performance analysis and optimization specialist. Use PROACTIVELY for identifying bottlenecks, optimizing slow code, reducing bundle sizes, and improving runtime performance. Profiling, memory leaks, render optimization, and algorithmic improvements.

KornLabs/truss · 49 tokens

ecc-database-reviewer

PostgreSQL database specialist for query optimization, schema design, security, and performance. Use PROACTIVELY when writing SQL, creating migrations, designing schemas, or troubleshooting database performance. Incorporates Supabase best practices.

KornLabs/truss · 50 tokens