| name | add-new-credit-card |
| description | Add a new credit card to the CouponCycle application with its image and benefits. Use when the user asks to add a new card, create a card template, download a card image, or mentions adding cards like "Amex", "Chase", "Citi" to the system. Use when this capability is needed. |
| metadata | {"author":"fantasy-cc"} |
Add New Credit Card to CouponCycle
This skill guides you through adding a new credit card to the application's predefined card catalog.
When to Use
- User asks to add a new credit card to the system
- User wants to create a card template with benefits
- User needs to download a card image
- Adding support for a new card type
Workflow
Step 1: Gather Card Information
Before adding a card, collect this information:
- Card Name (exact official name)
- Issuer (American Express, Chase, Citi, Capital One, etc.)
- Annual Fee
- Cyclical Benefits (monthly/quarterly/yearly credits)
Tip: Research benefits at US Credit Card Guide
Step 2: Download Card Image
Run the image download script:
node scripts/download-card-image.js --name "Card Name" --list
node scripts/download-card-image.js --name "Card Name"
node scripts/download-card-image.js --name "Card Name" --source useyourcredits
node scripts/download-card-image.js --name "Card Name" --url "https://..."
Image Location: public/images/cards/{slugified-card-name}.png
Step 3: Update Seed File
Edit prisma/seed.ts and add the card to the predefinedCardsData array:
{
name: 'Card Name',
issuer: 'Issuer Name',
annualFee: 595,
benefits: [
{
description: '$15 Monthly Credit (Service Name)',
category: 'Travel',
maxAmount: 15,
frequency: BenefitFrequency.MONTHLY,
percentage: 0,
cycleAlignment: BenefitCycleAlignment.CALENDAR_FIXED,
occurrencesInCycle: 1,
},
{
description: '$100 Quarterly Travel Credit',
category: 'Travel',
maxAmount: 100,
frequency: BenefitFrequency.QUARTERLY,
percentage: 0,
cycleAlignment: BenefitCycleAlignment.CARD_ANNIVERSARY,
occurrencesInCycle: 1,
},
{
description: '$250 Hotel Credit (Jan-Jun)',
category: 'Travel',
maxAmount: 250,
frequency: BenefitFrequency.,
: ,
: .,
: ,
: ,
: ,
},
{
: ,
: ,
: ,
: .,
: ,
: .,
: ,
: ,
: ,
},
{
: ,
: ,
: ,
: .,
: ,
: .,
: ,
: ,
: ,
},
],
}
Step 4: Apply the Seed
npx prisma db seed
Step 5: Verify
node scripts/list-available-cards.cjs
Benefit Categories
Use these standard categories:
Travel - Airlines, hotels, TSA PreCheck, Uber, Lyft
Dining - Restaurants, food delivery
Entertainment - Streaming, events, concerts
Electronics - Dell, Apple, Best Buy
Wellness - Equinox, fitness memberships
Software - Adobe, subscriptions
Business Services - Professional services
Benefit Inclusion Criteria
Include:
- Credits that reset on cycles (monthly/quarterly/yearly)
- Free nights, statement credits, points multipliers with caps
Exclude:
- Lounge memberships (Priority Pass, Centurion)
- Insurance benefits
- Earning rate multipliers without caps
- One-time signup bonuses
- Elite status benefits
Common Patterns
Calendar-Fixed Monthly
Credits that reset on the 1st of each month:
cycleAlignment: BenefitCycleAlignment.CALENDAR_FIXED,
frequency: BenefitFrequency.MONTHLY,
Card Anniversary Quarterly
Credits that reset every 3 months from card opening:
cycleAlignment: BenefitCycleAlignment.CARD_ANNIVERSARY,
frequency: BenefitFrequency.QUARTERLY,
Semi-Annual (Split Year)
Two separate benefits, one for each half of the year:
fixedCycleStartMonth: 1,
fixedCycleDurationMonths: 6,
fixedCycleStartMonth: 7,
fixedCycleDurationMonths: 6,
Image Download Troubleshooting
If the automatic download fails:
- Try UseYourCredits source:
--source useyourcredits
- Manual URL: Find the image manually and use
--url
- Check slug mapping: Update
USEYOURCREDITS_SLUGS in the script
Converted and distributed by TomeVault — claim your Tome and manage your conversions.