.claude/skills/gen-test/SKILL.md
Generate unit tests for nd-mock API endpoints
npx skillsauth add allenrobel/nd-mock gen-testInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generate pytest unit tests for the specified endpoint module, following the project's established testing patterns.
fastapi.testclient.TestClient with an in-memory SQLite databasetests/unit/common.py: client_fixture, session_fixturedata_loader.py and load_test_data() helpertest_{version}_{resource}_{method}_{number} (e.g., test_v1_fabric_post_100)inspect.currentframe().f_code.co_name to load its corresponding test dataendpoint argumenttests/unit/ to match the style exactlyload_test_data() helper functionresponse.status_code and response.json() structuredata/ subdirectorypytest on the new test file to verify it passestesting
Regenerate docs/supported_endpoints.md by running utils/docs_generate.py and verify it matches current endpoint registrations in app/main.py
development
Scaffold a new API endpoint with models, router, main.py registration, and test stubs based on schema/manage.json or schema/infra.json definitions
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.