Skip to content
Back to skills

Ld Testing

ASecurity

Run revision-bound forced-off and forced-on tests using isolated TestData.

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

Works with

  • cli

Security analysis

A100/100

Scanned December 1, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Ld Testing?

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

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

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-testing
description: Run revision-bound forced-off and forced-on tests using isolated TestData.
platforms: [all]
metadata:
  write-capable: "true"
triggers:
  - "ld-testing"
  - "Run revision-bound forced-off and forced-on tests using isolated TestData"
  - "test code behind a LaunchDarkly flag"
  - "LaunchDarkly TestData unit tests"
---

# ld-testing

## Behavior

1. Consume flag-states-test inputs flags, suite, revision, workspace and optional project/provider_options. project maps to projectKey. Use the same suite and revision for both states; never contact production.
2. Use an installed SDK TestData source; it is test-only and update simulates streaming changes ([TestData](https://launchdarkly.com/docs/sdk/features/test-data-sources.md)). Run the suite forced off and forced on; restore overrides in finally even when a suite fails. Emit off_exit_code, on_exit_code, revision, flags, approval_ref and evidence_path.
3. Test missing-flag fallback separately. Offline mode serves cached or fallback values; it does not prove targeting ([offline mode](https://launchdarkly.com/docs/sdk/features/offline-mode.md)).
4. For local overrides use ldcli dev-server start and add-override after checking installed help. Use the project key as its credential, never a real SDK credential; dev-server does not evaluate targeting rules ([dev-server](https://launchdarkly.com/docs/guides/flags/ldcli-dev-server.md)). AIWG guidance: CI uses fixtures, TestData or dev-server only. Save language/runtime and actual suite exits; never count a stub as an SDK test.

## Evidence and rules

AIWG guidance: apply `ld-change-authorization`, `ld-key-safety`, `ld-docs-currency` and `ld-flag-hygiene`. Never relay keys from any result. Propose writes and obtain human approval of every production diff before execution. Use ld-docs first; discover runtime vendor guides when available, otherwise use dated page documentation. Uncertainty blocks dependent writes.
Resolve `aiwg artifacts path --json --check-write`; save sanitized records beneath artifact_root at logical `.aiwg/launchdarkly/`. Never save raw tool responses. Link the SDLC card and record actual source retrieval dates; offline references were last verified 2026-11-25.

## Examples

Input: “ld-testing for the selected project and flag card.”
Output: a scoped proposal or read-only report, sanitized evidence, and explicit pending approvals or blockers; only verified results count as complete.

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.