Agent skill

Data Validation

by platonai in platonai/Browser4

Validates data against common and custom rules (required fields, formats, ranges).

Apache-2.0Auto-check passedData & Analytics

Install Data Validation

skills CLI
$ npx skills add platonai/Browser4 --skill data-validation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install platonai/Browser4 data-validation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/platonai/Browser4.git skills-src && mkdir -p .claude/skills && cp -r skills-src/browser4-agentic/src/main/resources/skills/data-validation .claude/skills/data-validation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
data-validation
GitHub stars
1.2k
Token cost
~896 tokens
SKILL.md length
238 words
Files
5 (incl. scripts, references, assets)
Skills in repo
17
Repo updated
First seen
Licence
Apache-2.0

At a glance

Validates data against common and custom rules (required fields, formats, ranges).

  • Checking data quality
  • SKILL.md covers Description, Dependencies, Parameters and Return Value, plus 7 more sections
  • Input validation
  • Enforcing schemas and constraints

What it does

Data Validation is an agent skill from platonai/Browser4. Validates data against common and custom rules (required fields, formats, ranges). Use when checking data quality, input validation, or enforcing schemas and constraints.

Its SKILL.md is about 900 tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts, reference files and assets (for example `assets/config.json`, `assets/validation-rules-template.md` and `references/developer-guide.md`).

It sits in Data & Analytics, covering Data cleaning. The repository describes itself as: Browser4 — an AI-native browser engine for autonomous agents, intelligent extraction, and large-scale web automation. The licence is Apache-2.0.

When your agent uses it

  • Checking data quality
  • Input validation
  • Enforcing schemas and constraints

Example prompts

  • “Use the data-validation skill to validate data against common and custom rules (required fields, formats, ranges)”
  • “/data-validation”

What it can do on your machine

Read from SKILL.md and the folder at commit 0fdba82. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/, which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Data Validation loads about 896 tokens when it runs, and up to ~2.8k if it reads all its reference files. Until then it costs about 47 tokens; SKILL.md has 238 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~47
When it runs · the whole SKILL.md, loaded when a task matches
~896
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from platonai/Browser4 at commit 0fdba82, republished under its Apache-2.0 licence (© platonai). 238 words, ~896 tokens.

Download SKILL.mdSave it as .claude/skills/data-validation/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
data-validation
description
Validates data against common and custom rules (required fields, formats, ranges). Use when checking data quality, input validation, or enforcing schemas and constraints.
metadata.displayName
Data Validation
metadata.version
1.0.0
metadata.author
Browser4
metadata.tags
validation, data, quality

Data Validation Skill

Description

Validate data against specified rules. This skill provides a flexible validation framework supporting common validation patterns like email format, required fields, and custom rules.

Dependencies

None

Parameters

ParameterTypeRequiredDefaultDescription
dataMap<String, Any>Yes-The data to validate
rulesList<String>Yes-List of validation rules to apply

Return Value

Returns a SkillResult with the following data structure on success:

json
{
  "validationResults": {
    "rule1": true,
    "rule2": true
  }
}

On failure, returns:

json
{
  "validationResults": {
    "rule1": true,
    "rule2": false
  },
  "errors": ["error message 1", "error message 2"]
}

Supported Validation Rules

RuleDescriptionExample
emailValidates email format"user@example.com"
requiredChecks all fields are non-null and non-blankAll values must be present

Usage Examples

Email Validation
kotlin
val result = registry.execute(
    skillId = "data-validation",
    context = context,
    params = mapOf(
        "data" to mapOf("email" to "test@example.com"),
        "rules" to listOf("email")
    )
)
Multiple Rules Validation
kotlin
val result = registry.execute(
    skillId = "data-validation",
    context = context,
    params = mapOf(
        "data" to mapOf(
            "email" to "user@example.com",
            "name" to "John Doe",
            "age" to "25"
        ),
        "rules" to listOf("email", "required")
    )
)

Error Handling

The skill returns a failure result in the following cases:

  • Missing required parameter data
  • Missing required parameter rules
  • Unknown validation rule specified
  • Validation rule fails for the provided data

Implementation Notes

  • Rules are applied in the order specified in the rules list
  • All rules are executed even if some fail (to provide complete feedback)
  • Custom validation rules can be added by extending the skill
  • Validation is performed synchronously
  • Thread-safe execution

Extending with Custom Rules

To add custom validation rules, extend the skill and override the execute method to handle additional rule types:

kotlin
class ExtendedDataValidationSkill : DataValidationSkill() {
    override suspend fun execute(context: SkillContext, params: Map<String, Any>): SkillResult {
        // Handle custom rules first
        val rules = params["rules"] as? List<String> ?: emptyList()

        if (rules.contains("custom-rule")) {
            // Implement custom validation
        }

        // Delegate to parent for standard rules
        return super.execute(context, params)
    }
}

Best Practices

  • Always provide clear error messages
  • Validate input data before processing
  • Use multiple validation rules for comprehensive checks
  • Combine with other skills in a pipeline for data processing workflows
  • Log validation failures for monitoring and debugging

See Also

© platonai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (scripts, references, assets) in browser4-agentic/src/main/resources/skills/data-validation of platonai/Browser4.

  • SKILL.md
  • assets/config.json
  • assets/validation-rules-template.md
  • references/developer-guide.md
  • scripts/example-usage.kts

Open the folder on GitHubat commit 0fdba82

Compare with similar skills

Data Validation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Data Validation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Data Validation this skillplatonai/Browser41.2k—~896Automated safety check: PassApache-2.0
Question2reportrefraction-ray/xalpha2.7k—~3.2kAutomated safety check: PassMIT
Dingo VerifyMigoXLab/dingo757—~741Automated safety check: NotesApache-2.0
Issues DeduplicationJetBrains/ideavim10k—~1.3kAutomated safety check: PassMIT
Pandas ProJeffallan/claude-skills12k1 repos~1.5kAutomated safety check: PassMIT
Openbb Data Fetchermonarchjuno/vibe-investing299—~2.9kAutomated safety check: NotesMIT

Similar skills

  • Question2report

    refraction-ray/xalpha

    Turn a natural-language financial question into a polished, self-contained HTML report.

    2.7k GitHub stars~3.2k tokensUpdated 2 mo ago
    Data & AnalyticsAuto-check passed
  • Dingo Verify

    MigoXLab/dingo

    A skill your agent uses when the user wants to fact-check an article or verify factual claims in a document.

    757 GitHub stars~741 tokensUpdated 9 days ago
    Data & AnalyticsAuto-check: notes
  • Issues Deduplication

    JetBrains/ideavim

    Official

    Handles deduplication of YouTrack issues. An agent skill from JetBrains/ideavim.

    10k GitHub stars~1.3k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Pandas Pro

    Jeffallan/claude-skills

    Handles pandas DataFrame work: cleaning, merging, groupby aggregation, pivots, time-series resampling and memory tuning, with checks on dtypes, shapes and nulls.

    12k GitHub starsUsed in 1 repo~1.5k tokens
    Data & AnalyticsAuto-check passed
  • Openbb Data Fetcher

    monarchjuno/vibe-investing

    Fetch financial, market, economic, fundamental, news, options, crypto, ETF, index, and macro data through the OpenBB Python interface instead of the OpenBB MCP server.

    299 GitHub stars~2.9k tokensUpdated 5 mo ago
    Data & AnalyticsAuto-check: notes
  • Credit Risk Data Cleaning

    github/awesome-copilot

    Official

    Cleans raw credit data and screens variables before loan modeling, dropping unstable, noisy or redundant features and writing an Excel report of every step.

    40k GitHub starsUsed in 1 repo~1.5k tokens
    Data & AnalyticsAuto-check passed

More from platonai/Browser4

All 17 skills in this repo
  • Form Filling

    platonai/Browser4

    Automatically fills web forms using provided field data and can optionally submit the form.

    1.2k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Web Scraping

    platonai/Browser4

    Extracts data from web pages using browser automation and CSS/JavaScript selectors.

    1.2k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Organize Task Files

    platonai/Browser4

    Lists, pairs, deduplicates, and moves task files across the Coworker task state machine (0draft → 6git-pushed).

    1.2k GitHub stars~801 tokensUpdated today
    Auto-check passed
  • Task Token Usage

    platonai/Browser4

    Analyzes Claude Code session traces (JSONL) and draft task files to report token usage per task.

    1.2k GitHub stars~701 tokensUpdated today
    Auto-check passed
  • Weather

    platonai/Browser4

    Fetches current weather conditions and a 7-day forecast for a requested location using Open-Meteo geocoding and forecast APIs.

    1.2k GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Browser4 Plugin

    platonai/Browser4

    Guides the creation of Browser4 plugins from requirements gathering through deployment.

    1.2k GitHub stars~3.6k tokensUpdated today
    Auto-check passed

Questions about Data Validation

What does Data Validation do?

Validates data against common and custom rules (required fields, formats, ranges). Data Validation is an agent skill from platonai/Browser4. Validates data against common and custom rules (required fields, formats, ranges).

When should I use Data Validation?

Data Validation fits situations like: checking data quality; input validation; enforcing schemas and constraints.

How do I install Data Validation in Claude Code?

Run `npx skills add platonai/Browser4 --skill data-validation -a claude-code`. Or copy the skill folder (browser4-agentic/src/main/resources/skills/data-validation in platonai/Browser4) into .claude/skills/data-validation in your project. Claude Code loads it when a task matches its description.

How do I install Data Validation in Codex?

Run `npx skills add platonai/Browser4 --skill data-validation -a codex`. Or copy the skill folder (browser4-agentic/src/main/resources/skills/data-validation in platonai/Browser4) into .agents/skills/data-validation in your project. Codex loads it when a task matches its description.

Can I use Data Validation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add platonai/Browser4 --skill data-validation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/data-validation, .gemini/skills/data-validation, .github/skills/data-validation and .opencode/skills/data-validation in your project.

What does Data Validation need to run?

SKILL.md names no scripts, command-line tools or credentials: Data Validation is instructions for the agent only.

Does Data Validation access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Data Validation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Data Validation use?

Data Validation is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Data Validation use?

About 896 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.9k tokens, read only when the agent opens those files.

What are the alternatives to Data Validation?

Skills that share tags, products or a category with Data Validation: Question2report (refraction-ray/xalpha, 2.7k stars), Dingo Verify (MigoXLab/dingo, 757 stars), Issues Deduplication (JetBrains/ideavim, 10k stars) and Pandas Pro (Jeffallan/claude-skills, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Data Validation?

platonai (a GitHub user) maintains it in platonai/Browser4, which has 1,152 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 7, 2026.

Source: platonai/Browser4 on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.