update-card-benefits — prisma seed ts update benefits update-card-benefits, credit-card-tracker, community, prisma seed ts update benefits, ide skills, couponcycle update card benefits, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for Maintenance Agents requiring synchronized credit card benefit updates across user bases. update-card-benefits is a skill that updates benefits for existing credit cards in CouponCycle, ensuring all users see the changes through a 3-step process.

Features

Edits prisma/seed.ts to update benefit structures
Ensures new users see updated benefits when adding cards
Updates existing users' benefit structures to reflect changes
Follows a recommended 3-step workflow for seamless implementation

# Core Topics

fantasy-cc fantasy-cc
[0]
[0]
Updated: 3/8/2026

Agent Capability Analysis

The update-card-benefits skill by fantasy-cc is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for prisma seed ts update benefits, couponcycle update card benefits.

Ideal Agent Persona

Ideal for Maintenance Agents requiring synchronized credit card benefit updates across user bases.

Core Value

Empowers agents to uniformly update benefits for existing credit cards by editing the prisma/seed.ts file, ensuring consistency for both new and existing users through a 3-step process.

Capabilities Granted for update-card-benefits

Updating credit card benefits in CouponCycle
Synchronizing user benefits
Maintaining consistency across user bases

! Prerequisites & Limits

  • Requires access to prisma/seed.ts file
  • Applies to existing credit cards only
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

update-card-benefits

Install update-card-benefits, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Update Card Benefits in CouponCycle

This skill guides you through updating benefits for existing credit cards. This is a 3-step process to ensure all users (new and existing) see the changes.

The Problem

When you update benefits in prisma/seed.ts:

  • New users who add the card will see the changes
  • Existing users still have the old benefit structure

This skill ensures ALL users get the updates.

Step 1: Edit the Seed File

Edit prisma/seed.ts to add, remove, or modify benefits:

typescript
1{ 2 name: 'American Express Platinum Card', 3 issuer: 'American Express', 4 annualFee: 895, // Update annual fee if changed 5 benefits: [ 6 // Add new benefits 7 { 8 description: '$100 Quarterly Resy Dining Credit', 9 category: 'Dining', 10 maxAmount: 100, 11 frequency: BenefitFrequency.QUARTERLY, 12 percentage: 0, 13 cycleAlignment: BenefitCycleAlignment.CALENDAR_FIXED, 14 occurrencesInCycle: 1, 15 }, 16 // Keep existing benefits... 17 ], 18}

Step 2: Update the Template

bash
1npx prisma db seed

This updates the predefined card template for new users.

Step 3: Run the Unified Update Script

bash
1# Preview changes (safe - no data modified) 2node scripts/update-card-benefits.js --card "Card Name" --dry-run 3 4# Execute the update (migrates all existing users) 5node scripts/update-card-benefits.js --card "Card Name" --force

What the Script Does

The unified script automatically:

  1. Verifies the predefined card exists
  2. Finds all existing user cards for that card type
  3. Smart diff-based migration:
    • Adds new benefits (preserves existing statuses)
    • Updates changed benefits (keeps benefit IDs)
    • Removes deprecated benefits
  4. Creates benefit status records (makes benefits visible)
  5. Uses transactions (rollback on failure)

Example Commands

bash
1# Update Amex Platinum 2node scripts/update-card-benefits.js \ 3 --card "American Express Platinum Card" \ 4 --dry-run 5 6# Update Chase Sapphire Reserve 7node scripts/update-card-benefits.js \ 8 --card "Chase Sapphire Reserve" \ 9 --force 10 11# Update Amex Business Platinum 12node scripts/update-card-benefits.js \ 13 --card "American Express Business Platinum Card" \ 14 --force

Alternative: Advanced Migration Framework

For complex migrations involving multiple cards or custom logic:

bash
1# 1. Create migration definition in scripts/migrate-benefits.js 2 3# 2. Validate migration 4node scripts/validate-migration.js --migration-id=your-migration 5 6# 3. Preview changes 7node scripts/migrate-benefits.js --migration-id=your-migration --dry-run 8 9# 4. Execute migration 10node scripts/migrate-benefits.js --migration-id=your-migration --force

Common Mistakes to Avoid

Mistake 1: Only Running Seed

bash
1npx prisma db seed # Only helps NEW users

Mistake 2: Forgetting to Run Update Script

Without the update script, existing users won't see the changes.

Correct Process

bash
1npx prisma db seed # Update template 2node scripts/update-card-benefits.js --card "Card Name" --force

Benefit Frequency Reference

TypeEnumDescription
MonthlyBenefitFrequency.MONTHLYResets every month
QuarterlyBenefitFrequency.QUARTERLYResets every 3 months
YearlyBenefitFrequency.YEARLYResets once per year
One-timeBenefitFrequency.ONE_TIMENever resets

Cycle Alignment Reference

TypeEnumDescription
Calendar FixedBenefitCycleAlignment.CALENDAR_FIXEDFixed dates (Jan 1, Apr 1, etc.)
Card AnniversaryBenefitCycleAlignment.CARD_ANNIVERSARYBased on card opening date

Semi-Annual Benefits Pattern

For benefits that reset twice a year (Jan-Jun, Jul-Dec), create TWO separate benefits:

typescript
1// First half: January - June 2{ 3 description: '$300 Hotel Credit (Jan-Jun)', 4 frequency: BenefitFrequency.YEARLY, 5 cycleAlignment: BenefitCycleAlignment.CALENDAR_FIXED, 6 fixedCycleStartMonth: 1, 7 fixedCycleDurationMonths: 6, 8}, 9// Second half: July - December 10{ 11 description: '$300 Hotel Credit (Jul-Dec)', 12 frequency: BenefitFrequency.YEARLY, 13 cycleAlignment: BenefitCycleAlignment.CALENDAR_FIXED, 14 fixedCycleStartMonth: 7, 15 fixedCycleDurationMonths: 6, 16},

Troubleshooting

"Card not found" Error

  • Check the exact card name in the database
  • Card names are case-sensitive

Users Not Seeing Benefits

  • Ensure benefit statuses were created
  • Users may need to refresh their browser

Migration Failed for Some Users

  • Check error messages in output
  • Re-run the script to retry failed users
  • Individual failures don't affect other users

Safety Features

  • Dry Run Mode: Always test with --dry-run first
  • Transaction Safety: Changes rollback on failure
  • Progress Tracking: See which users were migrated
  • Preserves Completed Status: Existing completions are kept

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is update-card-benefits?

Ideal for Maintenance Agents requiring synchronized credit card benefit updates across user bases. update-card-benefits is a skill that updates benefits for existing credit cards in CouponCycle, ensuring all users see the changes through a 3-step process.

How do I install update-card-benefits?

Run the command: npx killer-skills add fantasy-cc/credit-card-tracker/update-card-benefits. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for update-card-benefits?

Key use cases include: Updating credit card benefits in CouponCycle, Synchronizing user benefits, Maintaining consistency across user bases.

Which IDEs are compatible with update-card-benefits?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for update-card-benefits?

Requires access to prisma/seed.ts file. Applies to existing credit cards only.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add fantasy-cc/credit-card-tracker/update-card-benefits. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use update-card-benefits immediately in the current project.

Related Skills

Looking for an alternative to update-card-benefits or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI