vgs-collect-react-guide

vgs-collect-react-guide is a skill for Claude Code, Codex from verygoodsecurity/collect-js-react. It costs 105 tokens per session (1,394 once invoked), scanned A, original, MIT.

A guide for adding and maintaining the public VGS Collect React wrapper, a React library for collecting sensitive payment data through VGS.

In plain words
What is it for?
Setting up VGS Collect in React, configuring sessions and forms, rendering secure fields, creating cards, migrating integrations, troubleshooting, and reviewing implementations.
Why use it?
It keeps integration answers within the supported React APIs and helps avoid mixing them with unrelated vanilla JavaScript instructions.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/verygoodsecurity/collect-js-react/vgs-collect-react-guide
Any agent
npx skills add verygoodsecurity/collect-js-react --skill vgs-collect-react-guide
Clone the repo
git clone --depth 1 https://github.com/verygoodsecurity/collect-js-react

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vgs-collect-react-guide

README.md
[![agentmods](https://agentmods.dev/badge/skills/verygoodsecurity/collect-js-react/vgs-collect-react-guide.svg)](https://agentmods.dev/skills/verygoodsecurity/collect-js-react/vgs-collect-react-guide)
Your own site
<a href="https://agentmods.dev/skills/verygoodsecurity/collect-js-react/vgs-collect-react-guide"><img src="https://agentmods.dev/badge/skills/verygoodsecurity/collect-js-react/vgs-collect-react-guide.svg" alt="Measured on agentmods" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,394 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00105 $0.01394
Opus 5 $0.00053 $0.00697
Sonnet 5 $0.00021 $0.00279
Haiku 4.5 $0.00011 $0.00139

Measured 4d ago against content hash 1d0c39943c62, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

vgs-collect-react-guide scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/vgs-collect-react-guide/SKILL.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

VGS Collect React Guide

Use this skill for public customer integration guidance for @vgs/collect-js-react only. Keep answers and bundled references limited to public React wrapper APIs, required public loader setup, examples, and troubleshooting.

Route First

  1. Read references/react.md for React wrapper setup, components, hooks, props, submit modes, and examples.
  2. Read references/compatibility.md when the answer mentions wrapper installation, React support, Collect core version selection, or upgrade questions.
  3. Use examples/react-basic/App.tsx only when the selected flow is the default React CMP create-card flow.

Do not load or answer with vanilla JavaScript-only integration patterns unless the user explicitly asks to leave React. If they need direct CDN script tags, window.VGSCollect, or non-React loadVGSCollect examples, use a vanilla JavaScript Collect guide instead.

Task Routing

Choose one primary task mode before answering. The primary mode controls the shape of the output.

  • integrate: first-time React wrapper setup. Confirm the app loads Collect core before rendering fields, choose VGSCollectSession for new work, and use the selected submit flow.
  • implement: add or change a wrapper feature in the customer's app context. Generate code with explicit validation, error handling, and placeholders for secrets, identifiers, endpoints, and environment values the user has not supplied.
  • migrate: move between wrapper, loader, or Collect core versions, or replace legacy VGSCollectForm usage. Compare current and target versions separately for @vgs/collect-js-react, @vgs/collect-js, and Collect core.
  • troubleshoot: localize the failure before changing code. Prefer package state, loader/CDN configuration, console errors, network errors, sanitized logs, or a minimal repro.
  • review: review code against public wrapper APIs, selected flow, version evidence, security rules, compatibility, and missing tests. Flag private, deprecated, insecure, or version-incompatible behavior.

Read the full file on GitHub · 81 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 81 lines · 105 tokens per session scan A 1d0c39943c62

Subscribe to this mod's changes

vgs-collect-react-guide is a skill published in the GitHub repository verygoodsecurity/collect-js-react (2 stars, last pushed 1mo ago), licensed MIT. It adds 105 tokens to every session and 1,394 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

react-patterns

React 18/19 patterns including hooks discipline, server/client component boundaries, Suspense + error boundaries, form actions, data fetching, state management decision trees, and accessibility-first composition. Use when writing or reviewing React components.

affaan-m/ECC · 49 tokens

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

material-ui-tailwind

Integrates Material UI with Tailwind CSS v4 using cascade layers (enableCssLayer, @layer order) and documents Tailwind v3 interoperability (preflight, important, injectFirst, portals). Use when combining MUI with Tailwind utilities, slotProps className, or theme token bridges.

mui/material-ui · 67 tokens

verify

Use when you want to validate changes before committing, or when you need to check all React contribution requirements.

react/react · 23 tokens

r3f-best-practices

React Three Fiber (R3F) and Poimandres ecosystem best practices. Use when writing, reviewing, or optimizing R3F code. Triggers on tasks involving @react-three/fiber, @react-three/drei, zustand, @react-three/postprocessing, @react-three/rapier, or leva.

zebbern/claude-code-guide · 74 tokens

assistant-ui-primitives

Guide for assistant-ui UI primitives - ThreadPrimitive, ComposerPrimitive, MessagePrimitive. Use when customizing chat UI components.

compozy/compozy · 28 tokens