ux-native

ux-native is a skill for Claude Code from smnandre/symfony-ux-skills. It costs 61 tokens per session (1,927 once invoked), scanned A, original, MIT.

A Symfony integration for serving a Symfony site inside Hotwire Native iOS and Android apps. Hotwire Native is a mobile framework that displays web pages in a native app and adds native navigation and bridge components.

In plain words
What is it for?
Use it to create mobile configuration files, redirect or refresh navigation differently in the app, and scaffold controllers that connect web pages to native app features.
Why use it?
It removes much of the manual work needed to tell the site whether a request came from the app, provide the app's configuration, and handle app-specific navigation.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the symfony-ux-skills plugin — 20 skills shipped together

Good fit Use it to create mobile configuration files, redirect or refresh navigation differently in the app, and scaffold controllers that connect web pages to native app features.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/smnandre/symfony-ux-skills/ux-native
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 smnandre/symfony-ux-skills --skill ux-native
Clone the repo
git clone --depth 1 https://github.com/smnandre/symfony-ux-skills

Made for: Claude Code.

Or install symfony-ux-skills, the plugin that ships this one along with the rest of its 20 skills.

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 ux-native

README.md
[![agentmods](https://agentmods.dev/badge/skills/smnandre/symfony-ux-skills/ux-native/github.svg)](https://agentmods.dev/skills/smnandre/symfony-ux-skills/ux-native)
Your own site
<a href="https://agentmods.dev/skills/smnandre/symfony-ux-skills/ux-native"><img src="https://agentmods.dev/badge/skills/smnandre/symfony-ux-skills/ux-native/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 ux-native

Your own site · 80×15
<a href="https://agentmods.dev/skills/smnandre/symfony-ux-skills/ux-native"><img src="https://agentmods.dev/badge/skills/smnandre/symfony-ux-skills/ux-native.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,927 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.00061 $0.01927
Opus 5.5 $0.00024 $0.00771
Sonnet 5.5 $0.00012 $0.00385
Haiku 4.5 $0.00006 $0.00193

Measured today against content hash 4e4adff2c28d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ux-native 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 today.

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.

skills/ux-native/SKILL.md · 206 lines

How it starts

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

UX Native

Serve a Hotwire Native iOS or Android app from your Symfony site. The bundle detects requests from the app, builds the JSON path configurations the app downloads, sends the app navigation actions after a form, and scaffolds Bridge controllers.

The package is experimental: its API may still change. It builds on Turbo (symfony/ux-turbo).

Installation

composer require symfony/ux-native

Flex adds @hotwired/hotwire-native-bridge and @hotwired/stimulus to importmap.php (AssetMapper) or package.json (Encore, Reprise).

Quick Reference

{% if ux_is_native() %}                         Request from the app (User-Agent contains "Hotwire Native")
NativeNavigator::isNative()                     Same check in PHP
#[AsNativeConfigurationProvider]                Class holding path configurations
#[AsNativeConfiguration('/config/ios_v1.json')] Method returning a Configuration
php bin/console ux:native:build-configs         Write the JSON files for production
NativeNavigator::redirectOrToRoute(...)         Dismiss / refresh in the app, redirect in a browser
php bin/console make:native-bridge-controller   Bridge component skeleton

Native or Browser

{% if not ux_is_native() %}
    {{ include('_navbar.html.twig') }}    {# the app shows its own navigation #}
{% endif %}
use Symfony\UX\Native\Navigation\NativeNavigator;

public function show(NativeNavigator $navigator): Response
{
    $template = $navigator->isNative() ? 'note/show_native.html.twig' : 'note/show.html.twig';
    // ...
}

Every Hotwire Native client sends Hotwire Native in its User-Agent; the bundle flags the request on kernel.request. Outside a request (console, workers), ux_is_native() returns false.

Path Configuration

The app downloads JSON describing how to present each URL (modal, pull to refresh, native screen). Declare each file as a method:

namespace App\Native;

use Symfony\UX\Native\Attribute\AsNativeConfiguration;
use Symfony\UX\Native\Attribute\AsNativeConfigurationProvider;
use Symfony\UX\Native\Configuration\Configuration;
use Symfony\UX\Native\Configuration\Rule;

#[AsNativeConfigurationProvider]
final class PathConfiguration
{
    #[AsNativeConfiguration('/config/ios_v1.json')]
    public function iosV1(): Configuration
    {
        return new Configuration(
            settings: ['feature_flags' => ['new_editor' => true]],
            rules: [
                new Rule(patterns: ['.*'], properties: ['context' => 'default', 'pull_to_refresh_enabled' => true]),
                new Rule(patterns: ['/new$', '/edit$'], properties: ['context' => 'modal', 'pull_to_refresh_enabled' => false]),
            ],
        );
    }

    #[AsNativeConfiguration('/config/android_v1.json')]
    public function androidV1(): Configuration
    {
        return $this->iosV1();
    }
}

Read the full file on GitHub · 206 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. today First seen · 206 lines · 61 tokens per session scan A 4e4adff2c28d

Subscribe to this mod's changes

ux-native is a skill published in the GitHub repository smnandre/symfony-ux-skills (191 stars, last pushed yesterday), licensed MIT. It adds 61 tokens to every session and 1,927 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-12-03.

Related

ux-native compared with skills from other repositories

ux-native next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ux-nativesmnandre/symfony-ux-skillsSkill191yesterdayMITA61Claude Code
flutter-screenshotsdatit309/supergraphSkill238d agoMITA68Claude Code
mobile-agentdatit309/supergraphSkill238d agoMITA46Claude Code
flutter-uidatit309/supergraphSkill238d agoMITA48Claude Code
flutter-dart-code-reviewdatit309/supergraphSkill238d agoMITA56Claude Code
mobile-experience-reportrespira-press/agent-skills-wordpressSkill501mo agoMITA58Claude Code
design-mobile-appsaiskillstore/marketplaceSkill509todaynoneA49Claude Code, Codex