fuyu12345/terminalgen-skills/delta-lake-time-travel-medium
Claude Code and agent skill by fuyu12345/terminalgen-skills
- community
Checking that the SKILL.md file is still in the repository.
Identify the most recent valid dataset version by checking versioned CSV snapshots in chronological order and stopping at the first invalid snapshot. Use when selecting a rollback point after data-quality regressions.
Install
npx vskill@latest install fuyu12345/terminalgen-skills/delta-lake-time-travel-mediumSKILL.md
The same SKILL.md was published earlier as fuyu12345/terminalgen-skills/delta-lake-time-travel-medium.
Finding Last Valid Versioned Snapshot
When to Use
- Determine a rollback version from
v1,v2, … snapshot directories. - Validate a rule like “all
amountvalues must be> 0” per version. - Produce a single-number answer file for graders/automation.
Minimal Reliable Workflow
- Enumerate versions numerically, not lexicographically.
Extract numeric suffixes from v* directories and sort ascending (sort -n).
- Validate each version’s CSV in time order.
For each vN/transactions.csv, skip header and fail the version if any row violates the rule (amount <= 0).
- Treat this as a rollback boundary problem.
Track last_valid and stop at first invalid version (temporal corruption onset model).
- Write only the integer result.
Save to target file with printf "%s" (no v prefix, no extra text, no trailing newline).
- Quick-check output formatting.
cat plus od -An -t c (or equivalent) to confirm single-line integer and no newline if required.
Reliable shell pattern
Common Pitfalls
- Using an `awk` `END{exit 0}` that overrides earlier failure.
Observed in two failed runs: script used ($3+0)<=0{exit 1} END{exit 0}, which returns success even on bad rows, causing every version to look valid and output 8 instead of 5.
- Selecting “max valid anywhere” instead of “last valid before first invalid.”
For rollback/time-travel tasks, evaluate sequentially and break at first bad snapshot.
- Relying on glob order for versions.
v10 vs v2 can misorder; always numeric sort.
- Formatting misses.
Avoid v5, extra words, or trailing newline when strict graders check exact file content.
Verification Strategy
Use both logic verification and output-format verification:
- Independent recompute of expected version (sequential, break on first invalid), e.g., tiny Python or a second shell method.
- Cross-check answer file content:
- File exists and non-empty.
- Parses as integer.
- Contains only digits (no
vprefix). - Single line.
- No trailing newline if required (
od -An -t c /path/file).
- If result seems “too high,” inspect validator logic first (especially awk exit behavior with END blocks).
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinggenerated_skills_10tasks/delta_lake_time_travel_medium/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/fuyu12345/terminalgen-skills/delta-lake-time-travel-medium)