xiaohongshu
xiaohongshu
create-test-lane
This skill should be used when creating new test lanes for the XML test data generator. A test lane consists of an XSD schema file paired with a meta.yaml configuration file. This skill guides the process of creating both files with proper semantic type mappings, distribution settings, and field ...
Full skill instructions
This skill creates test lanes for the ceremony-field-catalog test data generator. Each test lane is a paired XSD schema + meta.yaml configuration that defines how to generate realistic test XML data for a specific business context.
Collect the following information:
Create the XSD file at sdks/python/test_lanes/<context>/<lane_name>.xsd:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Root">
<xs:complexType>
<xs:sequence>
<!-- Define elements here -->
<xs:element name="FieldName" type="xs:string"/>
<xs:element name="Amount" type="xs:decimal"/>
<xs:element name="OptionalField" type="xs:string" minOccurs="0"/>
<xs:element name="RepeatingItem" maxOccurs="unbounded">
<!-- Nested structure -->
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Key XSD patterns:
minOccurs="0" for optional elementsmaxOccurs="unbounded" for repeating elementsnillable="true" for elements that can be nil<xs:restriction> with <xs:enumeration> for fixed value listsImportant: Optional enum elements must be nillable
When an element uses an enumeration type AND is optional (minOccurs="0"), you MUST also add nillable="true". This is because the generator's emptyRate setting can produce empty values, but empty strings are not valid enum values. Making the element nillable allows it to be represented as xsi:nil="true" instead of an empty string.
<!-- WRONG: Will fail validation if emptyRate produces empty value -->
<xs:element name="Status" type="StatusEnum" minOccurs="0"/>
<!-- CORRECT: Can be nil when empty -->
<xs:element name="Status" type="StatusEnum" minOccurs="0" nillable="true"/>
This applies to all optional elements with enumeration types (Gender, Status, Type, Category, etc.).
Option A: Use init-meta command (for existing XSD):
cd sdks/python
python -m testgen.cli init-meta --xsd test_lanes/<context>/<lane>.xsd --context <context_id>
Option B: Create manually at sdks/python/test_lanes/<context>/<lane_name>.meta.yaml:
Refer to references/meta-format.md for the complete meta.yaml format specification.
Map field paths to semantic types for realistic data. Common mappings:
| Field Pattern | Semantic Type |
|---|---|
| FirstName, GivenName | person.first_name |
| LastName, Surname | person.last_name |
| SSN, SocialSecurity | ssn |
| Email, EmailAddress | email |
| Phone, PhoneNumber | phone_number |
| Street, Address1 | address.street |
| City | address.city |
| State | address.state_abbr |
| Zip, ZipCode | address.zipcode |
| Amount, Balance, Price | decimal(min, max, decimals) |
| Date, EffectiveDate | date.past or date.future |
| VIN | vehicle.vin |
| AccountNumber | pattern:ACC-{######} |
Customize generation for specific fields:
fieldOverrides:
"/Root/OptionalSection": # Optional element
fillRate: 0.3 # Include 30% of the time
"/Root/Items/Item": # Repeating element
repeatRange: [2, 10] # Generate 2-10 items
cd sdks/python
# Dry run to verify generation works
python -m testgen.cli run ./test_lanes/ -l <context>/<lane_name> --dry-run -n 5 --output-dir ./test_output/
# Inspect generated XML
cat ./test_output/*.xml
sdks/python/test_lanes/<context>/<lane_name>.xsdsdks/python/test_lanes/<context>/<lane_name>.meta.yamlsdks/python/testgen/cli.pyThis skill includes reference documentation:
meta-format.md - Complete meta.yaml format specification with all semantic types and optionsxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience