vague
在编写Vague(.vague)文件时使用 - 一种用于生成具有叠加、约束和交叉引用的真实测试数据的声明性语言
📖 中文导读:在编写Vague(.vague)文件时使用 - 一种用于生成具有叠加、约束和交叉引用的真实测试数据的声明性语言 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: vague
prettier-ignore
description: Use when writing Vague (.vague) files - a declarative language for generating realistic test data with superposition, constraints, and cross-references
Vague Language
Quick Start
schema Invoice {
id: unique int in 1000..9999,
status: "draft" | "sent" | "paid",
total: decimal in 100.00..5000.00,
line_items: 1..5 of LineItem,
tax: round(total * 0.2, 2),
assume total > 0
}
dataset TestData {
invoices: 100 of Invoice
}
Core Syntax
- Types:
string,int,decimal,boolean,date - Superposition:
"a" | "b"or weighted0.7: "a" | 0.3: "b" - Ranges:
int in 1..100,date in 2020..2024 - Collections:
1..5 of Itemor100 of Item - Computed:
total: sum(items.amount) - Constraints:
assume due_date >= issued_date - References:
any of companies where .active == true - Parent ref:
= ^parent_field - Nullable:
string?orstring | null - Unique:
id: unique int in 1..1000
Reference Files
- references/syntax.md - Complete syntax
- references/functions.md - Built-in functions
- references/cli.md - CLI usage