datadog-entity-generator
БесплатноЗапускает вложенные скриптыНе проверенGenerate exhaustively complete and accurate Datadog Software Catalog entity YAML files (v3 schema) by examining project source code and interviewing…
Об этом скилле
Datadog Entity Generator
Generate comprehensive, validated Datadog Software Catalog entity YAML files (v3 schema) through project analysis and engineer interviews.
Workflow Overview
- Analyze project - Scan source code for metadata signals
- Fetch existing Datadog data - Query API for existing entities, teams, related services
- Interview engineer - Fill gaps with targeted questions
- Generate YAML - Create complete entity definition(s)
- Validate - Check against official JSON schema
- Merge/Output - Handle existing files, write to
.datadog/
Step 1: Project Analysis
Run the project analyzer to extract metadata signals:
uv run scripts/project_analyzer.py /path/to/project
Detected signals:
pyproject.toml,package.json,pom.xml,build.gradle→ name, description, language, dependenciesDockerfile,docker-compose.yml→ service type, dependencieskubernetes/,helm/,terraform/→ infrastructure, dependencies.github/workflows/,.gitlab-ci.yml→ CI/CD pipelinesREADME.md,CODEOWNERS→ description, owners- Existing
.datadog/entity.datadog.yaml→ merge base openapi.yaml,swagger.json→ API definitions
Output: JSON with detected values and confidence levels.
Step 2: Fetch Existing Datadog Data
Query Datadog API for context (requires DD_API_KEY and DD_APP_KEY in environment):
uv run scripts/datadog_fetcher.py --service-name <name>
Fetches:
- Existing entity definitions for the service
- Teams (for owner validation)
- Related services with dependencies
- Monitors, SLOs associated with service
- APM service topology (dependencies)
Step 3: Engineer Interview
Conduct structured interview to fill gaps. See references/interview-guide.md for complete question bank.
Interview strategy:
- Start with auto-detected values for confirmation
- Ask only for missing required fields
- Negotiate optional fields based on engineer preference
- Validate URLs and integration patterns
Core questions by entity kind:
Service
- Service name (confirm auto-detected or provide)
- Display name (human-readable)
- Owner team (validate against Datadog teams or accept new)
- Tier:
critical,high,medium,low - Lifecycle:
production,experimental,deprecated - Type:
web,grpc,rest,graphql,worker,custom - Languages (confirm from detection)
- Dependencies (services, datastores, queues)
- System membership (componentOf)
- PagerDuty service URL
- JIRA project
- Confluence space
- MS Teams channel
- Runbook URL
- Dashboard URL
Datastore
- Type:
postgres,mysql,redis,mongodb,elasticsearch,cassandra,dynamodb, etc. - What services depend on this datastore?
Queue
- Type:
kafka,rabbitmq,sqs,kinesis,pubsub, etc. - Producer and consumer services?
API
- Type:
openapi,graphql,rest,grpc - OpenAPI spec file reference?
- Implementing service?
System
- Component services, datastores, queues
- Domain/product area
Required tags (HMH standards):
env:(production, staging, development)service:(service name)tier:(critical, high, medium, low)
Step 4: Generate YAML
Use the entity generator with collected data:
uv run scripts/entity_generator.py --input collected_data.json --output .datadog/
Multi-entity support: For monorepos, generate multiple entities separated by --- in single file or separate files.
Step 5: Validate
Validate against official Datadog JSON schema:
uv run scripts/schema_validator.py .datadog/entity.datadog.yaml
Validation checks:
- Required fields present (apiVersion, kind, metadata.name)
- Valid enum values (lifecycle, tier, kind)
- URL formats for links and integrations
- Contact email format
- Tag format (
key:value)
Step 6: Merge & Output
If .datadog/entity.datadog.yaml exists:
- Parse existing definitions
- Deep merge with new data (new values override, arrays extend)
- Preserve custom extensions
- Show diff for engineer approval
Output location: .datadog/entity.datadog.yaml
Entity Schema Quick Reference
See references/v3-schema.md for complete schema documentation.
Common Structure (all kinds)
apiVersion: v3
kind: service # service | datastore | queue | api | system
metadata:
name: my-service # Required, unique identifier
displayName: My Service # Human-readable name
namespace: default # Optional, defaults to 'default'
owner: team-name # Primary owner team
additionalOwners: # Multi-ownership
- name: sre-team
type: operator
description: Short description
tags:
- env:production
- service:my-service
- tier:critical
contacts:
- name: On-Call
type: email
contact: [email protected]
- name: Team Channel
type: microsoft-teams
contact: https://teams.microsoft.com/l/channel/...
links
Установить datadog-entity-generator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл datadog-entity-generator?
Generate exhaustively complete and accurate Datadog Software Catalog entity YAML files (v3 schema) by examining project source code and interviewing engineers. Use when engineers need to create or update entity.datadog.yaml files for services, datastores, queues, APIs, or systems. Triggers include: "create entity yaml", "generate service catalog entry", "document this project in datadog", "create service definition", "add to software catalog", or any request involving Datadog entity/service documentation. Supports all v3 entity kinds: service, datastore, queue, api, system. Fetches existing Datadog data via API. Validates against official JSON schema. Merges with existing definitions. Outputs to .datadog/ directory.
Как установить скилл datadog-entity-generator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл datadog-entity-generator запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic