mvcc
Use this skill when implementing or modifying MVCC logic, including version metadata, visibility filtering, and cleanup.
Core principles:
- Reads see a consistent snapshot; writes create new versions.
- Version chains must be ordered and efficiently prunable.
- Visibility is determined by transaction timestamp/epoch and commit status.
Implementation guidance:
- Locate the existing MVCC abstractions (e.g., version metadata types, visibility filters) before adding new logic.
- Ensure reads filter out uncommitted or aborted versions and respect snapshot boundaries.
- When inserting updates, create new version entries rather than in-place mutation.
- For deletes, add tombstones and make them visible using the same MVCC rules.
- Compaction/cleanup must only remove versions that are not visible to any active snapshot.
- Keep metadata lightweight and store large payloads separately if needed.
Common pitfalls:
- Returning uncommitted data to readers.
- Deleting versions still visible to long-running snapshots.
- Mixing wall-clock time with logical timestamps; use the project’s canonical time/epoch source.
When adding new APIs:
- Prefer typed identifiers and enums.
- Keep MVCC filtering in the query path, not at the storage engine boundary unless it is explicitly part of the storage abstraction.
More from jamals86/kalamdb
rust-skills
>
22vercel-composition-patterns
React composition patterns that scale. Use when refactoring components with
21raft
Raft replication in KalamDB: log replication, leader election, snapshots, membership changes, and safety rules. Keywords: raft, consensus, leader, follower, log, snapshot, term.
20datafusion
DataFusion integration: logical/physical plans, execution context, table providers, schema memoization, and SQL handler routing. Keywords: DataFusion, Arrow, logical plan, physical plan, table provider, schema registry.
19vercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
19web-design-guidelines
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
17