Agent skill
weavr-components
Use when building applications with Weavr for payments, cards, accounts, and identity verification. Covers both API integration and secure UI components.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/design/weavr-components-mcclowes-weavr-sdk-react
SKILL.md
Weavr Component Integration Guide
Build payment and banking features using Weavr's API and secure UI components.
Architecture Overview
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ Your App UI │────▶│ Weavr Secure │────▶│ Weavr API │
│ │ │ UI Components │ │ │
└─────────────────┘ └─────────────────┘ └─────────────────┘
│ │ │
│ ▼ │
│ Tokenized Data │
│ (never raw PII) │
│ │ │
└───────────────────────┴───────────────────────┘
Your Backend
Quick Start
1. Setup Secure UI
<script src="https://sandbox.weavr.io/app/secure/static/client.1.js"></script>
window.OpcUxSecureClient.init("{{ui_key}}");
2. Create Identity (Server-side)
// POST /multi/corporates or /multi/consumers
const response = await fetch('https://sandbox.weavr.io/multi/corporates', {
method: 'POST',
headers: {
'api-key': API_KEY,
'programme-key': PROGRAMME_KEY,
'Content-Type': 'application/json'
},
body: JSON.stringify({
rootUser: { name, surname, email, mobile, companyPosition, dateOfBirth },
company: { type, name, registrationNumber, registrationCountry, businessAddress },
baseCurrency: 'GBP'
})
});
3. Secure Password Setup (Client-side)
var form = window.OpcUxSecureClient.form();
var input = form.input("p", "password", { placeholder: "Create Password" });
input.mount(document.getElementById("password-container"));
form.tokenize(function(tokens) {
// Send tokens.password to your server - never see raw password
});
Key Concepts
| Concept | Description |
|---|---|
| Tokenization | Sensitive data (passwords, PINs, card numbers) are tokenized client-side |
| Stepped-up Auth | Card display/PIN operations require additional authentication |
| KYC/KYB | Identity verification flows embedded via secure components |
| Programmes | Your Weavr configuration determining available features |
Component Categories
Input Components (Collect Sensitive Data)
password/confirmPassword- Authentication credentialspassCode/confirmPassCode- PIN-based authenticationcardPin- Physical card PIN capture
Display Components (Show Sensitive Data)
cardNumber- Full card number displaycvv- Card security code displaypin- Existing PIN display
Verification Components
consumer_kyc()- Consumer identity verificationkyc()- Director/representative KYCkyb()- Business verification
Common Flows
See references/flows.md for complete implementation patterns:
- Corporate Onboarding
- Consumer Onboarding
- Card Issuance & Management
- Payment Transfers
- Authentication & Step-up
API Reference
Full API documentation: https://weavr-multi-api.redoc.ly/
See references/api-quick-ref.md for endpoint summary.
Styling
See references/styling.md for component customization.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?