# Ollygarden otel declarative config

> Ollygarden otel declarative config is an open-source agent skill for developer tools. Review policy for OpenTelemetry declarative YAML config, following OllyGarden conventions. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ollygarden/skills/tree/main/deprecated/ollygarden-otel-declarative-config
- **Repository:** https://github.com/ollygarden/skills
- **GitHub stars:** 5
- **License:** Apache-2.0
- **Skill name:** ollygarden-otel-declarative-config
- **Collection:** https://github.com/ollygarden/skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill gives the agent OllyGarden's internal review policy for OpenTelemetry declarative YAML files. It is meant for deciding whether declarative configuration fits a given runtime, reviewing an otel.yaml against those conventions, and listing common configuration anti-patterns.

The workflow starts with a gate: the agent identifies the exact runtime and version that will parse the file, then checks whether the required features are released and how the file gets activated. Before migrating, it inventories code-registered processors, samplers and instrumentations so no control is dropped silently. Policy checks then cover a single configuration model, stable service identity without overwriting deployment values, parent-based sampling, exclusion of suppressed endpoints, and batch export in production.

The skill is a deprecated folder and works mostly as guidance rather than scripts, though it ships a Java helper. It defers schema details, file-format versions and SDK wiring to the companion otel-declarative-config skill and the language-specific setup skills.

## When your agent uses it

> OllyGarden's review policy for OpenTelemetry declarative YAML. Use for "should I use declarative config?", "review this otel.yaml against OllyGarden conventions", or "what are OllyGarden's config anti-patterns?" Use with the relevant language setup skill when a runtime is known. Not for schema keys, file-format versions, activation, SDK support, or general SDK wiring; use `otel-declarative-config` and the language skills.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Java scripts](https://github.com/ollygarden/skills/tree/HEAD/deprecated/ollygarden-otel-declarative-config)
- [No network calls found in its scripts](https://github.com/ollygarden/skills/tree/HEAD/deprecated/ollygarden-otel-declarative-config)
- [License: Apache-2.0](https://github.com/ollygarden/skills/tree/HEAD/deprecated/ollygarden-otel-declarative-config)

## Features

- **Declarative config go/no-go gate:** Checks that the target runtime and version support every required feature before recommending YAML.
- **Migration guarantee inventory:** Lists code-registered processors, samplers and detectors so none is removed during a move to file-based config.
- **Resource identity rules:** Covers stable service names, per-replica instance IDs and avoiding hardcoded deployment-varying attributes.
- **Sampling and suppression review:** Applies parent-based sampling and checks that excluded endpoints produce no exported spans.
- **Production export checks:** Favors batch processing and externally configurable exporter endpoints and headers.
- **Behavioral verification steps:** Requires probe traffic and marker tests to prove that migrated controls still work.

## Good for

- Decide whether a service can switch from environment variables to declarative OpenTelemetry YAML
- Review an otel.yaml file against OllyGarden configuration conventions
- Find anti-patterns such as hardcoded instance IDs or duplicated deployment values in a config
- Plan a migration that keeps sensitive-data redaction processors working
- Check that excluded endpoints stop producing spans after a sampling change

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/ollygarden-otel-declarative-config` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ollygarden/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ollygarden-otel-declarative-config &&
cp -R "$tmp/deprecated/ollygarden-otel-declarative-config" ~/.claude/skills/ollygarden-otel-declarative-config &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/ollygarden-otel-declarative-config` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/ollygarden-otel-declarative-config` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ollygarden/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ollygarden-otel-declarative-config &&
cp -R "$tmp/deprecated/ollygarden-otel-declarative-config" ~/.agents/skills/ollygarden-otel-declarative-config &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/ollygarden-otel-declarative-config` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/ollygarden-otel-declarative-config` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ollygarden/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ollygarden-otel-declarative-config &&
cp -R "$tmp/deprecated/ollygarden-otel-declarative-config" ~/.cursor/skills/ollygarden-otel-declarative-config &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/ollygarden-otel-declarative-config` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ollygarden/skills.git --path deprecated/ollygarden-otel-declarative-config
```

Or copy the folder to `~/.gemini/skills/ollygarden-otel-declarative-config` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/ollygarden-otel-declarative-config`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ollygarden/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ollygarden-otel-declarative-config &&
cp -R "$tmp/deprecated/ollygarden-otel-declarative-config" ~/.copilot/skills/ollygarden-otel-declarative-config &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/ollygarden-otel-declarative-config` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ollygarden/skills.git
```

Then copy `skills/deprecated/ollygarden-otel-declarative-config` into your agent's skills folder as `ollygarden-otel-declarative-config`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should Ollygarden otel declarative config trigger?

When the user asks whether to use declarative config, asks for a review of an otel.yaml against OllyGarden conventions, or asks about OllyGarden's config anti-patterns.

### Does Ollygarden otel declarative config cover schema keys or SDK activation?

No. Those questions are meant for the otel-declarative-config skill and the relevant language skills.

### Does Ollygarden otel declarative config need a specific language runtime?

Use it together with the language setup skill when the runtime is known. The skill itself says to confirm runtime and version support before recommending a file.

### How do I install Ollygarden otel declarative config in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/ollygarden-otel-declarative-config to use it in all your projects, or to .claude/skills/ollygarden-otel-declarative-config in one project.

### Does Ollygarden otel declarative config run scripts?

Yes. It runs Java scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Ollygarden otel declarative config?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Ollygarden otel declarative config?

The closest alternatives to Ollygarden otel declarative config are Ollygarden otel js setup, Ollygarden otel go setup, Ollygarden otel java setup, Ollygarden otel collector config decomposition and Ollygarden otel SDK setup.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Ollygarden otel js setup](https://ai-powered.com/skills/ollygarden-otel-js-setup): Ollygarden otel js setup is an open-source agent skill for developer tools.
- [Ollygarden otel go setup](https://ai-powered.com/skills/ollygarden-otel-go-setup): Ollygarden otel go setup is an open-source agent skill for developer tools.
- [Ollygarden otel java setup](https://ai-powered.com/skills/ollygarden-otel-java-setup): Ollygarden otel java setup is an open-source agent skill for developer tools.
- [Ollygarden otel collector config decomposition](https://ai-powered.com/skills/ollygarden-otel-collector-config-decomposition): Ollygarden otel collector config decomposition is an open-source agent skill for developer tools.
- [Ollygarden otel SDK setup](https://ai-powered.com/skills/ollygarden-otel-sdk-setup): Ollygarden otel SDK setup is an open-source agent skill for developer tools.
- [Ollygarden otel manual instrumentation](https://ai-powered.com/skills/ollygarden-otel-manual-instrumentation): Ollygarden otel manual instrumentation is an open-source agent skill for developer tools.
- [Ollygarden otel instrumentation planning](https://ai-powered.com/skills/ollygarden-otel-instrumentation-planning): Ollygarden otel instrumentation planning is an open-source agent skill for developer tools.
- [Ollygarden otel collector config validation](https://ai-powered.com/skills/ollygarden-otel-collector-config-validation): Ollygarden otel collector config validation is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/ollygarden-otel-declarative-config
