Логотип Inf 05 07

Inf 05 07

Спільнота
backtrue
inf-05-07

Calculate the repeat-purchase interval, mean, and median for a specified cohort using customer identifiers and valid order dates. Use for questions about the average days between first and second orders across five years of records or how to calculate this in a spreadsheet; perform the measurement directly

Огляд

Видавецьbacktrue
Репозиторійthinkwithblack-skill
Назва навичкиinf-05-07
Зірки
249
Форки
24
Файли в пакеті
2
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 2

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: backtrue. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Inf 05 07 у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/backtrue/thinkwithblack-skill/tree/main/en/skills/inf-05-07
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/backtrue/thinkwithblack-skill.git /tmp/thinkwithblack-skill
mkdir -p .claude/skills
cp -r /tmp/thinkwithblack-skill/en/skills/inf-05-07 .claude/skills/inf-05-07
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Inf 05 07 в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Inf 05 07, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Inf 05 07 не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

INF-05-07 | Repeat-purchase interval calculation

For a regular chat, upload packs/inf-05-07.md. It includes the shared rules, this method, and required references

Purpose

This skill delivers: Repeat-purchase interval

This document specifies the data requirements and method. It does not establish that any account is connected or has been read. Identify any missing capability, authorization, or data explicitly; do not assume platform capabilities or completion

Required inputs

Required data: an order table (CSV or spreadsheet) containing customer identifiers, unique order IDs, valid payment timestamps, and cancellation/refund/test statuses, and state the historical coverage and time zone

Method

  1. Check the data's historical coverage, customer key, order uniqueness, and valid-order rules
  2. Group valid orders by customer and sort them; select only each customer's first and second valid orders
  3. Calculate the interval between the first two orders, then calculate the mean using the number of eligible customers as the denominator, following the supplementary formulas below
  4. Deliver the valid sample size, mean and median, counts of customers without a repeat purchase and with unknown histories, preserving the data period and calculation basis

Calculations and interpretation

Original permission mode: read. Execute dependencies only when needed for this task; connecting every platform in advance is not required

Required output fields

OrderFieldHow to complete
1CohortUse source evidence, an intermediate method result, or an explicit unknown; do not invent information
2Interval definitionUse source evidence, an intermediate method result, or an explicit unknown; do not invent information
3Valid sampleUse source evidence, an intermediate method result, or an explicit unknown; do not invent information
4Mean/medianUse source evidence, an intermediate method result, or an explicit unknown; do not invent information
5Customers without a repeat purchaseUse source evidence, an intermediate method result, or an explicit unknown; do not invent information
6Observation periodUse source evidence, an intermediate method result, or an explicit unknown; do not invent information

Activation conditions and full question scope

Use this skill directly when the user wants to calculate repeat-purchase intervals, the mean interval between the first and second valid orders, or asks whether an app or spreadsheet can produce that number. The Q028 original question and author's clarification specify five years of customer and order records. An app and a spreadsheet are alternative approaches; a spreadsheet method is sufficient, and both are not required

Clean and calculate from the data obtained for this task

Preserve the original population: all customers whose first and second valid orders can be verified (F2+). Include customers with three or more purchases, but count only the first-to-second interval once per customer. A population of customers with exactly two orders applies only when the user explicitly requests it. The first order observed in a five-year window is not necessarily a customer's lifetime first purchase. Check complete history, customer keys, unique orders, valid payment timestamps, time zones, and cancellation/refund/test rules first. Report unknown histories separately; deduplicate line items by order before calculation. Distinct valid orders on the same day may have a zero-day interval

Spreadsheet implementation example

This example implements the method's cohorts, intervals, and mean in spreadsheet cells. Preserve the raw data. On another sheet, arrange valid orders with confirmed complete history and stable customer keys, one row per order: A customer key, B numeric valid payment date or time, C unique order key. Normalize the case and data type of customer keys and exclude blank or missing keys; use a consistent time zone and day-count definition. Sort the entire table in ascending order by A, then B, then C before entering formulas. Re-sort and refill formulas whenever the data changes

Column D is the order sequence within each customer: enter =1 in D2 and =IF(A3=A2,D2+1,1) in D3, then fill D3 down to the final record

Column E calculates the first-to-second interval in days only on the second order: leave E2 blank, enter =IF(D3=2,B3-B2,"") in E3, and fill E3 down to the final record. Do not enter 0 for third or later orders or customers with only one order; retain genuine zero-day intervals between two same-day orders. If B includes times, the result is days with a fractional component. Convert all dates to calendar dates in the same time zone first only when using calendar days

For example, if the data ends at row 1000, the valid customer count is =COUNT(E2:E1000) and the mean is =IF(COUNT(E2:E1000)=0,"No valid second-purchase sample",AVERAGE(E2:E1000)). Replace 1000 with the actual final row so no rows are omitted. The denominator of the mean is valid customers, not orders. Count customers without a repeat purchase separately from those with only one valid order; do not treat blank interval rows as the number of customers without a repeat purchase

Microsoft IF explains conditional output; Microsoft AVERAGE explains that text and blanks are ignored while numeric zeros are retained. These formulas implement the method's calculations; they do not confirm a native Shopify report or an app capability

When raw data is missing, deliver the cohort, interval, formulas, observation window, and missing inputs; leave the valid sample, mean/median, and number without a repeat purchase unknown. If the question is solely about app selection or native features, verify those capabilities separately. Email is usage context; measurement does not automatically generate welcome messages, fixed contact dates, or causal claims about results

Median and verification

Using the valid first-to-second intervals in column E, calculate median with =IF(COUNT(E2:E1000)=0,"No valid repeat-purchase sample",MEDIAN(E2:E1000)). Replace 1000 with the actual last row, retain genuine zero-day intervals and exclude blanks

Check: intervals 0, 10 and 50 give count 3, mean 20 and median 10; no valid intervals produce the no-sample message for both mean and median

Method sources

Source file: marketing_skill_master_v1_4.xlsx/前置技能目錄 Location: INF-05-07 Source basis: V1 infrastructure planning / approved entry specification English translation of source excerpt:

Calculate mean/median days to repeat purchase

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Inf 05 07?

Calculate the repeat-purchase interval, mean, and median for a specified cohort using customer identifiers and valid order dates. Use for questions about the average days between first and second orders across five years of records or how to calculate this in a spreadsheet; perform the measurement directly

Навіщо використовувати Inf 05 07 у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Inf 05 07 — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Inf 05 07 у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/backtrue/thinkwithblack-skill/tree/main/en/skills/inf-05-07. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Inf 05 07?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Inf 05 07?

Зі скількома забажаєте. У TypingMind ви можете використовувати Inf 05 07 із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Inf 05 07?

Так. На GitHub цю навичку публікує backtrue за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇