agentleFS
ShopifyKnown publisherShopify/flash-list/CLAUDE.md

flash-list

CLAUDE.md7.2k starsChanged 8 months agoMITView on GitHub

High-performance replacement for React Native's FlatList, built on recycling principles. Used by thousands of React Native apps for smooth scrolling with large datasets. estimatedItemSize does NOT exist as a prop on FlashList. Do not use it, suggest it, or add it. Important: dist/ is NOT rebuilt on branch switch. Always run yarn build after checking out a different branch. Node 22.18.0 All agent-raised PRs MUST use SHOPIFY_GH_ACCESS_TOKEN for PR creation. PRs created without this token cannot be merged. Before finishing…

  • Reads credentials
  • Commits and pushes

Trending

Quiet since September.about the whole repository

Dec 2025: 0 mentionsJan 2026: 1 mentionFeb 2026: 2 mentionsMar 2026: 1 mentionApr 2026: 1 mentionMay 2026: 0 mentionsJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 1 mentionSep 2026: 1 mentionOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the Shopify/flash-list repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about Shopify/flash-list

The biggest 5 of 19 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 19

Talked about on GitHub and Bluesky (19 times).

On GitHub · 18

13 more on GitHub

The file

We split this CLAUDE.md into the rules it gives an agent

6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use conventional commits: fix(scope): description, feat(scope): description

    line 32
  2. Very specific:

    Do NOT include any AI attribution (no Co-Authored-By AI lines, no "Generated by" or "Assisted by" text)

    line 34
  3. Very specific:

    When creating a PR, always use: GH_TOKEN="$AGENT_PR_TOKEN" gh pr create ...

    line 43
  4. Very specific:

    Never: use bare gh pr create without the GH_TOKEN="$AGENT_PR_TOKEN" prefix — the PR will be unmergeable.

    line 45
  5. Distinctive:

    When you discover something important during a session — a pitfall, a non-obvious behavior, a debugging technique, or a pattern that would …

    line 71
  6. Distinctive:

    Keep entries concise — one line per pitfall, with enough context to be useful

    line 88

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

flash-list

High-performance replacement for React Native's FlatList, built on recycling principles. Used by thousands of React Native apps for smooth scrolling with large datasets.

Source Layout

  • src/ — library source code (TypeScript)
  • fixture/react-native/ — React Native test/demo app
  • dist/ — compiled output (NOT auto-rebuilt on branch switch)

Key Constraint

estimatedItemSize does NOT exist as a prop on FlashList. Do not use it, suggest it, or add it.

Build & Test

yarn build          # compile TypeScript to dist/
yarn test --forceExit
yarn type-check
yarn lint

Important: dist/ is NOT rebuilt on branch switch. Always run yarn build after checking out a different branch.

Node Version

Node 22.18.0

Commit & PR Conventions

  • Use conventional commits: fix(scope): description, feat(scope): description
  • Scope examples: layout, hooks, scroll, sticky-headers, recycling, viewability
  • Do NOT include any AI attribution (no Co-Authored-By AI lines, no "Generated by" or "Assisted by" text)
  • PR titles should be under 70 characters and match the commit format
  • Link issues with Fixes #<number> in the commit/PR body

Agent PR Token (MANDATORY)

All agent-raised PRs MUST use SHOPIFY_GH_ACCESS_TOKEN for PR creation. PRs created without this token cannot be merged.

  • On CI: The token is available as $AGENT_PR_TOKEN environment variable in agent workflows.
  • When creating a PR, always use: GH_TOKEN="$AGENT_PR_TOKEN" gh pr create ...
  • The default GITHUB_TOKEN is used for all other operations (issue comments, push, checkout). Only PR creation uses AGENT_PR_TOKEN.
  • Never use bare gh pr create without the GH_TOKEN="$AGENT_PR_TOKEN" prefix — the PR will be unmergeable.

CI Cleanup (MANDATORY)

Before finishing on CI, kill all background processes you started — especially Metro (port 8081). Leftover processes prevent the GitHub Actions job from exiting, causing it to run until timeout and waste CI minutes.

lsof -ti:8081 | xargs kill -9 2>/dev/null || true

Available Skills

Skills are reusable workflows in .claude/skills/. Use them when relevant:

SkillWhen to use
fix-github-issueFixing a bug end-to-end: reproduce, diagnose, fix, verify on simulator, PR
raise-prCreating a PR with proper conventional commit format and no AI attribution
review-and-testReviewing a PR or branch: unit tests, type-check, lint, device testing, RTL/LTR
triage-issueClassifying an issue (P0/P1/P2), finding duplicates, applying labels
agent-deviceInteracting with iOS simulator or Android emulator (snapshot-based coordinates)
upgrade-react-nativeUpgrading the fixture app's React Native version
analyze-feedbackScanning agent workflow feedback artifacts and incorporating learnings into skills

Self-Learning

When you discover something important during a session — a pitfall, a non-obvious behavior, a debugging technique, or a pattern that would save time in the future — update the relevant skill file or this file so the knowledge persists.

What to capture:

  • New pitfalls or edge cases discovered while fixing bugs
  • Debugging techniques that worked (or didn't)
  • Corrections to existing instructions that turned out to be wrong
  • Non-obvious behaviors of FlashList, React Native, or the build system

Where to put it:

  • Bug/fix patterns → fix-github-issue skill (Common Pitfalls section)
  • Testing edge cases → review-and-test skill (Edge Cases section)
  • Device interaction quirks → agent-device skill
  • Project-wide facts → this file (CLAUDE.md)
  • Batch analysis of agent feedback → use the analyze-feedback skill to scan workflow artifacts

How:

  • Include the update in the same PR as the fix (not a separate PR)
  • Keep entries concise — one line per pitfall, with enough context to be useful
  • On CI, only add critical learnings (things that would cause repeated failures). Minor improvements should wait for interactive sessions.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.