schema-auto-tagger
БесплатноЗапускает вложенные скриптыНе проверенAutomated schema tagging and resource classification for Treasure Data. Detects new tables/columns, analyzes metadata patterns, and suggests appropriate…
от treasure-data★ 23 звезды на GitHubОб этом скилле
Schema Auto-Tagger for Treasure Data
Automatically detect newly created tables and columns in Treasure Data, analyze their metadata, suggest appropriate policy tags and resource classifications, and streamline the tagging approval workflow for data governance.
When to Use This Skill
Use this skill when:
- Data has just been imported/ingested into Treasure Data
- You need to tag new tables or columns with appropriate policy tags
- You want to suggest data classification, business domain, and compliance tags
- You need to reduce manual schema tagging effort by ~80%
- You want to establish consistent tagging patterns across your data warehouse
- You're managing multiple databases and need automated governance
- You need compliance-ready tagging (GDPR, CCPA, HIPAA, SOX)
What This Skill Does
The Schema Auto-Tagger provides a complete end-to-end solution for automated schema tagging:
1. Automatic Detection
- Scans for newly created tables and columns
- Compares against baseline to identify changes
- Tracks modifications and updates
- Supports incremental and full database scans
2. Intelligent Analysis
- Analyzes column names, data types, and metadata
- Pattern matching: 50+ pre-built detection rules
- Machine learning-style confidence scoring
- Domain-specific rule application
- Compliance-aware classification
3. Smart Tagging
- Suggests tags across 5 categories:
- Data Classification: PII, Sensitive, Confidential, Public, Internal
- Business Domain: Customer, Product, Financial, Marketing, Operations
- Technical: Staging, Production, Experimental, Deprecated
- Compliance: GDPR, CCPA, HIPAA, SOX, PCI-DSS
- Governance: Validated, Monitored, Raw, Archived
4. Confidence-Based Workflow
- HIGH confidence (90%+): Auto-approved, minimal review
- MEDIUM confidence (70%): Recommended for human review
- LOW confidence (50%): Flagged for investigation
5. Human Review & Approval
- Beautiful human-readable reports
- JSON exports for programmatic processing
- Easy approve/reject/modify workflow
- Full audit trail of all decisions
6. Automated Application
- Applies approved tags via Treasure Data API
- Retry logic with exponential backoff
- Error handling and recovery
- Batch processing for efficiency
7. Scheduling & Monitoring
- Daily automated execution (digdag workflow)
- Slack and email notifications
- Audit logging to database
- Performance monitoring and reporting
Key Features
PII Detection
- Email addresses, phone numbers, SSN, credit cards
- Passport numbers, driver's license IDs
- IP addresses, authentication tokens
- Highly accurate pattern recognition
Financial Data Recognition
- Transaction amounts, salaries, revenue
- Account balances, pricing information
- Automatically tags with compliance rules
Business Domain Identification
- Customer data (IDs, names, accounts, segments)
- Product information (SKU, categories)
- Orders and transactions
- Marketing data (UTM parameters, campaigns)
- Event and behavioral data
Compliance Tagging
- GDPR-subject data identification
- CCPA personal data classification
- HIPAA protected health information
- SOX financial reporting requirements
- PCI-DSS payment card data
Customizable Rules
- 300+ pre-built rules (included)
- Pattern-based detection
- Table-based rules
- Custom organization rules
- Industry-specific compliance rules
- Full YAML configuration
How to Use
Basic Usage (One-Time Analysis)
# Scan database and generate suggestions
python schema_auto_tagger_implementation.py my_database \
--rules-file rules/schema_tagger_rules.yaml \
--output-report report.txt
# Review the report
cat report.txt
Auto-Approve & Apply HIGH Confidence Tags
# Dry-run first to see what would be applied
python schema_auto_tagger_implementation.py my_database \
--rules-file rules/schema_tagger_rules.yaml \
--approve-high --dry-run
# Apply for real
python schema_auto_tagger_implementation.py my_database \
--rules-file rules/schema_tagger_rules.yaml \
--approve-high
Automated Daily Workflow
# Deploy the scheduled workflow
tdx wf push workflows/auto_schema_tagger.dig
# Run manually (test)
tdx wf run auto_schema_tagger
# Monitor execution
tdx wf sessions auto_schema_tagger -l 5
Programmatic API Usage
from schema_auto_tagger_implementation import SchemaTagger
from schema_tagger_td_api import TreasureDataTagAPI
# Scan and analyze
tagger = SchemaTagger("my_database")
tables = tagger.scan_database()
suggestions = tagger.analyze_column(column, table_name)
# Apply tags via API
api = TreasureDataTagAPI()
successful, failed, errors = api.bulk_apply_tags("database", tag_assignments)
# Export audit logs
audit_log = api.export_tags_audit_log("database")
Example Output
Schema Tagging Recommendations
═════════════════════════════════════════════════════
Table: analytics_db.customer_events
New co
Установить schema-auto-tagger в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл schema-auto-tagger?
Automated schema tagging and resource classification for Treasure Data. Detects new tables/columns, analyzes metadata patterns, and suggests appropriate policy tags with confidence scoring. Reduces manual tagging effort by 80% while maintaining compliance standards (GDPR, CCPA, HIPAA, SOX).
Как установить скилл schema-auto-tagger?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл schema-auto-tagger запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic