소스 정보
- 저장소
- cxcscmu/SkillLearnBench
- 최근 소스 활동
- 2026년 4월 24일 05:14
- 감지된 SKILL.md 언어
- 영어
- 스타
- 77
- 포크
- 4
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/cxcscmu/SkillLearnBench --skill run2-time-formatting명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Handles reading, populating, and saving .docx files using the python-docx library. Use this skill for any tasks involving template filling or modifying Word documents.
Perform various data analysis on SEC 13-F and obtain some insights of fund activities such as number of holdings, AUM, and change of holdings between two quarters.
This skill includes search capability in 13F, such as fuzzy search a fund information using possibly inaccurate name, or fuzzy search a stock cusip info using its name.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | run2_time-formatting |
| description | Format dates and times with strict adherence to required formats |
Generate properly formatted date and time strings that exactly match requirements.
Required format: {day_name}, {month} {DD}, {YYYY}
from datetime import datetime
def format_date_strict(date_obj):
"""
Format date exactly as required.
Args:
date_obj: datetime.date or datetime.datetime
Returns:
str: "Monday, March 09, 2026"
Examples:
✓ Monday, March 09, 2026
✓ Thursday, January 08, 2026
✗ Monday, March 9, 2026 (missing leading zero)
✗ March 9, 2026 (missing day name)
✗ Monday, Mar 9, 2026 (abbreviated month)
"""
day_name = date_obj.strftime("%A") # Monday
month_name = date_obj.strftime("%B") # March
day_two_digit = date_obj.strftime("%d") # 09 (ensures leading zero)
year_four_digit = date_obj.strftime("%Y") # 2026
return f"{day_name}, {month_name} {day_two_digit}, {year_four_digit}"
# Test cases
test_dates = [
(datetime(2026, 3, 9), "Monday, March 09, 2026"),
(datetime(2026, 1, 8), "Thursday, January 08, 2026"),
(datetime(2026, 1, 1), "Thursday, January 01, 2026"),
(datetime(2026, 12, 31), "Thursday, December 31, 2026"),
]
for date, expected in test_dates:
result = format_date_strict(date)
assert result == expected, f"Expected '{expected}', got '{result}'"
Required format: {HH:MM AM/PM} - {HH:MM AM/PM}
- (space-dash-space)def format_time_12hr(hour_24, minute=0):
"""
Convert 24-hour time to 12-hour with AM/PM.
Args:
hour_24: 0-23
minute: 0-59
Returns:
(hour_12, minute, is_pm): (1-12, 0-59, bool)
Examples:
13 -> (1, is_pm=True) # 1:00 PM
0 -> (12, is_pm=False) # 12:00 AM
12 -> (12, is_pm=True) # 12:00 PM
"""
is_pm = hour_24 >= 12
hour_12 = hour_24 % 12
if hour_12 == 0:
hour_12 = 12
return (hour_12, minute, is_pm)
def format_time_strict(hour_24, minute=0):
"""
Format time exactly as required.
Args:
hour_24: 0-23 (24-hour format)
minute: 0-59
Returns:
str: "01:00 PM" format
Examples:
✓ 09:00 AM
✓ 01:00 PM
✓ 12:00 PM
✗ 9:00 AM (missing leading zero)
✗ 01:00 pm (lowercase)
✗ 1:00 PM (missing leading zero on hour)
"""
hour_12, minute, is_pm = format_time_12hr(hour_24, minute)
hour_str = str(hour_12).zfill(2) # Ensure 2 digits: 1 -> "01"
minute_str = str(minute).zfill(2) # Ensure 2 digits: 0 -> "00"
period = "PM" if is_pm else "AM"
return f"{hour_str}:{minute_str} {period}"
def format_time_range_strict(start_time, end_time):
"""
Format time range.
Args:
start_time: str "HH:MM" (24-hour) or (hour, minute) tuple
end_time: str "HH:MM" (24-hour) or (hour, minute) tuple
Returns:
str: "09:00 AM - 10:30 AM"
"""
# Parse inputs
(start_time, ):
h, m = (, start_time.split())
start_formatted = format_time_strict(h, m)
:
start_formatted = format_time_strict(*start_time)
(end_time, ):
h, m = (, end_time.split())
end_formatted = format_time_strict(h, m)
:
end_formatted = format_time_strict(*end_time)
format_time_strict() ==
format_time_strict(, ) ==
format_time_strict(, ) ==
format_time_strict(, ) ==
format_time_strict(, ) ==
format_time_range_strict(, ) ==
format_time_range_strict(, ) ==
When showing meeting duration, format as: {duration} hour(s)
def format_duration(hours):
"""
Format duration for display.
Args:
hours: float (1.0, 1.5, 0.75)
Returns:
str: "1 hour(s)" or "1.5 hour(s)"
"""
# Keep decimal if present, otherwise show integer
if hours == int(hours):
return f"{int(hours)} hour(s)"
else:
return f"{hours} hour(s)"
REPLY_TEMPLATE = """Hi,
Thank you for your meeting request.
I can be available:
Date: {date}
Time: {time_range}
Duration: {duration} hour(s)
If this time doesn't work, please let me know your preferred alternatives.
Best regards,
ConSkillBench"""
def generate_reply(date_obj, start_hour_24, start_minute, end_hour_24, end_minute, duration_hours):
"""Generate complete reply with all formatting correct."""
date_str = format_date_strict(date_obj)
time_str = format_time_range_strict((start_hour_24, start_minute), (end_hour_24, end_minute))
duration_str = format_duration(duration_hours)
return REPLY_TEMPLATE.format(
date=date_str,
time_range=time_str,
duration=duration_str
)