Skip to content
Back to skills

Validate Plugin

ASecurity

Run the local validation suite for the otel-as-code plugin before committing or opening a PR — hook tests, fixture integrity, plugin.json manifest checks, shell syntax, and terraform-validate on every committed snapshot. Covers the GitHub Actions CI checks plus extra local-only sanity.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 21, 2026
developmentpythonshellbashnodenodejsdockerterraformgitbackend

Works with

  • cli

Security analysis

A100/100

Scanned November 23, 2026

npx -y skills add radra23/otel-as-code-plugin --skill validate-plugin --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Validate Plugin?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Validate Plugin
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/radra23-validate-plugin/badge)](https://www.skillsdirectory.com/skills/radra23-validate-plugin)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: validate-plugin
description: Run the local validation suite for the otel-as-code plugin before committing or opening a PR — hook tests, fixture integrity, plugin.json manifest checks, shell syntax, and terraform-validate on every committed snapshot. Covers the GitHub Actions CI checks plus extra local-only sanity.
disable-model-invocation: true
metadata:
  internal: "true"
---

# Validate the otel-as-code plugin

Run the project's CI checks locally (plus a couple of local-only sanity checks) and report a concise PASS/FAIL per group plus an overall verdict. On failure, show the failing command's output.

## 1. Hook tests (CI: lint-hooks)
Iterate every suite under `tests/hooks/` — do NOT hardcode the list, so new tests run automatically:
```bash
for t in tests/hooks/*.test.sh; do echo "== $t =="; bash "$t" || exit 1; done
```

## 2. Fixture integrity (CI: validate-fixtures)
- **nodejs-greenfield**: `package.json`, `index.js`, `Dockerfile` exist AND `package.json` has NO `@opentelemetry` dependency.
- **python-greenfield**: `pyproject.toml`, `app.py`, `Dockerfile` exist AND `pyproject.toml` has NO `opentelemetry` dependency.
- **nodejs-brownfield**: `tracing.js` exists AND still contains the three seeded violations — `service.name` as a span attribute, `http.method`, and un-namespaced `orderId` — which the lint tests assert against.

## 3. Plugin manifest & structure (CI: validate-plugin-manifest)
- `claude plugin validate . --strict` — must pass. Validates `plugin.json` (metadata-only), `marketplace.json`, and the auto-discovered components (`commands/*.md`, `agents/*.md`, `skills/<name>/SKILL.md`, `hooks/hooks.json`).
- If the `claude` CLI isn't available: confirm both `.claude-plugin/plugin.json` and `.claude-plugin/marketplace.json` are valid JSON, plugin.json declares NO inline component arrays, and the convention dirs/files exist.

## 4. Shell sanity (local-only — no CI equivalent)
- `bash -n` on every `hooks/*.sh` and `tests/**/*.sh`.

## 5. Terraform snapshots (CI: validate-terraform)
For each `tests/snapshots/<vendor>/main.tf.snap`:
- Copy it to a temp dir as `main.tf`, then `terraform init -backend=false -input=false` + `terraform validate`.
- `terraform` is NOT installed locally — download a pinned binary (e.g. 1.7.x from `releases.hashicorp.com`) to a temp path and use that. (CI installs it via `hashicorp/setup-terraform`.)
- Run the snapshot loop under `bash -eo pipefail` to match CI semantics (the local shell is zsh, which behaves differently on glob no-match).

## Report
One line PASS/FAIL per group (hooks / fixtures / manifest / shell / terraform) and an overall verdict. This is the gate to clear before committing.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.