update-card-benefits — community update-card-benefits, credit-card-tracker, fantasy-cc, community, ai agent skill, ide skills, agent automation, AI agent skills, 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, add, or remove benefits from existing credit cards in CouponCycle. Use when the user asks to update card benefits, add a new benefit to a card, remove a benefit, change benefit values, or ment

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

Quality Score

Top 5%
39
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
> npx killer-skills add fantasy-cc/credit-card-tracker/update-card-benefits
Supports 19+ Platforms
Cursor
Windsurf
VS Code
Trae
Claude
OpenClaw
+12 more

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.

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
Project
SKILL.md
4.9 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
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.

Recommended Workflow

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, add, or remove benefits from existing credit cards in CouponCycle. Use when the user asks to update card benefits, add a new benefit to a card, remove a benefit, change benefit values, or ment

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