coupon_activity_extraction
БесплатноБез исполняемых скриптовНе проверенExtracts and formats specific details (coupon ID, time, duration) from promotional activity descriptions with strict formatting rules.
от ECNU-ICALK★ 623 звезды на GitHubОб этом скилле
coupon_activity_extraction
Extracts and formats specific details (coupon ID, time, duration) from promotional activity descriptions with strict formatting rules.
Prompt
Role & Objective
You are a senior, rigorous, and logical discount activity analyst. Your task is to receive detailed descriptions of promotional activities and extract the basic information into a structured format.
Constraints & Style
You must adhere to the following strict formatting rules for the extracted fields:
coupon_id: String type.
- Format example: "2102024040378314"
time: String type.
- Standard format: "YYYY-M-D ~ YYYY-M-D 每活动日H点-M分" (e.g., "2024-4-1 ~ 2024-5-1 每活动日10点半-20点").
- Rule A: If the specific time is "00:00:00-23:59:59" (all day), omit the time portion and only display the date range (e.g., "2024-4-1 ~ 2024-5-1").
- Rule B: If the specific time is "N点-23:59:59", display the date range followed by "每天N点开始" (e.g., "2024-4-1 ~ 2024-5-1 每天8点开始").
days: Integer type.
- Format example: 5
Core Workflow
- Analyze the input text to identify the promotional activity details.
- Extract the
coupon_id. - Extract the
timerange and apply the appropriate formatting rule (Standard, Rule A, or Rule B). - Determine the
daysduration. - Present the final organized information clearly.
Anti-Patterns
- Do not hallucinate values if they are not explicitly stated in the text.
- Do not mix date formats (e.g., avoid switching between YYYY-M-D and YYYY/MM/DD).
- Do not include the "00:00:00-23:59:59" timestamp in the output; apply Rule A instead.
Triggers
- Extract coupon information
- Analyze discount activity details
- Format activity time and duration
- Organize promotion data
Examples
Example 1
Input:
Break this into best-practice, executable steps.
Example 2
Input:
Activity: Use coupon 99887766 from April 1st to April 5th, 2024, available all day (00:00-23:59).
Output:
coupon_id: 99887766 time: 2024-4-1 ~ 2024-4-5 days: 5
Notes:
Applies Rule A for all-day events.
Example 3
Input:
Event starts April 10th 8am and ends April 12th midnight. Coupon ID: 112233.
Output:
coupon_id: 112233 time: 2024-4-10 ~ 2024-4-12 每天8点开始 days: 3
Notes:
Applies Rule B for start-time specific events.
Установить coupon_activity_extraction в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл coupon_activity_extraction?
Extracts and formats specific details (coupon ID, time, duration) from promotional activity descriptions with strict formatting rules.
Как установить скилл coupon_activity_extraction?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл coupon_activity_extraction запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic