faker-vi-recipes
Generators for realistic Vietnamese seed data with @faker-js/faker + custom VN-specific data pools. Used by branches/maintain/seed.md. Covers names…
от nghiahsgs★ 31 звезда на GitHub
Установить faker-vi-recipes в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
faker-vi-recipes — VN-Realistic Seed Data
Step 0 — Detect
Check if faker is installed:
node -e "try{require('@faker-js/faker')}catch(e){process.exit(1)}" 2>/dev/null && echo installed || echo missing
Missing → npm install -D @faker-js/faker. Ask user first.
Import the VI locale
import { faker } from '@faker-js/faker/locale/vi'
// or — more flexibility, can mix locales:
import { Faker, vi, en } from '@faker-js/faker'
const fakerVI = new Faker({ locale: [vi, en] }) // fall back to en when vi missing a key
Pattern library
Vietnamese names
// person
faker.person.fullName() // "Trần Hoàng Nam"
faker.person.firstName('male') // "Minh"
faker.person.firstName('female')// "Hoa"
faker.person.lastName() // "Nguyễn"
// gendered with middle name — manual blend:
const lastNames = ['Nguyễn','Trần','Lê','Phạm','Hoàng','Huỳnh','Phan','Vũ','Võ','Đặng','Bùi','Đỗ','Hồ','Ngô','Dương']
const middleMale = ['Văn','Hữu','Đức','Quang','Anh','Minh','Tuấn']
const middleFemale = ['Thị','Thanh','Thu','Minh','Ngọc','Kim','Mỹ']
const firstMale = ['Nam','Hùng','Tuấn','Phúc','Đạt','Huy','Khoa','Long','Quân','Thành']
const firstFemale = ['Hương','Lan','Thảo','Trang','My','Ngân','Ngọc','Phương','Quỳnh','Yến']
function vnFullName(gender: 'male'|'female') {
const last = faker.helpers.arrayElement(lastNames)
const middle = faker.helpers.arrayElement(gender === 'male' ? middleMale : middleFemale)
const first = faker.helpers.arrayElement(gender === 'male' ? firstMale : firstFemale)
return `${last} ${middle} ${first}`
}
Vietnamese phone numbers
// mobile (starts with 03/05/07/08/09, 10 digits)
const carriers = ['032','033','034','035','036','037','038','039', // Viettel
'056','058', // Vinaphone
'070','076','077','078','079','089','090','093','094',
'081','082','083','084','085','088'] // Mobi + others
function vnPhone() {
const prefix = faker.helpers.arrayElement(carriers)
const suffix = faker.string.numeric(7)
return prefix + suffix // e.g. "0909123456"
}
// international format
function vnPhoneIntl() {
return '+84' + vnPhone().slice(1) // "+84909123456"
}
Vietnamese addresses
faker's location.* in VI locale is thin. Use custom pools:
const wards_hcm = ['P. Bến Nghé','P. Bến Thành','P. Đa Kao','P. Nguyễn Thái Bình','P. Phạm Ngũ Lão','P. Cầu Kho','P. Cầu Ông Lãnh','P. Cô Giang','P. Tân Định']
const districts_hcm = ['Q.1','Q.3','Q.5','Q.7','Q.10','Q. Bình Thạnh','Q. Phú Nhuận','Q. Gò Vấp','Q. Tân Bình','TP. Thủ Đức']
const streets = ['Nguyễn Du','Lê Lợi','Hai Bà Trưng','Đồng Khởi','Nguyễn Huệ','Pasteur','Võ Văn Tần','Điện Biên Phủ','Cách Mạng Tháng 8','Lý Tự Trọng','Nguyễn Thị Minh Khai']
function vnAddressHCM() {
const number = faker.number.int({ min: 1, max: 500 })
const street = faker.helpers.arrayElement(streets)
const ward = faker.helpers.arrayElement(wards_hcm)
const district = faker.helpers.arrayElement(districts_hcm)
return `${number} ${street}, ${ward}, ${district}, TP. HCM`
}
Provinces fallback: faker.location.state() → may return EN — fine for many cases, but for VN-only seeds build a small pool of top 10 cities.
VND amounts
// product price — typical range
const priceVND = () => faker.number.int({ min: 10_000, max: 5_000_000 })
// rounded to thousand (realistic for shopping)
const priceVNDnice = () => Math.round(faker.number.int({ min: 10, max: 5000 })) * 1000
// order total — multi-item
const orderTotalVND = () => faker.number.int({ min: 100_000, max: 20_000_000 })
// format for display
function fmtVND(n: number) {
return new Intl.NumberFormat('vi-VN', { style: 'currency', currency: 'VND' }).format(n)
}
// fmtVND(250000) → "250.000 ₫"
VN product categories
const vnProducts = {
'thời trang': ['Áo thun unisex','Quần jean nam','Váy công sở','Giày sneaker','Túi tote canvas'],
'điện tử': ['Tai nghe bluetooth','Sạc dự phòng 10000mAh','Ốp lưng iPhone','Đồng hồ thông minh','Loa mini'],
'mỹ phẩm': ['Son lì lâu trôi','Kem chống nắng SPF50','Serum vitamin C','Mặt nạ dưỡng ẩm','Nước tẩy trang'],
'đồ gia dụng':['Nồi cơm điện','Máy xay sinh tố','Bàn ủi hơi nước','Chảo chống dính','Bộ dao inox'],
'thực phẩm': ['Trà sữa nhãn','Cà phê hạt nguyên chất','Bánh trung thu','Kẹo dừa Bến Tre','Mắm nêm'],
}
function vnProduct() {
const cat = faker.helpers.arrayElement(Object.keys(vnProducts))
const name = faker.helpers.arrayElement(vnProducts[cat as keyof typeof vnProducts])
return { category: cat, name, price: priceVNDnice() }
}
Emails (VN-style pseudo-domain for seed safety)
// Use @test or @example pseudo-domains — never real ones that could spam real people
function vnEmail(name: string) {
const slug = name.toLowerCase().replace(/\s+/g,'').normalize('NFD').replace(/[̀-ͯ]/g,'')
return `${slug}${faker.number.int(999)}@test`
}
Dates (recent, busin
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Write - 03
Edit - 04
Bash
FAQ
Что делает скилл faker-vi-recipes?
Generators for realistic Vietnamese seed data with @faker-js/faker + custom VN-specific data pools. Used by branches/maintain/seed.md. Covers names, addresses, phone numbers, VND amounts, common Vietnamese product categories. Trigger phrases (EN + VN): "faker vi", "seed tieng viet", "data gia vn", "ten viet nam", "dia chi viet nam", "vnd fake".
Как установить скилл faker-vi-recipes?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл faker-vi-recipes запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…