ruizrica/agent-pi/qa-state-persistence
- community
Checking that the SKILL.md file is still in the repository.
QA test skill for verifying UI state persistence across navigation. Tests that state changes (likes, bookmarks, cart items, form inputs) survive scrolling away and returning. Uses CDP + agent-device dual-driver architecture. Works with any React Native app that uses list-based feeds or scrollable content. Invoke when user says "test state persistence", "test like state", "verify bookmark persists", "QA the state", "test data survives scroll", "verify UI state", or any task requiring state persistence verification across navigation.
Install
npx vskill@latest install ruizrica/agent-pi/qa-state-persistenceSKILL.md
qa-state-persistence
QA test skill for verifying UI state persistence across navigation. Tests that state changes (likes, bookmarks, cart additions, form inputs) survive scrolling away and returning. Uses the dual-driver architecture (CDP + agent-device).
What It Tests
| Test | Method | Assertion | |
|---|---|---|---|
| Navigate to feed | CDP navigation | Route is on feed screen | |
| Record item identity | CDP feed data query | Item ID and initial state captured | |
| Verify initial state | CDP property query | State property is in expected initial value | |
| Mutate state | CDP data mutation | Property flips (e.g., isLiked: false → true) | |
| Scroll away (N items) | CDP scroll or agent-device swipe | Feed index advances | |
| Scroll back | CDP scrollToIndex(0) | Feed index returns to 0 | |
| State persisted | CDP property query | KEY ASSERTION: property still has mutated value | |
| Cleanup | CDP data mutation | Restore original state | |
| Final route check | CDP cdp_get_route | Still on feed screen |
Configuration
Set your app-specific values in qa.config.sh:
Setting Up the Feed Debug Hook
In your app's feed component (dev builds only), expose:
Architecture
Usage
Run the example test
View results
- Screenshots:
/tmp/qa-tests/screenshots/<test-name>/ - Report JSON:
/tmp/qa-tests/<test-name>-report.json
Test Flow Diagram
File Structure
Troubleshooting
"Feed hook not available"
The __qaFeedState global isn't set. Ensure:
- Your feed component sets it up in
__DEV__mode - The feed screen is mounted (navigate to it first)
- The hook name matches
GLOBAL_FEED_VARin config
"Could not read feed data"
getData() or getItem() failed. Possible causes:
- Component hasn't fully mounted yet (increase settle time)
- Feed data structure changed
- Hook was set up before data loaded
"scrollToIndex not available"
The hook doesn't expose scrollToIndex. The test falls back to repeated swipe-down gestures.
"State lost after scroll"
This is the real failure the test catches. If state doesn't persist, investigate:
- List item recycling (FlatList/FlashList virtualization)
- State management (local vs global state)
- Cache invalidation during scroll
- Component unmount/remount cycles
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/qa-automation/qa-state-persistence/SKILL.md
Popularity
- Repository stars
- 267
- Repository forks
- 41
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 6 Sep 2026, a month ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ruizrica/agent-pi/qa-state-persistence)