From project-init
현재 프로젝트에 맞는 컨텍스트 관리 지침을 `rules/context.md`로 생성하거나 갱신할 때 활성화됩니다. project-init 초기화 흐름 중 호출되거나, 사용자가 컨텍스트 지침을 새로 만들고 싶어 할 때.
How this skill is triggered — by the user, by Claude, or both
Slash command
/project-init:context-rule-creatorThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
같은 디렉토리의 `templates/` 아래에 있는 템플릿 중 하나를 사용자에게 선택받아 `rules/context.md`로 생성합니다.
같은 디렉토리의 templates/ 아래에 있는 템플릿 중 하나를 사용자에게 선택받아 rules/context.md로 생성합니다.
선택지·라벨·사후 작업은 모두 템플릿 파일에서 도출합니다. 새 옵션을 추가하려면 templates/ 아래에 새 마크다운 파일을 두면 되고, 이 SKILL.md는 변경하지 않습니다.
템플릿 열거. 이 SKILL.md가 위치한 디렉토리의 templates/ 아래 *.md 파일 목록을 가져옵니다. 다른 디렉토리를 추측·탐색하지 않습니다.
메타데이터 파싱. 각 템플릿의 YAML frontmatter를 읽어 다음 필드를 사용합니다.
label (필수): AskUserQuestion 옵션 라벨로 사용.description (선택): 옵션 설명.recommended (선택, boolean): true이면 라벨 끝에 (Recommended)를 붙이고 옵션 목록의 가장 앞에 둡니다. 한 템플릿에만 둡니다.inputs (선택, 리스트): 본문에 채워 넣을 입력값들의 선언적 스펙. 4단계 입력 수집에서 사용. 각 항목은 name (placeholder 키), header (AskUserQuestion header, ≤12자), question (질문 텍스트), options ({label, description, value?} 2~4개) 필드를 가집니다. value가 없으면 label을 값으로 사용합니다.on_create (선택, 자유 문자열): 5단계의 파일 기록 후 수행할 사후 작업 지시.필수 필드가 없는 템플릿은 후보에서 제외하고 사용자에게 알립니다.
선택. 위에서 만든 옵션을 AskUserQuestion(single-select)로 사용자에게 묻습니다. 후보가 한 개뿐이면 묻지 않고 그대로 선택합니다.
입력 수집. 선택된 템플릿의 frontmatter에 inputs가 있으면 각 항목을 순서대로 AskUserQuestion(single-select)로 묻습니다.
value(없으면 label)가 placeholder 값이 됩니다.{{name}} placeholder를 일괄 치환합니다. 치환되지 않은 placeholder(예: 사용자가 빠뜨린 항목)는 그대로 두어 사용자가 나중에 인지할 수 있게 합니다.파일 기록 및 사후 작업.
rules/context.md로 기록합니다. 상위 디렉토리 부재 시 함께 생성합니다.rules/context.md가 있으면 덮어쓰지 않고 diff를 보여 사용자에게 확인합니다.on_create가 있으면 그 지시를 그대로 수행합니다 (디렉토리·빈 파일 생성, 안내 메시지 출력 등).rules/context.md 덮어쓰기를 검토합니다. 단순 재실행으로 백엔드를 바꾸지 않습니다.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub ch-courtesy/claude-plugins --plugin project-init