본문 바로가기
C.W.K.
Stream
Lesson 07 of 11 · published

슬래시 명령과 사용자 정의 명령

~12 min · codex, slash, commands, automation

Level 0🌱 입문자
0 XP0/70 lessons0/11 achievements
0/120 XP to next level120 XP to go0% complete

정해진 동작과 반복 지시는 슬래시 명령으로 꺼내 써

/help, /permissions, /compact, /clear, /theme, /cost, /model이 자주 쓰는 기본 명령이야. /init은 현재 프로젝트를 읽고 AGENTS.md 초안을 만들어주니 빈 문서에서 시작할 필요가 없어.

반복 지시는 .codex/commands/<name>.md에 두고 $ARGUMENTS로 달라지는 부분만 받아. 같은 검토나 요약 요청을 두 번 적었다면 명령 파일로 고정해 다음 세션에도 재사용해.

Code

자주 쓰게 될 기본 명령·text
/help            # full reference
/permissions     # browse / change approval mode + sandbox
/compact         # squeeze conversation history
/cost            # session $$$
/model gpt-5-codex
/clear           # reset conversation
/theme github-dark --save
/init            # generate AGENTS.md from project state
사용자 정의 /review 명령 만들기·markdown
# .codex/commands/review.md
Review the file at $ARGUMENTS for:

1. Logic bugs and edge cases
2. Security: SQL injection, XSS, auth bypass
3. Performance: N+1 queries, blocking I/O
4. Style violations against AGENTS.md

Output:
[SEVERITY] description (file:line)
- Sort by severity descending.
- If no findings, print "No issues."

Exercise

반복하는 작업 하나를 골라 사용자 정의 Codex 명령을 만들어. 검토, 요약, 리팩터링 같은 작업이면 좋아. .codex/commands/에 저장하고 실제 입력으로 두 번 실행한 뒤 지시문을 다듬어.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.