ワンクリックで
project-guidelines-example
Example project-specific skill for the Ongize monorepo (Next.js + Cloudflare Workers + Drizzle).
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Example project-specific skill for the Ongize monorepo (Next.js + Cloudflare Workers + Drizzle).
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Software architecture specialist for system design, scalability, and technical decision-making. Use PROACTIVELY when planning new features, refactoring large systems, or making architectural decisions.
Backend architecture patterns, API design, database optimization, and server-side best practices for Hono, Cloudflare Workers, and Next.js Route Handlers.
Build and TypeScript error resolution specialist. Use PROACTIVELY when build fails or type errors occur. Fixes build/type errors only with minimal diffs, no architectural edits. Focuses on getting the build green quickly.
Expert code review specialist. Proactively reviews code for quality, security, and maintainability. Use immediately after writing or modifying code. MUST BE USED for all code changes.
Documentation and codemap specialist. Use PROACTIVELY for updating codemaps and documentation. Runs /update-codemaps and /update-docs, generates docs/CODEMAPS/*, updates READMEs and guides.
End-to-end testing specialist using Playwright. Use PROACTIVELY for generating, maintaining, and running E2E tests. Manages test journeys, quarantines flaky tests, uploads artifacts (screenshots, videos, traces), and ensures critical user flows work.
| name | project-guidelines-example |
| description | Example project-specific skill for the Ongize monorepo (Next.js + Cloudflare Workers + Drizzle). |
This is an example of a project-specific skill. Use this as a template for your own projects.
Based on the local Ongize monorepo.
Reference this skill when working on the Ongize repo. Project skills contain:
Tech Stack:
Services:
┌────────────────────────────┐ ┌────────────────────────────┐
│ Frontend (website) │ │ Frontend (app) │
│ Next.js + React + Mantine │ │ Next.js + React + Mantine │
└───────────────┬────────────┘ └───────────────┬────────────┘
│ │
└───────────────┬────────────────┘
▼
┌─────────────────────────────────────────────────┐
│ API (Cloudflare) │
│ Hono + Zod OpenAPI + TypeScript │
└───────────────────────┬─────────────────────────┘
▼
┌──────────────────┐
│ Postgres (Neon) │
│ Drizzle + Kysely │
└──────────────────┘
Other services: S3 (files), Resend (email), Twilio (SMS), Trigger.dev (jobs)
ongize/
├── apps/
│ ├── website/ # Marketing site (Next.js)
│ ├── app/ # Main product (Next.js)
│ └── api/ # Cloudflare Workers API (Hono)
├── packages/
│ └── shared/ # Shared types, utilities, styles
├── scripts/ # Tooling scripts (type generation, etc.)
├── docs/ # Documentation
├── turbo.json # Turbo pipelines
├── pnpm-workspace.yaml # Workspaces
└── biome.json # Lint/format rules
interface ApiResponse<T> {
success: boolean
data?: T
error?: string
}
app.get('/health', (c) => {
const response: ApiResponse<{ status: string }> = {
success: true,
data: { status: 'ok' },
}
return c.json(response)
})
import { db } from '@/db'
import { users } from '@/db/schema'
// Typed query from schema
const rows = await db.select().from(users)
interface ApiResponse<T> {
success: boolean
data?: T
error?: string
}
async function fetchApi<T>(
endpoint: string,
options?: RequestInit
): Promise<ApiResponse<T>> {
try {
const response = await fetch(endpoint, {
...options,
headers: {
'Content-Type': 'application/json',
...options?.headers,
},
})
if (!response.ok) {
return { success: false, error: `HTTP ${response.status}` }
}
return await response.json()
} catch (error) {
return { success: false, error: String(error) }
}
}
Use packages/shared for cross-app types, utilities, and shared styles.
Quality checks:
pnpm lint
pnpm check-types
Type generation:
pnpm generate:types
E2E tests (when configured):
# Add Playwright config under apps/app when needed
pnpm --filter @ongize/app exec playwright test
# Website (Next.js on Cloudflare)
pnpm --filter @ongize/website deploy
# App (Next.js on Cloudflare)
pnpm --filter @ongize/app deploy
# API (Cloudflare Workers)
pnpm --filter @ongize/api deploy
.env files live under apps/app and apps/api.apps/*/wrangler.jsonc.coding-standards/ - General coding best practicesbackend-patterns/ - API and database patternsfrontend-patterns/ - React and Next.js patternstdd-workflow/ - Test-driven development methodology