Skip to content
Back to skills

Ld Doctor

ASecurity

Diagnose LaunchDarkly credential classes, intended SDK placement, region, plan signals and SDK version without disclosing values.

  • 233 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentsapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add jmagly/aiwg --skill ld-doctor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ld Doctor?

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

Security grade badge for Ld Doctor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jmagly-ld-doctor/badge)](https://www.skillsdirectory.com/skills/jmagly-ld-doctor)

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
---
namespace: aiwg
name: ld-doctor
description: Diagnose LaunchDarkly credential classes, intended SDK placement, region, plan signals and SDK version without disclosing values.
platforms: [all]
triggers:
  - "diagnose LaunchDarkly connection"
  - "check LaunchDarkly SDK key"
---

# ld-doctor

## Behavior

1. Invoke `ld-docs` for [environment keys](https://launchdarkly.com/docs/home/account/environment/keys.md), [API tokens](https://launchdarkly.com/docs/home/account/api.md) and [plans](https://launchdarkly.com/docs/home/account/plans.md). Do not ask for a credential value. Use private local inspection returning only a classification; never read auth/token files into model context.
2. The pure local helper `scripts/doctor.mjs` exports `classifyCredential(value, intendedUse)`. It consumes an in-memory value and returns only class, placement and mismatch; it does no I/O. Use `server`, `mobile`, `client` or `api` as intended use. AIWG guidance: these shapes are local diagnostic heuristics, not a vendor format guarantee or proof of validity:

| Shape | Classification | Intended placement |
|---|---|---|
| `sdk-` plus nonempty suffix | server SDK key | server only |
| `mob-` plus nonempty suffix | mobile key | mobile SDK |
| `api-` plus nonempty suffix | API access token | management client, local secret store |
| exactly 24 hexadecimal characters | client-side ID | client SDK, never server SDK authentication |
| other/missing | unknown | stop and verify privately |

3. If a client-side ID is offered as an SDK key, report “client-side ID; server SDK requires a server key” without a fragment of the value. Do not attempt a live probe with the wrong type. Apply the same mismatch stop to mobile/API credentials.
4. Establish region from operator metadata, not key shape. Check selected transport and endpoint with `ld-connect`. Unknown region is blocked. Do not infer region or subscription from a credential prefix.
5. Inspect dependency manifests/lockfiles for installed SDK name/version and runtime; consult the matching current vendor page before recommending an upgrade. Inspect intended credential placement without reading secret files; flag browser-exposed server variables/bundle wiring by variable name only.
6. Record plan signals as observed, unavailable, denied or unknown per capability, with source and date. The plans page names Developer, Foundation and Enterprise but also contains conflicting tier wording; token eligibility differs across [API token](https://launchdarkly.com/docs/home/account/api.md) and [creation](https://launchdarkly.com/docs/home/account/api-create.md) docs. Do not infer entitlement from a successful trial or a 403. Offer a manual supported path or defer, never purchase/upgrade.
7. Return sanitized checks (class, mismatch, region, transport, SDK version, permission/plan uncertainty and remediation). No raw responses or credential values, including unsolicited client/mobile fields.

## Examples

Input: synthetic 24-hex value supplied locally with intended use `server`.
Output: `{ "kind": "client-side-id", "placement": "client", "mismatch": true }`; stop server authentication and guide private correction.


## Rules and references

Apply all four bound rules: `ld-key-safety`, `ld-change-authorization`, `ld-docs-currency`, `ld-flag-hygiene`.
See @$AIWG_ROOT/docs/addons/launchdarkly/user-guide.md.

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 ai-agents →

Comments

Loading comments…

Newsletter

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