ソース情報
- リポジトリ
- paralect/hive
- ソースの最終更新活動
- 2026年2月13日 16:15
- 検出された SKILL.md の言語
- 英語
- スター
- 0
- フォーク
- 0
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
メニュー
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/paralect/hive --skill hive-databaseコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
SOC 職業分類に基づく
SKILL.md を表示中
| name | hive-database |
| description | Database operations in Hive framework |
| globs | ["src/**/*.js"] |
| alwaysApply | false |
import db from 'db';
const taskService = db.services.tasks; // From schema name
// Find many
const { results, pagesCount, count } = await service.find(
{ status: 'active' },
{ page: 1, perPage: 20, sort: '-createdOn', fields: ['_id', 'title'] }
);
// Find one
const doc = await service.findOne({ _id: id });
// Check exists
const exists = await service.exists({ _id: id });
// Count
const total = await service.count({ status: 'active' });
// Distinct values
const statuses = await service.distinct('status');
// Aggregate
const { results } = await service.aggregate([
{ $match: { status: 'done' } },
{ $group: { _id: '$project._id', count: { $sum: 1 } } },
]);
// Create
const doc = await service.create({ title: 'New', user: ctx.state.user });
// Update one (must use function)
const updated = await service.updateOne(
{ _id: id },
(doc) => ({ ...doc, title: 'Updated' })
);
// Update many
await service.updateMany(
{ status: 'pending' },
(doc) => ({ ...doc, status: 'active' })
);
// Remove
await service.remove({ _id: id });
// Generate ID
const newId = service.generateId();
// Silent bulk update
await service.atomic.update(
{ 'project._id': projectId },
{ $set: { 'project.name': newName } },
{ multi: true }
);
import { when } from 'services/utils';
const { results } = await service.find({
// Conditional fields
...when(status, { status }),
...when(userId, { 'user._id': userId }),
// Complex conditions
status: { $in: ['active', 'pending'] },
createdOn: { $gte: startDate, $lt: endDate },
$or: [{ 'user._id': id }, { isPublic: true }],
});
updateOne requires a function, not an objectatomic.update for bulk/silent updateswhen() helper for conditional query building