fake-data-refresh

Automate deletion and recreation of fake data in Django projects with environment safety checks.

Updated Jun 1, 2024
One-click install
npx skills add https://github.com/gustavop-dev/projectapp --skill fake-data-refresh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fake-data-refresh
Source: https://github.com/gustavop-dev/projectapp/tree/main/.agents/skills/fake-data-refresh
Command: npx skills add https://github.com/gustavop-dev/projectapp --skill fake-data-refresh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the process of deleting and recreating fake data in a Django project, streamlining testing and development workflows.

Core Features & Use Cases

  • Automated Data Reset: Detects and executes management commands to delete and generate fake data.
  • Environment Awareness: Refuses to run in production by checking environment variables and configuration files.
  • Use Case: Developers can quickly reseed test data on staging, dev, or when models change, without risking production data integrity.

Quick Start

Run the fake-data-refresh skill with the project path as an argument and optional flags to customize behavior.

Frequently Asked Questions about fake-data-refresh

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

FAQPage Schema
How do I automate deleting and recreating fake data in Django?

Automating Django fake data refresh involves detecting management commands to delete and generate test data. This skill executes these commands automatically, streamlining testing workflows while ensuring the data reset process remains safe and idempotent across supported environments.

Can I safely reseed test data across staging and local Django environments?

Yes, you can safely reseed test data across local and staging environments. The skill features environment awareness, checking configuration files and variables to verify the context, ensuring data refreshes only occur where explicitly permitted without risking production data integrity.

How does a fake data refresh script protect my Django production environment?

Fake data refresh scripts protect production by checking environment variables and configuration files before executing. The skill explicitly refuses to run in production environments, ensuring automated data deletion and recreation commands only execute in approved local, staging, or registered projects.

What is the best way to reset Django test data when models change?

The best way to reset Django test data when models change is using an automated, environment-aware script. This skill detects project management commands and safely executes data deletion and recreation, providing an idempotent refresh process that adapts to model updates without manual intervention.

Does the Django fake data seeding process support custom management commands?

Yes, the fake data seeding process supports custom commands by detecting existing Django project management commands. It executes them with safety checks, allowing developers to customize behavior through optional flags when running the data refresh task with a specified project path.