Awesome-omni-skill hive-overview

Hive framework structure and conventions. Apply when working with this codebase.

install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/development/hive-overview" ~/.claude/skills/diegosouzapw-awesome-omni-skill-hive-overview && rm -rf "$T"
manifest: skills/development/hive-overview/SKILL.md
source content

Hive Framework Overview

Hive is a Koa-based Node.js framework with MongoDB, Zod validation, and auto-sync for embedded documents.

Directory Structure

DirectoryPurposeEdit?
/.hive/
Framework coreNo - read only
/src/
Application codeYes

Resources

A resource is a feature module in

/src/resources/{name}/
:

src/resources/{name}/
├── {name}.schema.js      # Required: DB schema
├── endpoints/            # API routes
├── handlers/             # Event listeners
└── methods/              # Reusable functions

Built-in (in .hive/)

  • tokens
    - Auth token storage
  • users
    - Base user schema
  • db
    - Database layer with services

Key Imports

import db from 'db';                    // Database
import config from 'app-config';        // Config
import { z } from 'zod';                // Validation

Services Access

const taskService = db.services.tasks;  // Auto-created from schema