chore(skills): grill-me 스킬 추가 + CLAUDE.md 마크다운 포맷 정리
- .agents/skills/grill-me/SKILL.md, skills-lock.json 추가 - CLAUDE.md 섹션 사이 빈 줄 보정 및 Always Do의 type check 항목 제거 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0c1c66f65c
commit
9a3649342e
10
.agents/skills/grill-me/SKILL.md
Normal file
10
.agents/skills/grill-me/SKILL.md
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
name: grill-me
|
||||
description: Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".
|
||||
---
|
||||
|
||||
Interview me relentlessly about every aspect of this plan until we reach a shared understanding. Walk down each branch of the design tree, resolving dependencies between decisions one-by-one. For each question, provide your recommended answer.
|
||||
|
||||
Ask the questions one at a time.
|
||||
|
||||
If a question can be answered by exploring the codebase, explore the codebase instead.
|
||||
12
CLAUDE.md
12
CLAUDE.md
@ -31,14 +31,17 @@ PM2 entrypoints (`ecosystem.config.js`, `prd1/prd2/dev/dev.local.ecosystem.confi
|
||||
## Architecture — the parts that span many files
|
||||
|
||||
### Mode routing through `src/config/`
|
||||
|
||||
Runtime config is selected at module load by `src/config/config.export.js`, which switches on `process.env.NEXT_PUBLIC_RUN_MODE` between `config.local.js`, `config.local.dev.js`, `config.development.js`, `config.production.js`. Never read env values directly in feature code — import from here so mode switches stay in one place.
|
||||
|
||||
### Session / auth gate
|
||||
|
||||
`iron-session` cookies are the session source of truth (`src/lib/session.js`, `src/lib/authActions.js`). `src/app/layout.js` checks the session at the root and redirects every non-login route to `/login` when missing. `SESSION_SECRET` must be set (≥32 bytes). The session also carries `storeLvl` (1차/2차 판매점) which drives quote-render branches, builder number, and group ID. Q-Order / Q-Musubi support **autoLogin** flows via `NEXT_PUBLIC_Q_ORDER_AUTO_LOGIN_URL` / `NEXT_PUBLIC_Q_MUSUBI_AUTO_LOGIN_URL`.
|
||||
|
||||
`src/middleware.js` injects `x-pathname` into request headers so the root layout can branch on the active route.
|
||||
|
||||
### Floor Plan canvas (the heart of the app)
|
||||
|
||||
`src/app/floor-plan/**` is built on **Fabric.js 5.5.2**. The model has three layered concerns:
|
||||
|
||||
1. **Roof covering** (`hooks/roofcover`, `components/floor-plan/modal/roofShape` / `outerlinesetting` / `eavesGable` …): outer wall lines, auto/manual roof-shape detection, guides, eaves & kerabs, flow up/down, outer-line edit & offset, roof-face assignment.
|
||||
@ -54,9 +57,11 @@ A modal under `components/floor-plan/modal/<feature>` pairs with a hook under `h
|
||||
**Plan persistence** (serialize/restore) is in `src/lib/canvas.js` and `src/util/canvas-util.js`. Recent commits (`a5e794b3`, `2aef32e0`) added a three-layer guard (entry / cache / save) and `SizeSetting` input guards against 0-area apertures/shadows/dormers — when touching plan load/save or size inputs, do not weaken or remove these guards without understanding the failure mode (`InvalidStateError` from corrupted plans).
|
||||
|
||||
### State — Recoil, split by domain
|
||||
|
||||
Atoms live under `src/store/` and are split by domain (`canvasAtom`, `roofAtom`, `estimateAtom`, `modalAtom`, `menuAtom`, `settingAtom`, …). When adding state, find the existing domain atom rather than introducing a new global. `RecoilWrapper.js` mounts the root; `QcastProvider.js` composes the rest of the global providers (session, global data, global loading) for the App Router root layout.
|
||||
|
||||
### Build / runtime quirks
|
||||
|
||||
- `next.config.mjs` sets `resolve.fallback = { fs: false }` and externalizes `canvas`, `utf-8-validate`, `bufferutil` as commonjs. Adding a node-only dep usually means adding it to that externals list.
|
||||
- `experimental.staleTimes` are all **0** on purpose — App Router cache is disabled so plan/estimate pages always refetch. Don't re-enable without checking the plan-stale failure mode.
|
||||
- `reactStrictMode: false`. Don't assume double-render semantics.
|
||||
@ -69,15 +74,19 @@ Atoms live under `src/store/` and are split by domain (`canvasAtom`, `roofAtom`,
|
||||
- **Path alias** — prefer `@/...` over relative `../../..` chains.
|
||||
- **Logging** — never `console.log` directly in shipped code. Use `src/util/logger.js`, which no-ops unless `NEXT_PUBLIC_ENABLE_LOGGING=true`. `src/util/debugCapture.js` POSTs to `/api/debug` for server-side capture (also gated by the same flag).
|
||||
- **Commit messages** follow `.gitmessage.txt`:
|
||||
|
||||
```
|
||||
[일감번호] : [제목]
|
||||
|
||||
[작업내용] :
|
||||
```
|
||||
|
||||
Recent commits use a slightly tighter `[2204] <subject> — <detail>` form; mirror neighboring commits on the branch.
|
||||
|
||||
- **`.env.*`** can contain real secrets — never paste contents into PR bodies, issues, or chat. `.env.*.local` is gitignored for machine-local overrides.
|
||||
|
||||
## Reference docs in `docs/`
|
||||
|
||||
- `Canvas Status.md` — canvas feature status and right-click menu inventory per target type.
|
||||
- `Qcast coding convention.pdf`, `Qcast development guilde.pdf` — full conventions / dev guide.
|
||||
- `메세지 처리 가이드.pdf` — modal & alert message rules.
|
||||
@ -86,8 +95,9 @@ Atoms live under `src/store/` and are split by domain (`canvasAtom`, `roofAtom`,
|
||||
- `dictionary.txt` — domain vocabulary (roof / panel terms in JP/KR).
|
||||
|
||||
## Always Do
|
||||
|
||||
- All answers and reasoning processes must be written in Korean.
|
||||
- Once the task is complete, use a sub-agent to perform lint checks, type checks, and build checks.
|
||||
- Once the task is complete, use a sub-agent to perform lint checks, and build checks.
|
||||
- When performing a lint check, ensure that any errors are resolved before proceeding, and make an effort to resolve any warnings that arise.
|
||||
- When committing, write the prefix in English, while the rest of the title and content in Korean.
|
||||
- Upon task completion, update the CLAUDE.md and README.md documents if necessary.
|
||||
|
||||
11
skills-lock.json
Normal file
11
skills-lock.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"version": 1,
|
||||
"skills": {
|
||||
"grill-me": {
|
||||
"source": "mattpocock/skills",
|
||||
"sourceType": "github",
|
||||
"skillPath": "skills/productivity/grill-me/SKILL.md",
|
||||
"computedHash": "784f0dbb7403b0f00324bce9a112f715342777a0daee7bbb7385f9c6f0a170ea"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user