К основному содержанию
скилл CX Codex

k9-ownership-byod-setup — скилл для Claude Code: таблица владельцев

Собирает CSV-таблицу предпочтений владения ресурсами для Datadog и подсказывает, как её загрузить. Нужен, когда Ownership Agent ошибается с владельцами.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add datadog-labs/agent-skills --skill k9-ownership-byod-setup -a claude-code
npx skills add datadog-labs/agent-skills --skill ownership-agent -a claude-code
Открыть на GitHub

Что делает k9-ownership-byod-setup

Скилл ведёт по шагам: сначала спрашивает про теги на ресурсах, бот-аккаунты, которые не должны попадать в владельцы, и контекст про нейминг или структуру команд. Потом собирает CSV с 12 колонками, где у каждой строки свой id и заполнены только поля её preference_type. Загрузить таблицу можно четырьмя способами: через UI в разделе Reference Tables, синхронизацией из S3, Azure Blob или GCS, ресурсом datadog_reference_table в Terraform либо через Reference Tables API.

Имя таблицы должно быть ровно k9_ownership_preferences, иначе ничего не сработает. Изменения подхватываются в течение 24 часов, так что проверять результат сразу после загрузки бессмысленно. Ручная загрузка через UI принимает файлы до 4 MB, облачная синхронизация — до 200 MB.

Есть лимиты: 50 маппингов тегов, 20 исключений, 3 текста промптов, 1024 байта на поле и 4096 на промпт. Валидация работает по принципу всё-или-ничего: одна плохая строка — и весь набор отклоняется на этот цикл. Угловые скобки, фигурные скобки и вертикальные черты в значениях недопустимы. Маппинги тегов дополняют прямые признаки владения вроде team: или service:, а не заменяют их.

Какие задачи решает

  • сопоставить теги cost-center и team с конкретными командами
  • убрать бот-аккаунты из списка владельцев ресурсов
  • собрать CSV с 12 колонками без ошибок в схеме
  • загрузить таблицу предпочтений через Terraform или API
  • понять, почему набор предпочтений отклонён целиком

Примеры запросов агенту

  • Собери таблицу k9_ownership_preferences: у нас тег team указывает на команду-владельца
  • Помоги настроить BYOD ownership preferences и загрузить CSV через Terraform
  • Почему мои предпочтения владения не применились за 24 часа?

Как установить k9-ownership-byod-setup

1Через Skills CLI (Vercel)

npx skills add datadog-labs/agent-skills --skill k9-ownership-byod-setup -a claude-code
npx skills add datadog-labs/agent-skills --skill ownership-agent -a claude-code

2Вручную: положить файлы

~/.claude/skills/ownership-agent/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/ownership-agent/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о k9-ownership-byod-setup

Как установить k9-ownership-byod-setup в Claude?

Выполните npx skills add datadog-labs/agent-skills --skill k9-ownership-byod-setup -a claude-code. Скилл появится в ~/.claude/skills/ownership-agent/SKILL.md.

Что делает k9-ownership-byod-setup?

Проводит по типам предпочтений владения, генерирует CSV для таблицы k9_ownership_preferences и даёт инструкции по загрузке через UI, API, облачное хранилище или Terraform.

Почему предпочтения не применяются?

Чаще всего имя таблицы отличается от k9_ownership_preferences или не хватает колонок — их должно быть все 12. Ещё изменения вступают в силу в течение 24 часов, поэтому проверять раньше нет смысла.

Исходный текст

SKILL.md · MIT
---
name: k9-ownership-byod-setup
description: >
  Generate a BYOD ownership preferences reference table for a customer.
  Walks through preference types, generates CSV, and provides upload instructions (UI, API, cloud storage, or Terraform).
  Use when asked about BYOD setup, preferences reference table, k9_ownership_preferences, or ownership customization.
argument-hint: "[csv|api|help]"
model: sonnet
allowed-tools: Read, Bash
---

# BYOD Preferences Reference Table Setup

Help customers create and upload a `k9_ownership_preferences` reference table to customize how the Ownership Agent determines resource owners.

## Read first

- `references/schema.md` — full schema, column details, validation rules, and per-type examples
- `assets/example.csv` — complete working CSV with all three preference types

## Overview

The Ownership Agent infers owners for cloud resources with security findings. **Ownership preferences** let customers customize this by providing rules in a Datadog reference table. The agent reads them automatically.

With preferences you can:
- **Map tags to owners**: Resources with specific tag values belong to a particular team or person
- **Exclude accounts**: Prevent bot accounts or shared infrastructure from appearing as owners
- **Provide custom guidance**: Give the AI engine organization-specific context

## Reference Table Details

- **Table name**: `k9_ownership_preferences` (exact name, must match)
- **Effect delay**: Changes take effect within 24 hours of upload
- **Schema**: 12 columns, all STRING — see `references/schema.md` for details

## Workflow

### Step 1: Determine Needs

Ask the customer:
- **Tag mappings**: "Do you have tags on your cloud resources that indicate ownership? (e.g., `cost-center`, `team`, `project`)"
- **Exclusions**: "Are there bot accounts, service accounts, or shared accounts that should never appear as owners?"
- **Prompt text**: "Any organization-specific context that would help determine ownership? (e.g., naming conventions, team structure)"

### Step 2: Generate CSV

Read `references/schema.md` for the full column spec and `assets/example.csv` for a working template. Build a CSV with all 12 column headers. Each row gets a unique sequential `id` and fills columns relevant to its `preference_type`, leaving the rest empty.

### Step 3: Upload Instructions

**Option A — CSV Upload (UI):**
1. Go to **Integrations > Reference Tables** in Datadog
2. Click **New Reference Table**
3. Upload the CSV
4. Set table name to `k9_ownership_preferences`
5. Choose primary key: `preference_type, tag_key, tag_value, handle`
6. Save

Manual uploads support files up to 4 MB.

**Option B — Cloud Storage Sync (S3, Azure Blob, GCS):**
Best for automated, recurring updates. Store your CSV in a cloud storage bucket and Datadog periodically imports it.
1. Upload CSV to S3 / Azure Blob / GCS
2. In Datadog, go to **Integrations > Reference Tables**
3. Click **New Reference Table**, select **Cloud Storage** as source
4. Provide storage path and credentials
5. Set table name to `k9_ownership_preferences`
6. Datadog re-imports the file periodically

Cloud storage uploads support files up to 200 MB.

**Option C — Terraform:**
Use the `datadog_reference_table` resource in the Datadog Terraform provider to manage the table as infrastructure-as-code.

**Option D — API:**
You can manage reference tables programmatically through the Reference Tables API. See the [API documentation](https://docs.datadoghq.com/api/latest/reference-tables/) for available endpoints. Replace the API domain with your Datadog site URL if applicable.

### Step 4: Verify

Changes take effect within 24 hours. To verify:
1. Identify a resource that matches one of your tag mappings
2. After 24 hours, check the ownership suggestion for that resource in the Datadog UI
3. The suggested owner should reflect your configured mapping

## Key Behaviors

- **Case-insensitive matching**: Tag keys, tag values, handles, exclusion types, and resource types are all matched case-insensitively
- **AND-logic exclusions**: All non-empty exclusion fields must match. Empty fields act as wildcards
- **Tag mappings complement, not override**: Direct ownership indicators (like `team:` or `service:` tags) take precedence. Tag mappings augment, not replace
- **Graceful degradation**: If the table doesn't exist or is empty, ownership detection works normally without preferences
- **Empty table clears preferences**: Deleting all rows or deleting the table causes cached preferences to expire and be left empty
- **All-or-nothing validation**: Any validation failure rejects the entire preference set for that cycle

## Troubleshooting

| Problem | Likely cause | Fix |
|---|---|---|
| Preferences not taking effect after 24h | Table name is wrong | Must be exactly `k9_ownership_preferences` |
| Preferences not taking effect after 24h | Missing column headers | All 12 columns must exist as CSV headers |
| Preferences not taking effect after 24h | Feature not enabled for org | Contact support to enable ownership preferences |
| All preferences rejected | Invalid characters | See `references/schema.md` Allowed Characters. No angle brackets, curly braces, or pipes |
| All preferences rejected | Missing required field | Check required fields for each preference type in `references/schema.md` |
| All preferences rejected | Duplicate or conflicting rows | See Duplicate Detection in `references/schema.md` |
| All preferences rejected | Size limit exceeded | 50 tag mappings, 20 exclusions, 3 prompt texts. 1024 bytes/field, 4096/prompt |
| Tag mapping not matching | Spelling mismatch | Matching is case-insensitive but verify exact tag key/value on resource |
| Exclusion not applying | Scoping too narrow | All non-empty fields must match (AND). Leave filters empty for broad exclusions |
| Preferences cleared unexpectedly | Table emptied or deleted | Both cause cached preferences to expire. Upload a valid CSV to restore |

© datadog-labs · MIT · datadog-labs/agent-skills

Похожие скиллы

Всё по теме «Безопасность» →
cdn-setup devops-skills Скилл помогает настроить CDN через CloudFront и Cloudflare: раздавать статику, защищать трафик по TLS и сбрасывать кеш. Пригодится при публикации сайтов и API. CX Codex +1 324установок aws-iam aws Проверенные поправки к типичным ошибкам агентов в AWS IAM плюс рабочие процессы для ролей и baseline-политик. CX Codex +1 10 200установок infisical-terraform Infisical Подсказывает агенту, как настроить провайдер Infisical в Terraform, вынести секреты в ephemeral-ресурсы и подключить Terraform Cloud через OIDC. CX Codex +1 478установок firewall-config devops-skills Скилл для настройки хостовых и облачных фаерволов: правила iptables, nftables, UFW и security groups. Пригодится, когда закрываешь периметр сервера или делишь сеть на зоны. CX Codex +1 458установок config-scan jwynia Скилл проверяет конфигурационные файлы, Docker, Kubernetes и Terraform на небезопасные настройки. Пригодится перед выкаткой в прод. CX Codex +1 337установок tf-best-practices aws Задаёт правила безопасности для генерируемого AWS Terraform и после записи проверяет каталог terraform/ на соответствие политике. Только чтение: файлы не правит. CX Codex +1 323установок

Из того же набора20

service-remapping Скилл для работы с правилами переименования сервисов Datadog APM: схлопывает шумные inferred-сущности, чистит автоимена, помогает после переименования сервиса. CX Codex +1 478установок dd-audit-compliance-report Собирает доказательства из Datadog Audit Trail под требования SOC 2 и PCI DSS и выдаёт готовый к проверке отчёт. CX Codex +1 477установок dd-audit-cost-spike-investigation Скилл связывает скачок потребления в Datadog с изменениями конфигурации из Audit Trail и показывает, кто и что поменял перед всплеском. CX Codex +1 473установок upgrade-browser-sdk-v7 Ведёт проект с Datadog Browser SDK с версии 6 на 7: находит устаревшие опции, меняет CDN-ссылки и API. Пригодится, когда после обновления сыпятся ошибки конфигурации. CX Codex +1 459установок agent-observability-auto-experiment Гоняет цикл улучшения кода против реальных данных Datadog LLM-Obs: замеряет базовую оценку, вносит одно изменение, пересчитывает и оставляет его, если стало лучше. CX Codex +1 453установок dd-audit-ai-activity Разбирает журнал Audit Trail и показывает, кто из пользователей вызывал инструменты Datadog MCP, что именно менял и где поведение выбивается из обычного. CX Codex +1 433установок onboarding-summary Собирает живой отчёт о том, что Single Step Instrumentation в Kubernetes действительно работает, и даёт ссылки в интерфейс Datadog. CX Codex +1 427установок verify-ssi Скилл проверяет, что Single Step Instrumentation действительно инструментирует поды и трейсер шлёт телеметрию. Запускают после enable-ssi. CX Codex +1 425установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой