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

Markdown 본문 — 명확한 지시와 분명한 경계

~14 min · skills, prompt-design, instructions

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

분위기를 주문하지 말고 작업 명세를 써

Skill 본문은 매번 반복 실행되는 지시라서 평범한 채팅보다 더 정확해야 해. 모호한 한 줄은 한 번의 작은 오해로 끝나지 않고 모든 호출에서 누적돼. 함수 계약을 쓰듯 역할, 입력, 결과 형식, 제약을 분명히 적어.

특히 실패했을 때의 모양을 빼먹지 마. "발견사항이 없으면 없다고 말하고 보고서를 채우려고 취약점을 만들지 마"처럼 빈 결과를 어떻게 다룰지 정해야 해. 결과 형식은 긴 설명보다 paths:로 실제 Markdown 틀을 제공하는 편이 안정적이야.

본문은 1) 역할, 2) 입력과 결과 형식, 3) 실패했을 때의 행동을 차례로 못 박아야 해.

Code

모호함을 걷어내는 본문·markdown
You are a senior application security engineer reviewing
{{target}} for OWASP Top 10 violations.

# Inputs you have
- The file/dir at {{target}} (already read into context)
- checklists/owasp-top10.md (load via paths:)
- Severity floor: {{severity_floor}}

# Output (strict format)
For each finding (or zero findings):
[SEVERITY: {LOW|MEDIUM|HIGH|CRITICAL}]
File: <path>:<line>
CWE: <CWE-XX>
Description: <2-3 sentences>
Fix:
```<lang>
<minimal patch>
```

# Failure mode
If no findings: print exactly "No OWASP Top 10 issues at severity
≥ {{severity_floor}} in {{target}}." Never fabricate findings.
출력을 재사용 가능하게 만드는 템플릿·markdown
# templates/finding.md (loaded via paths:)
## [{{severity}}] {{title}}

**File:** `{{file}}:{{line}}`
**CWE:** {{cwe}}

{{description}}

```{{lang}}
{{patch}}
```

# Body references it
"For each finding, format using templates/finding.md."

External links

Exercise

기존 Skill에 엄격한 결과 템플릿과 명시적인 실패 처리 절을 추가해. 결과가 없는 입력으로 실행한 뒤, 내용을 지어내지 않고 실패 처리 규칙을 따르는지 확인해.

Progress

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

댓글 0

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

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