Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

golden-tests

Skill by l3p-cv

Generates golden-snapshot API test coverage for new LOST FastAPI endpoints and namespaces. It is for developers working in the LOST repository's backend test suite.

  • Score 81
  • 581 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install golden-tests

Built from the published package, never by AI.

git clone --depth 1 https://github.com/l3p-cv/lost /tmp/lost && mkdir -p ~/.claude/skills && cp -r /tmp/lost/.opencode/skills/golden-tests ~/.claude/skills/golden-tests

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install golden-tests in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill adds golden-snapshot API tests to the LOST backend. It works with the backend/tests compare harness, using RouteSpec spec files, runners, and recorded golden files. For each request it decides whether the work is an endpoint or a namespace. Endpoint requests append RouteSpec entries to the existing specs file. Namespace requests create a specs file, runner, golden directory, and MIGRATED registration.

The skill checks that the harness files exist before it starts. It then delivers the generated code along with the record and verify commands. The source says it should be used only in the LOST repository for its backend golden-snapshot suite, not for other test suites.

Written from the project's SKILL.md and checked against it.

What it can do

  • Request classificationSorts each argument as an endpoint request or a namespace request and maps URL prefixes to harness names.
  • Endpoint flowAppends RouteSpec entries to an existing <name>_specs.py file for new routes.
  • Namespace flowCreates a specs file, runner, golden directory, and MIGRATED registration for a new namespace.
  • Gap scanLists a module's routes, compares them with covered paths, and covers the missing ones.
  • Skip handlingSkips non-deterministic, destructive, or binary-download routes with a documented skip_reason.
  • Record and verify commandsProvides run_snapshots.sh commands to record new specs only, verify them, or run the full suite.

What you need

  • A LOST repository with the backend/tests harness
  • backend/tests/helpers/specs.py present
  • backend/tests/compare/migration_status.py present
  • backend/run_snapshots.sh present

Try asking

  • Add golden tests for GET /api/pipeline/project/global
  • Create golden test coverage for a new triton namespace
  • Run a gap scan on the group specs and cover missing routes

Good to know

  • Only for the LOST repository's backend golden-snapshot suite.
  • Stops and reports if the harness files are missing.
  • A namespace needs its router mounted in fastapi_app.py before the flow runs.
  • Auth routes are covered by mocked-IDP tests, not golden snapshots.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .opencode/skills/golden-tests/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB
  • references/harness-map.md7 KB
  • references/namespace-flow.md9 KB
  • references/spec-patterns.md5 KB

Alternatives to golden-tests

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

golden-tests: common questions

When should I use golden-tests?

Use it when adding golden tests, snapshots, or API coverage for a new LOST endpoint or namespace. The source says it must not be used for other test suites.

Does it re-record goldens to fix failing tests?

No. The source says failures must be root-caused first, and only new specs should be recorded with -k.

Where do the generated specs go?

Endpoint specs are appended to the existing backend/tests/compare/<name>_specs.py file. Golden outputs go to backend/tests/golden/<name>/.

How do I install golden-tests?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is golden-tests free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is golden-tests safe to use?

It scores 81 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to golden-tests?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

golden-tests Install

Add to stack

Loading.