agentleFS
radra23radra23/otel-as-code-plugin/.claude/skills/new-backend/SKILL.md

new-backend

Skill1 starsChanged 49 days agoApache-2.0View on GitHub

Scaffold a new observability backend (vendor) for otel-as-code across the vendor list, the terraform-patterns skill, the terraform-gen subagent, and a terraform-validated golden snapshot. Use when adding a vendor such as honeycomb or dynatrace.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 0 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Add the vendor name (one per line) to backends.txt at the repo root.

    line 12
  2. Very specific:

    Add a ## <Vendor> section to skills/terraform-patterns/SKILL.md: provider source + version, auth variables, required resources (dashboard / …

    line 15
  3. Very specific:

    Add a ## <Vendor> main.tf block to agents/terraform-gen.md describing the resources to emit, referencing the skill section.

    line 18
  4. Very specific:

    Update the backend list in README.md and the design docs.

    line 27
  5. Very specific:

    Run /validate-plugin and confirm the new snapshot validates and the CI vendor loop stays green.

    line 30

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Add a new observability backend to otel-as-code

The machine-readable vendor list has a single source (backends.txt). Adding a backend is: register it there, add its per-vendor content, then a validated snapshot. Ask for the vendor name and its Terraform provider source if not given.

1. Register the vendor (single source of truth)

Add the vendor name (one per line) to backends.txt at the repo root. This is the ONLY place the list is enumerated — the CI validate-terraform loop, tests/check-snapshots.sh, the session-summary hook, and /otel-backend's validation all read it.

2. terraform-patterns skill

Add a ## <Vendor> section to skills/terraform-patterns/SKILL.md: provider source + version, auth variables, required resources (dashboard / alerts / SLO), key gotchas, and OTel-specific query examples (PromQL/NRQL/native).

3. terraform-gen subagent

Add a ## <Vendor> main.tf block to agents/terraform-gen.md describing the resources to emit, referencing the skill section.

4. Golden snapshot (validated)

Create tests/snapshots/<vendor>/main.tf.snap:

  • Make it SELF-CONTAINED — declare its own variable blocks with defaults — so CI can terraform validate main.tf standalone (the job copies only main.tf.snap).
  • For an unfamiliar provider, introspect the real schema instead of guessing: after terraform init, run terraform providers schema -json to get exact resource names and required fields.
  • Validate: copy to a temp dir, terraform init -backend=false + terraform validate (download a pinned terraform binary if absent). Iterate until it passes; then terraform fmt.

5. Human-facing docs

Update the backend list in README.md and the design docs. No CI or /otel-backend command edits are needed for the list itself — those read backends.txt.

Verify

Run /validate-plugin and confirm the new snapshot validates and the CI vendor loop stays green.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.