logseq-flashcard-favorite
Maintains synced flashcard deck trees based on Logseq favorite tags and configurations.
Install
mkdir -p .claude/skills/logseq-flashcard-favorite && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10276" && unzip -o skill.zip -d .claude/skills/logseq-flashcard-favorite && rm skill.zipInstalls to .claude/skills/logseq-flashcard-favorite
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Generate and keep in sync the [[Logseq/Flashcard/Review/Favorite]] deck tree from the graph's :favorites (logseq/config.edn). Use when the user asks to build, refresh, or reconcile favorite-driven flashcard decks: an aggregate {{cards (or …)}} deck, a negated background {{cards (not (or …))}} deck, and one scoped {{cards [[Favorite]]}} subpage per favorite. Runs idempotently via the mise file task and preserves the review-history children Logseq appends to {{cards}} blocks. Do not use for ad-hoc card authoring (logseq-flashcard) or non-favorite decks.Key capabilities
- →Sync flashcard decks
- →Generate favorite-driven decks
- →Reconcile subpage cards
- →Preserve review history
How it works
It reconciles flashcard pages by reading graph favorites and generating aggregate and subpage-scoped decks.
Inputs & outputs
When to use logseq-flashcard-favorite
- →Sync Logseq flashcards
- →Refresh favorite-based decks
- →Generate flashcard trees
About this skill
Logseq flashcard favorite decks
Reconciles the Logseq/Flashcard/Review/Favorite page tree with the graph's
:favorites (logseq/config.edn). The engine is the nbb-logseq ClojureScript
script scripts/generate-favorite-decks.cljs, run through a mise file task
(per [[My/Pref/Dev/mise/Tasks]] — file tasks + usageCLI). It does not touch
the hand-curated [[Logseq/Flashcard/Review]] page.
Run it
# preview (default; writes nothing)
mise run logseq:flashcard-favorite
# apply
mise run logseq:flashcard-favorite --write
# apply and delete subpages for favorites removed from config
mise run logseq:flashcard-favorite --write --prune
If nbb-logseq is missing, the task self-declares it (#MISE tools=…); run
mise install, or mise use -g npm:@logseq/nbb-logseq@latest (see
.rulesync/skills/logseq-link-hygiene/references/nbb-logseq.md).
What it produces
- Aggregate page
[[Logseq/Flashcard/Review/Favorite]]: an All Favorite Flashcards deck{{cards (or …)}}, a collapsed Background / Non-Favorite deck{{cards (not (or …))}}(query-properties:: [:block]), and a By Favorite link list. - One subpage per favorite, full namespace nested (e.g.
Lightroom/Classic→[[Logseq/Flashcard/Review/Favorite/Lightroom/Classic]]), each with{{cards [[Favorite]]}}. - Self-referential / meta favorites under
Logseq/Flashcard/*are skipped.
Excluding namespaces from a deck (deck-exclude::)
Add deck-exclude:: [[PageName]] as a block property on any managed {{cards}}
block to exclude that namespace from the deck's query. The property is
user-configured — the script reads it but never auto-generates it.
# on a subpage (e.g. Logseq___Flashcard___Review___Favorite___tmux.md):
- {{cards (and [[tmux]] (not [[oh-my-tmux]])) }}
favorite-deck:: [[tmux]]
deck-exclude:: [[oh-my-tmux]]
# on the aggregate page:
- {{cards (and (or [[tmux]] …) (not [[oh-my-tmux]])) }}
favorite-deck:: aggregate
deck-exclude:: [[oh-my-tmux]]
Multiple excludes: deck-exclude:: [[A]] [[B]]. Re-runs are idempotent: the
exclusion is baked into the desired macro, so expr-sig stays equal and the
script never strips it. Full details: references/algorithm.md.
Idempotency contract (why re-runs are safe)
The script merges, never overwrites. It locates managed decks by their
favorite-deck:: anchor property and rewrites only the {{cards …}} expression
when the favorite set drifts (whitespace/order/case-insensitive) — so the
Summary / Remembered / Forgotten children Logseq appends after a review are
preserved. A second --write run on an unchanged graph changes no files.
Full merge/template/anchor details: references/algorithm.md.
Always
- Rules:
logseq-core(LFM + naming; protectedtags::),logseq-link-hygiene. - After
--write, add today's journal entries: new pages under[[Filed]], refreshed pages under[[Updated]](link-only; mutually exclusive). - Stale subpages are reported by default and deleted only with
--prune(this preserves SRS review history unless deletion is explicitly requested). - For
{{cards}}/ simple-query semantics, defer to skilllogseq-flashcard(references/cards-macro-and-query-language.md).
Editing this skill
Edit only the .rulesync/ source (this SKILL.md, scripts/, references/),
then run npx rulesync generate and commit source + generated outputs together.
The mise task at mise-tasks/logseq/flashcard-favorite points at the .rulesync
engine path; keep that path in sync if the script moves.
When not to use it
- →Ad-hoc card authoring
- →Non-favorite decks
Prerequisites
Limitations
- →Does not touch hand-curated review pages
How it compares
It automates deck synchronization based on favorites rather than manual card management.
Compared to similar skills
logseq-flashcard-favorite side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| logseq-flashcard-favorite (this skill) | 0 | 1mo | Review | Intermediate |
| notion-knowledge-capture | 10 | 9mo | No flags | Intermediate |
| apple-reminders | 25 | 2mo | Review | Beginner |
| memory-keeper-proactive-context-maintenance | 6 | 9mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by codekiln
View all by codekiln →You might also like
notion-knowledge-capture
makenotion
Transforms conversations and discussions into structured documentation pages in Notion. Captures insights, decisions, and knowledge from chat context, formats appropriately, and saves to wikis or databases with proper organization and linking for easy discovery.
apple-reminders
openclaw
Manage Apple Reminders via the `remindctl` CLI on macOS (list, add, edit, complete, delete). Supports lists, date filters, and JSON/plain output.
memory-keeper-proactive-context-maintenance
b4CU-R4U
Automatically detect and maintain memory freshness by monitoring context staleness, significant code changes, task completions, and phase transitions. Proactively suggests and executes memory sync operations with user confirmation. Use when the user says "sync memory", "update context", or when the Skill detects that context is stale (>2 hours), significant changes have occurred (new commits), tasks completed, or major milestones reached. Replaces passive "context is stale" warnings with active maintenance.
notion-meeting-intelligence
openai
Prepare meeting materials with Notion context and Codex research; use when gathering context, drafting agendas/pre-reads, and tailoring materials to attendees.
agent-memory
yamadashy
Use this skill when the user asks to save, remember, recall, or organize memories. Triggers on: 'remember this', 'save this', 'note this', 'what did we discuss about...', 'check your notes', 'clean up memories'. Also use proactively when discovering valuable findings worth preserving.
apple-notes
openclaw
Manage Apple Notes via the `memo` CLI on macOS (create, view, edit, delete, search, move, and export notes). Use when a user asks OpenClaw to add a note, list notes, search notes, or manage note folders.