Problem Solving — Practice Sequence
Version: 1.0.0 · Minimum Anki: Desktop 24.06+ (Qt6, verified live on 26.05 Linux) · License: AGPL-3.0-or-later
An Anki Desktop add-on for structured Easy → Medium → Hard algorithmic and technical problem-solving progression inside single Anki notes—combining SRS-independent sequence workflows, optional 6-criterion self-evaluation, a local & AnkiWeb-synced journey/skill/analytics platform, and cross-device responsive review templates.
Why This Add-on Exists
Standard Anki flashcards optimize isolated memorization. Real problem-solving fluency in algorithms, data structures, systems, and mathematics requires working deliberately across related problems ordered from foundational to hard:
- Keep each topic sequence in one clean Anki note instead of scattering unrelated cards across decks.
- Separate problem-solving progression (↻ Repeat, → Move on, ⏸ Mark for later) cleanly from Anki's SRS intervals (
due, ivl, factor, reps).
- Reflect with 6 evidence-based reasoning criteria and track long-term consistency without artificial streaks or XP farming.
How It Differs from Ordinary Flashcards
| Aspect |
Ordinary Anki Card |
Problem Solving — Practice Sequence |
| Scope per note |
Single prompt/answer pair |
Ordered sequence of 1–200 related problems (Easy → Medium → Hard) |
| Progression state |
Rating buttons only |
Explicit Repeat, Move on, Mark for later, Resume, Expand |
| SRS relationship |
Scheduling = state |
Progression updates SequenceState without altering SRS scheduling |
| Reflection |
Text-only notes |
Interactive 6-criterion rubric + 3 attempt outcomes + historical log |
| Cross-machine state |
Single card fields |
Sequences + sharded suspended PSS Internal Data notes (queue == -1) |
Key Features
- Unified Platform Hub (
Insights Dashboard, My Sequences, My Journey, Skill Tree, Achievements): Cohesive Rawdah Light & Dark interface fitting narrow (985px+) and full Desktop windows cleanly.
- Directory, Study Plan & Interactive Problem Workspace: Distinct color-coded lifecycle state pills (
Not started, Active, Expanded, Deferred, Completed), live filtering/sorting, interactive 2-pane Problem Workspace, Sequence Editor, and two-column Console Card Preview.
- Native Split Reviewer (
data-pss-layout="14", data-pss-crossdev="16"): Compact above-fold desktop workspace (Hints/Notes tabs, 6 checklist criteria, outcome selector, Repeat / Move on / Mark for later) plus safe .tappable responsive mobile/Web companion fallback.
- Multi-Year Career Ranks & LeetCode Activity Calendar: Permanent ranks (
L1 Beginner through L12 Fellow at 24,000 XP plus continuous Fellow II+ steps), anti-farming XP rules, realistic quests, SVG donut charts, and a Yearly | Monthly Practice Activity calendar.
- Interactive Pan & Zoom Skill Dependency Graph: Native
QGraphicsView DAG across 29 canonical DSA/pattern concepts (Graph | List toggle) with conservative 5-stage evidence scoring and gap diagnostics without locking any topic.
- Sharded AnkiWeb Sync, Backup & Integrity Hardening: Per-device append-only event shards (
MAX_EVENTS_PER_SHARD=300), CRDT quest/achievement union merge, LWW portable settings, SHA-256 checksums, atomic backup import validation, and reset/restore epochs.
Visual Overview
Deck Browser Bar (Light) |
Sequence Directory (State Color Pills) |
 |
 |
Problem Workspace (Light) |
Split Reviewer (Light) |
 |
 |
My Journey & Activity Calendar (Dark) |
Interactive Skill Dependency Graph (Dark) |
 |
 |
Phone Companion (320px Light) |
Tablet Portrait (768px Light) |
 |
 |
Installation & Quick Start
- Verify you run Anki Desktop
24.06+ (tested live on 26.05).
- Download
dist/problem_solving_sequence.ankiaddon (or build from source via bash scripts/package_addon.sh).
- In Anki Desktop, open Tools → Add-ons → Install from file…, select the
.ankiaddon file, and restart Anki.
- Open Tools → Problem Solving → New Sequence to create your first sequence:
- Enter a Sequence title and Topic (e.g., Sliding Window Patterns, Sliding Window).
- Add 2–4 problems ordered Easy → Medium → Hard (
Title, Difficulty, Platform, Learning goal, optional URL, Hints, Notes, Expected Complexity).
- Click Save and study the deck normally.
See docs/INSTALLATION.md and docs/USER_GUIDE.md for complete setup details.
How Progression & Self-Evaluation Work
On the back of a sequence card (or inside My Sequences → Open Problem Workspace):
- ↻ Repeat: Logs another deliberate attempt and keeps the current problem active (
0 click XP).
- → Move on: Marks the current problem complete and advances to the next incomplete problem (
+25 XP solo or +10 XP standard/assisted, once per problem; +20 XP one-time solo comeback).
- ⏸ Mark for later: Flags the current problem as deferred (
Deferred pill) without rescheduling or burying Anki SRS cards; restore via Resume when ready.
Optional 6 Self-Evaluation Criteria (+5 XP once per (problem_id, criterion_id) when submitted with an attempt):
- I solved the problem independently. (covered by solo outcome credit)
- I can explain why my solution works. (
+5 XP)
- I tested important edge cases. (
+5 XP)
- I understand the time complexity. (
+5 XP)
- I understand the space complexity. (
+5 XP)
- I can recognize when to apply this pattern to another problem. (
+5 XP)
Analytics, Gamification, Data & Sync
- Analytics (
Insights Dashboard): Your Next Step prioritization, 6 KPI summary cards, SVG difficulty donut, attempt outcome breakdown, self-evaluation depth habits, topic mastery, and time-window filtering (All Time, Last 30 Days, Last 7 Days).
- Collection Sync (
sync_store.py): Sequence notes sync via Anki's Problem Solving — Practice Sequence note type. Practice event logs, quest/achievement metadata, custom topics, and portable settings sync inside suspended PSS Internal Data notes (queue == -1) using sharded JSON (evlog:<device_id>:<shard>, SHA-256 verified) with CRDT union and LWW conflict resolution.
- Privacy: Zero third-party telemetry or network requests. See
docs/DATA_AND_PRIVACY.md.
- Backup & Recovery: Use Tools → Problem Solving → Settings → Sync & Data → Export Full Backup… / Import Backup… (
export_format_version: 1) or Tools → Problem Solving → Repair Sequence…. See docs/TROUBLESHOOTING.md.
Supported Platforms & Compatibility
| Platform |
Card Viewing & Hints/Notes |
Progression (SequenceState edits) |
Hub, Analytics, Editor |
Sync Participation |
Status |
Anki Desktop — Linux (26.05) |
Full HTML/JS |
Full (pycmd) |
Full PyQt6 Hub |
Reads & writes synced records |
Verified (Live) |
Anki Desktop — Windows / macOS (24.06+) |
Full HTML/JS |
Full (pycmd) |
Full PyQt6 Hub |
Reads & writes synced records |
Targeted (Not live-tested) |
| AnkiDroid (Android) |
Responsive (320px+) + .tappable + local draft |
Desktop only (local reflection draft) |
Desktop only |
Syncs collection notes |
Partially verified |
| AnkiMobile (iPhone / iPad) |
Responsive WebKit + .tappable + local draft |
Desktop only (local reflection draft) |
Desktop only |
Syncs collection notes |
Partially verified (emulated) |
| AnkiWeb (Browser) |
Responsive card view + local draft |
Desktop only (local reflection draft) |
Desktop only |
Hosts synced collection |
Partially verified (emulated) |
See docs/COMPATIBILITY.md and docs/LIMITATIONS.md.
Known Limitations & Roadmap
- Current Limitations: Sequence creation, editing, full analytics/skill tree UI, and
SequenceState JSON progression updates require Anki Desktop (24.06+); mobile/browser clients cannot safely rewrite multi-problem JSON notes cross-platform and instead provide non-blocking reflection drafts & clipboard study summaries. Remote live push/pull against sync.ankiweb.net requires user credentials and has been tested via two-profile local SQLite database simulations rather than live AnkiWeb cloud servers.
- Roadmap: Automated multi-OS Desktop CI packaging matrices (
Windows/macOS runners), optional AnkiWeb Shared Add-ons publication (docs/ANKI_SHARED_ADDONS_READINESS.md), and real hardware verification logs on AnkiDroid/AnkiMobile.
Contributing, License & Credits