task icon Task

Manage Flashcard Decks

2

Present an overview of the user's flashcard decks from uiFlashcard Decks.

For each deck show:

  • Deck name
  • Number of cards
  • When it was created
  • Brief source description

Ask what they'd like to do:

  • View cards in a specific deck
  • Delete a deck
  • Create new flashcards

If no decks exist, let them know and suggest creating some.

3

Based on the user's choice:

View deck contents: List all cards in the deck showing the front
(question) for each. Offer to show the back (answer) for specific cards
if they want to preview.

Delete a deck: Confirm the deletion with the user first ("Delete
'Spanish Basics' with 15 cards? This cannot be undone."). If confirmed,
remove the deck from uiFlashcard Decks and save the file.
Confirm the deletion was successful.

Create new: Direct them to share content and you'll generate
flashcards from it.

                    You MUST use a todo list to complete these steps in order. Never move on to one step if you haven't completed the previous step. If you have multiple read steps in a row, read them all at once (in parallel).

Add all steps to your todo list now and begin executing.

## Steps

1. [Read Flashcard Decks]: Read the file at `documents/flashcard-decks.json` and analyze its contents (Load existing decks)

2. Present an overview of the user's flashcard decks from `documents/flashcard-decks.json`.

For each deck show:
- Deck name
- Number of cards
- When it was created
- Brief source description

Ask what they'd like to do:
- View cards in a specific deck
- Delete a deck
- Create new flashcards

If no decks exist, let them know and suggest creating some.


3. Based on the user's choice:

**View deck contents:** List all cards in the deck showing the front
(question) for each. Offer to show the back (answer) for specific cards
if they want to preview.

**Delete a deck:** Confirm the deletion with the user first ("Delete
'Spanish Basics' with 15 cards? This cannot be undone."). If confirmed,
remove the deck from `documents/flashcard-decks.json` and save the file.
Confirm the deletion was successful.

**Create new:** Direct them to share content and you'll generate
flashcards from it.