dataset-improvement

Extract, review, and replace lines in JSONL dataset files with automatic backups.

26|3|Updated Nov 7, 2025
One-click install
npx skills add https://github.com/ProfSynapse/Synaptic-Tuner --skill dataset-improvement
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dataset-improvement
Source: https://github.com/ProfSynapse/Synaptic-Tuner/tree/main/.claude/skills/synethetic-data-generation
Command: npx skills add https://github.com/ProfSynapse/Synaptic-Tuner --skill dataset-improvement

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill enables data engineers and ML researchers to extract, review, and replace lines within JSONL datasets to improve thinking blocks, fix issues, and maintain high-quality synthetic training data.

Core Features & Use Cases

  • Line extraction: Pull specific lines from JSONL files for quick review.
  • Line replacement: Substitute lines with precisely crafted improvements, with automatic backups.
  • Quality-controlled edits: Maintain an audit trail via backups and validation steps for reproducibility.

Quick Start

Use the provided scripts to extract lines 50-70 from your dataset file and apply improvements:

  • Run: ./scripts/improve_dataset.sh data.jsonl 50 10
  • Review extracted lines and craft improvements
  • Apply improvements with: ./scripts/replace_lines.sh data.jsonl 51 '<improved_json_content>'

Frequently Asked Questions about dataset-improvement

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract and review specific lines from a JSONL dataset file?

Extract lines from JSONL files using the provided Bash script to pull a specific range for review. Run ./scripts/improve_dataset.sh with your filename, starting line, and line count to isolate sections for inspection and quality assessment.

Can I replace lines in a JSONL file and keep a backup automatically?

Yes, the replace_lines script automatically backs up your original JSONL file before applying replacements. This maintains an audit trail and lets you revert changes if needed while preserving data integrity.

What's the best way to improve thinking blocks in synthetic training data?

Extract thinking blocks from your JSONL dataset, manually review and refine them for quality and context, then replace the original lines with improved versions. Automatic validation ensures JSON syntax remains correct throughout.

Do I need special tools to validate JSON syntax after editing JSONL datasets?

The scripts include built-in JSON validation to check syntax after replacements, eliminating manual verification. This ensures your dataset remains properly formatted without requiring separate validation tools.

Can I batch-edit multiple lines in a JSONL file at once?

Yes, you can extract line ranges, craft improvements for multiple entries, and apply batch replacements line-by-line using the replace script. This enables efficient bulk editing while maintaining control over each change.

When should I use line-by-line dataset improvement versus other data-cleaning approaches?

Use line extraction and replacement when you need precise control over specific records in JSONL files, particularly for refining synthetic training data thinking blocks where manual review and calibration improve quality significantly.