← スキル一覧に戻る

create-page
by saintgo7
⭐ 0🍴 0📅 2026年1月21日
SKILL.md
name: create-page description: CareMatch용 Next.js 페이지 생성. Pages Router 기반 페이지를 생성하며 SEO, 인증, 레이아웃이 자동 적용됩니다. 사용법 - "페이지 만들어줘", "간병인 대시보드 페이지 생성" allowed-tools: Read, Write, Glob
Create Page Skill
CareMatch V3용 Next.js 페이지를 생성합니다.
페이지 템플릿
// pages/{path}.tsx
import { type NextPage, type GetServerSideProps } from 'next'
import { getServerSession } from 'next-auth'
import Head from 'next/head'
import { Layout } from '@/components/layout/Layout'
import { authOptions } from '@/pages/api/auth/[...nextauth]'
interface PageProps {
// props 정의
}
const Page: NextPage<PageProps> = (props) => {
return (
<>
<Head>
<title>페이지 제목 | CareMatch</title>
<meta name="description" content="페이지 설명" />
</Head>
<Layout>
<div className="container mx-auto px-4 py-8">
<h1 className="text-3xl font-bold mb-8">
페이지 제목
</h1>
{/* 내용 */}
</div>
</Layout>
</>
)
}
export const getServerSideProps: GetServerSideProps = async (context) => {
const session = await getServerSession(context.req, context.res, authOptions)
if (!session) {
return {
redirect: { destination: '/auth/login', permanent: false },
}
}
return { props: {} }
}
export default Page
페이지 구조
| 경로 | 설명 |
|---|---|
| pages/auth/ | 인증 관련 |
| pages/caregiver/ | 간병인 전용 |
| pages/guardian/ | 보호자 전용 |
| pages/chat/ | 채팅 |
スコア
総合スコア
40/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
レビュー
💬
レビュー機能は近日公開予定です