data-dictionary
БесплатноЗапускает вложенные скриптыНе проверенAutomate update and maintenance of data dictionaries in Treasure Data - generates 80-90% of column descriptions automatically, allowing users to review…
от treasure-data★ 23 звезды на GitHubОб этом скилле
Data Dictionary: Automated Maintenance & Enhancement
Automate the update and maintenance of data dictionaries in Treasure Data - with 80-90% automated column descriptions that you can review, edit, and enhance. From schema extraction through TD write-back, this skill handles the heavy lifting while keeping you in control.
Usage
/data-dictionary [segment-name]
Example:
/data-dictionary customer_360
If segment name not provided, will list available Parent Segments.
Workflow Overview
This skill orchestrates 6 sequential stages:
- Context Gathering - Collect business context (industry, company, use cases)
- Schema Extraction - Extract schema from TD Parent Segment with sample data
- Description Generation - Generate AI-powered column descriptions
- Review Export - Export to CSV for human review
- Validation - Validate edited CSV and import back to JSON
- Write-back - Publish descriptions to Treasure Data
Each stage creates artifacts used by subsequent stages. Workflow supports resume from partial runs.
Stage 1: Context Gathering
Purpose: Collect business context to inform description generation.
Process: Ask 4 context questions ONE at a time (conversational, not all at once):
- "What industry is this data from?" (e.g., e-commerce, SaaS, healthcare)
- "Describe your company/business model briefly"
- "What is this segment used for?" (default: customer segmentation)
- "What are the primary use cases?" (e.g., marketing campaigns, analytics, personalization)
Output: Context stored in memory for Stage 3.
Progress:
✅ Stage 1 complete: Context gathered
➡️ Next: Stage 2 (Schema Extraction)
Stage 2: Schema Extraction
Purpose: Extract schema from TD Parent Segment with sample data for PII detection.
Command:
node src/index.js extract $SEGMENT --sample
Where $SEGMENT is the segment name from $ARGUMENTS[0].
Output:
✅ Stage 2 complete: Schema extracted
📁 Artifacts created:
- ./schemas/{segment}.json
➡️ Next: Stage 3 (Description Generation)
Error Handling: If extraction fails:
- Display error message
- Offer options: [R] Retry | [E] Exit
- If user chooses Retry, re-run extraction command
- If user chooses Exit, stop workflow
Resume Detection:
If ./schemas/{segment}.json already exists:
- Ask: "Schema file found. Resume from Stage 3 or start fresh?"
- If resume: skip to Stage 3
- If fresh: delete schema file and re-run extraction
Stage 3: Description Generation
Purpose: Generate AI-powered column descriptions using Claude.
API Key Detection: Before running generation, check for API key:
if [ -z "$ANTHROPIC_API_KEY" ]; then
echo "API key not found. Using Claude Code mode..."
USE_CLAUDE_CODE=true
else
echo "API key detected. Using API mode..."
USE_CLAUDE_CODE=false
fi
Command (API Mode):
node src/index.js generate $SEGMENT
Command (Claude Code Mode):
node src/index.js generate $SEGMENT --claude-code
In Claude Code mode, the CLI will print instructions for manual generation. Follow those instructions:
- Read schema file shown in output
- Use context gathered in Stage 1
- Generate descriptions following format specified
- Save to
./descriptions/{segment}-descriptions.json
Output:
✅ Stage 3 complete: Descriptions generated
📁 Artifacts created:
- ./descriptions/{segment}-descriptions.json
➡️ Next: Stage 4 (Review Export)
Error Handling: If generation fails:
- Display error message
- Offer options: [R] Retry | [C] Claude Code mode | [E] Exit
- If user chooses Retry, re-run with same mode
- If user chooses Claude Code, re-run with
--claude-codeflag - If user chooses Exit, stop workflow
Resume Detection:
If ./descriptions/{segment}-descriptions.json already exists:
- Ask: "Descriptions file found. Resume from Stage 4 or regenerate?"
- If resume: skip to Stage 4
- If regenerate: delete descriptions file and re-run generation
Stage 4: Review Export
Purpose: Export descriptions to CSV for human review and editing.
Command:
node src/index.js review $SEGMENT
This command will:
- Export descriptions to
./reviews/{segment}-descriptions.csv - Open CSV file in default spreadsheet application
- Wait for user to review and edit
CSV Format:
6 columns: table, column, type, source, description, is_pii
table= table type (attribute,behavior,master)column= column nametype= data type (may be empty — this is optional and doesn't affect write-back)source= source databasedescription= AI-generated description (editable)is_pii= PII flag (TRUE/FALSE)
Edit the description and is_pii columns as needed. Do NOT modify other columns (they are validated as immutable).
Output:
✅ Stage 4 complete: CSV exported and opened for review
📁 Artifacts created:
- ./reviews/{segment}-descriptions.csv
Pleas
Установить data-dictionary в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(node src/index.js *)ReadWriteGlobВложенные файлы
FAQ
Что делает скилл data-dictionary?
Automate update and maintenance of data dictionaries in Treasure Data - generates 80-90% of column descriptions automatically, allowing users to review results, make changes, and fill in gaps. Orchestrates schema extraction, AI-powered description generation, human review, and write-back as single workflow.
Как установить скилл data-dictionary?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл data-dictionary запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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