React Native Best Practices
vercel-labs/openreview
A prioritized rule set for React Native and Expo apps covering list performance, animation, navigation, UI patterns, state, rendering, monorepos and configuration.
A skill your agent uses when reading server data in the mobile app - wiring an @ecency/sdk query option into a screen, adding or editing a hook under src/providers/queries/, paginating a feed or…
$ npx skills add ecency/vision-mobile --skill add-query -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ecency/vision-mobile add-query --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ecency/vision-mobile.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/add-query .claude/skills/add-query && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "add-query" agent skill from https://github.com/ecency/vision-mobile/tree/development/.claude/skills/add-query into .claude/skills/add-query/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-query", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ecency/vision-mobile/tree/development/.claude/skills/add-queryType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ecency/vision-mobile --skill add-query -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ecency/vision-mobile add-query --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ecency/vision-mobile.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/add-query .agents/skills/add-query && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "add-query" agent skill from https://github.com/ecency/vision-mobile/tree/development/.claude/skills/add-query into .agents/skills/add-query/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-query", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ecency/vision-mobile --skill add-query -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ecency/vision-mobile add-query --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ecency/vision-mobile.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/add-query .cursor/skills/add-query && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "add-query" agent skill from https://github.com/ecency/vision-mobile/tree/development/.claude/skills/add-query into .cursor/skills/add-query/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-query", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ecency/vision-mobile.git --path .claude/skills/add-query--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ecency/vision-mobile --skill add-query -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ecency/vision-mobile add-query --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ecency/vision-mobile.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/add-query .gemini/skills/add-query && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "add-query" agent skill from https://github.com/ecency/vision-mobile/tree/development/.claude/skills/add-query into .gemini/skills/add-query/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-query", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ecency/vision-mobile add-queryInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ecency/vision-mobile --skill add-query -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ecency/vision-mobile.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/add-query .github/skills/add-query && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "add-query" agent skill from https://github.com/ecency/vision-mobile/tree/development/.claude/skills/add-query into .github/skills/add-query/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-query", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ecency/vision-mobile --skill add-query -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ecency/vision-mobile add-query --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ecency/vision-mobile.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/add-query .opencode/skills/add-query && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "add-query" agent skill from https://github.com/ecency/vision-mobile/tree/development/.claude/skills/add-query into .opencode/skills/add-query/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-query", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
add-queryA skill your agent uses when reading server data in the mobile app - wiring an @ecency/sdk query option into a screen, adding or editing a hook under src/providers/queries/, paginating a feed or…
Add Query is an agent skill from ecency/vision-mobile. Use when reading server data in the mobile app - wiring an @ecency/sdk query option into a screen, adding or editing a hook under src/providers/queries/, paginating a feed or list with an infinite query, or fixing a query key, enabled guard, or cache persistence problem.
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Mobile. The repository describes itself as: Ecency Mobile - reimagined social blogging, contribute and get rewarded (for Android and iOS). The licence is MIT.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit feef7d1. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
yarnFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use yarn, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Add Query loads about 1.8k tokens when it runs. Until then it costs about 70 tokens; SKILL.md has 557 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ecency/vision-mobile at commit feef7d1, republished under its MIT licence (© ecency). 557 words, ~1,787 tokens.
.claude/skills/add-query/SKILL.md (or your agent's skills folder).Read CLAUDE.md first (State Management, SDK Migration). Writes are a separate skill: add-mutation.
@ecency/sdk exports a large family of get*QueryOptions helpers. Most files under
src/providers/queries/ import from @ecency/sdk; a bare queryFn: is rare in that directory.
Search the SDK for your own domain first. Write a queryFn only when that search comes back empty:
D=node_modules/@ecency/sdk/dist/browser/index.d.ts
test -f "$D" || echo 'SDK not installed, run yarn' # a missing file greps as empty, a false all-clear
grep -o "get[A-Za-z]*QueryOptions" "$D" | sort -u | grep -i draft # swap in your domain
grep -n "declare function getPostQueryOptions" "$D"Drop the trailing | grep -i draft to list them all. The last grep gives the real argument order.
Do not guess it. In the call sites here, getPostQueryOptions takes the observer third.
import { useQuery } from '@tanstack/react-query';
import { getPostQueryOptions, getAccountFullQueryOptions } from '@ecency/sdk';
const observer = currentAccount?.name;
const { data: post, isLoading } = useQuery(getPostQueryOptions(author, permlink, observer));
const { data: account } = useQuery(getAccountFullQueryOptions(author));The dominant shape: spread the SDK options, then override. Verbatim,
src/providers/queries/leaderboardQueries/leaderboardQueries.ts:
import { useQuery } from '@tanstack/react-query';
import { getDiscoverLeaderboardQueryOptions } from '@ecency/sdk';
/** hook used to return leaderboard data using SDK */
export const useGetLeaderboardQuery = (duration: 'day' | 'week' | 'month') => {
return useQuery({
...getDiscoverLeaderboardQueryOptions(duration),
// Opted in explicitly: the client default is off, because waking every query in
// the cache on every resume is far more than this needs. The board lives inside a
// tab that stays mounted, so without this it shows whatever it fetched hours ago
// until the user thinks to pull to refresh.
refetchOnWindowFocus: true,
});
};Usual overrides: enabled, select, staleTime, gcTime, initialData. Keep the SDK's
queryKey plus queryFn so the cache entry stays shared with other surfaces.
Ecency backend queries take username plus an access token. Use useAuth() rather than
re-deriving it. From src/providers/queries/newsletterQueries.ts:
import { useAuth } from '../../hooks';
export const useDigestSubscriptionsQuery = () => {
const { username, code } = useAuth();
return useQuery(getDigestSubscriptionsQueryOptions(username, code));
};SDK get*InfiniteQueryOptions already carry initialPageParam plus getNextPageParam. The repo
rarely hand-rolls those two. Flatten in the hook, do not re-key. From
src/providers/queries/draftQueries.ts (comments stripped):
const { username, code } = useAuth();
const enabled = !!username && !!code;
const infiniteQuery = useInfiniteQuery({
...getDraftsInfiniteQueryOptions(username ?? '', code ?? '', limit),
enabled,
});
const data = useMemo(() => {
if (!infiniteQuery.data?.pages) return [];
return infiniteQuery.data.pages.flatMap((page) => page.data);
}, [infiniteQuery.data?.pages]);
return { ...infiniteQuery, data, pagesLoaded: infiniteQuery.data?.pages?.length ?? 0 };import { QueryKeys } from '@ecency/sdk'. Namespaced factories, not strings:
QueryKeys.posts.draftsInfinite(username, limit), QueryKeys.accounts.full(name),
QueryKeys.polls.details(author, permlink). Use these to invalidate or seed an SDK cache entry.src/providers/queries/queryKeys.ts is a default export named QUERIES
with a nested shape. Files import that default (import QUERIES from '<relative>/queryKeys',
so the specifier depends on the file) then queryKey: [QUERIES.WALLET.GET_ACTIVITIES, username].
There is no local QueryKeys export.Only when the SDK has nothing. Verbatim, src/providers/queries/settingsQueries.ts:
export const useGetServersQuery = () => {
return useQuery<string[]>({
queryKey: [QUERIES.SETTINGS.GET_SERVERS],
queryFn: getNodes,
placeholderData: [...SERVER_LIST],
staleTime: 0,
});
};getNodes comes from src/providers/ecency/ecency.ts, a provider module, not a bare fetch.
src/providers/queries/index.ts uses export * from './<domain>Queries'. It also re-exports
getQueryClient from the SDK; the rest of the file is local (initQueryClient plus the
persistence allowlist). A subdirectory carries its own index.ts that re-exports namespaces.
_shouldDehydrateQuery in src/providers/queries/index.ts
switches on queryKey[0], then narrows on queryKey[1]. A namespace with no case falls to the
default and is dropped, so a new namespace is not persisted until you add its case. Within a
case the subtype handling differs per namespace: some subtypes are dropped, some persist only
while a single page is loaded, some persist wholesale. Read the switch before assuming a new key
persists.enabled when a param can be undefined. An undefined anywhere in a query key
also blocks persistence.undefined from getNextPageParam stops pagination; that is what the repo's
hand-rolled case returns.updateVoteInQueryCaches() and read back via
applyRecentVoteOverrideToEntry() from src/providers/queries/postQueries/voteCacheUtils.ts;
seed a post before navigation with usePostsCachePrimer(). useInjectVotesCache is gone,
though CLAUDE.md's Post Data Flow still lists it.getQueryClient from the app barrel providers/queries rather than
the SDK: await queryClient.fetchQuery(getAccountsQueryOptions([username])).src/providers/queries/sdk-config.ts runs from initQueryClient() and configures
ConfigManager (query client, private API host, image host, Hive nodes, DMCA lists). Adding a
query rarely requires touching it.Prettier width is 100 (.prettierrc). Finish with yarn lint, yarn typecheck plus
yarn test:ci; .github/workflows/test.yml runs all three on every PR. The baseline in
tsc-baseline.json is empty, so any type error fails. Two co-located tests in
src/providers/queries/ read index.ts and assert the export * from './<domain>Queries'; line
from section 7, so a missing barrel export fails jest.
© ecency, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/add-query of ecency/vision-mobile.
Open the folder on GitHubat commit feef7d1
Add Query next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Add Query this skillecency/vision-mobile | 262 | — | ~1.8k | Automated safety check: Pass | MIT | |
| React Native Best Practicesvercel-labs/openreview | 1.7k | 17 repos | ~1.1k | Automated safety check: Pass | MIT | |
| Swiftui Protwostraws/SwiftUI-Agent-Skill | 5.1k | 2 repos | ~1.5k | Automated safety check: Pass | MIT | |
| Kortix Brandkortix-ai/suna | 20k | — | ~4k | Automated safety check: Pass | Custom licence | |
| Ip As LogoKartikLabhshetwar/better-shot | 2.4k | 1 repos | ~4.3k | Automated safety check: Pass | MIT | |
| Compose Multiplatform Patternsmonta-app/ocpp-emulator | 180 | 5 repos | ~2k | Automated safety check: Pass | Apache-2.0 |
vercel-labs/openreview
A prioritized rule set for React Native and Expo apps covering list performance, animation, navigation, UI patterns, state, rendering, monorepos and configuration.
twostraws/SwiftUI-Agent-Skill
Comprehensively reviews SwiftUI code for best practices on modern APIs, maintainability, and performance.
kortix-ai/suna
Load FIRST for anything that carries the Kortix look or voice: product or mobile UI, copy of any kind, decks, social, images, email, CLI output, anything with the logo, and reviews of these.
KartikLabhshetwar/better-shot
Generate extremely simple, cute, personified square character images with rounded heavy forms, two purposeful character colors, one solid background color, and a dominant lower-corner composition.
monta-app/ocpp-emulator
Compose Multiplatform and Jetpack Compose patterns for KMP projects — state management, navigation, theming, performance, and platform-specific UI.
adamlyttleapps/claude-skill-aso-appstore-screenshots
Generate high-converting App Store screenshots by analyzing your app's codebase, discovering core benefits, and creating ASO-optimized screenshot images using Nano Banana Pro.
ecency/vision-mobile
A skill your agent uses when adding a new screen, route, or user-facing feature to the Ecency mobile React Native app, covering navigator registration, route params, i18n strings and styling.
ecency/vision-mobile
A skill your agent uses when adding, wrapping, or calling an @ecency/sdk mutation hook in the mobile app (Hive broadcasts like transfer, follow, vote, delegate, community, engine token, or points)
ecency/vision-mobile
A skill your agent uses when adding, registering, or debugging a bottom sheet (action sheet) in the mobile app, including when a sheet's cancel or dismissal reaches the caller as the wrong result.
ecency/vision-mobile
Review a vision-mobile React Native change (diff, branch, PR or file) against this repo's own traps and conventions: action sheet return values, setNativeProps caret, safe-area edges, editor…
ecency/vision-mobile
Diagnose a bug in the Ecency mobile app when a broadcast or login fails, a wallet or transfer amount is wrong, a screen or deep link does not open, a bottom sheet misbehaves, dark mode colors are…
Categories
A skill your agent uses when reading server data in the mobile app - wiring an @ecency/sdk query option into a screen, adding or editing a hook under src/providers/queries/, paginating a feed or…. Add Query is an agent skill from ecency/vision-mobile. Use when reading server data in the mobile app - wiring an @ecency/sdk query option into a screen, adding or editing a hook under src/providers/queries/, paginating a feed or list with an infinite query, or fixing a query key, enabled guard, or cache persistence problem.
Add Query fits situations like: reading server data in the mobile app - wiring an @ecency/sdk query option into a screen; editing a hook under src/providers/queries/; paginating a feed; list with an infinite query.
Run `npx skills add ecency/vision-mobile --skill add-query -a claude-code`. Or copy the skill folder (.claude/skills/add-query in ecency/vision-mobile) into .claude/skills/add-query in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ecency/vision-mobile --skill add-query -a codex`. Or copy the skill folder (.claude/skills/add-query in ecency/vision-mobile) into .agents/skills/add-query in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ecency/vision-mobile --skill add-query -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-query, .gemini/skills/add-query, .github/skills/add-query and .opencode/skills/add-query in your project.
Going by SKILL.md and its folder, Add Query needs the command-line tools its instructions call (yarn).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Add Query is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Add Query: React Native Best Practices (vercel-labs/openreview, 1.7k stars), Swiftui Pro (twostraws/SwiftUI-Agent-Skill, 5.1k stars), Kortix Brand (kortix-ai/suna, 20k stars) and Ip As Logo (KartikLabhshetwar/better-shot, 2.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ecency (a GitHub organization) maintains it in ecency/vision-mobile, which has 262 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 5, 2026.
Source: ecency/vision-mobile on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.