plugins/temporal-data/skills/temporal-caching/SKILL.md
Efficient data loading patterns using system_from/system_to for cache validation. Use when implementing incremental sync, conditional fetches, polling for changes, ETags, high watermarks, or avoiding redundant data transfer in systems with temporal tables.
npx skillsauth add motlin/claude-code-plugins temporal-cachingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
System-time versioned tables give you a built-in cache validator: system_from changes whenever a record is updated. This eliminates the need for separate version columns, ETags tables, or change-tracking infrastructure.
Three patterns leverage this at different granularities:
Client stores the maximum system_from seen across an entire collection. On each poll, asks "give me everything newer than X." Empty result means nothing changed — no data transfer needed.
Best for: feeds, dashboards, lists sorted by recency where you need to detect any change across a large collection.
Full pattern →
The "one" side of a one-to-many relationship stores the maximum system_from of its children as a denormalized column. Clients can check this single value before deciding whether to fetch the entire child collection.
Best for: parent-child relationships where fetching all children is expensive but checking the parent is cheap.
Full pattern →
Client sends the last-known system_from for a specific item in the request header. Server returns HTTP 304 if the item hasn't changed. Maps directly to standard HTTP conditional request semantics (ETags).
Best for: individual resource endpoints where clients repeatedly fetch the same item.
Full pattern →
| Scenario | Pattern | Why | | --------------------------------------------- | ------------------- | ---------------------------------------------- | | "Show me what's new since I last checked" | Global watermark | One query covers the whole collection | | "Have any of this user's blueprints changed?" | Predicate watermark | Avoids fetching all blueprints to find out | | "Give me blueprint X if it changed" | Item watermark | Standard HTTP caching for single resources | | Feed page with detail drill-down | Global + Item | Global for the list, item for individual views |
tools
This skill should be used after completing any task, before returning control to the user. Always run this skill — it handles the case where there's nothing to do.
development
Commit message format and git workflow rules. ALWAYS use this skill for every git commit — no exceptions — and whenever rewording an existing commit message.
tools
CLI guidelines. Use whenever using the Bash tool, which is almost always. Also use when you see "command not found: __zoxide_z" errors.
tools
Maven CLI invocation patterns. Use whenever running `mvn` commands in Java/Maven projects. Covers when `-am` is required, why `-o` (offline) mode hides bugs in multi-worktree setups, and how to verify compile/test cleanly without trusting stale `~/.m2` artifacts.