← スキル一覧に戻る

core-development
by ueberBrot
MongoDB-backed job scheduler for Node.js with atomic locking, retries (exponential backoff), cron scheduling, and event-driven observability.
⭐ 3🍴 1📅 2026年1月23日
SKILL.md
name: core-development description: Guidelines for adding functionality to the @monque/core package. Use this when implementing new features, fixing bugs, or refactoring code in the core package.
Core Development Skill
This skill provides guidelines for developing within the @monque/core package.
When to use this skill
- When adding new features to
@monque/core(e.g., new job types, scheduling logic, event handling). - When modifying existing core functionality.
- When writing tests for
@monque/core.
How to use it
File Structure
All source code should reside in the src/ directory.
src/index.ts: Public API exports.src/jobs/: Job definitions and logic.src/scheduler/: Scheduler implementation.src/events/: Event definitions and handling.
Coding Guidelines
- Types: Use strict TypeScript. Avoid
any. Define interfaces for all data structures. - Async/Await: Use
async/awaitfor asynchronous operations. - Error Handling: Use typed custom errors where possible.
- Documentation:
- MANDATORY: All exported functions, classes, and interfaces MUST have TSDoc comments (
/** ... */). - This is required for TypeDoc to generate the API documentation.
- Include
@param,@returns, and@exampletags where appropriate.
- MANDATORY: All exported functions, classes, and interfaces MUST have TSDoc comments (
- Exports:
- NO Barrel Exports: Do not use
export * from '...'. - Explicit Exports: Always use named exports (e.g.,
export { MyClass } from './MyClass'). - This ensures better tree-shaking and clarity in the API surface.
- NO Barrel Exports: Do not use
Testing Requirements
-
Unit Tests:
- Located alongside source files or in
tests/unit/. - Must mock external dependencies (e.g., MongoDB).
- Run with
bun run test:unit.
- Located alongside source files or in
-
Integration Tests:
- Located in
integration/. - Use
testcontainersfor real MongoDB instances (handled by the test setup). - verification of database interactions is required.
- Run with
bun run test:integration.
- Located in
Adding a New Feature
- Define Interface: Create types/interfaces in a relevant file.
- Implement Logic: Write the core logic in
src/. - Unit Test: Create a unit test to verify logic in isolation.
- Integration Test: Create an integration test to verify database interactions.
- Export: Export necessary symbols in
src/index.ts.
スコア
総合スコア
75/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
レビュー
💬
レビュー機能は近日公開予定です

