Дайджест раундов финансирования на слайде
Собирает недавние раунды финансирования по отраслям и делает один слайд PowerPoint: выводы, оценки, крупнейшие сделки со ссылками.
- Что делает
- Собирает недавние раунды финансирования по отраслям и делает один слайд PowerPoint: выводы, оценки, крупнейшие сделки со ссылками.
- Когда брать
- Для недельного обзора сделок, дайджеста финансирования или брифинга по рынкам капитала по выбранным отраслям и компаниям.
- Когда не брать
- Если нет доступа к данным S&P Global Capital IQ: все сделки берутся из них.
- Пример запроса
- Сделай недельный дайджест сделок по ИИ и финтеху одним слайдом PowerPoint.
- Нужно подключить
- S&P Global Capital IQ, PowerPoint
Входит в плагин spglobal. В Cowork и Claude Code можно поставить плагин целиком.
Как включить
- Скачайте архив и распакуйте его.
- Положите папку
funding-digestв~/.claude/skills/. - Откройте Claude Code и опишите задачу своими словами: Claude подхватит скилл по описанию.
Текст
---
name: funding-digest
description: "Создаёт аккуратный одностраничный слайд PowerPoint с ключевыми выводами по недавним раундам финансирования и заметной активности на рынках капитала в отслеживаемых пользователем отраслях и компаниях. Используй этот скилл, когда пользователь просит сводку по потоку сделок, недельный обзор, дайджест финансирования, подборку транзакций или брифинг по рынкам капитала. Срабатывает на фразы: «дайджест потока сделок», «недельный обзор финансирования», «подборка сделок», «сводка транзакций за эту неделю», «что произошло в [отрасли] на этой неделе», «обновление по рынкам капитала» или на любой запрос собрать недавнюю активность по финансированию в слайд-брифинг. Создаёт профессиональный одностраничный PPTX с ключевыми выводами, данными об оценке и ссылками на сделки в Capital IQ."
---
ОТКАЗ ОТ ОТВЕТСТВЕННОСТИ ЗА ИИ (ОБЯЗАТЕЛЬНО): Ты ОБЯЗАН включить следующий текст отказа от ответственности в подвал презентации PowerPoint. Это не по желанию: без него отчёт неполон:
«Анализ создан ИИ — пожалуйста, проверьте все результаты»
Подвал — внизу созданного слайда, в виде заметного жёлтого баннера: «Анализ создан ИИ — пожалуйста, проверьте все результаты»
Еженедельный дайджест потока сделок
Подготовь одностраничный слайд PowerPoint аналитического уровня, который обобщает ключевые выводы по недавним раундам финансирования в отслеживаемых отраслях или компаниях, на данных S&P Global Capital IQ. Каждая сделка ссылается на свой профиль в Capital IQ для быстрого углубления.
Когда использовать
Срабатывай на любой из таких шаблонов:
- «Дай мне дайджест потока сделок за эту неделю»
- «Недельный обзор финансирования по [отрасли]»
- «Какие сделки недавно закрылись в [отрасли или компаниях]?»
- «Подборка транзакций» или «подборка сделок»
- «Обновление по рынкам капитала для моей области покрытия»
- «Обобщи недавнюю активность по финансированию»
- Любой запрос периодического брифинга о сделках, привлечениях и раундах
Вложенные скиллы
Этот скилл создаёт брифинг в виде одного слайда PPTX:
- Прочитай
/mnt/skills/public/pptx/SKILL.mdперед созданием презентации PowerPoint (и её дополнительный справочникpptxgenjs.mdдля создания с нуля)
Определение сущностей и устойчивость инструментов
Система идентификаторов S&P Global сопоставляет названия компаний с юридическими лицами. Для большинства компаний это работает хорошо, но есть известные сбои, из-за которых приходят пустые результаты. Применяй эти правила на протяжении всего процесса, чтобы не терять данные молча.
Правило 0: проверь ВСЕ идентификаторы заранее, до запроса финансирования
Перед вызовом любых инструментов финансирования пропусти каждый идентификатор через get_info_from_identifiers. Это самый дешёвый и надёжный способ выявить проблемы на раннем этапе. Проверь в ответе две вещи:
- Определился ли идентификатор вообще? Если идентификатор возвращает пустой результат или ошибку, такого названия в S&P Global нет. Попробуй псевдоним из
references/sector-seeds.md, название юридического лица или напрямуюcompany_id. - **Что в поле
status?** "Operating"→ можно запрашивать раунды финансирования."Operating Subsidiary"→ компания существует, но принадлежит материнской. Она вернёт ноль раундов финансирования. Отметь это в дайджесте как контекст (например, «куплена компанией [Родитель]»), но не запрашивай для неё финансирование.- Любой другой статус (например, закрыта, неактивна) → компания больше не работает. Исторические данные могут быть, но новой активности нет.
Один этот шаг предварительной проверки предотвращает большинство проблем с пустыми результатами. Объедини всех кандидатов в один вызов get_info_from_identifiers (он хорошо справляется с большими пакетами) и рассортируй их, прежде чем продолжать.
Правило 1: не доверяй пустым результатам без запасного варианта
Если get_rounds_of_funding_from_identifiers вернул пустой результат для компании, по которой данные должны быть:
- Попробуй название юридического лица или company_id. Торговые названия обычно работают, но не всегда. Таблицу псевдонимов с известными несовпадениями смотри в
references/sector-seeds.md. Типичный шаблон: «[Бренд] AI» → «[Юридическое название], Inc.» (например, Together AI → «Together Computer, Inc.», Character.ai → «Character Technologies, Inc.», Runway ML → «Runway AI, Inc.»). - Проверь, что компания есть в S&P. Если ты пропустил правило 0, вызови сейчас
get_info_from_identifiers(identifiers=["Company"]): если и он возвращает пусто, компания, возможно, слишком ранней стадии или ещё не проиндексирована.
Правило 2: у дочерних компаний нет раундов финансирования
Компании, которые являются подразделениями или полностью принадлежащими дочерними структурами более крупных компаний (например, DeepMind в составе Alphabet, GitHub в составе Microsoft, BeReal в составе Voodoo), вернут ноль раундов финансирования. Их капитальные события отслеживаются на уровне материнской компании.
Как определить: поле status из get_info_from_identifiers покажет "Operating Subsidiary". Файл references/sector-seeds.md тоже помечает известные дочерние компании предупреждениями ⚠️. Пропускай их в запросах о финансировании.
Правило 3: основной инструмент — get_rounds_of_funding_from_identifiers, а не get_funding_summary_from_identifiers
Сводный инструмент быстрее, но менее надёжен: он может вернуть ошибки или неполные данные, даже когда подробные раунды есть. Всегда используй подробный инструмент раундов как основной источник данных. Сводный инструмент допустим только для быстрых агрегированных проверок (сколько привлечено всего, число раундов) и его нужно сверить с инструментом раундов, если результаты кажутся заниженными.
Правило 4: пакеты аккуратно и с проверкой
При обработке больших наборов компаний (50 и больше) разбивай на пакеты по 15-20. После каждого пакета проверь, какие компании вернули пустые результаты, и прогони их через запасные шаги правила 1, прежде чем идти дальше.
Правило 5: параметр role критически важен
company_raising_funds→ «Какие раунды привлекла X?» (с точки зрения компании)company_investing_in_round_of_funding→ «Во что вложился инвестор Y?» (с точки зрения инвестора)
Неверная роль молча возвращает пустые результаты. Для дайджестов потока сделок почти всегда нужен company_raising_funds. Роль инвестора используй только при специальном анализе активности портфеля инвестора.
Правило 6: определение идентификаторов нечувствительно к регистру, но чувствительно к написанию
S&P Global справляется с вариациями регистра («openai» = «OpenAI»), но строг к написанию и знакам препинания. «Character AI» может не сработать там, где «Character.ai» сработает. В сомнительных случаях используй company_id (например, C_1829047235), он гарантированно определится.
Рабочий процесс
Шаг 1: определи охват и период
Определи, что должен охватывать дайджест. Есть две ситуации:
Постоянный пользователь (у него есть список отслеживания): Если пользователь ранее определил отрасли или компании для отслеживания, используй этот список. Проверь историю разговора на наличие прежних списков.
Новый пользователь: Спроси:
| Параметр | По умолчанию | Примечания |
|---|---|---|
| Отрасли | *(минимум одна)* | например, «ИИ, финтех, биотех» |
| Конкретные компании | Необязательно | Дополняют охват на уровне отраслей |
| Период | Последние 7 дней | «На этой неделе», «за последние 2 недели», «в этом месяце» |
По периоду вычисли точные start_date и end_date.
Шаг 2: сформируй набор компаний
Для каждой указанной отрасли сформируй набор компаний методом проверяемой раскрутки:
- Начальные компании из отраслевых знаний (см.
references/sector-seeds.md) - Обрати внимание на предупреждения ⚠️ и заметки о псевдонимах в файле начальных компаний: некоторые известные компании являются дочерними, были куплены или требуют конкретного юридического названия для определения.
- В файле начальных компаний есть значения
company_idдля известных несовпадений псевдонимов. Используй их напрямую, если торговое название не сработало.
- Сразу проверь все начальные компании (правило 0): ``
get_info_from_identifiers(identifiers=[all_seeds_for_this_sector])`` Раздели результаты на две корзины: - ✅ Определились и действуют (
status= "Operating") → переходи к расширению за счёт конкурентов - ❌ Не определились или дочерние → повтори с псевдонимом или юридическим названием из файла начальных компаний; дочерние отмечай для контекста, но исключай из запросов о финансировании
- Расширь набор за счёт конкурентов (используя только ✅ определившиеся начальные компании): ``
get_competitors_from_identifiers(identifiers=[resolved_seeds], competitor_source="all")``
- Проверь расширенный набор: ``
get_info_from_identifiers(identifiers=[new_competitors])`Примени ту же сортировку. Отфильтруй поsimple_industry`, совпадающему с целевой отраслью. Отбрось неопределившиеся названия и дочерние компании.
Если пользователь указал конкретные компании, добавь их напрямую, но всё равно пропусти через предварительную проверку и сортировку. Никогда не пропускай проверку: даже известные торговые названия могут молча не сработать.
Держи набор в разумных пределах: ориентир — 15-40 определившихся и действующих компаний на отрасль. Для дайджеста по нескольким отраслям это может составить в сумме 50-100 и более компаний.
Шаг 3: получи раунды финансирования
Для всех компаний набора:
get_rounds_of_funding_from_identifiers(
identifiers=[batch],
role="company_raising_funds",
start_date="YYYY-MM-DD",
end_date="YYYY-MM-DD"
)
Если набор большой, обрабатывай пакетами по 15-20.
После каждого пакета определи компании с пустыми результатами. Для любой компании, по которой ожидалась активность:
- Повтори с названием юридического лица или другим идентификатором (см. правила определения сущностей выше).
- Записывай компанию как «нет данных» только после исчерпания запасных вариантов.
Собери все значения transaction_id из успешных результатов, затем дополни их подробной информацией о раундах:
get_rounds_of_funding_info_from_transaction_ids(
transaction_ids=[all_funding_ids]
)
Передавай ВСЕ идентификаторы транзакций в одном вызове (или небольшом числе вызовов), а не по одному на транзакцию: инструмент эффективно обрабатывает пакеты.
Извлеки из каждого раунда следующее (критически важно для слайда):
transaction_id— нужен для ссылки на сделку в Capital IQ- Дата объявления — когда раунд был публично объявлен
- Дата закрытия — когда раунд был официально закрыт
- Привлечённая сумма
- Оценка до вложений (pre-money) (если раскрыта)
- Оценка после вложений (post-money) (если раскрыта)
- Ведущие инвесторы
- Тип раунда (Series A, B, C и т. д.)
- Условия ценных бумаг
- Консультанты
- Динамика цены (раунд с ростом оценки / раунд со снижением оценки / без изменений)
Даты обязательны. Даты объявления и закрытия всегда должны присутствовать в таблице сделок итогового слайда. Если доступна только одна дата, покажи её, а вторую отметь «—».
Шаг 4: получи контекст по компаниям для заметных сделок
Для любой компании, участвующей в значимой сделке (крупный раунд, заметный сдвиг оценки), получи краткое описание:
get_company_summary_from_identifiers(identifiers=[notable_companies])
Это добавляет контекст в повествование (например, «Компания, стартап ИИ-инфраструктуры, основанный в 2021 году, расширяется в...»).
Шаг 5: выдели главное и тенденции
Прежде чем проектировать слайд, проанализируй данные, чтобы увидеть историю:
Отметь как «заметные»:
- Раунды от $100 млн
- Раунды со снижением оценки (динамика цены = вниз)
- Новые «единороги» (оценка post-money превысила $1 млрд)
- Значительные скачки оценки (post-money не меньше чем в 2 раза выше последней известной оценки)
- Повторные привлечения (та же компания снова привлекает средства в течение 6 месяцев)
- Необычно крупные синдикаты инвесторов
Определи тенденции:
- Всего привлечено капитала за этот период по сравнению с типичным (если есть исторические данные)
- Какие подотрасли самые горячие (больше всего раундов и капитала)
- Распределение раундов по стадиям (преобладают ранние или поздние стадии?)
- Самые активные инвесторы в дайджесте
- Географическая концентрация
- Тенденции оценки (оценки pre-money сжимаются или растут?)
Выбери ключевые выводы (3-5): Сведи самые важные сигналы в 3-5 кратких выводов в виде маркированных пунктов. Это центральная часть слайда. Каждый вывод — одно чёткое предложение, подкреплённое данными.
Примеры:
- «Отрасль ИИ привлекла $2,4 млрд за 8 раундов, в 3 раза больше, чем на прошлой неделе, во главе с мегараундом на $800 млн у [Компании] при оценке post-money $12 млрд.»
- «[Компания] закрыла раунд Series D на $200 млн при оценке pre-money $3,5 млрд, против $1,8 млрд в раунде Series C, что говорит о сильном спросе на инструменты для ИИ-разработчиков.»
- «Активность раундов со снижением оценки выросла: 2 из 6 поздних раундов прошли по цене ниже прежних оценок.»
Шаг 6: создай логотипы компаний
Для каждой компании, упомянутой в ключевых выводах или заметных сделках, создай логотип с помощью двухуровневого локального конвейера. Не используй Clearbit (logo.clearbit.com): он устарел и постоянно даёт сбои. Внешние CDN логотипов (Brandfetch, logo.dev, Google Favicons) требуют ключей API или блокируются сетевыми ограничениями. Вместо этого применяй такой подход:
Уровень 1: пакет npm simple-icons (3300+ SVG брендов, сеть не нужна)
Пакет simple-icons содержит качественные SVG-значки тысяч известных брендов. Он работает полностью офлайн: ни ключей API, ни сетевых вызовов. Установи его вместе с sharp для преобразования SVG в PNG:
npm install simple-icons sharp
Стратегия поиска:
const si = require('simple-icons');
const sharp = require('sharp');
// Find an icon by exact title match (case-insensitive)
function findSimpleIcon(companyName) {
// Try exact match first
for (const [key, val] of Object.entries(si)) {
if (!key.startsWith('si') || !val || !val.title) continue;
if (val.title.toLowerCase() === companyName.toLowerCase()) return val;
}
// Try without common suffixes (AI, Inc., Corp.)
const stripped = companyName.replace(/\s*(AI|Inc\.?|Corp\.?|Ltd\.?)$/i, '').trim();
if (stripped !== companyName) {
for (const [key, val] of Object.entries(si)) {
if (!key.startsWith('si') || !val || !val.title) continue;
if (val.title.toLowerCase() === stripped.toLowerCase()) return val;
}
}
return null;
}
// Convert SVG to PNG with the brand's official color
async function simpleIconToPng(icon, outputPath) {
const coloredSvg = icon.svg.replace('<svg', `<svg fill="#${icon.hex}"`);
await sharp(Buffer.from(coloredSvg))
.resize(128, 128, { fit: 'contain', background: { r: 255, g: 255, b: 255, alpha: 0 } })
.png()
.toFile(outputPath);
}
Охват: около 43% компаний типичного потока сделок (хорошо для крупных технологических брендов вроде Stripe, Anthropic, Databricks, Snowflake, Discord, Shopify, SpaceX, Mistral AI, Hugging Face; слабее для нишевых финтех-, биотех- и ранних компаний).
Уровень 2: запасной вариант с инициалами через sharp (100% охват)
Для компаний, которых нет в simple-icons, создай аккуратный логотип из инициала в виде PNG:
async function generateInitialLogo(companyName, outputPath) {
const initial = companyName.charAt(0).toUpperCase();
const svg = `
<svg width="128" height="128" xmlns="http://www.w3.org/2000/svg">
<circle cx="64" cy="64" r="64" fill="#BDBDBD"/>
<text x="64" y="64" font-family="Arial, Helvetica, sans-serif"
font-size="56" font-weight="bold" fill="#FFFFFF"
text-anchor="middle" dominant-baseline="central">${initial}</text>
</svg>`;
await sharp(Buffer.from(svg)).png().toFile(outputPath);
}
Полный конвейер
async function fetchLogo(companyName, outputDir) {
const fileName = companyName.toLowerCase().replace(/[\s.]+/g, '-') + '.png';
const outPath = path.join(outputDir, fileName);
// Tier 1: Try simple-icons
const icon = findSimpleIcon(companyName);
if (icon) {
await simpleIconToPng(icon, outPath);
return { path: outPath, source: 'simple-icons' };
}
// Tier 2: Generate initial-based fallback
await generateInitialLogo(companyName, outPath);
return { path: outPath, source: 'initial-fallback' };
}
Рекомендации по логотипам:
- Сохраняй все логотипы в
/home/claude/logos/[company-name].png - Все логотипы — PNG 128×128 с прозрачным фоном
- На слайде выводи логотипы высотой 0,35-0,5 дюйма: это акценты, а не главные элементы
- Запасные кружки с инициалами имеют серую заливку (
BDBDBD) и белый текст, в тон монохромной палитре - Не смешивай стили логотипов вразнобой: если большинство компаний определились до значков брендов, немногие запасные варианты должны вписываться естественно
Шаг 7: создай одностраничный PPTX
Прочитай /mnt/skills/public/pptx/SKILL.md и /mnt/skills/public/pptx/pptxgenjs.md, прежде чем создавать слайд.
Создай одностраничную презентацию PowerPoint с помощью pptxgenjs. Слайд должен быть насыщен информацией, но визуально чистым: думай «управленческая панель», а не «стена текста».
Макет слайда
┌─────────────────────────────────────────────────────────────┐
│ ДАЙДЖЕСТ ПОТОКА СДЕЛОК │
│ [Период] · [Отрасли] [Дата] │
├─────────────────────────────────────────────────────────────┤
│ │
│ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
│ │ $X.XB │ │ N │ │ $X.XB │ │ $X.XB │ │
│ │ Собрано │ │ Раундов │ │ Ср. pre │ │ Макс. │ │
│ └─────────┘ └─────────┘ └─────────┘ └─────────┘ │
│ │
│ КЛЮЧЕВЫЕ ВЫВОДЫ │
│ ───────────────────────────────────────────────── │
│ [Лого] Текст вывода 1 здесь... │
│ [Лого] Текст вывода 2 здесь... │
│ [Лого] Текст вывода 3 здесь... │
│ [Лого] Текст вывода 4 здесь... │
│ │
│ КРУПНЕЙШИЕ СДЕЛКИ │
│ ┌──────────────────────────────────────────────────────────┐│
│ │Компан.│Тип │Объявлен │Закрыт│Сумма │Pre-$│Post-$│Лид │🔗││
│ │───────│─────│─────────│──────│──────│─────│──────│────│──││
│ │ ... │ ... │ ... │ ... │ ... │ ... │ ... │... │🔗││
│ └──────────────────────────────────────────────────────────┘│
│ │
│ [Подвал: Дайджест сделок · Источник: S&P Global Capital IQ]│
│ [Подвал: отказ от ответственности за ИИ] │
└─────────────────────────────────────────────────────────────┘
Требования к оформлению
Философия цвета: минимализм, сначала монохром. Слайд должен ощущаться как дорогой финансовый брифинг: преобладают чёрный, белый и серый. Цвет используется только там, где несёт смысл (например, красный индикатор раунда со снижением оценки, зелёный индикатор выдающегося показателя) или где читатель его естественно ждёт (логотипы компаний). Никогда не используй цвет в чисто декоративных целях: для заливки фона, акцентных полос или градиентов.
Цветовая палитра — «Монохромный руководитель»:
- Основной фон:
FFFFFF(белый) — чистый, открытый фон слайда - Полоса заголовка:
1A1A1A(почти чёрный) — сильный контраст для области заголовка - Основной текст:
1A1A1A(почти чёрный) — весь основной текст, числа статистики, выводы - Вторичный текст:
6B6B6B(средне-серый) — подписи, пояснения, подвал, даты - Границы и разделители:
D0D0D0(светло-серый) — тонкие структурные линии, контуры карточек, границы таблицы - Фон карточек:
F5F5F5(почти белый / очень светло-серый) — заливка карточек статистики, чередующиеся строки таблицы - Текст ссылок:
2B5797(приглушённый синий) — ссылки на сделки Capital IQ в таблице (единственный синий цвет на слайде) - Смысловой цвет (экономно):
- Раунды со снижением оценки или негативные сигналы:
C0392B(приглушённый красный) — используй только как маленькую точку, метку или выделение одного слова, никогда как заливку или фон - Выдающиеся положительные показатели (новый «единорог», необычно крупный раунд):
2E7D32(приглушённый зелёный) — то же минимальное применение: точка, маленькая метка или одно выделенное число - Если ни один показатель не требует цветового индикатора, не используй цвет совсем. Полностью монохромный слайд — вполне правильный результат.
Типографика:
- Заголовок: 28-32pt, жирный, белый на почти чёрной полосе заголовка
- Числа статистики: 36-44pt, жирный, почти чёрный
- Подписи статистики: 10-12pt, средне-серый (
6B6B6B) - Текст выводов: 12-14pt, почти чёрный, по левому краю
- Текст таблицы: 9-11pt, почти чёрный, серый (
6B6B6B) для второстепенных столбцов - Текст ссылок: 9-10pt, приглушённый синий (
2B5797) - Подвал: 8pt, средне-серый
Карточки статистики (верхний ряд):
- 4 ключевых показателя в виде крупных чисел: всего привлечено, число раундов, средняя оценка pre-money, крупнейший раунд
- Каждый в карточке с заливкой
F5F5F5и тонкой границейD0D0D0— без теней и цветных заливок - Если показатель неожиданный или экстремальный (например, объём втрое выше обычного, рекордная сделка), рядом с этим одним числом можно поставить маленькую цветную точку или подчёркивание, иначе оставь всё монохромным
- Если оценки pre-money в основном не раскрыты, замени показатель другим (например, медианный размер раунда, число новых «единорогов»)
Ключевые выводы (средняя часть):
- 3-5 выводов в одну строку, каждому предпослан логотип соответствующей компании (небольшой, высотой около 0,35 дюйма)
- Если логотипа нет, используй серый кружок с белым инициалом компании, а не цветной кружок
- Выравнивание по левому краю, с достаточным интервалом, чтобы текст не давил
- Для выводов о раундах со снижением оценки или негативных можно использовать маленькую красную точку-префикс; иначе без цвета
- Добавляй контекст оценки, где он есть (например, «при оценке post-money $5 млрд»)
Таблица крупнейших сделок (нижняя часть):
- Компактная таблица с 4-6 самыми заметными сделками
- Столбцы: компания, тип (Series X), объявлен (дата), закрыт (дата), сумма ($ млн), pre-money ($ млн), post-money ($ млн), ведущий инвестор, ссылка на сделку
- Столбцы «Объявлен» и «Закрыт» показывают даты в формате
MMM DD(например, «Jan 15»). Эти столбцы обязательны и должны присутствовать всегда. Если даты нет, покажи «—». - Столбец «Ссылка на сделку» содержит кликабельный текст «View →» со ссылкой на Capital IQ: ``
https://www.capitaliq.spglobal.com/web/client?#offering/capitalOfferingProfile?id=<transaction_id>`где<transaction_id>— этоtransaction_idизget_rounds_of_funding_from_identifiers`. - Если оценка pre-money или post-money не раскрыта, покажи «—» в этой ячейке
- Строка заголовков: заливка почти чёрным (
1A1A1A) и белый текст; чередующиеся строкиF5F5F5иFFFFFF - Центрируй таблицу по горизонтали на слайде. Вычисли общую ширину таблицы, затем задай
xтак, чтобы она была по центру относительно ширины слайда:x = (slideWidth - tableWidth) / 2. Для макета 16:9 (ширина 13,33 дюйма), если таблица шириной 12 дюймов, используйx = 0.67. Никогда не прижимай таблицу к левому краю слайда. - Делай компактно: это справочная часть, а не главный элемент
- Никаких цветных заливок в ячейках таблицы. Если сделка — раунд со снижением оценки, рядом с суммой может стоять маленькая красная текстовая метка «(↓ снижение)»: это единственный допустимый цвет в таблице.
Реализация ссылки на сделку (pptxgenjs): В pptxgenjs гиперссылки добавляются в ячейки таблицы через свойство options.hyperlink объекта ячейки:
// Table cell with Capital IQ deal link
{
text: "View →",
options: {
hyperlink: {
url: `https://www.capitaliq.spglobal.com/web/client?#offering/capitalOfferingProfile?id=${transactionId}`
},
color: "2B5797",
fontSize: 9,
fontFace: "Arial"
}
}
Центрирование таблицы (pptxgenjs): Всегда центрируй таблицу сделок на слайде. Вычисляй положение x динамически:
const SLIDE_W = 13.33; // 16:9 slide width
const TABLE_W = 12.5; // total table width (sum of all column widths)
const TABLE_X = (SLIDE_W - TABLE_W) / 2; // ≈ 0.42"
slide.addTable(tableRows, {
x: TABLE_X,
y: tableY,
w: TABLE_W,
colW: [1.8, 0.9, 0.9, 0.9, 1.0, 1.1, 1.2, 1.6, 0.7], // Company, Type, Announced, Closed, Amount, Pre-$, Post-$, Lead, Link
// ... other options
});
Подстраивай значения colW по необходимости, но всегда пересчитывай TABLE_X как (SLIDE_W - sum(colW)) / 2, чтобы таблица оставалась по центру.
Подвал:
- Мелкий текст средне-серого цвета: «Дайджест сделок · [Период] · Источники: S&P Global Capital IQ · Создано [Дата]»
Общие правила цвета (соблюдать строго):
- Логотипы компаний — единственные «полноцветные» элементы на слайде; они выводятся как есть из источника.
- Ссылки на сделки — приглушённого синего цвета (
2B5797): это единственный немонохромный цвет текста, кроме смыслового красного и зелёного. - Помимо логотипов и ссылок, слайд должен выглядеть правильно при печати на чёрно-белом принтере.
- Никогда не применяй цвет к фонам, акцентным полосам, декоративным фигурам и разделителям разделов.
- Если сомневаешься, оставь серым.
Структура кода
const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Deal Flow Digest";
const slide = pres.addSlide();
const SLIDE_W = 13.33; // 16:9 slide width in inches
// 1. Dark header bar with title and period
// 2. Stat cards row (4 cards: Total Raised, # Rounds, Avg Pre-Money, Largest Round)
// 3. Key takeaways section with logos (include valuation context)
// 4. Top deals table with Announced, Closed, Pre-Money, Post-Money columns and Capital IQ deal links
// - Center the table: x = (SLIDE_W - tableWidth) / 2
// 5. Footer
pres.writeFile({ fileName: "/home/claude/deal-flow-digest.pptx" });
Используй фабричные функции (а не общие объекты) для теней и повторяющихся стилей, как рекомендуется в разделе о подводных камнях pptxgenjs.
Шаг 8: проверка качества слайда
Следуй процессу проверки качества из скилла PPTX:
- Проверка содержимого:
python -m markitdown deal-flow-digest.pptx— проверь, что весь текст, цифры, названия компаний, оценки и ссылки на сделки верны - Визуальная проверка: преобразуй в изображение и осмотри: ``
bash python /mnt/skills/public/pptx/scripts/office/soffice.py --headless --convert-to pdf deal-flow-digest.pptx pdftoppm -jpeg -r 200 deal-flow-digest.pdf slide`` Проверь наложение элементов, переполнение текста, проблемы выравнивания, низкий контраст текста, проблемы с размером логотипов и видимость текста ссылок на сделки. - Проверка ссылок: убедись, что адреса Capital IQ в таблице правильно оформлены и содержат верные идентификаторы транзакций.
- Исправь и проверь заново: как минимум один цикл «исправил и проверил», прежде чем объявлять работу готовой.
Шаг 9: представь результат
- Скопируй итоговый
.pptxв/mnt/user-data/outputs/ - Используй
present_files, чтобы поделиться слайдом - Дай краткое словесное резюме из 2-3 предложений:
- «В вашем дайджесте X раундов, на которых привлечено в сумме $Y в отраслях [отрасли].»
- Назови единственную самую заметную сделку и её оценку
- Отметь тревожные тенденции (раунды со снижением оценки, сжатие оценок и т. д.)
Обработка ошибок
Сбои определения сущностей
- Пустые результаты по известной компании: сначала проверь
get_info_from_identifiers; если и он не работает, попробуй псевдоним изreferences/sector-seeds.mdили сразуcompany_id. Типичные несовпадения бренда и юридического названия: Together AI → «Together Computer, Inc.», Character.ai → «Character Technologies, Inc.», Runway ML → «Runway AI, Inc.». - Дочерние компании: DeepMind, GitHub, Instagram, WhatsApp, YouTube, BeReal и др. являются дочерними, у них нет самостоятельных раундов финансирования. Отмечай их в контексте как «куплена / дочерняя», но не сообщай о них как об «отсутствии активности».
- Закрывшиеся компании: такие компании, как Convoy (закрылась в октябре 2023 года), по-прежнему определяются в S&P Global, но новой активности у них не будет. Файл
references/sector-seeds.mdпомечает их: проверь его, прежде чем включать компанию. - **
get_funding_summary_from_identifiersвозвращает ошибки или нули:** перейди наget_rounds_of_funding_from_identifiers: сводный инструмент менее надёжен. Никогда не полагайся на сводный инструмент как на единственный источник данных. - **Неверный параметр
role:** если запросы с точки зрения инвестора возвращают пусто, проверь, что ты используешьcompany_investing_in_round_of_funding, а неcompany_raising_funds(и наоборот).
Проблемы с качеством данных
- Нет активности за период: если в отрасли не было ни одного раунда финансирования, отметь это на слайде явно («За период в отрасли [Отрасль] транзакций не зафиксировано»): отсутствие активности само по себе информативно.
- Скудные данные об оценках: если оценки pre-money и post-money не раскрыты для большинства транзакций, отметь ограничение данных в сноске в подвале и используй «—» в таблице. Измени карточку статистики, чтобы она показывала другой показатель (например, медианный размер раунда) вместо средней оценки pre-money.
- Не удалось получить логотипы: пакет npm
simple-iconsдаёт около 43% охвата для компаний типичного потока сделок. Для остальных используй запасной вариант с инициалами, созданный черезsharp. Сохраняй единый стиль значков: не смешивай случайные подходы. Еслиsimple-iconsилиsharpне устанавливаются, перейди на инициалы из фигур pptxgenjs (серый эллипс с белым текстом поверх), которым не нужны внешние зависимости. - Слишком много сделок для одного слайда: если заметных сделок больше 6, покажи в таблице 6 лучших и добавь сноску: «+N сделок не показаны». Приоритет отдавай по размеру сделки.
- Большие наборы: для дайджестов по нескольким отраслям со 100 и более компаниями разбивай все вызовы API на пакеты по 15-20. Отдавай приоритет глубине по заметным сделкам, а не полноте по мелким.
- Устаревшие начальные компании: если расширение за счёт конкурентов по отрасли вернуло очень мало результатов, возможно, начальные компании слишком нишевые. Расширь выбор, добавив ещё 2-3 известных названия, и повтори расширение.
- Недействительные идентификаторы транзакций для ссылок: если
transaction_idиз инструмента финансирования не даёт рабочего адреса Capital IQ, пропусти ячейку со ссылкой в этой строке, а не вставляй нерабочую ссылку.
Примеры запросов
- «Дай мне недельный дайджест потока сделок по ИИ и финтеху»
- «Подведи итоги финансирования в биотехе за эту неделю»
- «Подборка сделок по моей области покрытия — кибербезопасность, облачная инфраструктура и инструменты для разработчиков — за последние 2 недели»
- «Что произошло в венчурной сфере на этой неделе по всем отраслям, за которыми я слежу?»
- «Быстрый слайд по потоку сделок в климатических технологиях за этот месяц»
Перевод: iiuniversitet. Оригинал: https://github.com/anthropics/financial-services/tree/main/plugins/partner-built/spglobal/skills/funding-digest, лицензия Apache-2.0. Изменения: перевод на русский язык.
Оригинал на английском
---
name: funding-digest
description: "Generate a polished one-page PowerPoint slide summarizing key takeaways from recent funding rounds and notable capital markets activity across a user's watched sectors or companies. Use this skill when the user asks for a deal flow summary, weekly recap, funding digest, transaction roundup, or capital markets briefing. Triggers on: 'deal flow digest', 'weekly funding recap', 'deal roundup', 'transaction summary this week', 'what happened in [sector] this week', 'capital markets update', or any request to compile recent funding activity into a briefing slide. Produces a professional single-slide PPTX with key takeaways, valuation data, and Capital IQ deal links."
---
**AI DISCLAIMER (MANDATORY):**
You MUST include the following disclaimer text in the powerpoint footer. This is not optional — the report is incomplete without it:
> **"Analysis is AI-generated — please confirm all outputs"**
**Footer** — At the bottom of the generated slide, as a prominent yellow banner: "Analysis is AI-generated — please confirm all outputs"
---
# Weekly Deal Flow Digest
Generate an analyst-quality **single-slide PowerPoint** that summarizes key takeaways from recent funding rounds across watched sectors or companies, using S&P Global Capital IQ data. Each deal links back to its Capital IQ profile for quick drill-down.
## When to Use
Trigger on any of these patterns:
- "Give me a deal flow digest for this week"
- "Weekly funding recap for [sector]"
- "What deals closed in [sector/companies] recently?"
- "Transaction roundup" or "deal roundup"
- "Capital markets update for my coverage universe"
- "Summarize recent funding activity"
- Any periodic briefing request about deals, raises, or rounds
## Nested Skills
This skill produces a one-slide PPTX briefing:
- **Read** `/mnt/skills/public/pptx/SKILL.md` before generating the PowerPoint (and its sub-reference `pptxgenjs.md` for creating from scratch)
## Entity Resolution & Tool Robustness
S&P Global's identifier system resolves company names to legal entities. This works well for most companies but has known failure modes that cause empty results. **Apply these rules throughout the workflow to avoid silent data loss.**
### Rule 0: Pre-validate ALL identifiers before querying funding
**Before** calling any funding tools, run every identifier through `get_info_from_identifiers`. This is the cheapest and most reliable way to catch problems early. Check two things in the response:
1. **Did it resolve at all?** If the identifier returns empty/error, the name doesn't exist in S&P Global. Try the alias from `references/sector-seeds.md`, the legal entity name, or the `company_id` directly.
2. **What is the `status` field?**
- `"Operating"` → Safe to query for funding rounds.
- `"Operating Subsidiary"` → The company exists but is owned by a parent. It will return **zero funding rounds**. Note this in the digest as context (e.g., "acquired by [Parent]") but do not query for funding.
- Any other status (e.g., closed, inactive) → The company is no longer operating. Historical data may exist but no new activity.
**This single pre-validation step prevents the majority of empty-result issues.** Batch all candidates into a single `get_info_from_identifiers` call (it handles large batches well) and triage before proceeding.
### Rule 1: Never trust empty results without a fallback
If `get_rounds_of_funding_from_identifiers` returns empty for a company you expect to have data:
1. **Try the legal entity name or company_id.** Brand names usually work, but some don't. See the alias table in `references/sector-seeds.md` for known mismatches. Common pattern: "[Brand] AI" → "[Legal Name], Inc." (e.g., Together AI → "Together Computer, Inc.", Character.ai → "Character Technologies, Inc.", Runway ML → "Runway AI, Inc.").
2. **Verify the company exists in S&P.** If you skipped Rule 0, call `get_info_from_identifiers(identifiers=["Company"])` now — if this also returns empty, the company may be too early-stage or not yet indexed.
### Rule 2: Subsidiaries have no funding rounds
Companies that are divisions or wholly-owned subsidiaries of larger companies (e.g., DeepMind under Alphabet, GitHub under Microsoft, BeReal under Voodoo) will return **zero funding rounds**. Their capital events are tracked at the parent level.
**How to detect:** The `status` field from `get_info_from_identifiers` will show `"Operating Subsidiary"`. The `references/sector-seeds.md` file also flags known subsidiaries with ⚠️ warnings. Skip these for funding queries.
### Rule 3: Use `get_rounds_of_funding_from_identifiers` as the primary tool, not `get_funding_summary_from_identifiers`
The summary tool is faster but less reliable — it can return errors or incomplete data even when detailed rounds exist. Always use the detailed rounds tool as the primary data source. The summary tool is acceptable only for quick aggregate checks (total raised, round count) and should be verified against the rounds tool if results seem low.
### Rule 4: Batch carefully and validate
When processing large company universes (50+ companies), batch in groups of 15–20. After each batch, check for companies that returned empty results and run them through the fallback steps in Rule 1 before moving on.
### Rule 5: The `role` parameter is critical
- `company_raising_funds` → "What rounds did X raise?" (company perspective)
- `company_investing_in_round_of_funding` → "What did investor Y invest in?" (investor perspective)
Using the wrong role returns empty results silently. For deal flow digests, you almost always want `company_raising_funds`. Only use the investor role when specifically analyzing an investor's portfolio activity.
### Rule 6: Identifier resolution is case-insensitive but spelling-sensitive
S&P Global handles case variations ("openai" = "OpenAI") but is strict on spelling and punctuation. "Character AI" may fail where "Character.ai" succeeds. When in doubt, use the `company_id` (e.g., `C_1829047235`) which is guaranteed to resolve.
## Workflow
### Step 1: Establish Coverage & Period
Determine what the digest should cover. There are two setups:
**Returning user (has a watchlist):**
If the user has previously defined sectors or companies to track, use that list. Check conversation history for prior watchlists.
**New user:**
Ask for:
| Parameter | Default | Notes |
|-----------|---------|-------|
| **Sectors** | *(at least one)* | e.g., "AI, Fintech, Biotech" |
| **Specific companies** | Optional | Supplement sector-level coverage |
| **Time period** | Last 7 days | "This week", "last 2 weeks", "this month" |
Calculate the exact `start_date` and `end_date` from the time period.
### Step 2: Build the Company Universe
For each sector specified, build a company universe using a validated bootstrapping approach:
1. **Seed companies** from domain knowledge (see `references/sector-seeds.md`)
- Pay attention to the ⚠️ warnings and alias notes in the seeds file — some well-known companies are subsidiaries, have been acquired, or require a specific legal name to resolve.
- The seeds file includes `company_id` values for known alias mismatches. Use these directly if the brand name fails.
2. **Pre-validate all seeds immediately** (Rule 0):
```
get_info_from_identifiers(identifiers=[all_seeds_for_this_sector])
```
Triage the results into two buckets:
- ✅ **Resolved & Operating** (`status` = "Operating") → proceed to competitor expansion
- ❌ **Unresolved or Subsidiary** → retry with alias/legal name from seeds file; subsidiaries are noted for context but excluded from funding queries
3. **Expand via competitors** (using only the ✅ resolved seeds):
```
get_competitors_from_identifiers(identifiers=[resolved_seeds], competitor_source="all")
```
4. **Validate expanded universe:**
```
get_info_from_identifiers(identifiers=[new_competitors])
```
Apply the same triage. Filter by `simple_industry` matching the target sector. Drop any unresolved names or subsidiaries.
If the user provides specific companies, add those directly but still run them through the pre-validation triage. Never skip validation — even well-known brand names can fail silently.
Keep the universe manageable — aim for 15–40 **resolved, operating** companies per sector. For a multi-sector digest, this might total 50–100+ companies.
### Step 3: Pull Funding Rounds
For all companies in the universe:
```
get_rounds_of_funding_from_identifiers(
identifiers=[batch],
role="company_raising_funds",
start_date="YYYY-MM-DD",
end_date="YYYY-MM-DD"
)
```
Process in batches of 15–20 if the universe is large.
**After each batch, identify companies with empty results.** For any company expected to have activity:
1. Retry with the legal entity name or alternate identifier (see Entity Resolution rules above).
2. Log the company as "no data" only after exhausting fallbacks.
Collect all `transaction_id` values from successful results, then enrich with detailed round info:
```
get_rounds_of_funding_info_from_transaction_ids(
transaction_ids=[all_funding_ids]
)
```
Pass ALL transaction IDs in a single call (or small number of calls) rather than one per transaction — the tool handles batches efficiently.
**Extract the following from each round (critical for the slide):**
- `transaction_id` — needed for the Capital IQ deal link
- **Announcement date** — when the round was publicly announced
- **Close date** — when the round officially closed
- Amount raised
- **Pre-money valuation** (if disclosed)
- **Post-money valuation** (if disclosed)
- Lead investors
- Round type (Series A, B, C, etc.)
- Security terms
- Advisors
- Pricing trend (up-round / down-round / flat)
> **Dates are required.** The announcement and close dates must always appear in the final slide's deal table. If only one date is available, show it and mark the other as "—".
### Step 4: Pull Company Context for Notable Deals
For any company involved in a significant deal (large round, notable valuation shift), get a brief description:
```
get_company_summary_from_identifiers(identifiers=[notable_companies])
```
This adds context to the narrative (e.g., "The company, an AI infrastructure startup founded in 2021, is expanding into...").
### Step 5: Identify Highlights & Trends
Before designing the slide, analyze the data to surface the story:
**Flag as "Notable":**
- Rounds ≥ $100M
- Down rounds (pricing trend = down)
- New unicorns (post-money valuation crossing $1B)
- Significant valuation jumps (post-money ≥ 2x the last known valuation)
- Repeat raisers (same company raising again within 6 months)
- Unusually large investor syndicates
**Identify Trends:**
- Total capital deployed this period vs. typical (if historical data available)
- Which sub-sectors are hottest (most rounds, most capital)
- Round stage distribution (is early-stage or late-stage dominating?)
- Most active investors across the digest
- Geographic concentration
- Valuation trends (are pre-money valuations compressing or expanding?)
**Select Key Takeaways (3–5):**
Distill the most important signals into 3–5 concise bullet-style takeaways. These are the centerpiece of the slide. Each takeaway should be one sentence, punchy, and data-backed.
Examples:
- "AI sector raised $2.4B across 8 rounds — 3x the prior week, led by a $800M mega-round from [Company] at a $12B post-money valuation."
- "[Company] closed a $200M Series D at $3.5B pre-money, up from $1.8B in its Series C — signaling strong demand for AI developer tools."
- "Down-round activity ticked up: 2 of 6 late-stage rounds priced below prior valuations."
### Step 6: Generate Company Logos
For each company featured in the key takeaways or notable deals, generate a logo using a two-tier local pipeline. **Do not use Clearbit** (`logo.clearbit.com`) — it is deprecated and consistently fails. External logo CDNs (Brandfetch, logo.dev, Google Favicons) require API keys or are blocked by network restrictions. Instead, use the following approach:
#### Tier 1: `simple-icons` npm Package (3,300+ Brand SVGs, No Network Required)
The `simple-icons` package bundles high-quality SVG icons for thousands of well-known brands. It works entirely offline — no API keys, no network calls. Install it alongside `sharp` for SVG → PNG conversion:
```bash
npm install simple-icons sharp
```
**Lookup strategy:**
```javascript
const si = require('simple-icons');
const sharp = require('sharp');
// Find an icon by exact title match (case-insensitive)
function findSimpleIcon(companyName) {
// Try exact match first
for (const [key, val] of Object.entries(si)) {
if (!key.startsWith('si') || !val || !val.title) continue;
if (val.title.toLowerCase() === companyName.toLowerCase()) return val;
}
// Try without common suffixes (AI, Inc., Corp.)
const stripped = companyName.replace(/\s*(AI|Inc\.?|Corp\.?|Ltd\.?)$/i, '').trim();
if (stripped !== companyName) {
for (const [key, val] of Object.entries(si)) {
if (!key.startsWith('si') || !val || !val.title) continue;
if (val.title.toLowerCase() === stripped.toLowerCase()) return val;
}
}
return null;
}
// Convert SVG to PNG with the brand's official color
async function simpleIconToPng(icon, outputPath) {
const coloredSvg = icon.svg.replace('<svg', `<svg fill="#${icon.hex}"`);
await sharp(Buffer.from(coloredSvg))
.resize(128, 128, { fit: 'contain', background: { r: 255, g: 255, b: 255, alpha: 0 } })
.png()
.toFile(outputPath);
}
```
**Coverage:** ~43% of typical deal flow companies (strong for major tech brands like Stripe, Anthropic, Databricks, Snowflake, Discord, Shopify, SpaceX, Mistral AI, Hugging Face; weaker for niche fintech, biotech, or early-stage companies).
#### Tier 2: Initial-Based Fallback via `sharp` (100% Coverage)
For companies not found in `simple-icons`, generate a clean initial-based logo as a PNG:
```javascript
async function generateInitialLogo(companyName, outputPath) {
const initial = companyName.charAt(0).toUpperCase();
const svg = `
<svg width="128" height="128" xmlns="http://www.w3.org/2000/svg">
<circle cx="64" cy="64" r="64" fill="#BDBDBD"/>
<text x="64" y="64" font-family="Arial, Helvetica, sans-serif"
font-size="56" font-weight="bold" fill="#FFFFFF"
text-anchor="middle" dominant-baseline="central">${initial}</text>
</svg>`;
await sharp(Buffer.from(svg)).png().toFile(outputPath);
}
```
#### Complete Pipeline
```javascript
async function fetchLogo(companyName, outputDir) {
const fileName = companyName.toLowerCase().replace(/[\s.]+/g, '-') + '.png';
const outPath = path.join(outputDir, fileName);
// Tier 1: Try simple-icons
const icon = findSimpleIcon(companyName);
if (icon) {
await simpleIconToPng(icon, outPath);
return { path: outPath, source: 'simple-icons' };
}
// Tier 2: Generate initial-based fallback
await generateInitialLogo(companyName, outPath);
return { path: outPath, source: 'initial-fallback' };
}
```
**Logo guidelines:**
- Save all logos to `/home/claude/logos/[company-name].png`
- All logos are 128×128 PNG with transparent backgrounds
- On the slide, display logos at 0.35"–0.5" tall — they're accents, not focal points
- Initial-fallback circles use gray (`BDBDBD`) fill with white text — consistent with the monochrome palette
- Never mix logo styles randomly — if most companies resolve to brand icons, the few fallbacks should blend in naturally
### Step 7: Generate the One-Page PPTX
Read `/mnt/skills/public/pptx/SKILL.md` and `/mnt/skills/public/pptx/pptxgenjs.md` before creating the slide.
Create a **single-slide** PowerPoint using `pptxgenjs`. The slide should be information-dense but visually clean — think "executive dashboard" not "wall of text."
#### Slide Layout
```
┌─────────────────────────────────────────────────────────────┐
│ DEAL FLOW DIGEST │
│ [Period] · [Sectors] [Date] │
├─────────────────────────────────────────────────────────────┤
│ │
│ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
│ │ $X.XB │ │ N │ │ $X.XB │ │ $X.XB │ │
│ │ Raised │ │ Rounds │ │ Avg Pre │ │ Largest │ │
│ └─────────┘ └─────────┘ └─────────┘ └─────────┘ │
│ │
│ KEY TAKEAWAYS │
│ ───────────────────────────────────────────────── │
│ [Logo] Takeaway 1 text goes here... │
│ [Logo] Takeaway 2 text goes here... │
│ [Logo] Takeaway 3 text goes here... │
│ [Logo] Takeaway 4 text goes here... │
│ │
│ TOP DEALS │
│ ┌──────────────────────────────────────────────────────────┐│
│ │Company│Type │Announced│Closed│Amount│Pre-$│Post-$│Lead│🔗││
│ │───────│─────│─────────│──────│──────│─────│──────│────│──││
│ │ ... │ ... │ ... │ ... │ ... │ ... │ ... │... │🔗││
│ └──────────────────────────────────────────────────────────┘│
│ │
│ [Footer: Deal Flow Digest · Sources: S&P Global Capital IQ]│
│ [Footer: AI Disclaimer] │
└─────────────────────────────────────────────────────────────┘
```
#### Design Specifications
**Color philosophy: Minimal, monochrome-first.** The slide should feel like a high-end financial brief — black, white, and gray dominate. Color is used **only** where it carries meaning (e.g., a red indicator for a down round, a green indicator for a standout metric) or where the reader would naturally expect it (company logos). Never use color for purely decorative purposes like background fills, accent bars, or gradient effects.
**Color palette — Monochrome Executive:**
- Primary background: `FFFFFF` (white) — clean, open slide background
- Header bar: `1A1A1A` (near-black) — strong contrast for the title region
- Primary text: `1A1A1A` (near-black) — all body text, stat numbers, takeaways
- Secondary text: `6B6B6B` (medium gray) — labels, captions, footer, date stamps
- Borders & dividers: `D0D0D0` (light gray) — subtle structural lines, card outlines, table borders
- Card backgrounds: `F5F5F5` (off-white / very light gray) — stat card fills, alternating table rows
- Link text: `2B5797` (muted blue) — Capital IQ deal links in the table (the only blue on the slide)
- **Semantic color (sparingly):**
- Down rounds or negative signals: `C0392B` (muted red) — use only as a small dot, tag, or single-word highlight, never as a fill or background
- Standout positive metrics (new unicorn, outsized round): `2E7D32` (muted green) — same minimal usage: a dot, a small tag, or a single highlighted number
- If no data points warrant a color indicator, **use no color at all**. A fully monochrome slide is perfectly correct.
**Typography:**
- Title: 28–32pt, bold, white on near-black header bar
- Stat numbers: 36–44pt, bold, near-black
- Stat labels: 10–12pt, medium gray (`6B6B6B`)
- Takeaway text: 12–14pt, near-black, left-aligned
- Table text: 9–11pt, near-black with gray (`6B6B6B`) for secondary columns
- Link text: 9–10pt, muted blue (`2B5797`)
- Footer: 8pt, medium gray
**Stat Cards (top row):**
- 4 key metrics as large-number callouts: Total Raised, # Rounds, Avg Pre-Money Valuation, Largest Round
- Each in a card with `F5F5F5` fill and a thin `D0D0D0` border — no shadow, no color fills
- If a stat is surprising or extreme (e.g., 3x normal volume, a record deal), a small colored dot or underline may be placed next to that single number — otherwise keep fully monochrome
- If pre-money valuations are mostly undisclosed, substitute with a different metric (e.g., Median Round Size, # New Unicorns)
**Key Takeaways (middle section):**
- 3–5 one-line takeaways, each prefixed with the relevant company logo (small, ~0.35" tall)
- If no logo available, use a **gray circle** with the company initial in white — not a colored circle
- Left-aligned, with enough spacing to breathe
- Down-round or negative takeaways may use a small red dot prefix; otherwise no color
- Include valuation context where available (e.g., "at a $5B post-money valuation")
**Top Deals Table (bottom section):**
- Compact table showing the 4–6 most notable deals
- Columns: Company, Type (Series X), Announced (date), Closed (date), Amount ($M), Pre-Money ($M), Post-Money ($M), Lead Investor, Deal Link
- **Announced** and **Closed** columns show dates in `MMM DD` format (e.g., "Jan 15"). These columns are required and must always be present. If a date is not available, show "—".
- The **Deal Link** column contains a clickable "View →" text linking to Capital IQ:
```
https://www.capitaliq.spglobal.com/web/client?#offering/capitalOfferingProfile?id=<transaction_id>
```
where `<transaction_id>` is the `transaction_id` from `get_rounds_of_funding_from_identifiers`.
- If pre-money or post-money valuation is not disclosed, show "—" in that cell
- Header row with near-black (`1A1A1A`) fill and white text; alternating rows in `F5F5F5` and `FFFFFF`
- **Center the table horizontally** on the slide. Calculate the table's total width, then set `x` so it is centered within the slide width: `x = (slideWidth - tableWidth) / 2`. For a 16:9 layout (13.33" wide), if the table is 12" wide, use `x = 0.67`. Never left-align the table to the slide edge.
- Keep it tight — this is a reference, not the focal point
- No colored fills in table cells. If a deal is a down round, a small red text tag "(↓ down)" may appear next to the amount — that is the only permitted color in the table.
**Deal Link Implementation (pptxgenjs):**
In pptxgenjs, hyperlinks are added to table cells using the `options.hyperlink` property on the cell object:
```javascript
// Table cell with Capital IQ deal link
{
text: "View →",
options: {
hyperlink: {
url: `https://www.capitaliq.spglobal.com/web/client?#offering/capitalOfferingProfile?id=${transactionId}`
},
color: "2B5797",
fontSize: 9,
fontFace: "Arial"
}
}
```
**Table Centering (pptxgenjs):**
Always center the deal table on the slide. Calculate the x position dynamically:
```javascript
const SLIDE_W = 13.33; // 16:9 slide width
const TABLE_W = 12.5; // total table width (sum of all column widths)
const TABLE_X = (SLIDE_W - TABLE_W) / 2; // ≈ 0.42"
slide.addTable(tableRows, {
x: TABLE_X,
y: tableY,
w: TABLE_W,
colW: [1.8, 0.9, 0.9, 0.9, 1.0, 1.1, 1.2, 1.6, 0.7], // Company, Type, Announced, Closed, Amount, Pre-$, Post-$, Lead, Link
// ... other options
});
```
Adjust `colW` values as needed, but always recompute `TABLE_X` from `(SLIDE_W - sum(colW)) / 2` to keep the table centered.
**Footer:**
- Small text in medium gray: "Deal Flow Digest · [Period] · Sources: S&P Global Capital IQ · Generated [Date]"
**General color rules (enforce strictly):**
- Company logos are the only "full color" elements on the slide — they appear as-is from the source.
- Deal links use muted blue (`2B5797`) — this is the only non-monochrome text color besides semantic red/green.
- Outside of logos and links, the slide should look correct printed on a black-and-white printer.
- Never apply color to backgrounds, accent bars, decorative shapes, or section dividers.
- When in doubt, leave it gray.
#### Code Structure
```javascript
const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Deal Flow Digest";
const slide = pres.addSlide();
const SLIDE_W = 13.33; // 16:9 slide width in inches
// 1. Dark header bar with title and period
// 2. Stat cards row (4 cards: Total Raised, # Rounds, Avg Pre-Money, Largest Round)
// 3. Key takeaways section with logos (include valuation context)
// 4. Top deals table with Announced, Closed, Pre-Money, Post-Money columns and Capital IQ deal links
// - Center the table: x = (SLIDE_W - tableWidth) / 2
// 5. Footer
pres.writeFile({ fileName: "/home/claude/deal-flow-digest.pptx" });
```
Use factory functions (not shared objects) for shadows and repeated styles per the pptxgenjs pitfalls guidance.
### Step 8: QA the Slide
Follow the QA process from the PPTX skill:
1. **Content QA:** `python -m markitdown deal-flow-digest.pptx` — verify all text, numbers, company names, valuation figures, and deal links are correct
2. **Visual QA:** Convert to image and inspect:
```bash
python /mnt/skills/public/pptx/scripts/office/soffice.py --headless --convert-to pdf deal-flow-digest.pptx
pdftoppm -jpeg -r 200 deal-flow-digest.pdf slide
```
Check for overlapping elements, text overflow, alignment issues, low-contrast text, logo sizing problems, and that deal link text is visible.
3. **Link QA:** Verify that the Capital IQ URLs in the table are correctly formatted with the right transaction IDs.
4. **Fix and re-verify** — at least one fix-and-verify cycle before declaring done.
### Step 9: Present Results
1. Copy the final `.pptx` to `/mnt/user-data/outputs/`
2. Use `present_files` to share the slide
3. Provide a 2–3 sentence verbal summary:
- "Your digest covers X rounds totaling $Y raised across [sectors]."
- Call out the single most notable deal and its valuation
- Flag any concerning trends (down rounds, valuation compression, etc.)
## Error Handling
### Entity Resolution Failures
- **Empty results for a known company:** First check `get_info_from_identifiers` — if that fails, try the alias from `references/sector-seeds.md` or the `company_id` directly. Common brand→legal mismatches: Together AI → "Together Computer, Inc.", Character.ai → "Character Technologies, Inc.", Runway ML → "Runway AI, Inc.".
- **Subsidiary companies:** DeepMind, GitHub, Instagram, WhatsApp, YouTube, BeReal, etc. are subsidiaries — they have zero independent funding rounds. Note these as "acquired/subsidiary" in context but do not report them as "no activity."
- **Defunct companies:** Companies like Convoy (shut down Oct 2023) still resolve in S&P Global but will never have new activity. The `references/sector-seeds.md` file flags these — check it before including a company.
- **`get_funding_summary_from_identifiers` errors or returns zeros:** Fall back to `get_rounds_of_funding_from_identifiers` — the summary tool is less reliable. Never rely on the summary tool as the sole data source.
- **Wrong `role` parameter:** If investor-perspective queries return empty, verify you're using `company_investing_in_round_of_funding`, not `company_raising_funds` (and vice versa).
### Data Quality Issues
- **No activity in period:** If a sector had zero funding rounds, note this explicitly on the slide ("No transactions recorded in [Sector] during the period") — absence of activity is itself informative.
- **Sparse valuation data:** If pre-money and post-money valuations are undisclosed for most transactions, note the data limitation in a footer annotation and use "—" in the table. Adjust the stat card to show a different metric (e.g., Median Round Size) instead of Avg Pre-Money.
- **Logo retrieval failures:** The `simple-icons` npm package provides ~43% coverage for typical deal flow companies. For the remainder, use the `sharp`-generated initial-based fallback. Keep a consistent icon style — don't mix random approaches. If `simple-icons` or `sharp` fail to install, fall back to pptxgenjs shape-based initials (gray ellipse + white text overlay) which require no external dependencies.
- **Too many deals for one slide:** If there are more than 6 notable deals, show the top 6 in the table and add a footnote: "+N additional deals not shown." Prioritize by deal size.
- **Large universes:** For multi-sector digests with 100+ companies, batch all API calls in groups of 15–20. Prioritize depth on notable deals over completeness on minor ones.
- **Stale seeds:** If competitor expansion returns very few results for a sector, the seed companies may be too niche. Broaden by adding 2–3 more well-known names and re-expanding.
- **Invalid transaction IDs for links:** If a `transaction_id` from the funding tool doesn't produce a valid Capital IQ URL, omit the link cell for that row rather than including a broken link.
## Example Prompts
- "Give me a weekly deal flow digest for AI and fintech"
- "Summarize this week's funding in biotech"
- "Deal roundup for my coverage — cybersecurity, cloud infrastructure, and dev tools — last 2 weeks"
- "What happened in venture this week across all sectors I follow?"
- "Quick deal flow slide for climate tech this month"
Источник: anthropics/financial-services / spglobal / funding-digest ↗. Ссылка проверена 2026-10-10.