auditing-the-fleet

posthog/posthog

Аудит всех агентов: сканирует недавние сессии на сбои и аномалии, классифицирует причины и создаёт DRAFT-предложения по исправлениям (без заморозки/промоушена), пишет отчёт в память.

Звёзды40 862
Авторposthog
Установок2

Установка

SKILL.md

Skill — auditing the fleet

The fleet-wide sweep. When the user asks for a fleet-wide sweep ("audit my fleet"), you look at every agent in the team, find where each one tripped up, propose concrete fixes as draft revisions, and leave a report behind. The memory report and the Slack digest are the durable outputs that survive past the conversation.

This skill is the orchestration. It leans on two others:

  • debugging-sessions — the per-session failure taxonomy + how to read an event log. Fetch the playbook the first time you open a bad session.
  • editing-agents-safely — the draft → validate mechanics. Fetch the playbook before you branch your first proposal.

What a fleet-wide sweep changes

This runs interactively — a user asked for a fleet-wide sweep ("audit my fleet"), and a human is reachable while you work. Read this before anything else; it shifts several defaults away from the single-agent flow:

  1. A human is reachable. Ask a clarifying question if the scope is ambiguous (whole fleet vs a subset, time window). The focus_* / toast client tools work when the user is in PostHog Desktop — use them to follow along as you sweep; outside PostHog Desktop they degrade to text. Don't use set_secret mid-sweep — credential fixes are recommendations for the user to action after (see step 4).
  2. No promotes, ever — propose, don't dispose. Even with the user reachable, an audit's job is to surface and propose, not to ship. promote / archive need explicit consent (a principal approval) and are out of scope for the sweep itself. Your write surface this run is: new-draft-create, the bundle edit tools (agent-md-update, skill-refs-update, tools-update, partial-update), and validate-create. Stop at validate. Do not freeze — a frozen revision reads as "ready to ship", and these are unreviewed.
  3. You act under the user's principal (the person who asked for the sweep), scoped to this team. Every agent you can list is in-scope; you can't reach another team's fleet, and you shouldn't try.
  4. Budget is finite. max_tool_calls covers the whole fleet, not one agent. Triage breadth-first (below) so a 30-agent team doesn't spend the entire budget on agent #1.

The sweep, step by step

1. Carry-over — read the last report first

memory-read reports/fleet-audit/latest.md (and/or memory-search for fleet-audit). You want the prior sweep's findings so this report can say what changed instead of re-listing the same five issues. Hold the prior issue list in mind as you go; tag each of this run's findings new / recurring / resolved.

If there's no prior report, this is the first sweep — note that in the report and audit everything fresh.

2. Enumerate the fleet

posthog__agent-applications-list. Drop archived agents. For each remaining agent you have a slug + id + live_revision. That's your worklist.

3. Per-agent triage (breadth-first)

For each agent, cheapest signal first — only go deep when a cheap signal is bad:

  1. posthog__agent-applications-sessions-list for the agent, last ~24–48h. Bucket by state. The cheap red flags:<!-- -->
    • any failed sessions
    • completed sessions pinned at the turn / tool-call cap (ran to the limit = probably looping or under-instructed)
    • a cost or turn-count outlier vs the agent's own norm
    • sessions re-queued by the janitor (stuck-running detection) or stalled on an approval that has since expired
  2. If the buckets are clean, write one line ("healthy, N sessions, no failures") and move on. Most agents should be one line.
  3. If a bucket is dirty, open the worst 1–3 sessions with posthog__agent-applications-sessions-retrieve + posthog__agent-applications-session-logs and run the debugging-sessions taxonomy. You're after the root cause, not a restatement of the symptom — "hit max_tool_calls because it re-ran the same @posthog/query 40× after an empty result, with no give-up path in agent.md" beats "limit_exceeded".

Cite session ids for every claim. A finding with no session id behind it is a guess, and guesses are how this report loses trust.

For the population view — failure-rate, cost, and p95 latency rolled up per agent, or "which sessions tripped up this week" in one query — load the querying-ai-observability playbook and HogQL the $ai_* events the runner captured into this team's project. It's cheaper than retrieving every session and surfaces systemic patterns (one root cause across many sessions) the per-session view misses; use it to pick which sessions are worth a deep sessions-retrieve.

4. Turn a root cause into a proposal

Only when you can name a specific, concrete change. Vague "could be more robust" notes go in the report as observations, not as drafts. A good proposal is one a reviewer can read the diff of and approve in a minute.

For each fix:

  1. new-draft-create from the agent's live_revision (source_revision_id) — clones every file so your edit is surgical.
  2. Apply the smallest change that addresses the root cause:<!-- -->
    • prompt/loop bug → agent-md-update, or revise the skill in the store (llm-skills-create a new version) and skill-refs-update
    • missing/over-broad tool, wrong limit, wrong model/reasoning → partial-update on the spec
    • keep each draft to one root cause. Don't bundle unrelated fixes into one revision — a reviewer should be able to take or leave each independently.
  3. validate-create on the draft. If it doesn't validate, your proposal is wrong — fix it or drop it; don't leave a broken draft lying around.
  4. Record the draft revision id + a one-line "what this changes and why" in the report. Stop here. No freeze, no promote.

If a root cause has no safe surgical fix (needs a secret rotated, a human decision, a Slack reconfig), write it as a recommendation in the report instead of forcing a draft. Better an honest "this needs you to decide X" than a draft that papers over it.

5. Write the report to memory

memory-write two paths:

  • reports/fleet-audit/{date}.md — the dated archive.
  • reports/fleet-audit/latest.md — same content, the stable handle the next sweep's carry-over reads.

Report shape:

# Fleet audit — {date}

## TL;DR
- {1–4 bullets: the things a human should act on, worst first}
- New since last sweep: {…}   Resolved: {…}   Still open: {…}

## Findings
### {agent-slug} — {healthy | degraded | failing}
- symptom (session ids: …)
- root cause
- proposal: draft {revision-id} — {one line}  |  recommendation: {…}
- vs last sweep: new | recurring | resolved

### {next agent} …

## Healthy ({count})
{agents with nothing to report, one line each}

Lead with the delta. A reviewer skimming the report wants "what's new or worse" in the first five lines, not a re-read of the last sweep.

6. Done — the memory report is the deliverable

The structured report in memory (reports/fleet-audit/{date}.md plus latest.md) is the complete output of the sweep. Point the operator at it. There is no Slack post step — the Agent Builder doesn't post to Slack.

Scope guard — what this run must NOT do

  • No promotes / freezes / archives. Proposals only. (Re-stating because it's the one rule that, broken, touches production.)
  • No edits to the live revision in place. Always branch a draft.
  • No deletions (tools-destroy) — destructive and unreviewed is the worst combination. (Dropping a skill_refs entry is fine — it only unlinks; the store skill stays.)
  • No raw secrets. If an agent's problem is a missing/expired credential, that's a recommendation for a human, never a value you set.
  • Don't audit yourself into the ground. If you're burning budget and half the fleet is still untriaged, write what you have, mark the rest "not reached this run", and end. A partial report that ships beats a complete one that hits the wall mid-write.

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: auditing-the-fleet](https://darkplay.ru/ai/skills/posthog-posthog-auditing-the-fleet)

Из того же репозитория

creating-an-endpoint Создаёт эндпоинт PostHog правильной формы с первого раза: выбор типа запроса, соглашения о ★40,9K diagnosing-endpoint-performance Диагностирует, почему эндпоинт PostHog медленный или дорогой, и предлагает конкретное испр ★40,9K diagnosing-ci-and-merge-bottlenecks Диагностирует здоровье CI и пайплайна pull-request в GitHub-репозитории через MCP-инструме ★40,9K debugging-surveys Отладка, поддержка и разработка PostHog Surveys на бэкенде и во всех пяти SDK (web/posthog ★40,9K creating-replay-vision-scanners Помогает создавать и безопасно масштабировать сканер Replay Vision: выбор типа (monitor/cl ★40,9K creating-online-evaluations Создаёт постоянно работающие онлайн-оценки в PostHog AI observability на основе реального ★40,9K consuming-endpoints-from-client-code Подключает эндпоинт PostHog к клиентскому приложению или SDK: получение OpenAPI-спеки, ген ★40,9K checking-deploy-timing Определяет, когда изменение кода PostHog попало в окружение, читая скрытые GIT-аннотации д ★40,9K

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

A11y Architectaffaan-m · Архитектор доступности, специализирующийся на соответствии WCAG 2.2 для веба и нативных…
225 587 ★
ruflo-iot-cognitumruvnet · Жизненный цикл IoT-устройств, обнаружение аномалий телеметрии, управление парком…
240 комп.
accessibility-compliancewshobson · Аудит доступности по WCAG, проверка соответствия, тестирование UI для скринридеров…
495 комп.
dependency-managementwshobson · Аудит зависимостей, управление версиями и сканирование уязвимостей безопасности.
495 комп.
seo-content-creationwshobson · Написание SEO-контента, планирование и аудит качества с оптимизацией E-E-A-T
495 комп.
Comet Opikgithub · Единый агент Comet Opik для инструментирования LLM-приложений, управления промптами и…
36 140 ★
agent-native-research-artifactorchestra-research · Инструменты Agent-Native Research Artifact (ARA): компиляция любого исследовательского…
96 комп.
entry-point-analyzertrailofbits · Анализирует кодовые базы смарт-контрактов для поиска точек входа, изменяющих состояние, в…
122 комп.
workflow-skill-designtrailofbits · Обучает паттернам проектирования навыков Claude Code на основе рабочих процессов и…
122 комп.
Workflow Skill Reviewertrailofbits · Проверяет навыки Claude Code на основе workflow на структурное качество, соответствие…
5 976 ★

Лучшие ИИ-инструменты для автоматизации и ассистентов

Ассистенты и автоматизация

Подборка ИИ-ассистентов для автоматизации рутины и ускорения рабочих процессов. Сервисы, которые берут на себя переписку, анализ данных, ведение базы знаний и подготовку продаж, эк

Give Me Public
Есть бесплатный тариф
5.0
AITunnelAitunnel
По запросу
5.0
STIVAStiva
По запросу
5.0
Wikibot (Викибот)Wikibot
По запросу
4.9
mymeet.aiMymeet
По запросу
4.9
InsighterInsighter
По запросу
4.9
TGHuntTghunt
Есть бесплатный тариф
4.9
LegiscanLegiscan
По запросу
4.9
RouterAIRouterai
По запросу
4.9
Wikibot 1.0 (Викибот)Wikibot
По запросу
4.9

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8