CtrlK
BlogDocsLog inGet started
Tessl Logo

1k-ui-snapshot-cache

UI snapshot cache (display-only, main-thread) + unified startup timing schema — cold-start reads from snapshot namespaces (MMKV on native, IndexedDB on web) and the cross-platform `[StartupTiming]` log taxonomy. Use when adding or debugging a UI snapshot / SWR cache, debugging startup performance regressions, analyzing cold start timeline, or comparing iOS vs Android startup phases. Triggers on: ui snapshot cache, SnapshotCache, swr cache, usePromiseResult cache, cold start, startup optimization, 启动时间, SSR hydration, Balance displayed regression, contextAtomBase, flushColdStartCache, __ONEKEY_CTX_ATOM_SNAPSHOT__, StartupTiming, main_host.did_start, bg_runner.start.

75

Quality

92%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

85%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A high-quality, deeply actionable reference: executable commands, exact file paths, validation-capable baselines, and clear rules with rationale. The main weakness is that all reference material — the StartupTiming label taxonomy, per-platform expected timelines, and bundle-size tables — lives inline in SKILL.md with no progressive disclosure into separate files.

Suggestions

Move the platform-specific StartupTiming label tables (Android-only, iOS-only, JS-side labels) and the expected-timeline baselines into a references/ file (e.g. references/startup-timing.md), keeping only the shared labels and phase-budget summary in SKILL.md with a clearly signaled link.

Extract the 'Split Bundle: main vs background Bundle Sizes' section into a reference file, retaining just the one-line impact summary ('main.jsbundle eval is the single biggest bottleneck') in the body.

Trim the historical narrative in the SWR 'Who writes an entry' section to the rule plus a one-sentence rationale, and drop or compress the iOS 'TBD, awaiting fixed build' placeholder until re-baselined.

DimensionReasoningScore

Conciseness

The body is dense with project-specific facts (namespace retention, bundle sizes, storage paths) that Claude cannot already know, and it assumes competence throughout. Minor trimming is possible — e.g., the 'the history behind them' narrative in the SWR section and the iOS 'TBD, awaiting fixed build' placeholder — so it sits just below the lean 5 anchor.

4 / 5

Actionability

Guidance is copy-paste ready: exact log paths with resolution commands (`find ~/Library/Developer/CoreSimulator/... | xargs ls -t | head -1`), `adb shell run-as so.onekey.app.wallet cat files/logs/app-latest.log`, complete grep/sed/awk pipelines for timeline extraction, and specific file paths for every concern.

5 / 5

Workflow Clarity

'Diagnosing Cold Start Regressions' is a clearly sequenced 6-step workflow with commands per step, measured baselines to validate against ('Compare phase durations against baseline'), and a symptom→likely cause→fix table that provides error-recovery feedback loops. Only blemish is Step 5's checklist skipping item 4.

5 / 5

Progressive Disclosure

Headers are abundant and navigation is possible (above anchor 2's 'minimal structure'), but no bundle files exist at all — roughly 200 lines of platform-specific timing tables, expected timelines, and phase budgets that clearly belong in separate reference files are inlined in SKILL.md, matching anchor 3 rather than anchor 4 which requires well-signaled external references.

3 / 5

Total

17

/

20

Passed

Description

100%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description is a strong exemplar: concrete third-person capability statements, an explicit 'Use when' clause, and an unusually thorough trigger list including synonyms, internal identifiers, and a Chinese-language term. Everything stated is content-bearing with no fluff or over-claims.

DimensionReasoningScore

Specificity

The description lists multiple concrete capabilities — 'cold-start reads from snapshot namespaces (MMKV on native, IndexedDB on web) and the cross-platform `[StartupTiming]` log taxonomy' — in third-person voice, with no vague filler.

5 / 5

Completeness

It explicitly answers both 'what' ('cold-start reads from snapshot namespaces... and the cross-platform `[StartupTiming]` log taxonomy') and 'when' ('Use when adding or debugging a UI snapshot / SWR cache, debugging startup performance regressions, analyzing cold start timeline, or comparing iOS vs Android startup phases') with concrete trigger phrases.

5 / 5

Trigger Term Quality

The trigger list is comprehensive and natural for the audience: 'ui snapshot cache, SnapshotCache, swr cache, usePromiseResult cache, cold start, startup optimization, 启动时间, SSR hydration' plus internal identifiers like 'flushColdStartCache' and 'main_host.did_start', covering synonyms and both English and Chinese phrasings.

5 / 5

Distinctiveness Conflict Risk

Highly specific internal signals ('__ONEKEY_CTX_ATOM_SNAPSHOT__', 'main_host.did_start', 'Balance displayed regression') carve out a clear niche with minimal conflict risk against generic caching or performance skills.

5 / 5

Total

20

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
OneKeyHQ/app-monorepo
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.