AGENT SKILL
generate-learning-item
Creates a new Japanese learning item from input text using Domain logic and persists it in the system.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-30
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- generate-learning-item
- description
- Creates a new Japanese learning item from input text using Domain logic and persists it in the system.
03 SKILL.md 正文
Input:
- Raw Japanese text or vocabulary entry
Flow:
- Domain layer parses and validates via
domain/ingestion.py→ingest_card()/ingest_batch() - Card + deck models in
domain/cards.py - Text normalized via
data/text_normalization.py(NFC + prolonged-sound-mark mapping) - Persisted via
data/srs_repository.py(SRSRepository into app.db) ordata/database.py(jplearn.db)
Outcome:
- A validated learning item is created and stored
Constraints:
- Domain handles parsing and validation; Data handles persistence
- No direct business logic inside Skill
- Respect layer boundaries (domain cannot access data)
04 同仓库更多 Skills
validate-system-integrity
Runs system integrity checks across Domain and Data layers — tests, arch, SRS, and DB checks.
★ 1
simulate-srs-path
Simulates SRS interval progression for a learning item using deterministic logic.
★ 1
run-study-session
Executes a full study session using due items from the system and applies SRS logic.
★ 1
reset-database
Resets the SQLite database schema to a clean state for development or testing.
★ 1
playwright-browser
Persistent browser automation protocol — 3-attempt rule, verified target selectors, and debug checklist.
★ 1
import-vocabulary
Imports a batch of Japanese vocabulary into the learning system from CSV or raw text.
★ 1