C.W.K.
Stream
Lesson 03 of 07 · published

Markdown Body — 명료, 구체, 경계

~14 min · skills, prompt-design, instructions

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

spec, vibe X

Skill 의 body 가 prompt 인데 chat prompt 보다 더 disciplined. 모든 invocation 마다 run; 모호함 합산; spec 못한 거를 모델이 비난 받음. 함수 spec 쓰듯 써.

세 구조적 move: (1) 역할 명시 ("You are a senior security engineer"), (2) input 과 output 리스트 + 포맷/제약, (3) failure mode 명시 ("finding 없으면 명시적으로 그렇게 말 — 리포트 채우려고 vulnerability 발명 X"). 세 번째 move 가 대부분 prompt 가 빼먹는 거.

Code

A body that fights ambiguity·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.
Templates make outputs reusable·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 에 strict output template + explicit failure-mode 절 추가. 결과 X 인 input 에 run. failure-mode 절 honor 확인 (confabulation X).

Progress

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

댓글 0

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

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