360 Secure SkillHub
360 安全技能中心

English Learn Cards

用 scripts/words.py 命令管理 SQLite 中的英语单词卡片,支持类 SM-2 的 0–3 评分复习与到期调度,由聊天平台 agent prompt 驱动出题与判分,数据库默认位于 ~/clawd/memory。

racymind
racymind
热度 97.05
最近更新 2026-05-11 15:53:52
分类:知识依赖:代码执行 / 读写文件 / 第三方 API应用场景:语言学习 / 测验 / 教学辅导

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add english-learn-cards
Metadata
name
english-learn-cards
description
Flashcard-based English vocabulary learning with SQLite + SRS. Works with any chat platform when paired with an OpenClaw agent prompt.

English Learn Cards (SQLite + SRS)

A portable vocabulary flashcard workflow for OpenClaw.

  • Stores cards in SQLite
  • Supports SRS reviews (0–3 grading, SM-2–like)
  • Uses a deterministic helper CLI (scripts/words.py) to avoid flaky formatting

Platform notes

This skill is platform-agnostic (Slack/Discord/WhatsApp/Telegram/etc.). Your channel-specific agent prompt should decide:

  • message formatting (bullets/headers)
  • quiz flow UX
  • how user answers are parsed

A ready-to-copy prompt template lives in:

  • skill/prompt-examples/AGENT_PROMPT_TEMPLATE.md

Storage

  • SQLite DB path is controlled via env var:
    • ENGLISH_LEARN_CARDS_DB (default: ~/clawd/memory/english-learn-cards.db)

Helper CLI (required)

Use the helper for all DB operations:

python skill/scripts/words.py init
python skill/scripts/words.py migrate
python skill/scripts/words.py add "implement" ...
python skill/scripts/words.py render "implement" --fill-audio
python skill/scripts/words.py due
python skill/scripts/words.py grade <card_id> <0-3>

Safety / publishing

Do not commit:

  • your SQLite DB
  • secrets / tokens
  • one-off migration/enrichment scripts

Keep local-only scripts outside the repo (see .gitignore).