Skip to content

chore(cursor): expand skills and rules for team parity#5

Merged
thxforall merged 1 commit into
mainfrom
chore/cursor-skills-expansion
Mar 23, 2026
Merged

chore(cursor): expand skills and rules for team parity#5
thxforall merged 1 commit into
mainfrom
chore/cursor-skills-expansion

Conversation

@thxforall
Copy link
Copy Markdown
Contributor

Summary

  • Cursor 사용자 도구 격차 해소: 1 rule + 1 skill → 4 rules + 8 skills
  • Claude Code 에이전트/스킬 + 로컬 스킬에서 핵심을 포팅
  • SKILL.md 포맷 동일 (Agent Skills 표준) — allowed-tools, model 제거만 적용

Changes

Rules (.mdc) — 파일 열면 자동 활성화:

  • monorepo.mdc 확장 (디자인 시스템, 훅, 네이밍 컨벤션 추가)
  • react-components.mdcpackages/web/**/*.tsx 대상
  • api-routes.mdcpackages/web/app/api/**/*.ts 대상
  • rust-api.mdcpackages/api-server/**/*.rs 대상

Skills (SKILL.md) — /skill-name으로 호출:

  • code-reviewer — Two-pass 리뷰, Fix-First, decoded 전용 규칙
  • git-workflow — 브랜치/커밋/PR 컨벤션
  • component-template — React 컴포넌트 스캐폴딩
  • api-contract — OpenAPI 스타일 API 문서
  • security-auditor — OWASP Top 10 보안 감사
  • testing-specialist — AAA 패턴 테스트 가이드
  • react-best-practices — 45개 React/Next.js 성능 규칙

Test plan

  • Cursor에서 .tsx 파일 열기 → react-components 룰 자동 로드 확인
  • Cursor에서 /code-reviewer 입력 → 스킬 인식 확인
  • 기존 /commit 스킬 정상 작동 확인

🤖 Generated with Claude Code

Port 7 skills and 3 rules from Claude Code to Cursor, bringing
Cursor users from 1 rule + 1 skill to 4 rules + 8 skills:

Rules (.mdc):
- monorepo.mdc: expanded with design system, hooks, naming conventions
- react-components.mdc: TSX conventions (Server/Client, a11y, React 19)
- api-routes.mdc: API route patterns (auth, errors, pagination)
- rust-api.mdc: Rust/Axum conventions (SeaORM, cargo commands)

Skills (SKILL.md):
- code-reviewer: two-pass review with Fix-First classification
- git-workflow: branch/commit/PR convention guide
- component-template: React component scaffolding from specs
- api-contract: OpenAPI-style API document generation
- security-auditor: OWASP Top 10 + decoded-specific checks
- testing-specialist: AAA pattern test case guide
- react-best-practices: 45 React/Next.js perf optimization rules

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@thxforall thxforall merged commit 80de03b into main Mar 23, 2026
1 check passed
@thxforall thxforall deleted the chore/cursor-skills-expansion branch April 2, 2026 13:49
thxforall added a commit that referenced this pull request Apr 30, 2026
…#377)

* docs(plans): DB 운영 모델 정리 로드맵 spec

PRD→dev 시드 작업 중 발견된 post_magazines.status='failed' drift를
계기로, dev/prod/assets 3 영역과 Supabase CLI / SeaORM / TS 상수
3종 사실상 SOT 의 운영 모델 정리 로드맵을 4단계로 분해.

GitHub 이슈 등록:
- #371 DB 운영 모델 SOT 문서화 (P0)
- #372 post_magazines.status='failed' drift 정합화 (P1)
- #373 drift 검증 CI 게이트 (P2)
- #374 [Epic] SeaORM ↔ Supabase 마이그레이션 통합 B.3 (P3)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* feat(scripts): just seed-from-prod 으로 PRD→dev 시드 자동화 (#371 follow-up)

이전에 PRD→dev 시드는 9 단계 수동 절차로 (export, dump auth/public,
reset, 시스템 row 삭제, import auth/public, verify, cleanup) 진행됐음.
재사용 가능하게 단일 명령으로 패키징.

Usage:
  export PRD_DB_URL='postgresql://...'   # NEVER paste in chat
  just seed-from-prod

추가:
- scripts/seed-from-prod.sh — pre-flight, dump, reset --no-seed,
  system-seed row 삭제, import auth→public, 검증, cleanup
- Justfile — seed-from-prod target

안전 가드:
- PRD_DB_URL 미설정 시 fail-fast + Dashboard 안내 메시지
- 모든 prerequisite (pg_dump, psql, docker, supabase) 사전 체크
- /tmp dump 파일에 PID 접미사 + trap 으로 항상 cleanup
- interactive confirm prompt (yes 입력 필수)
- 비밀번호 로테이션 reminder 출력
- post_magazines drift (#372) 미적용 PRD 일 경우 안내

Closes (옵션 #5 in spec) part of #371

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* docs(specs): wiki:lint 통과 — frontmatter 어휘 정합

- 2026-04-30-db-operating-model-design.md: `date` → `updated` 필드명, tags
  를 허용 어휘 [db, ops, architecture] 로 교체 (이전 [database,
  migration, supabase, seaorm, drift, documentation] — 어휘 외 6건).
- 2026-04-23-e2e-hardening-reprioritization-design.md: `title` 더블쿼트로
  감싸 `#170)` 의 YAML comment 절단 해소 → H1_TITLE_MISMATCH 제거. tags
  를 [testing, ops] 로 정합화 (이전 infrastructure/hardening 어휘 외).

`bun run wiki:lint` 결과: 10 errors → 0 errors (TOO_MANY_RELATED 1건은
warning, CI 통과).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant