plan-react-native-port
Skill18 starsChanged 2 months agoApache-2.0View on GitHub
Inspect a declared React Native or Expo feature slice and produce a read-only SwiftUI behavioral parity contract before any implementation.
In this repository22 other files it gives its agents.
- AGENTS.mdAGENTS.md
- create-fusion-deliverablesSkill
- edit-fusion-designSkill
- handoff-fusion-engineeringSkill
- inspect-fusion-designSkill
- prepare-fusion-manufacturingSkill
- reconcile-fusion-dataSkill
- run-fusion-cloud-recipesSkill
- setup-autodesk-fusionSkill
- analyze-log-signalsSkill
- inspect-infrastructure-healthSkill
- investigate-application-performanceSkill
- monitor-iot-edgeSkill
- review-business-kpisSkill
- setup-grafana-observabilitySkill
- audit-ios-readinessSkill
- port-react-native-sliceSkill
- verify-swiftui-paritySkill
- audit-review-eval-validitySkill
- benchmark-review-configsSkill
- normalize-review-runsSkill
- recommend-review-reference-architectureSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Do not edit files.
- Distinctive: line 13
Do not create, edit, delete, rename, format, generate, install, build, or commit files.
- Distinctive: line 14
Do not run commands that write caches, lockfiles, build products, or derived data.
- Distinctive: line 16
Treat the source as a behavioral reference.
- Very specific: line 17
When available, use the bundled scripts/native-port.mjs plan guardrail for declared files.
- Distinctive: line 21
Before inspecting, require all of:
- Distinctive: line 29
If source scope, target module, backend contract, licensing, or parity expectations are missing or ambiguous, stop.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Plan a React Native Port
Turn one explicitly declared React Native or Expo feature into a reviewable SwiftUI parity contract. This is a planning skill, not a transpiler and not permission to edit.
Safety contract
- Do not edit files.
- Do not create, edit, delete, rename, format, generate, install, build, or commit files.
- Do not run commands that write caches, lockfiles, build products, or derived data.
- Inspect only the declared feature files and the smallest set of directly imported files needed to understand that feature. Do not crawl the whole repository.
- Treat the source as a behavioral reference. Do not copy source, assets, submodules, private links, credentials, generated artifacts, or customer data into any output.
- When available, use the bundled
scripts/native-port.mjs planguardrail for declared files. Its expected result isreadOnly: trueandwritesPerformed: false; do not proceed if it reports ambiguity.
Required declaration
Before inspecting, require all of:
- an exact source boundary: files, route, component, or directory plus its allowed direct imports;
- the intended SwiftUI target directory and target module;
- the backend contract for this slice, including request/response shapes, auth assumptions, persistence, errors, and offline behavior;
- source, asset, font, and dependency licensing/provenance;
- the parity expectations and any approved native adaptations.
If source scope, target module, backend contract, licensing, or parity expectations are missing or ambiguous, stop. Return a short missing-input list and no implementation advice that assumes an answer.
Inspection method
- Inventory the declared screens, components, state holders, hooks, navigation entry points, platform APIs, and directly used dependencies.
- Trace observable user journeys, state transitions, validation, loading/empty/error states, persistence, network calls, permissions, and analytics only within the declared scope.
- Separate behavior from implementation details. Record what a user or backend can observe; do not preserve incidental JavaScript structure.
- Identify dependencies that should remain, be replaced by native APIs, or be deferred. State the reason and the parity impact.
- Identify pure domain rules that can live in Swift without importing SwiftUI or UIKit.
- Propose deterministic checks for each material invariant, including seeded randomness, fixed clocks, fixture data, or stable serialization where needed.
- Record accessibility expectations: labels, hints, traits, focus order, Dynamic Type, contrast, reduced motion, and deterministic UI identifiers for the approved path.
Contract output
Return a compact contract with:
- declared scope and excluded scope;
- target directory/module and allowed write boundary for a later port;
- user journeys and state-transition table;
- backend, persistence, permissions, and error contract;
- parity requirements and intentional native adaptations;
- pure-Swift domain candidates versus SwiftUI/UIKit adapters;
- deterministic check matrix and available platform gates;
- accessibility acceptance criteria;
- licensing/provenance findings;
- unresolved questions, explicit deferrals, and a go/no-go recommendation.
End by asking for explicit approval of exactly one feature slice, the contract, and the target directory/module before $port-react-native-slice may write anything.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

