← Back to list

markdowntown-backend
by joelklabo
markdowntown scan CLI
⭐ 0🍴 0📅 Jan 19, 2026
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
- Identify whether the change is an API route, a data-model change (Prisma), or validation logic.
- For API routes, confirm auth/rate-limits + response shape and cache tag invalidation.
- For Prisma changes, update
prisma/schema.prisma, run migrations/generate, and update callers. - For validation updates, reuse shared validators and keep error messages consistent.
- 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.jsonwith explicit status codes. - When mutating data, call
safeRevalidateTagfor list/detail tags and landing. - Do not bypass
requireSessionfor private routes; keep 401 responses consistent. - Avoid direct Prisma access from UI components; use API routes or server utilities.
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
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon