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

SKILL.md Frontmatter — 모든 노브

~16 min · skills, frontmatter, yaml, config

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

YAML head 가 계약

Skill 의 frontmatter 가 host AI 가 올바르게 로드하기 위해 필요한 모든 거 declare: identity, invoke 시점, arg, 보조 파일, 모델. Body 가 prompt; frontmatter 가 wiring.

중요한 8 필드: name (kebab-case 식별자, /name), description (뭐 + 언제, auto-invocation 사용), invocation (explicit / auto / disabled), arguments (named arg, {{name}} 으로 access), paths (extra 파일 context 로딩), model (host 기본 override), subagent (격리 run), 그리고 VCS 의 implicit version.

Code

Frontmatter with every relevant field·markdown
---
name: security-audit
description: |
  OWASP-aware security audit of a file or directory.
  Auto-invoke when user mentions "security", "vulnerability",
  or asks about auth/payments/data-handling code.
invocation: auto
arguments:
  - name: target
    description: File or directory to audit
    required: true
  - name: severity_floor
    description: Lowest severity to include (low | medium | high)
    required: false
    default: low
paths:
  - checklists/owasp-top10.md
  - templates/finding.md
model: claude-opus-4-7
subagent: true
---
Substitution and references in the body·markdown
You are a senior application security engineer.

Audit {{target}}. Use checklists/owasp-top10.md as the floor.
For each finding:
- Severity (CVSS 3.1)
- File:line citation
- CWE class
- Remediation snippet

Filter to severity >= {{severity_floor}}.
Format each finding using templates/finding.md.

External links

Exercise

기존 Skill (네 거 또는 번들 거) 잡아 + 안 쓰는 frontmatter 필드 3개 추가: arguments 항목 1개, paths 항목 1개, 의미 있는 description. 예상하는 시점에 auto-invocation 트리거 verify.

Progress

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

댓글 0

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

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