anarlog: Skill for Claude Code

.agents/skills/reactive-sqlite-ui/SKILL.md

reactive-sqlite-ui is a skill for Claude Code, Codex from fastrepl/anarlog. It costs 53 tokens per session (586 once invoked), scanned A, original, MIT.

A set of patterns for building desktop screens whose data comes from SQLite, a small database stored with the application, and updates when that data changes. It covers lists, selected items, forms, writes, and loading states.

In plain words
What is it for?
Use it when building or reviewing SQLite-backed screens with live queries, selected records, editable detail panes, and create or update forms.
Why use it?
It prevents duplicate database subscriptions, flickering detail views, and form drafts being reset whenever live data updates. It also keeps saved data separate from temporary edits made in a form.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is fastrepl/anarlog's own configuration. It tells Claude Code and Codex how to work on anarlog itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything anarlog configures →

About the project

anarlog is a local-first AI meeting notetaker that captures device audio, transcribes meetings, and stores notes, transcripts, and recordings on the user's computer. It is for people who want meeting notes without adding a bot to calls or sending conversation data to an external cloud. The catalogue entries provide agent integrations and workflows for the application.

fastrepl/anarlog · 9,621 stars · on GitHub · anarlog.so

Reuse

Borrowing it

Nothing to install: this file belongs to fastrepl/anarlog. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/fastrepl/anarlog/main/.agents/skills/reactive-sqlite-ui/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/fastrepl/anarlog

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for reactive-sqlite-ui

README.md
[![agentmods](https://agentmods.dev/badge/skills/fastrepl/anarlog/reactive-sqlite-ui/github.svg)](https://agentmods.dev/skills/fastrepl/anarlog/reactive-sqlite-ui)
Your own site
<a href="https://agentmods.dev/skills/fastrepl/anarlog/reactive-sqlite-ui"><img src="https://agentmods.dev/badge/skills/fastrepl/anarlog/reactive-sqlite-ui/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for reactive-sqlite-ui

Your own site · 80×15
<a href="https://agentmods.dev/skills/fastrepl/anarlog/reactive-sqlite-ui"><img src="https://agentmods.dev/badge/skills/fastrepl/anarlog/reactive-sqlite-ui.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 586 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.00586
Opus 5.5 $0.00021 $0.00234
Sonnet 5.5 $0.00011 $0.00117
Haiku 4.5 $0.00005 $0.00059

Measured 2mo ago against content hash 308e0c09a79a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

reactive-sqlite-ui scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/reactive-sqlite-ui/SKILL.md · 75 lines

How it starts

The opening of the file, as written. The whole thing — 75 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Goal

Use SQLite live queries as the screen data source without duplicating subscriptions, fighting the reactivity model, or making selection and form state unstable.

Patterns

1. Screen Boundary Query

  • Subscribe once per resource domain at the screen boundary.
  • Pass derived data downward.
  • Open another live query only when the child truly needs different data.
const items = useItems();
const selectedItem = items.find((item) => item.id === selectedId) ?? null;

2. Selection Is UI State

  • Keep selection in tab/zustand/local UI state as an id or index.
  • Do not model selection as a second live query.
  • Resolve the selected item from the already-loaded collection when possible.

3. Detail Pane From Snapshot

  • Pass the selected object into detail components.
  • Key detail forms by entity id only when you want local state reset on entity switch.
  • Preserve visible data across normal selection changes.

This is the main anti-flicker pattern.

4. Forms Own Draft State

  • Reactive query data is the source for persisted state.
  • The form owns draft state while editing.
  • Reset form state when the entity changes, not on every reactive payload.

5. Writes Flow One Way

  • Reads: useDrizzleLiveQuery(db.select()...)
  • Imperative reads: helper/query outside the render path
  • Writes: db.insert, db.update, db.delete inside useMutation
  • Let SQLite change notifications update subscribed UI

Do not add manual invalidation unless the write affects data outside the subscribed query graph.

6. Loading States Are Scoped

  • Show loading UI for initial screen load.
  • Do not blank the detail pane for ordinary selection changes.
  • Prefer preserving previous data until the next snapshot when query args change frequently.

Anti-Patterns

  • Parent list query plus child selected-row query for the same table
  • Child components that take id and immediately subscribe again
  • Resetting detail data to undefined during normal selection changes
  • Form resets tied to every incoming reactive payload
  • Mixing imperative local cache invalidation with SQLite live-query updates

Read the full file on GitHub · 75 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 75 lines · 53 tokens per session scan A 308e0c09a79a

Subscribe to this mod's changes

reactive-sqlite-ui is a skill published in the GitHub repository fastrepl/anarlog (9,621 stars, last pushed yesterday), licensed MIT. It adds 53 tokens to every session and 586 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

graphify-windows

Turn any folder of files into a navigable knowledge graph with community detection, an honest audit trail, and three outputs: interactive HTML, GraphRAG-ready JSON, and a plain-language GRAPHREPORT.md.

saeedkolivand/ai-job-hunter-app · 75 tokens

lessons

How to propose and query distilled lessons (the experiential memory). Only project-steward persists; every other agent proposes/queries. Use when you discover a durable lesson or need prior experience for the current task.

saeedkolivand/ai-job-hunter-app · 45 tokens

webgl-standards

DORMANT (ADR-0017, 2026-07-20) - the TERMINAL VELOCITY scroll-film was retired and apps/landing is a static site with no GL surface; this skill is preserved for any future WebGL rebuild (conventions, verified version pins, playhead/scroll-rig/VAT/Gerstner/post-chain patterns, budgets, gate + semantic-layer machinery).…

saeedkolivand/ai-job-hunter-app · 108 tokens

agent-cli-standards

Agent-facing CLI standards — the argv-sentinel binary mode, the thin-client-over-the-bridge rule, allowlist projections, prompt-fencing third-party text, the stable machine-readable output contract, exit codes, throttling, and destructive-command operability. Load for changes under extensionbridge/agentcli.rs…

saeedkolivand/ai-job-hunter-app · 83 tokens

webgl-gate-audit

Procedures for auditing apps/landing TERMINAL VELOCITY WebGL phase gates - driving the browser to exact playhead positions across the 9 scenes, screenshot discipline, scrub + VAT determinism (scrub down THEN rewind to the same playhead -> identical frame), FPS sampling at the risk scenes, draw-call + bundle-size…

saeedkolivand/ai-job-hunter-app · 123 tokens

extension-standards

Browser-extension + bridge standards — MV3 (Chrome + Firefox), least-privilege permissions, the loopback pairing-token auth model, the shared TS↔Rust wire protocol, and the Chrome Web Store + Firefox AMO store-policy + pre-submission checklist. Load for changes under apps/extension/, extensionbridge/, and the…

saeedkolivand/ai-job-hunter-app · 75 tokens