.cursor/skills/add-repository-feature/SKILL.md
Scaffold and integrate a new Zelf backend repository feature. Use when adding a new `Repositories/<Feature>/` area, using the repository generator, or wiring a new backend module into the Koa route registries.
npx skillsauth add Open-Verifik/zelf-online-version add-repository-featureInstall 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.
Use this skill when creating a new backend feature area.
The repo includes a scaffold generator at scripts/generate/repository/index.js.
Typical usage:
node scripts/generate/repository/index.js --table=table_name --modelName=Sample --pk=sampleId
It generates these folders under Repositories/<ModelName>/:
middlewaresmodelsmodulescontrollersroutesThe generator’s final reminder mentions api.routes.js, which does not reflect the current Koa entrypoint layout. Use the generator as a starting point, then wire the feature into:
Routes/unprotected-repositories.js, orRoutes/protected-repositories.jsdepending on whether the endpoint is public or JWT-protected.
Utilities/model-registry.js or other shared wiring needs updating.development
Run, configure, and verify the Zelf backend API. Use when working on backend setup, local execution, tests, Mongo requirements, route verification, or docs-related backend workflows.
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.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.