frappe-fixture-creator_skill

This skill generates Frappe fixture JSONs for test, master, and initial site data to enable repeatable site setups.

7

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill venkateshvenki404224/frappe-apps-manager --skill frappe-fixture-creator

  • SKILL.md2.2 KB

Overview

This skill generates fixture JSON files for Frappe test data, master data, and initial site configuration. It helps create repeatable, versioned fixtures for automated tests, demo sites, or fresh installations. Use it to produce item records, hierarchical trees (customer groups, territories), and other doctypes ready for import.

How this skill works

The skill inspects requested doctypes and field values, then composes valid Frappe fixture arrays in JSON that match common patterns (flat records, parent/child trees, and importable lists). It can produce sample values, required fields, and optional metadata so fixtures load cleanly with Frappe's import tools. The output is ready to be dropped into app fixtures and invoked during setup or tests.

When to use it

  • Creating repeatable test fixtures for automated unit or integration tests
  • Seeding master data (items, customer groups, territories) for new sites
  • Preparing demo or sample data for demos and user training
  • Automating site setup steps in before_install or site provisioning
  • Converting manual setup steps into version-controlled fixtures

Best practices

  • Include only the minimal required fields for each doctype to avoid validation errors
  • Use stable, descriptive keys (e.g., _Test Item) to avoid collisions with real data
  • Model hierarchical doctypes with explicit parent references and is_group flags
  • Keep fixtures idempotent: avoid changing primary keys or names that tests rely on
  • Store fixtures under your app's fixtures/ folder and load them in before_install

Example use cases

  • Generate a set of Item fixtures with stock and pricing for inventory tests
  • Create a Customer Group tree that mirrors production segmentation for reports
  • Produce territory and company fixtures to run full accounting flows in CI
  • Build simple service and product records for sales order and billing tests
  • Export curated master data from a sandbox into app fixtures for deployment

FAQ

Yes. The skill emits parent references and is_group flags so trees like customer groups or territories import in the correct hierarchy.

How do I load the generated fixtures into a site?

Place the JSON in your app's fixtures folder and call Frappe's import utilities or load them in before_install using import_doc.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational