add-malli-schemas

Define Malli schemas for Metabase API route, query, body, and response parameters.

1|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/bradoctech/metabase --skill add-malli-schemas-bradoctech
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-malli-schemas
Source: https://github.com/bradoctech/metabase/tree/main/.claude/skills/add-malli-schemas
Command: npx skills add https://github.com/bradoctech/metabase --skill add-malli-schemas-bradoctech

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill streamlines the process of adding Malli schemas to API endpoints within the Metabase codebase, ensuring consistency, validation, and clear error handling.

Core Features & Use Cases

  • Schema Definition: Define schemas for route parameters, query parameters, request bodies, and responses.
  • Validation Timing: Understand and correctly apply schemas at different stages of the request/response lifecycle.
  • Error Handling: Implement custom error messages for validation failures.
  • Use Case: When developing a new API endpoint in Metabase, use this skill to quickly and correctly add comprehensive Malli schemas for all parameters and responses, preventing runtime errors and improving API robustness.

Quick Start

Use the add-malli-schemas skill to add a response schema for the GET /api/users/:id endpoint.

Frequently Asked Questions about add-malli-schemas

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Malli schemas to Metabase API endpoints?

To add Malli schemas to Metabase API endpoints, define schemas for route parameters, query parameters, request bodies, and responses. This ensures comprehensive data validation and clear error handling across the request and response lifecycle.

What is the best way to validate request bodies and query parameters in Clojure APIs?

Validating request bodies and query parameters in Clojure APIs is best handled by applying Malli schemas at specific stages of the request lifecycle. This approach provides robust data validation and prevents runtime errors by catching malformed inputs early.

Does Metabase support custom error messages for Malli schema validation failures?

Yes, Metabase supports custom error messages for Malli schema validation failures. You can implement tailored error handling to provide clear feedback when route, query, or body parameters fail validation checks.

When do I need to define response schemas for Metabase API routes?

You need to define response schemas for Metabase API routes when you want to guarantee consistent output structures and prevent unexpected data shapes. Applying schemas to responses ensures comprehensive API safety and robust data contracts.

Can I use Metabase internal schema utilities with the Malli library for API validation?

Yes, you can leverage Metabase internal schema utilities alongside the Malli library to facilitate API validation. This combination allows you to correctly apply schemas at different validation timing stages for route and body parameters.