Skill: theshadowrose/flash-forge (version 1.0.0)

--- name: "FlashForge AI Flashcard Generator" description: "Generate flashcards from any content. Paste notes, articles, or textbook pages. Get study-ready cards with spaced repetition scheduling." author: "@TheShadowRose" version: "1.0.0" tags: ["flash-forge"] license: "MIT" --- # FlashForge AI Flashcard Generator Generate flashcards from any content. Paste notes, articles, or textbook pages. Get study-ready cards with spaced repetition scheduling. --- Paste content. Get flashcards. Study with spaced repetition. ## Usage ``` You: "Make flashcards from this: [paste chapter notes]" Agent: "Generated 15 flashcards. Starting review. Q: What is the difference between System 1 and System 2 thinking?" ``` ## Features - **Auto-generation** — paste any text, get cards - **Spaced repetition** — SM-2 algorithm schedules reviews - **Difficulty rating** — rate 1-5 after answering - **Multiple formats** — Q&A, fill-in-blank, true/false - **Deck management** — organize by topic - **Progress tracking** — mastered, due, new - **Export** — Anki-compatible CSV ## Study Session ``` 📚 Biology Deck — 12 due, 5 new Q: What enzyme unzips DNA during replication? > helicase ✅ Correct! Next review in 4 days. Session: 17/17 | Accuracy: 82% | Time: 8 min ``` --- ## ⚠️ Disclaimer This software is provided "AS IS", without warranty of any kind, express or implied. **USE AT YOUR OWN RISK.** - The author(s) are NOT liable for any damages, losses, or consequences arising from the use or misuse of this software — including but not limited to financial loss, data loss, security breaches, business interruption, or any indirect/consequential damages. - This software does NOT constitute financial, legal, trading, or professional advice. - Users are solely responsible for evaluating whether this software is suitable for their use case, environment, and risk tolerance. - No guarantee is made regarding accuracy, reliability, completeness, or fitness for any particular purpose. - The author(s) are not responsible for how third parties use, modify, or distribute this software after purchase. By downloading, installing, or using this software, you acknowledge that you have read this disclaimer and agree to use the software entirely at your own risk. **DATA DISCLAIMER:** This software processes and stores data locally on your system. The author(s) are not responsible for data loss, corruption, or unauthorized access resulting from software bugs, system failures, or user error. Always maintain independent backups of important data. This software does not transmit data externally unless explicitly configured by the user. --- ## Support & Links | | | |---|---| | 🐛 **Bug Reports** | [REDACTED_SECRET] | | ☕ **Ko-fi** | [ko-fi.com/theshadowrose](https://ko-fi.com/theshadowrose) | | 🛒 **Gumroad** | [shadowyrose.gumroad.com](https://shadowyrose.gumroad.com) | | 🐦 **Twitter** | [@TheShadowyRose](https://twitter.com/TheShadowyRose) | | 🐙 **GitHub** | [github.com/TheShadowRose](https://github.com/TheShadowRose) | | 🧠 **PromptBase** | [promptbase.com/profile/shadowrose](https://promptbase.com/profile/shadowrose) | *Built with [OpenClaw](https://github.com/openclaw/openclaw) — thank you for making this possible.* --- 🛠️ **Need something custom?** Custom OpenClaw agents & skills starting at $500. If you can describe it, I can build it. → [Hire me on Fiverr](https://www.fiverr.com/s/jjmlZ0v)

path: LICENSE.md
content: MIT License

Copyright (c) 2026 Shadow Rose

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


path: README.md
content: # FlashForge — AI Flashcard Generator

Paste content. Get flashcards. Study with spaced repetition.

## Usage

```
You: "Make flashcards from this: [paste chapter notes]"
Agent: "Generated 15 flashcards. Starting review.

Q: What is the difference between System 1 and System 2 thinking?"
```

## Features

- **Auto-generation** — paste any text, get cards
- **Spaced repetition** — SM-2 algorithm schedules reviews
- **Difficulty rating** — rate 1-5 after answering
- **Multiple formats** — Q&A, fill-in-blank, true/false
- **Deck management** — organize by topic
- **Progress tracking** — mastered, due, new
- **Export** — Anki-compatible CSV

## Study Session

```
📚 Biology Deck — 12 due, 5 new

Q: What enzyme unzips DNA during replication?
> helicase
✅ Correct! Next review in 4 days.

Session: 17/17 | Accuracy: 82% | Time: 8 min
```
---

## ⚠️ Disclaimer

This software is provided "AS IS", without warranty of any kind, express or implied.

**USE AT YOUR OWN RISK.**

- The author(s) are NOT liable for any damages, losses, or consequences arising from 
  the use or misuse of this software — including but not limited to financial loss, 
  data loss, security breaches, business interruption, or any indirect/consequential damages.
- This software does NOT constitute financial, legal, trading, or professional advice.
- Users are solely responsible for evaluating whether this software is suitable for 
  their use case, environment, and risk tolerance.
- No guarantee is made regarding accuracy, reliability, completeness, or fitness 
  for any particular purpose.
- The author(s) are not responsible for how third parties use, modify, or distribute 
  this software after purchase.

By downloading, installing, or using this software, you acknowledge that you have read 
this disclaimer and agree to use the software entirely at your own risk.


**DATA DISCLAIMER:** This software processes and stores data locally on your system. 
The author(s) are not responsible for data loss, corruption, or unauthorized access 
resulting from software bugs, system failures, or user error. Always maintain 
independent backups of important data. This software does not transmit data externally 
unless explicitly configured by the user.

---

## Support & Links

| | |
|---|---|
| 🐛 **Bug Reports** | [REDACTED_SECRET] |
| ☕ **Ko-fi** | [ko-fi.com/theshadowrose](https://ko-fi.com/theshadowrose) |
| 🛒 **Gumroad** | [shadowyrose.gumroad.com](https://shadowyrose.gumroad.com) |
| 🐦 **Twitter** | [@TheShadowyRose](https://twitter.com/TheShadowyRose) |
| 🐙 **GitHub** | [github.com/TheShadowRose](https://github.com/TheShadowRose) |
| 🧠 **PromptBase** | [promptbase.com/profile/shadowrose](https://promptbase.com/profile/shadowrose) |

*Built with [OpenClaw](https://github.com/openclaw/openclaw) — thank you for making this possible.*

---

🛠️ **Need something custom?** Custom OpenClaw agents & skills starting at $500. If you can describe it, I can build it. → [Hire me on Fiverr](https://www.fiverr.com/s/jjmlZ0v)


path: src/flash-forge.js
content: /**
 * FlashForge — AI Flashcard Generator with Spaced Repetition
 * @author @TheShadowRose
 * @license MIT
 */
const fs = require('fs');

class FlashForge {
  constructor(options = {}) {
    this.deckFile = options.deckFile || './flashcards.json';
    this.deck = this._load();
  }

  addCard(front, back, tags = []) {
    const card = {
      id: Date.now().toString(36) + Math.random().toString(36).slice(2, 5),
      front, back, tags,
      created: new Date().toISOString(),
      interval: 1, easeFactor: 2.5, repetitions: 0,
      nextReview: new Date().toISOString().split('T')[0]
    };
    this.deck.push(card);
    this._save();
    return card;
  }

  getDue(date) {
    const d = date || new Date().toISOString().split('T')[0];
    return this.deck.filter(c => c.nextReview <= d);
  }

  review(cardId, quality) {
    // SM-2 algorithm: quality 0-5 (0=forgot, 5=perfect)
    const card = this.deck.find(c => c.id === cardId);
    if (!card) return null;
    quality = Math.max(0, Math.min(5, Math.round(quality)));
    
    if (quality < 3) {
      card.repetitions = 0;
      card.interval = 1;
    } else {
      if (card.repetitions === 0) card.interval = 1;
      else if (card.repetitions === 1) card.interval = 6;
      else card.interval = Math.round(card.interval * card.easeFactor);
      card.repetitions++;
    }
    
    card.easeFactor = Math.max(1.3, card.easeFactor + (0.1 - (5 - quality) * (0.08 + (5 - quality) * 0.02)));
    const next = new Date();
    next.setDate(next.getDate() + card.interval);
    card.nextReview = next.toISOString().split('T')[0];
    this._save();
    return { nextReview: card.nextReview, interval: card.interval, easeFactor: card.easeFactor.toFixed(2) };
  }

  stats() {
    const today = new Date().toISOString().split('T')[0];
    return {
      total: this.deck.length,
      due: this.deck.filter(c => c.nextReview <= today).length,
      mastered: this.deck.filter(c => c.interval > 21).length,
      learning: this.deck.filter(c => c.interval <= 21 && c.repetitions > 0).length,
      new: this.deck.filter(c => c.repetitions === 0).length
    };
  }

  exportAnki() {
    return this.deck.map(c => `${c.front}\t${c.back}\t${c.tags.join(' ')}`).join('\n');
  }

  _load() { try { return JSON.parse(fs.readFileSync(this.deckFile, 'utf8')); } catch { return []; } }
  _save() { try { fs.writeFileSync(this.deckFile, JSON.stringify(this.deck, null, 2)); } catch {} }
}

module.exports = { FlashForge };


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)