Conversation
Adds a nativephp-mobile-ui skill with the elements, their props and events, list-item slots and swipe actions, text input binding advice and the traps agents hit. The always-loaded guideline gets three short rules and a pointer to the skill. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an element reference to the Boost files this plugin ships, so agents don't have to read vendor source to find props. It's the mobile-ui half of NativePHP/mobile-air#517.
In the stack benchmark, a bare NativePHP run took 67 to 77 turns and $1.70 to $2.10 per trial because the model doesn't know SuperNative or these elements. With a short guide as CLAUDE.md it took 14 turns, $0.38 and 3 minutes. Most of the guide's element knowledge belongs here.
What's added
A new
nativephp-mobile-uiskill (resources/boost/skills/nativephp-mobile-ui/SKILL.md, 117 lines):.debounce.300ms, taking the text from@submit,keep-focus-on-submitbeing iOS only.on-trailing-press(from Read on-trailing-press on list items #108), swipe actions, and a worked example.Native::test()trees.The always-loaded guideline gets 7 lines: a pointer to the skill, the three text input tag names with the binding advice, and the list-item camelCase and swipe rules.
How I checked it
Native::test(): checkbox change, trailing button, swipe action, row press and@submitall reach the right method with the right arguments.applyAttributes()reads on main.<native:text-input>throws "Unknown native element type: text_input".php artisan boost:install --no-interactionrenders the guideline into AGENTS.md with no Blade errors and installs the skill unchanged.composer test: 264 passed, 3 failed. The same 3ListItemImageSourceTesttests fail on main (the lock file pins nativephp/mobile 4.0.0-rc.1).Lines to update when these merge
headline-line-through): add it to the list item props and change "A list item can't strike through or restyle its headline" to use it. The custom row example can stay for rows with their own buttons.keep-focus-on-submit): drop "only works on iOS".🤖 Generated with Claude Code