odc-api
Skill by DouglasNeuroInformatics
Guides changes to the apps/api service of the ODC repository, covering endpoints, route access guards, row scoping, Prisma models, CASL permissions and environment variables. It is for developers working on clinical data access in that codebase.
Install odc-api
Built from the published package, never by AI.
git clone --depth 1 https://github.com/DouglasNeuroInformatics/OpenDataCapture /tmp/OpenDataCapture && mkdir -p ~/.claude/skills && cp -r /tmp/OpenDataCapture/.agents/skills/odc-api ~/.claude/skills/odc-apiRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/DouglasNeuroInformatics/OpenDataCapture /tmp/OpenDataCapture && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/OpenDataCapture/.agents/skills/odc-api ~/.gemini/antigravity-cli/skills/odc-apiAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a set of working rules for changing apps/api, the API service in the ODC repository. It explains that access is decided in two separate places: a route guard set by the @RouteAccess decorator, and a row scope applied through accessibleQuery in the Prisma where clause. It warns that the scope is not checked by any compiler or test, so a developer must read each query. It also covers the two lists of permission subjects that must stay in agreement, the consumers outside the compiler's reach such as the web hooks, the CLI and the e2e test client, and which playbook files to open for each kind of change. It is written for developers and AI assistants editing this codebase, especially when asked who can see or do what.
Written from the project's SKILL.md and checked against it.
What it can do
- Endpoint and controller changesPoints to the endpoint playbook and the libnest notes before adding or reshaping an endpoint.
- Route access reviewExplains how to pick a @RouteAccess value and which values grant public or any-user access.
- Row scope checksRequires every Prisma query in a change to name accessibleQuery or state why it is unscoped.
- Permission list alignmentKeeps the user-grantable subject list and the CASL subject list in agreement for a model.
- Environment variable changesPoints to the playbook for declaring a new variable in apps/api and apps/gateway.
- Consumer tracingLists the web hooks, CLI and e2e client that must be checked when an endpoint path changes.
Try asking
- Add a new endpoint to apps/api and check its row scoping and route access.
- Who can see the audit logs in this API? Check the route access rules.
- Add a new environment variable to apps/api and the gateway config.
Good to know
- Row scoping and route guard values are not checked by the compiler or tests.
- Written as guidance for the ODC repository, not a general tool.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/odc-api/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to odc-api
All alternatives →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.
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.
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.
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.
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.
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.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
odc-api: common questions
What does the odc-api skill do?
It gives rules for changing the apps/api service, including endpoints, route guards, row scoping, Prisma models, CASL permissions and environment variables. It also explains who can see or do what in that API.
Why does the skill stress row scoping?
The source says accessibleQuery returns an empty where when no ability is passed, which reads every group's rows. No compiler or test catches this, so the skill asks the developer to read every query.
Who is this skill for?
It is for developers and AI assistants changing the apps/api code in the ODC repository. The source describes it as the guide for that codebase.
How do I install odc-api?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is odc-api free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is odc-api safe to use?
It scores 64 of 100. Grades: maintenance A, licence A, quality B. 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 odc-api?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
