seed-data

Seed a mahresources instance with 60+ items per entity type in dependency order.

11|3|Updated Mar 16, 2021
One-click install
npx skills add https://github.com/egeozcan/mahresources --skill seed-data
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: seed-data
Source: https://github.com/egeozcan/mahresources/tree/main/.claude/skills/seed-data
Command: npx skills add https://github.com/egeozcan/mahresources --skill seed-data

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires curl, and includes scripts (resource) components.

What problem does it solve?

This skill automates the creation of semantic content across all entity types in a mahresources instance, enabling realistic datasets for testing, demos, and UI pagination.

Core Features & Use Cases

  • Seeds 60+ items per entity type (tags, categories, note types, relation types, groups, notes, resources, relations, and queries) to trigger pagination and provide realistic interconnections.
  • Follows the required dependency order to satisfy foreign key constraints and produce meaningful data relationships for end-to-end testing.
  • Outputs a creation summary and supports verification of pagination endpoints.

Quick Start

Use the seed script to populate a running mahresources instance:

  • Run: .claude/skills/seed-data/seed.sh http://localhost:8181
  • If no URL is provided, defaults to http://localhost:8181.

Frequently Asked Questions about seed-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate test data for API pagination testing?

To generate test data for API pagination testing, you can run an automated seed script that creates 60+ items per entity type in your target instance, providing enough volume to trigger and verify pagination endpoints.

What's the best way to populate a mahresources instance with semantic content?

The best way to populate a mahresources instance with semantic content is to use a bash automation script that batch-creates tags, categories, notes, resources, and relations in the correct dependency order to satisfy foreign key constraints.

Do I need curl installed to automate data seeding via API?

Yes, you need curl installed to automate data seeding via API, as the script relies on it to send batch creation requests to your running instance endpoints for populating semantic content.

How does the data seeding script handle foreign key constraints?

The data seeding script handles foreign key constraints by creating entities in a specific dependency order, ensuring that tags, categories, and relation types exist before generating dependent notes, resources, and relations.

Can I seed data into a remote API endpoint instead of localhost?

Yes, you can seed data into a remote API endpoint by passing the target URL as an argument to the script; if no URL is provided, it defaults to http://localhost:8181 for the data generation process.

Why does my dataset lack meaningful relationships for end-to-end testing?

Your dataset lacks meaningful relationships for end-to-end testing because it was not populated in the correct dependency order; using an automated seeding script ensures proper interconnections across all entity types.