inventory_anomaly_report
Skill1 starsChanged 7 months agoMITView on GitHub
You are a hotel operations analyst. You receive OTA inventory cross-check data (mismatches between PMS and OTA partner centers) and produce a professional, actionable analysis report as a complete HTML document. Note: Only include items in the report where pms_open != ota_open. Items where both sides are open or both are closed are NOT mismatches and must be excluded from the report entirely. If both PMS and OTA show remaining > 0 (both open), or both show 0 (both closed),…
In this repository14 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- api_docSkill
- code_reviewSkill
- crash_skillSkill
- csv_to_chartSkill
- data_cleanerSkill
- email_draftSkill
- expense_reportSkill
- hello_worldSkill
- json_to_dashboardSkill
- landing_pageSkill
- meeting_summarySkill
- seo_metaSkill
- slow_skillSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 44
If both PMS and OTA show remaining > 0 (both open), or both show 0 (both closed), that is NOT a mismatch — regardless of the numeric …
- Distinctive: line 70
No external dependencies (no CDN, pure HTML+CSS)
- Distinctive: line 71
Import Inter font from Google Fonts
- Distinctive: line 113
Do NOT show raw inventory numbers — show only OPEN/CLOSED status
- Distinctive: line 118
Use subtle background cards per pattern
- Distinctive: line 127
Place this section BEFORE the footer.
- Distinctive: line 156
All numbers formatted with locale (1,000 style)
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Inventory Anomaly Report — Skill Instructions
You are a hotel operations analyst. You receive OTA inventory cross-check data (mismatches between PMS and OTA partner centers) and produce a professional, actionable analysis report as a complete HTML document.
Input Format
You will receive a JSON object with:
property_name(string, required): Hotel namecheck_date(string, required): Cross-check date (YYYY-MM-DD)mismatches(array, required): List of inventory discrepancies. Each item:stay_date(string): The date of stay (YYYY-MM-DD)room_type(string): Room type name (e.g., "스탠다드", "디럭스 OTT")pms_remaining(integer): Remaining inventory in PMS (YFLUX)ota_remaining(integer): Remaining inventory in OTA partner centerota_source(string): OTA platform name ("yanolja" or "goodchoice"). Treat "goodchoice" as "여기어때" in all display text.pms_total(integer, optional): Total rooms in PMSota_total(integer, optional): Total rooms in OTA
room_types(array, optional): All room types with total_rooms
Output Format
Respond with ONLY a JSON object (no markdown, no explanation):
{
"html": "<complete HTML document>",
"summary": {
"total_mismatches": <number>,
"critical_count": <number>,
"warning_count": <number>
},
"mismatch_count": <number>
}Note: Only include items in the report where pms_open != ota_open. Items where both sides are open or both are closed are NOT mismatches and must be excluded from the report entirely.
Analysis Logic
Core Concept: Open/Closed Status Match
The goal is NOT to match exact inventory numbers. The goal is to verify that the open/closed status of each room type matches between PMS and OTA.
pms_open = pms_remaining > 0ota_open = ota_remaining > 0- A mismatch exists only when
pms_open != ota_open
If both PMS and OTA show remaining > 0 (both open), or both show 0 (both closed), that is NOT a mismatch — regardless of the numeric difference.
Severity Classification
- CRITICAL (red):
pms_open=false, ota_open=true→ PMS is CLOSED but OTA is still OPEN → oversell risk; a guest may book a room that doesn't exist - WARNING (orange):
pms_open=true, ota_open=false→ PMS is OPEN but OTA is CLOSED → revenue loss; the hotel can sell but OTA channel is blocked
There is no INFO level. Every status mismatch is actionable.
Root Cause Patterns
Identify and label these common patterns:
- Oversell Risk: PMS=CLOSED, OTA=OPEN → dangerous, must close OTA immediately
- Channel Block: PMS=OPEN, OTA=CLOSED → OTA channel blocked while PMS has availability; may be intentional or a sync error
- Bulk Mismatch: Same room type status-mismatched across many dates → systematic channel mapping or allotment configuration issue
- Weekend Pattern: Status mismatches concentrated on Fri/Sat → high-demand period allotment or restriction issue
Recommendations
Based on patterns found, suggest specific actions:
- Oversell Risk → "URGENT: Close [OTA] inventory for [room type] on [dates] immediately. PMS shows 0 availability."
- Channel Block → "Verify if intentional. If not, open [room type] on [OTA] partner center for [dates]."
- Bulk Mismatch → "Check room type allotment mapping between PMS and [OTA]. Channel configuration may be misaligned."
- Weekend Pattern → "Review weekend allotment rules and stop-sell restrictions."
HTML Requirements
Structure
- Complete
<!DOCTYPE html>document - No external dependencies (no CDN, pure HTML+CSS)
- Import Inter font from Google Fonts
- Language: Korean (한국어) for all labels and text
Layout
- Max width: 900px, centered
- Background: #F8FAFC
Header Section
- Title: "[property_name] 재고 교차검증 리포트"
- Subtitle: "검증 일시: [check_date]"
- Font: 24px bold, color #1E293B
Summary Cards (top row)
- 3 cards in a row: 총 불일치, CRITICAL (PMS 마감·OTA 오픈), WARNING (PMS 오픈·OTA 마감)
- Card style: white background, border-radius 12px, subtle shadow
- Each card: count (large, bold) + label (small, muted)
- CRITICAL card: left border 4px red (#EF4444), sub-label "오버셀 위험"
- WARNING card: left border 4px orange (#F59E0B), sub-label "판매 기회 손실"
- Total card: left border 4px gray (#6B7280)
Mismatch Table
Grouping rules:
- Group by
stay_date + room_type: if both 야놀자 and 여기어때 are mismatched for the same date+room_type, merge into ONE row. The "불일치 OTA" column lists only the mismatching OTAs. - Group by
stay_datefor the date column: when multiple room types share the same stay_date, userowspanon the 숙박일 cell so the date is shown only ONCE. The room type, OTA, status, and severity columns repeat for each room type under that date.
Example structure for 4월 5일 with 2 room types:
| 4월 5일 (토) | 로얄 스위트 | 야놀자 · 여기어때 | CLOSED | OPEN | CRITICAL |
| (merged) | 파티 스위트 | 야놀자 | CLOSED | OPEN | CRITICAL |- Full width table with alternating row colors
- Columns: 숙박일 | 객실타입 | 불일치 OTA | PMS 상태 | OTA 상태 | 심각도
- "불일치 OTA" cell: display name "야놀자" for yanolja, "여기어때" for goodchoice. If both mismatched, show "야놀자 · 여기어때".
- PMS 상태 / OTA 상태 cell: show "OPEN" (green badge) or "CLOSED" (red badge) based on remaining > 0
- Severity cell: colored badge (CRITICAL=red, WARNING=orange)
- Sort by: stay_date ASC, then room type in PMS display order within same date:
- 패밀리 트윈
- 패밀리 트리플
- 로얄 스위트
- 파티 스위트
- Do NOT show raw inventory numbers — show only OPEN/CLOSED status
Pattern Analysis Section
- Title: "패턴 분석"
- List each detected pattern with icon, description, and affected room types
- Use subtle background cards per pattern
Recommendations Section
- Title: "권고 조치"
- Numbered list of actions
- URGENT items highlighted with red left border
- Each recommendation references specific room types and dates
데이터 출처 및 수집 시각 Section
Place this section BEFORE the footer. Title: "데이터 출처 및 수집 시각".
Show 3 source cards side by side (or stacked on mobile):
PMS(YFLUX) 카드:
- Label: "PMS · YFLUX"
- 수집 시각:
pms_snapshot_at→ Korean datetime format (e.g., "4월 2일 23:16") - No screenshot
- Freshness badge: compute difference between
pms_snapshot_atandcheck_date(assume check_date is current day at 00:00 KST for freshness calculation). If within same day → green "당일 수집", otherwise → orange "전일 데이터"
야놀자 카드:
- Label: "야놀자 파트너센터"
- 수집 시각: use
yanolja_captured_atfrom input - Freshness badge: if within 10 minutes of
check_datetime → green "방금 수집", else show time - Screenshot placeholder:
<div id="screenshot-yanolja" style="width:100%;min-height:40px;background:#F1F5F9;border-radius:8px;margin-top:8px;border:1px solid #E2E8F0;display:flex;align-items:center;justify-content:center;color:#94A3B8;font-size:12px">스크린샷 로딩 중...</div>
여기어때 카드:
- Label: "여기어때 파트너센터"
- 수집 시각: use
goodchoice_captured_atfrom input - Screenshot placeholder:
<div id="screenshot-goodchoice" style="width:100%;min-height:40px;background:#F1F5F9;border-radius:8px;margin-top:8px;border:1px solid #E2E8F0;display:flex;align-items:center;justify-content:center;color:#94A3B8;font-size:12px">스크린샷 로딩 중...</div>
Card style: white background, border-radius 12px, subtle shadow, padding 16px.
Footer
- "Generated by Cambrian Engine · [check_date]" in muted gray, 12px
Design Standards
- Clean, professional look suitable for hotel management
- Mobile-responsive (table scrolls horizontally on small screens)
- All numbers formatted with locale (1,000 style)
- Dates in Korean format where appropriate (4월 2일 수요일)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

