소스 정보
- 저장소
- cxcscmu/SkillLearnBench
- 최근 소스 활동
- 2026년 4월 24일 05:14
- 감지된 SKILL.md 언어
- 영어
- 스타
- 77
- 포크
- 4
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
SOC 직업 분류 기준
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/cxcscmu/SkillLearnBench --skill data-filtering명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
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.
| name | data-filtering |
| description | Filter accommodations, restaurants, and attractions by travel requirements |
Filter travel data by specific criteria like pet-friendly status, cuisine type, location, and price range.
from typing import List, Dict
import re
def filter_pet_friendly_accommodations(
accommodations: List[Dict],
pet_friendly_field: str = 'pet_friendly'
) -> List[Dict]:
"""Filter accommodations that allow pets"""
result = []
for acc in accommodations:
pet_field = acc.get(pet_friendly_field, '').lower()
# Handle various formats: 'yes', 'true', '1', 'pet-friendly'
if pet_field in ['yes', 'true', '1', 'pet friendly', 'pets allowed']:
result.append(acc)
elif 'pet' in pet_field and 'no' not in pet_field:
result.append(acc)
return result
def filter_by_cuisine(
restaurants: List[Dict],
cuisine_type: str,
cuisine_field: str = 'Cuisine'
) -> List[Dict]:
"""Filter restaurants by cuisine type"""
result = []
cuisine_lower = cuisine_type.lower()
for rest in restaurants:
cuisines = rest.get(cuisine_field, '').lower()
# Handle comma-separated cuisines
if ',' in cuisines:
cuisines_list = [c.strip() for c in cuisines.split(',')]
if any(cuisine_lower in c for c in cuisines_list):
result.append(rest)
elif cuisine_lower in cuisines:
result.append(rest)
return result
def filter_by_city(
data: List[Dict],
city: str,
city_field: str = 'City'
) -> List[Dict]:
"""Filter data by city"""
result = []
city_lower = city.lower()
for item in data:
item_city = item.get(city_field, '').lower()
if item_city == city_lower:
result.append(item)
return result
def filter_by_price_range(
data: List[Dict],
min_price: float,
max_price: float,
price_field: str = 'Price'
) -> List[Dict]:
"""Filter data by price range"""
result = []
for item in data:
try:
price = float(item.get(price_field, 0))
if min_price <= price <= max_price:
result.append(item)
except (ValueError, TypeError):
continue
return result
def filter_attractions_by_city(
attractions: List[Dict],
city: str,
city_field: str = 'City'
) -> List[Dict]:
"""Filter attractions by city"""
return filter_by_city(attractions, city, city_field)
def combine_filters(
data: List[Dict],
filters: Dict
) -> List[Dict]:
"""
Apply multiple filters to data.
filters dict: {'city': 'Cleveland', 'price_max': 100, ...}
"""
result = data
# Apply city filter
if 'city' in filters:
result = filter_by_city(
result,
filters['city'],
filters.get('city_field', 'City')
)
# Apply price range filter
if 'price_min' in filters or 'price_max' in filters:
min_price = filters.get('price_min', 0)
max_price = filters.get('price_max', float('inf'))
result = filter_by_price_range(
result,
min_price,
max_price,
filters.get('price_field', 'Price')
)
# Apply cuisine filter
if 'cuisine' in filters:
result = filter_by_cuisine(
result,
filters['cuisine'],
filters.get('cuisine_field', 'Cuisine')
)
return result
def select_diverse_options(
data: List[Dict],
num_selections: int,
key_field: str = 'Name'
) -> List[Dict]:
"""Select diverse options avoiding duplicates"""
seen = set()
result = []
for item in data:
key = item.get(key_field, '').lower()
if key not in seen:
seen.add(key)
result.append(item)
if len(result) >= num_selections:
break
return result
# Filter accommodations for Cleveland
cleveland_hotels = filter_by_city(accommodations, 'Cleveland')
pet_friendly = filter_pet_friendly_accommodations(cleveland_hotels)
budget_friendly = filter_by_price_range(pet_friendly, 0, 300)
# Filter restaurants by city and cuisine
cleveland_italian = filter_by_city(restaurants, 'Cleveland')
italian_only = filter_by_cuisine(cleveland_italian, 'Italian')
affordable_italian = filter_by_price_range(italian_only, 0, 80)
# Combine multiple filters
filters = {
'city': 'Columbus',
'cuisine': 'Mediterranean',
'price_max': 100
}
results = combine_filters(restaurants, filters)