スキル一覧に戻る
joelklabo

markdowntown-backend

by joelklabo

MarkdownTown app

0🍴 0📅 2025年12月30日
GitHubで見るManusで実行

SKILL.md


name: markdowntown-backend description: Backend API routes, Prisma schema/migrations, and server-side validation patterns for markdowntown. Use when editing Next.js App Router API handlers, Prisma models/migrations, auth/session gating, rate limits, cache revalidation, or backend validation logic.

markdowntown-backend

Core workflow

  1. Identify whether the change is an API route, a data-model change (Prisma), or validation logic.
  2. For API routes, confirm auth/rate-limits + response shape and cache tag invalidation.
  3. For Prisma changes, update prisma/schema.prisma, run migrations/generate, and update callers.
  4. For validation updates, reuse shared validators and keep error messages consistent.
  5. Run compile/lint/unit tests; update API tests if response shapes change.

Quick map

  • API routes: src/app/api/**/route.ts
  • Auth gating: src/lib/requireSession.ts, src/lib/auth.ts
  • Rate limiting + abuse logging: src/lib/rateLimiter.ts, src/lib/reports.ts
  • Prisma client: src/lib/prisma.ts
  • Prisma schema + migrations: prisma/schema.prisma, prisma/migrations/*
  • Cache tags + revalidation: src/lib/cacheTags.ts, src/lib/revalidate.ts, src/lib/cache.ts
  • Validation: src/lib/validation.ts, src/lib/skills/skillValidate.ts, src/lib/uam/uamValidate.ts, src/lib/uam/uamLint.ts

Guardrails

  • Keep API responses deterministic; use NextResponse.json with explicit status codes.
  • When mutating data, call safeRevalidateTag for list/detail tags and landing.
  • Do not bypass requireSession for private routes; keep 401 responses consistent.
  • Avoid direct Prisma access from UI components; use API routes or server utilities.
  • Always look for refactoring or bugs; create new bd tasks when you spot them.

References

  • docs/DEV_ONBOARDING.md
  • docs/MIGRATIONS.md
  • docs/architecture/architecture.md
  • docs/architecture/security-public-rendering.md
  • codex/skills/markdowntown-backend/references/api-routes.md
  • codex/skills/markdowntown-backend/references/prisma.md
  • codex/skills/markdowntown-backend/references/validation.md

スコア

総合スコア

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

レビュー

💬

レビュー機能は近日公開予定です