Data Quality Standards logo

Data Quality Standards

Community
ilyasibrahim
data-quality-standards

Data quality validation rules, quality metrics, and acceptance criteria for Somali dialect classifier datasets. Covers duplicate detection, language filtering, quality scoring, and validation protocols. Auto-invokes when discussing data quality, validation, cleaning, or quality guardrails for this project.

Overview

Publisherilyasibrahim
Repositoryclaude-agents-coordination
Skill namedata-quality-standards
Stars
83
Forks
15
Bundled files
Instructions only
LicenseUnlicense
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by ilyasibrahim on GitHub. Read the source before you install it.

Installation

Install the Data Quality Standards AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ilyasibrahim/claude-agents-coordination.git /tmp/claude-agents-coordination
mkdir -p .claude/skills
cp -r /tmp/claude-agents-coordination/claude-project/skills/data-engineering/data-quality-standards .claude/skills/data-quality-standards
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Data Quality Standards in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Data Quality Standards on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Data Quality Standards is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Data Quality Standards for Somali Dialect Classifier

Quality Dimensions

1. Completeness

  • All required fields present (text, label, source, timestamp)
  • No null or empty text fields
  • Labels properly assigned (Northern/Southern/Central)

2. Accuracy

  • Text is in Somali (not English, Arabic, or other languages)
  • Labels match actual dialect (validated by native speakers)
  • Geographic metadata aligns with dialect labels

3. Consistency

  • Uniform text encoding (UTF-8)
  • Consistent label format (standardized names)
  • Timestamp format standardized (ISO 8601)

4. Uniqueness

  • No exact duplicates
  • Near-duplicate detection (>95% similarity flagged)
  • Source URL deduplication

5. Validity

  • Text length within acceptable range (10-5000 characters)
  • No corrupted/garbled text
  • No HTML tags or formatting artifacts

Quality Metrics

Critical Metrics

Language Purity:

  • Target: >98% Somali text
  • Method: Language detection (langdetect, fastText)
  • Action: Remove non-Somali text

Duplicate Rate:

  • Target: <2% duplicates
  • Method: Exact match + fuzzy matching (Levenshtein distance)
  • Action: Keep first occurrence, remove duplicates

Label Confidence:

  • Target: >90% inter-annotator agreement
  • Method: Multiple annotators for sample
  • Action: Re-label low-confidence examples

Text Quality Score:

  • Target: Average score >7/10
  • Components: Length, vocabulary richness, grammar
  • Action: Filter texts with score <5

Validation Pipeline

Stage 1: Basic Validation

python
def basic_validation(record):
    checks = {
        'has_text': bool(record.get('text', '').strip()),
        'has_label': record.get('label') in ['Northern', 'Southern', 'Central'],
        'valid_length': 10 <= len(record.get('text', '')) <= 5000,
        'valid_encoding': is_valid_utf8(record['text'])
    }
    return all(checks.values()), checks

Stage 2: Language Detection

python
from langdetect import detect

def validate_language(text):
    try:
        lang = detect(text)
        return lang == 'so'  # Somali ISO code
    except:
        return False

Stage 3: Duplicate Detection

python
from difflib import SequenceMatcher

def is_near_duplicate(text1, text2, threshold=0.95):
    similarity = SequenceMatcher(None, text1, text2).ratio()
    return similarity >= threshold

Stage 4: Quality Scoring

python
def compute_quality_score(text):
    score = 0
    # Length appropriateness (1-3 points)
    if 50 <= len(text) <= 1000:
        score += 3
    elif 20 <= len(text) < 50 or 1000 < len(text) <= 3000:
        score += 2
    else:
        score += 1

    # Vocabulary richness (1-3 points)
    unique_words = len(set(text.split()))
    total_words = len(text.split())
    if total_words > 0:
        vocab_ratio = unique_words / total_words
        if vocab_ratio > 0.7:
            score += 3
        elif vocab_ratio > 0.5:
            score += 2
        else:
            score += 1

    # No HTML/formatting artifacts (1-2 points)
    if not ('<' in text or '>' in text or '{' in text):
        score += 2

    # Proper sentences (1-2 points)
    if text.count('.') >= 1:  # At least one sentence
        score += 2

    return min(score, 10)  # Cap at 10

Acceptance Criteria

Minimum Quality Thresholds

For Training Set:

  • Language purity: >98% Somali
  • Duplicate rate: <1%
  • Quality score: Average >7.5
  • Label confidence: >95%

For Validation/Test Sets:

  • Language purity: >99% Somali
  • Duplicate rate: 0% (strict)
  • Quality score: Average >8.0
  • Label confidence: >98% (manually validated)

Quality Guardrails

Automatic Filters

  1. Remove if:

    • Non-Somali language detected
    • Exact duplicate found
    • Text length <10 or >5000 characters
    • Quality score <5
    • Contains >20% numbers/special characters
  2. Flag for review if:

    • Near-duplicate (>95% similarity)
    • Quality score 5-7
    • Label confidence <90%
    • Unusual character patterns
  3. Accept if:

    • All validation checks pass
    • Quality score ≥7
    • No duplicates
    • Language = Somali

Quality Reporting

Metrics to Track

Dataset-Level:

  • Total records
  • Records passing validation (%)
  • Average quality score
  • Duplicate count
  • Language distribution (% Somali)

Per-Source:

  • Source name
  • Records contributed
  • Average quality score
  • Duplicate rate
  • Rejection rate

Per-Dialect:

  • Dialect label
  • Record count
  • Average quality score
  • Inter-annotator agreement

Example Report:

Dataset Quality Report - 2025-11-06

Total Records: 10,000
Passing Validation: 9,200 (92%)
Average Quality Score: 7.8/10
Duplicates Removed: 600 (6%)
Language Purity: 98.5% Somali

Per-Source Quality:
- Wikipedia: 8.5/10 (3,000 records)
- BBC Somali: 8.2/10 (2,500 records)
- Social Media: 6.9/10 (4,500 records, 30% rejected)

Per-Dialect Distribution:
- Northern: 5,500 (59.8%)
- Southern: 2,200 (23.9%)
- Central: 1,500 (16.3%)

When This Skill Activates

This skill auto-invokes when you mention:

  • Data quality, data validation, quality checks
  • Duplicates, deduplication, duplicate detection
  • Quality metrics, quality score, quality standards
  • Data cleaning, data filtering, guardrails
  • Language detection, language purity
  • Acceptance criteria, validation rules

Version: 1.0.0 Last Updated: 2025-11-06 Project: Somali Dialect Classifier

Frequently asked questions

What does the Data Quality Standards AI skill do?

Data quality validation rules, quality metrics, and acceptance criteria for Somali dialect classifier datasets. Covers duplicate detection, language filtering, quality scoring, and validation protocols. Auto-invokes when discussing data quality, validation, cleaning, or quality guardrails for this project.

Why use Data Quality Standards on TypingMind?

Because you install it once and use it with any model. Data Quality Standards is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Data Quality Standards in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ilyasibrahim/claude-agents-coordination/tree/main/claude-project/skills/data-engineering/data-quality-standards. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Data Quality Standards?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Data Quality Standards?

As many as you like. As long as a model supports skills, you can use Data Quality Standards with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Data Quality Standards AI skill free?

Yes. It is published on GitHub by ilyasibrahim under the Unlicense license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇