hide-club

Hide a club by setting visible to false and creating a Prisma migration.

Updated May 25, 2024
One-click install
npx skills add https://github.com/gioe/laughtrack --skill hide-club
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hide-club
Source: https://github.com/gioe/laughtrack/tree/main/.agents/skills/hide-club
Command: npx skills add https://github.com/gioe/laughtrack --skill hide-club

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Hide a club from the platform by flipping its visibility to false and recording the change as a Prisma migration.

Core Features & Use Cases

  • Sets visible = false in the database for a club
  • Creates a Prisma migration file under apps/web/prisma/migrations/<timestamp>hide<slug>/migration.sql
  • Logs the migration in _prisma_migrations

Quick Start

Run /hide-club <club name or ID> to hide a club and generate the corresponding migration.

Frequently Asked Questions about hide-club

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

FAQPage Schema
How do I hide a club safely and generate a Prisma migration?

To hide a club safely, run the hide-club command to flip its visibility to false and generate a timestamped Prisma migration. This updates the database and logs the change in the _prisma_migrations table.

What is the best way to temporarily suspend a club without deleting its data?

The best way to temporarily suspend a club without deleting its data is to flip its visible field to false. This preserves the database record while hiding the club from the platform, allowing for later restoration.

Does hide-club work with Prisma migrations?

Yes, hide-club works directly with Prisma migrations by creating a migration file under apps/web/prisma/migrations with a timestamped folder named _hide_<slug>. It also logs the migration in the _prisma_migrations table.

How do I restore a club after hiding it?

Restoring a club after hiding it requires reversing the visibility flip. Since hide-club sets visible to false and records a Prisma migration, you must create a new migration to set visible back to true.

Can I hide a club using its ID instead of its name?

Yes, you can hide a club using its ID instead of its name. The command accepts either the club name or ID as input to flip visibility to false and generate the corresponding Prisma migration.

When should I not use a visibility toggle to hide a club?

You should not use a visibility toggle to hide a club if permanent deletion is required. Hide-club is designed for temporary suspensions like duplicates or data-quality reviews, preserving the record for potential restoration.