← スキル一覧に戻る

backend-development
by nirukk52
Created by Leap: https://leap.new
⭐ 1🍴 0📅 2025年12月9日
SKILL.md
name: backend-development description: Integration-first development patterns for Encore.ts backend services. Focuses on importing subscriptions, polling async flows, verifying database state, and keeping diagnostic tooling close at hand.
Backend Development Skill
Mission
Ship reliable Encore.ts services by exercising the full flow—API call, worker execution, projector persistence, and database validation—inside every test cycle. This skill outlines the core loop and points to detailed playbooks in references/.
When to Use
- Creating or updating Encore.ts services or subscriptions
- Writing integration tests that cover PubSub + database interactions
- Diagnosing flaky backend tests before handing off to QA or FE
- Preparing backend changes for CI, smoke tests, or release gates
Development Loop
- Plan the flow – Identify required subscriptions, services, and database tables; note expectations in Graphiti.
- Import dependencies – Bring subscriptions/services into the test runtime to mirror production wiring.
- Execute via Encore client – Call the service using generated types, not manual fetches.
- Poll for completion – Use polling helpers (no fixed sleeps) until the worker finishes or times out.
- Assert database + logs – Verify rows, outcomes, and structured log fields against expectations.
- Clean up + document – Remove test data, note findings in Graphiti, and link any new scripts or helpers.
Quick Command Set
cd backend && encore dev # Local dev server
cd backend && encore test # Full test suite
cd backend && encore test path/to.test.ts # Focused integration test
cd .cursor && task backend:test # Automation layer entry point
cd .cursor && task backend:logs # Stream structured logs
Quality Gates
- Subscriptions imported for every PubSub interaction
- Services and repositories typed end-to-end (no
anyor untyped SQL results) - Polling loops with bounded timeouts instead of
setTimeout - Database cleaned after each integration test run
- Structured logging uses
encore.dev/logwithmodule,actor, and identifiers
Reference Library
references/integration_test_patterns.md– Step-by-step pattern for polling, cleanup, and database verificationreferences/api_testing_examples.md– Example tests covering multi-service flows and assertionsreferences/encore_mcp_testing_patterns.md– How to combine Encore MCP with tests for live introspectionWEBDRIVER_SESSION_ERRORS.md– Known Appium/WebDriver error catalog used during agent-driven tests
Related Skills
backend-debugging_skill– Deep-dive diagnostics when runs stall or regressions persiste2e-testing_skill– Playwright automation that consumes backend APIs end-to-endgraphiti-mcp-usage_skill– Document backend architecture and test discoveries in Graphiti
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です