Skip to content

Commit ac57744

Browse files
committed
fix: sanitize skills for open-source exposure
- Remove internal company info (Jira tickets, app names, domain names) from skill-commit and skill-branch - Replace examples with react-simplikit-specific ones - Fix npm → yarn across monorepo-setup, initial-launch-checklist, package-publishing skills - Fix renderHookSSR import path to match actual codebase
1 parent c074f5c commit ac57744

10 files changed

Lines changed: 59 additions & 78 deletions

File tree

.claude/skills/skill-branch/SKILL.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ allowed-tools: Bash
1616

1717
## Core Patterns
1818

19-
| 패턴 | 용도 | 예시 |
20-
| --------------------------- | -------------- | --------------------------- |
21-
| `feat/{name}` | 기능 개발 | `feat/user-auth` |
22-
| `fix/{name}` | 버그 수정 | `fix/login-error` |
23-
| `RB-YYMMDD/{app}/{feature}` | 릴리즈 | `RB-260112/settlement/ecms` |
24-
| `dev/{name}` | 실험/장기 개발 | `dev/new-feature` |
25-
| `refactor/{name}` | 리팩토링 | `refactor/cleanup` |
19+
| 패턴 | 용도 | 예시 |
20+
| ----------------- | -------------- | ----------------------------- |
21+
| `feat/{name}` | 기능 개발 | `feat/use-debounce` |
22+
| `fix/{name}` | 버그 수정 | `fix/ssr-hydration-mismatch` |
23+
| `chore/{name}` | 설정/빌드 | `chore/update-build-config` |
24+
| `docs/{name}` | 문서 | `docs/add-use-toggle-example` |
25+
| `refactor/{name}` | 리팩토링 | `refactor/cleanup-internals` |
2626

2727
## 실행 단계
2828

@@ -40,4 +40,4 @@ allowed-tools: Bash
4040

4141
## References
4242

43-
- [details.md](references/details.md) - 릴리즈 브랜치 상세
43+
- [details.md](references/details.md) - 브랜치 네이밍 상세

.claude/skills/skill-branch/references/details.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ feat/{feature-name}
99
```
1010

1111
- 새로운 기능 개발 시 사용
12-
- 예: `feat/user-authentication`, `feat/settlement-ecms`
12+
- 예: `feat/use-debounce`, `feat/add-keyboard-height-hook`
1313

1414
### fix (버그 수정)
1515

@@ -18,26 +18,25 @@ fix/{fix-description}
1818
```
1919

2020
- 버그 수정 시 사용
21-
- 예: `fix/login-redirect`, `fix/currency-field-locale`
21+
- 예: `fix/ssr-hydration-mismatch`, `fix/scroll-direction-cleanup`
2222

23-
### RB (릴리즈 브랜치)
23+
### chore (설정/빌드)
2424

2525
```
26-
RB-YYMMDD/{app-name}/{feature}
26+
chore/{description}
2727
```
2828

29-
- QA 또는 릴리즈용 브랜치
30-
- YYMMDD: 날짜 (예: 260112는 2026년 1월 12일)
31-
- 예: `RB-260112/settlement/ecms`, `RB-260108/payments-history/currency-field-locale`
29+
- 빌드 설정, CI, 의존성 등 변경 시 사용
30+
- 예: `chore/update-build-config`, `chore/add-changesets`
3231

33-
### dev (개발 브랜치)
32+
### docs (문서)
3433

3534
```
36-
dev/{feature-name}
35+
docs/{description}
3736
```
3837

39-
- 장기 개발 또는 실험적 작업
40-
- 예: `dev/onboarding-contract-draft`
38+
- 문서 추가/수정 시 사용
39+
- 예: `docs/add-use-toggle-example`, `docs/update-contributing`
4140

4241
### refactor (리팩토링)
4342

@@ -46,15 +45,15 @@ refactor/{description}
4645
```
4746

4847
- 코드 리팩토링
49-
- 예: `refactor/form-and-bugfix`
48+
- 예: `refactor/cleanup-internals`, `refactor/simplify-hook-logic`
5049

5150
## 네이밍 변환 규칙
5251

53-
| 입력 | 출력 |
54-
| ---------------------- | -------------------- |
55-
| 사용자 인증 기능 | user-authentication |
56-
| 로그인 리다이렉트 오류 | login-redirect-error |
57-
| Settlement ECMS 연동 | settlement-ecms |
52+
| 입력 | 출력 |
53+
| ---------------------- | ------------------------- |
54+
| 사용자 인증 기능 | user-authentication |
55+
| SSR 하이드레이션 오류 | ssr-hydration-mismatch |
56+
| 빌드 설정 업데이트 | update-build-config |
5857

5958
## 주의사항
6059

.claude/skills/skill-commit/SKILL.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ allowed-tools: Bash, Read, Glob, Grep
1515
## 커밋 메시지 형식
1616

1717
```
18-
[티켓번호] <type>(<scope>): <description>
18+
<type>(<scope>): <description>
1919
```
2020

2121
## Core Patterns
@@ -33,19 +33,18 @@ allowed-tools: Bash, Read, Glob, Grep
3333

3434
### Scope
3535

36-
| 유형 | 예시 |
37-
| ------ | --------------------- |
38-
| 패키지 | `@pramework/cli` |
39-
|| `contract-manager` |
40-
| 도메인 | `onboarding/contract` |
41-
| 없음 | scope 생략 |
36+
| 유형 | 예시 |
37+
| ------ | -------------------------- |
38+
| 패키지 | `core`, `mobile` |
39+
| 없음 | scope 생략 |
4240

4341
### Examples
4442

4543
```bash
46-
feat(@manager/resources): 신규 리소스 export
47-
[PI-128] feat(onboarding/contract): 계약서 생성 기능
48-
fix(dashboard): 차트 렌더링 오류 수정
44+
feat(core): add useDebounce hook
45+
feat(mobile): add useKeyboardHeight hook
46+
fix: correct SSR rendering logic
47+
docs: update useToggle documentation
4948
chore: claude skills 추가
5049
```
5150

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,16 @@
11
# Git Commit 상세 가이드
22

3-
## 티켓번호
4-
5-
- 선택사항
6-
- 형식: `[PI-128]`, `[PGADMIN-6601]`
7-
- PR 번호 `(#1234)`는 GitHub가 자동 추가 → 작성 금지
8-
93
## Scope 상세
104

11-
| 유형 | 형식 | 예시 |
12-
| ---------- | --------------------- | ---------------------------------------- |
13-
| 패키지 | `@{namespace}/{name}` | `@pramework/cli`, `@manager/resources` |
14-
|| `{app-name}` | `contract-manager`, `sales-reports` |
15-
| 도메인 | `{app}/{domain}` | `onboarding/contract`, `admin/framework` |
16-
| 와일드카드 | `{prefix}/*` | `dashboard/*` |
17-
| 없음 | scope 생략 | `chore: 설명` |
5+
| 유형 | 형식 | 예시 |
6+
| ------ | -------- | ------------------------------------------------- |
7+
| 패키지 | `{name}` | `core`, `mobile` |
8+
| 없음 | scope 생략 | `chore: 설명` |
189

1910
### 여러 패키지 수정 시
2011

2112
적절한 상위 개념으로 묶기:
2213

23-
- `contract-manager` + `payments-manager``manager`
2414
- 또는 주요 변경 대상만 명시
2515

2616
## Description 작성 규칙
@@ -42,24 +32,18 @@
4232

4333
```bash
4434
# 기본
45-
feat(@manager/resources): 신규 생성한 리소스 export
35+
feat(core): add useDebounce hook
4636

47-
# 티켓번호 포함
48-
[PI-128] feat(onboarding/contract): 온보딩 신청 정보 입력 > 신청서 draft 생성
49-
50-
# 도메인 scope
51-
fix(onboarding/contract): 버그 수정
37+
# 패키지 scope
38+
feat(mobile): add useKeyboardHeight hook
5239

5340
# scope 없음
5441
chore: claude agent,skills 추가
5542

56-
# 와일드카드
57-
feat(dashboard/*): pramework 변수명 교체 적용
58-
5943
# 여러 줄 설명
60-
feat(settlement): ECMS 연동 추가
44+
feat(core): add useThrottle hook
6145

62-
- API 클라이언트 구현
63-
- 에러 핸들링 추가
46+
- 기본 throttle 구현
47+
- SSR 안전성 확보
6448
- 테스트 작성
6549
```

.claude/skills/skill-initial-launch-checklist/SKILL.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ allowed-tools: Read, Bash, Glob, Grep
1111
```bash
1212
[ -f README.md ] && echo "✅ README"
1313
[ -f LICENSE ] && echo "✅ LICENSE"
14-
npm test && echo "✅ Tests pass"
15-
npm run build && echo "✅ Build success"
16-
npm publish --dry-run
14+
yarn test && echo "✅ Tests pass"
15+
yarn build && echo "✅ Build success"
1716
```
1817

1918
## Phase 체크리스트
@@ -32,7 +31,7 @@ npm publish --dry-run
3231

3332
### Phase 3: 빌드 & 문서
3433

35-
- [ ] `npm run build` 성공
34+
- [ ] `yarn build` 성공
3635
- [ ] ESM + CJS 빌드
3736
- [ ] 모든 exported에 JSDoc
3837

.claude/skills/skill-monorepo-setup/SKILL.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ react-simplikit/
2020

2121
```bash
2222
# 전체 빌드
23-
npm run build --workspaces
23+
yarn build
2424

2525
# 특정 패키지
26-
npm run build --workspace=@react-simplikit/mobile
26+
yarn workspace @react-simplikit/mobile build
2727
```
2828

2929
## Workspace 설정
@@ -35,8 +35,8 @@ npm run build --workspace=@react-simplikit/mobile
3535
"name": "react-simplikit",
3636
"workspaces": ["packages/*"],
3737
"scripts": {
38-
"build": "npm run build --workspaces",
39-
"test": "npm run test --workspaces"
38+
"build": "yarn workspaces foreach -Ap run build",
39+
"test": "yarn workspaces foreach -Ap run test"
4040
}
4141
}
4242
```

.claude/skills/skill-monorepo-setup/references/details.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323

2424
```bash
2525
# Root에 추가
26-
npm install -D typescript
26+
yarn add -D typescript
2727

2828
# Workspace에 추가
29-
npm install pkg --workspace=@react-simplikit/mobile
29+
yarn workspace @react-simplikit/mobile add pkg
3030
```
3131

3232
## 새 패키지 추가
@@ -59,9 +59,9 @@ export default defineConfig({
5959

6060
```bash
6161
# 전체
62-
npm run build --workspaces
63-
npm run test --workspaces
62+
yarn build
63+
yarn test
6464

6565
# 특정 패키지
66-
npm run build --workspace=@react-simplikit/mobile
66+
yarn workspace @react-simplikit/mobile build
6767
```

.claude/skills/skill-package-publishing/references/details.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ jobs:
7474
with:
7575
node-version: '20'
7676
registry-url: 'https://registry.npmjs.org'
77-
- run: npm ci
78-
- run: npm run build --workspaces
77+
- run: yarn install --immutable
78+
- run: yarn build
7979
- uses: changesets/action@v1
8080
with:
8181
publish: npm run release

.claude/skills/skill-scaffolder/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function useHookName<T>(param: T): T {
4444

4545
```typescript
4646
import { renderHook } from '@testing-library/react';
47-
import { renderHookSSR } from '../utils/renderHookSSR';
47+
import { renderHookSSR } from '../../_internal/test-utils/renderHookSSR.tsx';
4848

4949
describe('useHookName', () => {
5050
it('is safe on server side rendering', () => {

.claude/skills/skill-test-writer/references/details.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ it('debounces correctly', () => {
5757
### renderHookSSR 사용법
5858

5959
```typescript
60-
import { renderHookSSR } from '../utils/renderHookSSR';
60+
import { renderHookSSR } from '../../_internal/test-utils/renderHookSSR.tsx';
6161

6262
describe('SSR Safety', () => {
6363
it('is safe on server side rendering', () => {

0 commit comments

Comments
 (0)