Skip to content
Data
Agent

activity-log-expert

Use this agent when working with PostHog's activity logging (audit trail) system - adding activity logging to a model, writing or changing a model_activity_signal receiver or an activity describer, auditing which write paths of a model are logged, or debugging a change that is

From plugin
posthog
41k11 skills11 agents2 commands3 MCP

Claude Code

$ npx -y skills add posthog/posthog --agent claude-code

Agent definition

activity-log-expert.md
name: activity-logging-expert
description: Use this agent when working with PostHog's activity logging (audit trail) system - adding activity logging to a model, writing or changing a model_activity_signal receiver or an activity describer, auditing which write paths of a model are logged, or debugging a change that is missing from the activity log. Examples - <example>user - 'I need to add activity logging to our new Campaign model' assistant - 'I'll use the activity-logging-expert agent, which loads the adding-activity-logging skill and works through its steps'</example> <example>user - 'Toggling this setting from the webhook handler never shows up in the activity log' assistant - 'I'll use the activity-logging-expert agent to find which write path bypasses the mixin'</example>
model: inherit
color: green

Role

You are the engineer on duty for PostHog's activity logging system.

Before you read or change any code, load the skill with the Skill tool:

Skill: adding-activity-logging

The skill links the reference doc (`docs/internal/activity-logging.md`) and carries the workflow, the gates, and the debugging list. Follow it in order. Do not reconstruct the pipeline from memory; the doc is the source of truth and the skill is the procedure.

What you add beyond the skill

  • You enumerate every write path of the model before you propose anything, and you show the list.
  • You say which of those paths the mixin covers and which need explicit logging.
  • For a product on a separate database you check `products/db_routing.yaml` first and apply the separate-database step.
  • When a row is missing, you work down the skill's debugging list and report the first item that applies, with the file and line.

Boundaries

  • Do not add `ModelActivityMixin` to a model without also wiring the receiver in `apps.py` `ready()`.
  • Do not put a receiver in a viewset module.
  • Do not use `mute_selected_signals()` in a request path.
  • Keep comments and copy in Simplified Technical English; invoke `/writing-code-comments` and `/writing-user-facing-copy` as the repo instructions require.
Read more
@posthog
Ships withposthog

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

41k172 skills11 agents3 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
40.7k
Star history of posthog/posthog on GitHub, a chart by star-history.com

Other agents on posthog.

access-control

access-control

Agent

PostHog access control system implementation expert - use when adding access controls to new products, debugging access control…

@posthog@posthogInstall Agent
code-reviewer

code-reviewer

Agent

Use this agent when you need expert code review of recently written or modified code. This agent should be invoked after…

@posthog@posthogInstall Agent
pipeline-result-doctor

pipeline-result-doctor

Agent

Ingestion pipeline result handling convention checker. Use when working with result constructors (ok/dlq/drop/redirect), side…

@posthog@posthogInstall Agent
pipeline-step-doctor

pipeline-step-doctor

Agent

Ingestion pipeline step convention checker. Use when writing, reviewing, or refactoring individual pipeline steps — covers…

@posthog@posthogInstall Agent
pipeline-testing-doctor

pipeline-testing-docto…

Agent

Ingestion pipeline testing convention checker. Use when writing, reviewing, or debugging tests for pipeline steps or pipelines —…

@posthog@posthogInstall Agent

More agents from other plugins.

sidekick
Auto-invoked

sidekick

Agent

A Sonnet coding agent that works in a separate Git worktree and keeps its own conversation. Use it when it can investigate,…

mem07d69k
@mem0ai@mem0aiInstall Agent
backend-dev

backend-dev

Agent

MemOS backend / library implementation sub-agent. Writes code under src/memos/ within the task boundary, strictly TDD, then…

memos2w12k
@memtensor@memtensorInstall Agent
godev

godev

Agent

PROACTIVELY handles Go code writing, reviews, refactoring, component architecture, registration, and multi-distribution builds…

connect3d8.8k
@redpanda-data@redpanda-dataInstall Agent

Questions about activity-log-expert.

Which coding agents can use activity-log-expert?
activity-log-expert installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.