ferroxlabs/wayland/data-validation-setup

Claude Code and agent skill by ferroxlabs/wayland

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Produces a data validation rule set for a spreadsheet. Defines validation type (list, range, custom formula, date, text length), error message text, and input hint text for each field. Prevents data quality problems at the point of data entry. Use when the user needs to restrict what can be entered into spreadsheet cells to maintain data quality. Do NOT use for cleaning existing dirty data (use spreadsheet-data-cleaning), conditional formatting rules (use conditional-formatting-rules), or building lookup formulas (use excel-lookup-formulas).

Install

npx vskill@latest install ferroxlabs/wayland/data-validation-setup

SKILL.md

The same SKILL.md was published earlier as ferroxlabs/wayland/data-validation-setup.

Data Validation Setup

When to Use

Use this skill when:

  • A user is building a shared data entry spreadsheet and wants to prevent garbage-in-garbage-out problems before they occur -- for example, a team time tracker, an inventory log, a CRM input sheet, a budget request form, or a project status register
  • A user asks questions like "how do I add a dropdown?", "how do I stop people from entering letters in a number column?", "how do I make sure dates are in the right range?", or "how do I restrict what can be typed into a cell?"
  • A user is creating a data collection template that will be filled in by multiple people with varying technical skill levels -- the wider the audience, the more important validation becomes
  • A user needs to prepare a spreadsheet whose data will later be imported into a database, fed into a formula model, or analyzed -- validation at entry prevents type mismatches and parsing failures downstream
  • A user wants to enforce a business rule at the point of data entry: approved vendors only, valid cost centers only, hours must be in quarter-hour increments, project codes must match a naming convention
  • A user is inheriting or rebuilding a spreadsheet that has historically produced data quality issues and wants to retrofit systematic controls
  • A user is designing a self-service data entry form in Google Sheets or Excel that replaces a paper form or email submission process

Do NOT use when:

  • The problem is dirty data that already exists in the spreadsheet -- validation rules do not retroactively fix existing entries; use spreadsheet-data-cleaning instead
  • The user wants to visually highlight cells based on their value (red for overdue, green for complete) -- that is conditional formatting, not validation; use conditional-formatting-rules
  • The user wants to build VLOOKUP, INDEX/MATCH, or XLOOKUP formulas to retrieve values -- use excel-lookup-formulas
  • The user wants to audit an existing spreadsheet model for formula errors, broken references, or logical inconsistencies -- use spreadsheet-model-audit
  • The user is working in a true relational database (SQL Server, PostgreSQL, MySQL) where constraints are enforced at the schema level -- validation in that context belongs in DDL, not spreadsheets; use database-constraint-design
  • The user needs data validation logic in a web form or application -- that is a front-end programming problem, not a spreadsheet skill
  • The user wants to protect cells from being edited at all (sheet protection, locked cells) -- that is a cell protection problem distinct from validation; use spreadsheet-protection-setup

Process

Step 1: Gather the Field Inventory and Business Rules

Before writing a single validation rule, understand the full data model. Ask the user or extract from context:

  • What columns accept user input? Distinguish between input columns (user types or selects) and calculated columns (formulas). Only input columns need validation rules.
  • What are the valid values or ranges for each field? Push for specifics: not just "a number" but "a whole number between 1 and 999", not just "a date" but "a date within the current fiscal year."
  • What is the source of truth for list values? Employee names, project codes, department names, and similar lists should come from a maintained source (an HR system, a project register) -- not be typed ad hoc into the validation dialog.
  • Who enters data? Non-technical users need friendlier error messages, more descriptive input hints, and more forgiving validation (Warning style more often). Power users can tolerate stricter Stop rules.
  • What are the most common mistakes made in this spreadsheet historically? Past failure modes are the highest-priority candidates for Stop-style validation.
  • Which fields are required vs. optional? Required fields need "Allow blank" set to No. Optional fields must have "Allow blank" set to Yes -- otherwise the validation rule fires on empty cells and prevents users from leaving them blank.
  • What downstream systems consume this data? If the sheet feeds a database import, API call, or Power Query pipeline, the validation criteria must exactly match the constraints of the receiving system (e.g., a field limited to 50 characters in the database must also be limited to 50 characters in the spreadsheet).
Step 2: Classify Every Field into a Validation Type

Map each input field to one of six validation types. Do not guess -- apply the classification framework systematically:

Field CharacteristicCorrect Validation TypeWhen to Use It
Fixed set of allowed values (<=50 options)ListDepartment names, status codes, yes/no flags, categories
Fixed set but values change frequently or exceed 50List via named rangeEmployee names, product SKUs, project codes
Whole number within a rangeWhole NumberQuantities, counts, ID numbers, survey scores 1--10
Number with decimals within a rangeDecimalHours, currency amounts, percentages, measurements
Date within a rangeDateEntry dates, deadlines, billing periods
Time valuesTimeClock-in/clock-out, duration in HH:MM format
Text with a length constraintText LengthReference codes, descriptions with character limits
Format, pattern, or cross-column logicCustom FormulaEmail format, phone format, conditional requirements, uniqueness
No constraint neededNoneFree-text notes, comments, calculated columns
  • List validation vs. named range: Hardcoded comma-separated lists (e.g., Low,Medium,High) are acceptable for static lists of 5 or fewer values that never change. For anything longer or likely to be maintained, always use a named range on a Config or Lookup sheet.
  • Custom Formula is the escape hatch: Any rule that cannot be expressed with the built-in types can be expressed as a custom formula that returns TRUE (valid) or FALSE (invalid). Master this type and it covers every case.
  • Decimal vs. Whole Number matters: If you select Whole Number and a user enters 1.5, it is rejected. If hours should allow half-hours, use Decimal. If quantities must be integers (you cannot order 2.7 units), use Whole Number.
Step 3: Design Each Validation Rule in Full

For every field, define all five components before touching the spreadsheet. Designing on paper first prevents inconsistencies.

Five components of a complete validation rule:

  1. Range: The exact cell range the rule applies to. Always extend to a generous lower bound (row 1000 or row 5000 for large datasets) so new rows are automatically covered. For tables (Excel Table objects), apply to the entire column -- the table will auto-extend the rule.
  2. Criteria: The specific allowed values, bounds, or formula. Be precise about whether bounds are inclusive (Between includes both endpoints) or exclusive (Greater Than excludes the lower bound).
  3. Allow blank: Explicitly set for every field. Do not leave this as the default and assume -- check it deliberately.
  4. Input message: Written in second person, present tense, 1--3 sentences. Tells the user what to enter before they make a mistake. Keep titles under 32 characters (Excel truncates longer titles).
  5. Error alert: Written in second person, specific about what went wrong, and actionable -- tell the user exactly what to do next. Use one of three styles (see Step 4).

Criteria design decisions by type:

  • List criteria: Reference a named range (=DepartmentList) rather than embedding values. If the list is short and static, embed directly: Low,Medium,High,Critical. Never mix both approaches in the same workbook.
  • Whole Number / Decimal criteria: Six operators are available: Between, Not Between, Equal To, Not Equal To, Greater Than or Equal To, Less Than or Equal To. "Between" is inclusive on both ends. For open-ended ranges (no maximum), use "Greater Than or Equal To."
  • Date criteria: Use =TODAY() for dynamic "no future dates" rules. Use =DATE(YEAR(TODAY()),1,1) for "current calendar year only." Avoid hardcoding specific years (e.g., 1/1/2024) because the rule will become wrong without anyone noticing.
  • Custom formula criteria: The formula must reference the first cell of the range as a relative reference. If the rule is applied to B2:B1000, the formula references B2, and Excel/Sheets adjusts it for B3, B4, etc. Never use an absolute reference like $B$2 in a custom formula applied to a range.
Step 4: Select Error Alert Styles with Deliberate Intent

Error alert style is the most consequential decision in validation design. The wrong choice either makes the sheet unusable (Stop used where exceptions are needed) or makes validation toothless (Information used where data integrity is critical).

Stop: Rejects the entry entirely. The user cannot proceed until they enter valid data or press Escape.

  • Use for: fields where invalid data would break a downstream formula (e.g., a VLOOKUP key), violate a compliance requirement, or corrupt a database import.
  • Use for: primary keys, required foreign keys, numeric fields used in calculations, date fields used in sorting or filtering.
  • Do NOT use for: lists where unlisted values are occasionally legitimate (new employees, new projects).

Warning: Shows the message but allows the user to click "Yes" to accept the invalid entry anyway.

  • Use for: dropdown lists where exceptions are plausible but should be flagged (new project codes, vendor not yet in master list).
  • Use for: situations where enforcement is preferred but not mandatory, and where an audit trail of exceptions is acceptable.
  • The Warning dialog shows Yes/No/Cancel. "Yes" accepts the entry. This means Warning style does not prevent bad data -- it slows it down and makes it deliberate.

Information: Shows a message but automatically accepts whatever was entered.

  • Use for: advisory guidance only, such as a reminder about formatting conventions when you cannot enforce the format technically.
  • Rarely justified for data quality purposes. If you find yourself reaching for Information, ask whether the validation is providing any real value.

Decision rule: Default to Stop. Downgrade to Warning only when you can articulate a specific exception scenario. Use Information only when you want a reminder tooltip without any enforcement.

Step 5: Set Up the Named Ranges and Config Sheet Structure

Before configuring validation in the spreadsheet, build the infrastructure that the rules depend on.

  • Create a dedicated Config or Lookup sheet. Name it _Config or _Lists (the leading underscore pushes it to the front of the sheet tab list and signals it is a system sheet, not a data sheet). Protect it from accidental editing.
  • Lay out each list in its own column with a header row. Lists should be sorted to make them usable as dropdowns. Remove trailing spaces from list values -- a space after "Marketing " makes it a different value from "Marketing" and will cause lookup failures.
  • Create a named range for each list. In Excel: Formulas > Name Manager > New. In Sheets: Data > Named ranges. Use descriptive names: DepartmentList, EmployeeList, ProjectCodeList. Avoid spaces in named range names -- use CamelCase or underscores.
  • Use dynamic named ranges for lists that grow. In Excel, use an OFFSET formula: =OFFSET(_Config!$A$2,0,0,COUNTA(_Config!$A:$A)-1,1). This automatically includes new rows added to the list. In Excel Tables, referencing a Table column automatically makes the named range dynamic.
  • Document the Config sheet with a header row, a column for "last updated," and a note explaining that changing values here updates all validation rules.
Step 6: Implement the Rules in the Spreadsheet

With the design document and Config sheet in place, implement each rule:

This is the start of the file. Read the full SKILL.md on GitHub.

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

Popularity

Repository stars
608
Repository forks
113
7-day trend score
37

Stars and forks are for the whole GitHub repository, not this skill alone. 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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ferroxlabs/wayland/data-validation-setup/badge)](https://verified-skill.com/skills/ferroxlabs/wayland/data-validation-setup)

Something wrong with this skill or its page? Tell us.