Skip to content
Back to skills

Data Integrity Guardian

ASecurity

Maintain database quality, ensure data alignment, verify mission compliance, prepare for JusticeHub syndication.

  • 666 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added February 8, 2026
databasessqlapidatabasefrontendbackend

Works with

  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill data-integrity-guardian --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data Integrity Guardian?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Data Integrity Guardian
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-data-integrity-guardian/badge)](https://www.skillsdirectory.com/skills/majiayu000-data-integrity-guardian)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: data-integrity-guardian
description: Maintain database quality, ensure data alignment, verify mission compliance, prepare for JusticeHub syndication.
---

# Data Integrity Guardian

Ensure database quality, cultural safety, mission alignment, and API readiness.

## When to Use
- Before JusticeHub API syndication
- Adding stories to public catalog
- Migrating data between tables
- Weekly data quality audits

## Quick Health Check
```sql
SELECT
  'Stories' as metric, COUNT(*)::text as value FROM stories
UNION ALL
SELECT 'Published', COUNT(*)::text FROM stories WHERE status = 'published'
UNION ALL
SELECT 'Active Storytellers', COUNT(*)::text FROM storytellers WHERE is_active = true
UNION ALL
SELECT 'Avatar Coverage %',
  ROUND(COUNT(*) FILTER (WHERE avatar_url IS NOT NULL) * 100.0 / COUNT(*), 1)::text
FROM storytellers;
```

## Critical Checks

### Orphaned Records
```sql
-- Stories without storytellers (should be 0)
SELECT COUNT(*) FROM stories s
LEFT JOIN storytellers st ON s.storyteller_id = st.id
WHERE s.storyteller_id IS NOT NULL AND st.id IS NULL;
```

### Cultural Safety
```sql
-- Public stories without elder review (should be 0)
SELECT COUNT(*) FROM stories
WHERE requires_elder_review = true AND elder_reviewed = false AND is_public = true;
```

### Consent Verification
```sql
-- Public stories missing consent (should be 0)
SELECT COUNT(*) FROM stories
WHERE status = 'published' AND is_public = true
AND (has_explicit_consent = false OR has_explicit_consent IS NULL);
```

## Reference Files
| Topic | File |
|-------|------|
| All integrity checks | `refs/integrity-checks.md` |
| JusticeHub readiness | `refs/justicehub-readiness.md` |

## Mission Alignment
- **OCAP Compliance**: Ownership, Control, Access, Possession
- **Cultural Safety**: Elder review, traditional knowledge protection
- **Storyteller Empowerment**: Full control over narratives

## Related Skills
- `frontend-backend-auditor` - Frontend alignment
- `database-navigator` - Schema exploration
- `cultural-review` - Cultural sensitivity

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.