k9-ownership-byod-setup
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.
What this skill does
# 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 |
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.