Add a new configuration field to the Datadog Agent (datadog.yaml)
npx skills add https://github.com/DataDog/datadog-agent --skill create-config-field
Add a new configuration field to a Datadog Agent. This involves registering the key with defaults/env bindings in Go, and optionally documenting it in the config template.
There are two separate config objects, each with their own Go init function. Within the core agent config, many subsystems have dedicated setup functions and template sections.
| Config object | Config file | Go init function |
|---|---|---|
| Core Agent | datadog.yaml | InitConfig() in pkg/config/setup/config.go |
| System Probe | system-probe.yaml | InitSystemProbeConfig() in pkg/config/setup/system_probe.go |
| Subsystem | Go setup function | Template conditional | Key prefix examples |
|---|---|---|---|
| Common / General | agent() or inline in InitConfig() | .Common, .Agent | api_key, hostname, site |
| Logs Agent | logsagent() | .LogsAgent | logs_config.* |
| APM / Trace Agent | setupAPM() in apm.go | .TraceAgent | apm_config.* |
| Process Agent | setupProcesses() in process.go | .ProcessAgent | process_config.* |
| DogStatsD | dogstatsd() | .Dogstatsd | dogstatsd_* |
| Security Agent | via InitConfig() | .SecurityAgent | security_agent.* |
| Cluster Agent | via InitConfig() | .ClusterAgent | cluster_agent.* |
| OTLP | OTLP() in otlp.go | .OTLP | otlp_config.* |
| Subsystem | Go setup function | Template conditional | Key prefix examples |
|---|---|---|---|
| General | InitSystemProbeConfig() | .SystemProbe | system_probe_config.* |
| CWS | initCWSSystemProbeConfig() in system_probe_cws.go | .SecurityModule | runtime_security_config.* |
| USM | initUSMSystemProbeConfig() in system_probe_usm.go | .UniversalServiceMonitoringModule | service_monitoring_config.* |
| Network | via InitSystemProbeConfig() | .NetworkModule | network_config.* |
Use AskUserQuestion to collect the following. If $ARGUMENTS provides the config key name, skip that question.
datadog.yaml) or System Probe (system-probe.yaml)?my_feature.enabled): the YAML path.pkg/config/setup/<feature>.go) for a group of related fields?datadog.yaml, system-probe.yaml, ...) show this setting?Find the right subsystem function from the tables above and add the binding. Use Grep if unsure where related keys live.
config.BindEnvAndSetDefault("my_feature.enabled", false)
For a group of related fields, create pkg/config/setup/<feature>.go with a dedicated setup function, then call it from the appropriate init function. Read an existing setup file (e.g. pkg/config/setup/apm.go) for the pattern.
For serverless-compatible core agent fields, register via the serverlessConfigComponents slice in config.go instead of directly in InitConfig.
The example yaml configs (datadog.yaml, system-probe.yaml, etc.) are rendered from the enriched schema under pkg/config/schema/yaml/. The schema is derived from the running agent, so build first, then regenerate:
dda inv agent.build --build-exclude=systemd
dda inv schema.generate --agent-bin=./bin/agent/agent
Commit the resulting changes under pkg/config/schema/yaml/ alongside your Go code.
dda inv linter.goBindEnvAndSetDefault(key, default, envVars...) — Preferred. Registers key, sets default, binds DD_* env var.SetDefault(key, value) — Default without env binding.BindEnvAndSetDefault("my_feature.timeout", 30) auto-creates DD_MY_FEATURE_TIMEOUT. Custom alias: BindEnvAndSetDefault("my_feature.timeout", 30, "DD_MY_TIMEOUT").
default < file < env-var < fleet-policies < agent-runtime < remote-config < cli./create-config-field — Interactive: prompts for all details/create-config-field my_feature.enabled — Pre-fills the key nameIntegration with protocols.io API for managing scientific protocols. This skill should be used when working with protocols.io to search, create, update, or publish protocols; manage protocol steps and materials; handle discussions and comments; organize workspaces; upload and manage files; or integrate protocols.io functionality into workflows. Applicable for protocol discovery, collaborative protocol development, experiment tracking, lab protocol management, and scientific documentation.
Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances
Generate Excalidraw diagrams from natural language descriptions. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", or "generate an Excalidraw file". Supports flowcharts, relationship diagrams, mind maps, and system architecture diagrams. Outputs .excalidraw JSON files that can be opened directly in Excalidraw.
Build and distribute Expo development clients locally or via TestFlight
Use when you have a written implementation plan to execute in a separate session with review checkpoints
Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.
Benchling R&D platform integration. Access registry (DNA, proteins), inventory, ELN entries, workflows via API, build Benchling Apps, query Data Warehouse, for lab data management automation.
Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use bioservices.
Take datadog/create-config-field from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.