Skip to content

Instantly share code, notes, and snippets.

View buYoung's full-sized avatar

BuYoungLee buYoung

View GitHub Profile
@buYoung
buYoung / common.md
Created February 2, 2026 07:12
jetbrains IDE ai assistant commit message prompt

Role

You are a Senior Developer AI Assistant who strictly adheres to Git version control best practices and Conventional Commits standards. Your goal is to analyze code changes (Diffs) or user requests and propose clearly summarized commit messages and appropriate branching strategies. You are integrated into a JetBrains IDE environment and have access to variables like $GIT_BRANCH_NAME.

Commit Message Rules

All commit messages must strictly follow the Header and Body formats defined below.

1. Header Format

The header must follow the format Type(Scope): Ticket ID or Type: Ticket ID.

  • Scope (Optional): The name of the module or feature (e.g., auth, payment, api).
  • Subject: Must contain ONLY the Ticket ID or Issue Number.
@buYoung
buYoung / usage.md
Created August 12, 2024 03:52
[프롬프트] 백엔드편

사용방법

  1. 각 프롬프트의 전체 내용을 복사 - 붙여넣기 후 엔터를 눌러 AI가 답변하기를 기다립니다.
  2. AI가 답변을 완료하면 메뉴 형태의 질문지를 나타냅니다.
  3. 메뉴에서 원하는 번호 또는 질문 내용을 입력 후 엔터를 누릅니다.
  4. 배우고 싶은만큼 질문하고 즐깁니다.
  5. 메뉴의 질문을 변경하고싶다면 2번의 메뉴에서 원하는 내용을 복사 붙여넣기 합니다. (여기서는 번호입력하면 AI가 모를 가능성이 높습니다.)
  6. 2 ~ 5번을 반복하여 강화 학습을 진행합니다.

AI LLM 추천

  1. claude https://claude.ai
@buYoung
buYoung / usage.md
Last active August 12, 2024 01:02
[프롬프트] 프론트엔드편

사용방법

  1. 각 프롬프트의 전체 내용을 복사 - 붙여넣기 후 엔터를 눌러 AI가 답변하기를 기다립니다.
  2. AI가 답변을 완료하면 메뉴 형태의 질문지를 나타냅니다.
  3. 메뉴에서 원하는 번호 또는 질문 내용을 입력 후 엔터를 누릅니다.
  4. 배우고 싶은만큼 질문하고 즐깁니다.
  5. 메뉴의 질문을 변경하고싶다면 2번의 메뉴에서 원하는 내용을 복사 붙여넣기 합니다. (여기서는 번호입력하면 AI가 모를 가능성이 높습니다.)
  6. 2 ~ 5번을 반복하여 강화 학습을 진행합니다.

AI LLM 추천

  1. claude https://claude.ai
import type { DependencyList } from 'react';
import { useCallback, useEffect, useRef } from 'react';
type EffectCallback = () => void | Promise<void> | Generator<any, void, any> | (() => void);
// 타입 가드 함수들
function isGenerator(obj: any): obj is Generator {
return obj && typeof obj.next === 'function' && typeof obj.throw === 'function';
}
@buYoung
buYoung / http_log.go
Last active June 1, 2024 11:56
Advanced Logging in Go with Zerolog and Lumberjack
package logger
type LogRequestBodyType string
const (
LogRequestBodyTypeFormData = "multipart/form-data"
LogRequestBodyTypeJSON = "application/json"
LogRequestBodyTypeTEXT = "text/plain"
LogRequestBodyTypeURLEncoded = "application/x-www-form-urlencoded"
)
@buYoung
buYoung / howToUse.tsx
Last active February 2, 2024 04:38
Custom Hook for React Router v6 Before the Addition of useBlocker
// use case useStateWithCallbackLazy for blocking Status
function Ui(props) {
const [promptStatus, setPromptStatus] = useStateWithCallbackLazy(true);
const [showPrompt, confirmNavigation, cancelNavigation] = useCallbackPrompt(promptStatus);
const handleExit = () => {
confirmNavigation();
setPromptStatus(false, () => {
navigate(pageUrl });
});