agentleFS
vechainvechain/vechain-ai-skills/skills/frontend/SKILL.md

frontend

Skill15 starsChanged 9 months agoMITView on GitHub

Generic frontend development patterns for VeChain dApps — React Query, Turborepo architecture, state management, Chakra UI, i18n, loading states, and transaction UX.

37 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use backend, programming and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • xiaobei930Skill

    backend

    Backend development patterns for services, error handling, logging, caching. Use when building backend services, APIs, or microservices.

    Also in 10 projects that use this

  • Xia-AtaraxiaSkill

    programming

    Guides correctness-first, type-strict Python and TypeScript implementation. Use when asked to write a `.py` or `.ts` file, scaffold a Python/TypeScript project, add strict types, assess an implementation diff for correctness or type holes, or fix a reproducible defect. Not for smell-only assessment or behavior-preserving restructuring — use refactor; not for suite-level test architecture — use testing.

    Also in 3 projects that use this

  • iankikuSkill

    data

    (forwward) Designs analytics systems, writes SQL queries, plans event tracking, and builds dashboards for product and user metrics. Triggers on SQL, analytics, dashboards, tracking, data pipelines, or user behavior analysis.

    Also in 3 projects that use this

  • GoogleSkill

    quality

    Evaluates whether a GitHub issue is spam, empty, needs more information, or is OK to proceed.

    Also in 3 projects that use this

  • 0xSeroSkill

    security

    Also in 7 projects that use this

  • AnthropicSkill

    architecture

    Create or evaluate an architecture decision record (ADR). Use when choosing between technologies (e.g., Kafka vs SQS), documenting a design decision with trade-offs and consequences, reviewing a system design proposal, or designing a new component from requirements and constraints.

    Also in 6 projects that use this

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 7 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 29 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this Skill for generic frontend development patterns in VeChain dApps:

    line 22
  2. Distinctive:

    Before installing dependencies or running any command:

    line 50
  3. Very specific:

    Check if .nvmrc exists in the project root.

    line 52
  4. Very specific:

    If .nvmrc does not exist, create one with 20 (Node 20 LTS) and run nvm use.

    line 53
  5. Distinctive:

    When the user's request is ambiguous or could be solved multiple ways, ask before building.

    line 62
  6. Distinctive:

    Use React Query for all server state (contract reads, indexer data)

    line 66
  7. Distinctive:

    Never duplicate server state in Zustand — let React Query be the source of truth

    line 67
  8. Very specific:

    Always use enabled guards on queries with dynamic params

    line 68
  9. Distinctive:

    Always show skeletons while loading — never render empty/zero states during loads

    line 69
  10. Distinctive:

    Read the matching files BEFORE doing anything else.

    line 82

“Common” is measured: kept by at least 6 in 10 of the 29 edited versions of this file we could read. “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
SKILL.md

Frontend Skill

CRITICAL RULES

  1. Read reference files FIRST. When the user's request involves any topic in the reference table below, read those files before doing anything else — before writing code, before making decisions. Briefly mention which files you are reading so the user can confirm the skill is active (e.g., "Reading frontend patterns reference...").
  2. Information priority for VeChain topics: (a) Reference files in this skill — always the primary source. (b) VeChain MCP tools — use @vechain/mcp-server for on-chain data, transaction building, and live network queries; use Kapa AI MCP for VeChain documentation lookups. (c) Web search — only as a last resort, and only for topics NOT covered in the reference files.
  3. Prefer working directly in the main conversation for VeChain tasks. Plan mode and subagents do not inherit skill context and may fall back to web search instead of using reference files.
  4. After compaction or context loss, re-read this SKILL.md to restore awareness of the reference table and operating procedure before continuing work.

Scope

Use this Skill for generic frontend development patterns in VeChain dApps:

  • React Query (TanStack Query): query keys, cache invalidation, batch queries, loading states, anti-patterns
  • Turborepo monorepo architecture and conventions
  • State management (React Query for server state, Zustand for client state)
  • Chakra UI integration and responsive design
  • i18n with react-i18next
  • Transaction UX: loading states, confirmation patterns, error handling
  • Choosing between VeChain Kit and dapp-kit

For package-specific APIs (hooks, components, setup), see the vechain-kit skill. For core VeChain SDK, fee delegation, and multi-clause transactions, see the vechain-core skill.

Default stack

LayerDefaultAlternative
FrontendReact / Next.js (App Router)--
Data fetching@tanstack/react-query--
State managementZustand (client state only)--
UIChakra UI v2--
MonorepoTurborepo--
NodeNode 20 LTS (managed via nvm)--

Operating procedure

1. Check Node version

Before installing dependencies or running any command:

  • Check if .nvmrc exists in the project root. If yes, run nvm use.
  • If .nvmrc does not exist, create one with 20 (Node 20 LTS) and run nvm use.

2. Detect project structure

  • turbo.json present → follow Turborepo conventions (apps/frontend, packages/*)
  • Apply conditional patterns (Chakra UI, i18n, Zustand) only when the project uses them

3. Clarify before implementing

When the user's request is ambiguous or could be solved multiple ways, ask before building. Separate research from implementation.

4. Implement with correctness

  • Use React Query for all server state (contract reads, indexer data)
  • Never duplicate server state in Zustand — let React Query be the source of truth
  • Always use enabled guards on queries with dynamic params
  • Always show skeletons while loading — never render empty/zero states during loads
  • Invalidate affected caches after transactions

5. Verify and deliver

A task is not complete until all applicable gates pass:

  1. Code compiles — no build errors (npm run build or equivalent succeeds)
  2. Tests pass — existing tests still pass; new logic has test coverage
  3. Risk notes documented — any signing, fee, or token-transfer implications are called out

Reference files

Read the matching files BEFORE doing anything else. See Critical Rules above.

TopicFileRead when user mentions...
Frontend patternsreferences/frontend.mdfrontend, React Query, caching, query keys, loading, skeleton, Turborepo, Chakra, i18n, state management, transaction UX, VeChain Kit vs dapp-kit

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.