Communitygithub.com

hoodini/mongodb

MongoDBデータベースをベストプラクティスに従って操作します。スキーマ設計、クエリ作成、集約パイプライン構築、パフォーマンス最適化の際に使用します。MongoDB、Mongoose、NoSQL、集約パイプライン、ドキュメントデータベース、MongoDB Atlasに関連するタスクでトリガーされます。

mongodb とは?

このスキルは、AIエージェント(Claude Code、Cursor、Codexなど)がMongoDBデータベースを扱う際に、ベストプラクティスに従った設計、クエリ、集約パイプライン、パフォーマンス最適化を支援します。スキーマ設計では、埋め込みと参照の適切な使い分け、インデックス戦略、データモデリングのパターンを推奨します。クエリ作成では、演算子の使用、射影、ソート、ページネーションを効果的に行い、パフォーマンスを考慮した書き方を提供します。集約パイプラインでは、`$match`、`$group`、`$lookup`などのステージを組み合わせた効率的なデータ処理を実現します。また、Mongoose ODMを使用する場合のスキーマ定義やバリデーション、ミドルウェアの設定、MongoDB Atlasのクラスター管理やバックアップ、セキュリティ設定にも対応します。このスキールは、開発者がNoSQLデータベースの強みを活かしつつ、よくある落とし穴を回避するための実践的なガイドを提供します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/hoodini/ai-agents-skills/tree/main/skills/mongodb

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

mongodb は何をしますか?

MongoDBデータベースをベストプラクティスに従って操作します。スキーマ設計、クエリ作成、集約パイプライン構築、パフォーマンス最適化の際に使用します。MongoDB、Mongoose、NoSQL、集約パイプライン、ドキュメントデータベース、MongoDB Atlasに関連するタスクでトリガーされます。

概要

このスキルは、AIエージェントがMongoDBデータベースを効率的かつ安全に操作するためのベストプラクティスを提供します。スキーマ設計からクエリ最適化まで、開発プロセス全体をサポートします。

主な機能

  • スキーマ設計: データモデリングのパターン(埋め込み vs 参照)、インデックス戦略、スキーマバリデーション
  • クエリ作成: 効果的なクエリ演算子の使用、射影、ソート、ページネーション
  • 集約パイプライン: $match, $group, $lookup, $unwind, $project などのステージを組み合わせたデータ処理
  • パフォーマンス最適化: インデックス作成、クエリプロファイリング、スロークエリの特定と改善
  • Mongoose ODM: スキーマ定義、バリデーション、ミドルウェア、仮想プロパティ
  • MongoDB Atlas: クラスター管理、バックアップ、セキュリティ設定、サーバーレスインスタンス

使用例

スキーマ設計

const mongoose = require('mongoose');

const userSchema = new mongoose.Schema({
  name: { type: String, required: true },
  email: { type: String, required: true, unique: true },
  age: { type: Number, min: 0 },
  address: {
    street: String,
    city: String,
    zip: String
  },
  createdAt: { type: Date, default: Date.now }
});

// インデックス
userSchema.index({ email: 1 });
userSchema.index({ age: -1, name: 1 });

集約パイプライン

db.orders.aggregate([
  { $match: { status: "completed" } },
  { $group: { _id: "$customerId", total: { $sum: "$amount" } } },
  { $sort: { total: -1 } },
  { $limit: 10 }
]);

ベストプラクティス

  • スキーマ設計では、頻繁にアクセスするデータを埋め込み、関連データを参照として分離する
  • クエリには常にインデックスを使用し、explain() で実行計画を確認する
  • 集約パイプラインでは、$match をできるだけ早い段階で使用してドキュメント数を絞り込む
  • $lookup の使用は最小限に抑え、可能な限りデータモデルを最適化する
  • MongoDB Atlasでは、自動バックアップとスケーリングポリシーを設定する

トリガーキーワード

MongoDB、Mongoose、NoSQL、集約パイプライン、ドキュメントデータベース、MongoDB Atlas、スキーマ設計、インデックス、クエリ最適化

対応プラットフォーム

  • Claude Code
  • Cursor
  • Codex
  • その他のAIエージェント

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

hoodini/ai-agents-skills

Edit any selfie or screen-share footage into a viral short-form video in YUV.AI's signature style — Apple-style liquid-glass cards (real CSS backdrop-filter), dark-mode polish, MrBeast-paced cuts, video-title karaoke captions, premium GSAP motion graphics, no fake content, never covering the speaker's face. Hebrew is rendered in Rubik Black, English in Anton uppercase. Always renders BOTH 9:16 and 16:9 and always saves with _V<N> suffix for backups. Trigger when the user drops a path to an .mp4/.mov/.mkv and says "edit this", "make it viral", "turn this into a short", or any Hebrew equivalent (ערוך סרטון, סרטון ויראלי, להפוך לוויראלי, ריל, שורט). The pipeline is the COMBINATION of two skills: video-use (transcription + word-snapped cuts + base extraction) and hyperframes (HTML/CSS/GSAP visual composition + render). Do NOT use for podcast-only audio edits.

hoodini/ai-agents-skills

Yuval's all-in-one AI video pipeline. Turns an idea/script into a finished, on-brand MP4 by orchestrating HyperFrames (HTML→deterministic video render), Lottie (branded motion graphics), ManimCE (math / neural-network / concept animations), and a transcribe→approve caption flow — all wrapped in the YUV.AI Neon Phoenix brand via a frame.md. Use whenever Yuval wants to make, edit, or explain something as a video: promo, explainer, launch, social reel, "make a video about X", "explain X as a video", "neural network animation", "turn this into a video", captioned tutorial, 16:9 or 9:16. Triggers: video, explainer, promo, reel, manim, lottie, hyperframes, animation, "make a video", "explain ... as a video", מצגת וידאו, סרטון, הסבר וידאו. Routes each beat to the right engine, wraps in brand, self-verifies, and renders.

hoodini/ai-agents-skills

Build a premium cinematic landing page with mouse-scrub video hero and brand-driven narrative-arc sections. Use whenever the user provides a hero video plus a product / subject / brand and wants a landing page, promo site, product showcase, marketing page, or storytelling site. Works for any language (RTL or LTR — Hebrew, English, Arabic, Spanish, French, Japanese, etc.) and any subject (food, tech, animals, fashion, services, SaaS, wildlife campaigns, music releases, books, real estate). The signature effect is mouse-driven video scrubbing — the hero video lives across the entire page as a fixed backdrop, and moving the mouse left-right scrubs the video timeline so the subject responds to the cursor. Below the hero, 4-5 fully-opaque sections each carry their own brand identity (color, typography emphasis, layout pattern) and walk the viewer through a narrative arc (e.g. longing → joy → nostalgia → contemplation → action). Triggers on phrases like "build a landing page from this video", "cinematic landing ...

hoodini/ai-agents-skills

Build a scroll-driven cinematic landing page from a short video. The user provides a 5–15 second video (often AI-generated); this skill extracts every frame at HD JPEG quality, then produces a single-hero HTML page where the user's scroll gesture scrubs the frames in place (the page itself never scrolls) and 5 dramatic text overlays crossfade in/out — Google Anton headlines, Caveat handwritten accents, locked body, virtual scroll. Use this skill whenever the user wants to "turn this video into a landing page", "make a scroll-scrub landing page", "build a parallax hero from this clip", "add a new landing page to the parasites showcase", "do the same as github/lion/hope for this new video", or any variant that pairs a short clip with dramatic scroll-triggered storytelling. Trigger even if the user only says "use my video for a landing page" — that is this skill.

hoodini/ai-agents-skills

Edit any video into a captioned showcase — transcribe (any language, defaults to large-v3), present a transcript_review.txt for the user to fix mishears BEFORE rendering, then build a HyperFrames composition with liquid-glass caption pills, liquid blob background, liquid morph wipes, optional behind-subject text via background removal, and render the final video. Use whenever the user provides a video file and asks to edit it, caption it, add subtitles, fix existing captions, make a reel/promo/captioned tutorial, or "do the same" pattern as a prior captioned video. Supports English, Hebrew, and any Whisper-supported language. **Renders both 16:9 (YouTube / horizontal) and 9:16 (TikTok / Instagram Reels / YouTube Shorts) from the SAME 16:9 source** — vertical mode uses a centered footage strip with a blurred backdrop + liquid blobs and a vertical-tuned caption pill, no need to re-shoot. THE PIPELINE PAUSES FOR USER APPROVAL on the transcript before final render — this is the support mechanism for getting ca...

hoodini/ai-agents-skills

Turn any video into a cinematic scroll-driven landing page — Apple-style hero where scrolling progresses the visible frame through the video. Use when the user provides a video file and asks for "a landing page from this video", "scroll-frame website", "Apple-style scroll site", "hero that scrubs the video", "like the GitHub Copilot landing", or any equivalent. Extracts N evenly-spaced frames via ffmpeg, builds a self-contained HTML page with a sticky hero + JS scroll listener that swaps the visible frame as you scroll, plus headline, sections and CTA below. For YUV.AI projects, applies the yuv-design-system skill in Neon mode (pink/cyan/white, default for YUV.AI web) — Decks (purple/yellow) is reserved for slides only. For generic / non-YUV.AI projects, picks an appropriate palette per the source video. Output is one folder with `index.html` and a `frames/` directory — drop on any static host.

hoodini/ai-agents-skills

Yuval Avidani's YUV.AI brand and design system. Apply ONLY when YUV.AI-branded output is requested — presentations, decks, keynotes, portfolio, brand site, profile, speaker bio, brand assets, or any prompt mentioning YUV.AI / "my brand" / "my deck" / "my site" / "for me". Do NOT auto-trigger on generic "build a game / web app / dashboard / landing page" without YUV.AI context — those use whatever palette fits. Three modes; NEON (hot pink #FF1464 + neon cyan #00E5FF + white, DEFAULT for YUV.AI web, apps, games, dashboards, social, general visual work); DECKS (Fly High purple/yellow/grey, presentations and slides ONLY); Warm Editorial (pink/yellow/bone for Hope, Marcus, bigcats.ai, practical.yuv.ai). Universal Fly High throughline across all modes; flight/progress motifs (HUD strips, dials, "Let's Fly High" tagline, phoenix mark). Anton + Inter (EN), Rubik + Assistant (HE), letter-spacing 0 default. Bundled brand assets, canonical socials, credentials. Project brand wins if specified.

hoodini/github-trending

Fetch and display GitHub trending repositories and developers. Use when building dashboards showing trending repos, discovering popular projects, or tracking GitHub trends. Triggers on GitHub trending, trending repos, popular repositories, GitHub discover.

hoodini/owasp-security

Implement secure coding practices following OWASP Top 10. Use when preventing security vulnerabilities, implementing authentication, securing APIs, or conducting security reviews. Triggers on OWASP, security, XSS, SQL injection, CSRF, authentication security, secure coding, vulnerability.

関連スキル