paralect/hive/hive-schema

Claude Code and agent skill by paralect/hive

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

How to create database schemas in Hive framework

Install

npx vskill@latest install paralect/hive/hive-schema

SKILL.md

Creating Database Schemas

Location: /src/resources/{name}/{name}.schema.js

Template

javascript
import { z } from 'zod';
import dbSchema from 'helpers/schema/db.schema.js';
const schema = dbSchema.extend({
// Fields here
});
export default schema;
export const secureFields = []; // Hidden from API responses

Field Patterns

Simple fields:

javascript
title: z.coerce.string().nullable().optional(),
count: z.coerce.number().nullable().optional(),
isActive: z.coerce.boolean().nullable().optional(),
dueOn: z.coerce.date().nullable().optional(),

Reference to another document:

javascript
user: z
.object({
_id: z.string(),
fullName: z.coerce.string().nullable().optional(),
avatarUrl: z.coerce.string().nullable().optional(),
})
.nullable()
.optional(),

Array of references:

javascript
managers: z
.array(
z.object({
_id: z.string(),
fullName: z.coerce.string().nullable().optional(),
}).nullable().optional(),
)
.nullable()
.optional(),

Flexible object:

javascript
data: z.object({}).passthrough().nullable().optional(),

Rules

  • Always use z.coerce for type safety
  • Always add .nullable().optional() unless required
  • Include fields you need in references (for auto-sync)
  • Add sensitive fields to secureFields array

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/paralect/hive/hive-schema/badge)](https://verified-skill.com/skills/paralect/hive/hive-schema)

Something wrong with this skill or its page? Tell us.