Saleor Django Schema Migration
saleor/saleor
Generates and splits Django schema migrations for Saleor with manage.py makemigrations, enforcing one new model or one field change per migration file.
Adds or changes activity logging (the audit trail) for a Django model in PostHog.
$ npx skills add PostHog/posthog-foss --skill adding-activity-logging -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install PostHog/posthog-foss adding-activity-logging --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/PostHog/posthog-foss.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/adding-activity-logging .claude/skills/adding-activity-logging && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "adding-activity-logging" agent skill from https://github.com/PostHog/posthog-foss/tree/master/.agents/skills/adding-activity-logging into .claude/skills/adding-activity-logging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "adding-activity-logging", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/PostHog/posthog-foss/tree/master/.agents/skills/adding-activity-loggingType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add PostHog/posthog-foss --skill adding-activity-logging -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install PostHog/posthog-foss adding-activity-logging --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PostHog/posthog-foss.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/adding-activity-logging .agents/skills/adding-activity-logging && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "adding-activity-logging" agent skill from https://github.com/PostHog/posthog-foss/tree/master/.agents/skills/adding-activity-logging into .agents/skills/adding-activity-logging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "adding-activity-logging", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add PostHog/posthog-foss --skill adding-activity-logging -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install PostHog/posthog-foss adding-activity-logging --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PostHog/posthog-foss.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/adding-activity-logging .cursor/skills/adding-activity-logging && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "adding-activity-logging" agent skill from https://github.com/PostHog/posthog-foss/tree/master/.agents/skills/adding-activity-logging into .cursor/skills/adding-activity-logging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "adding-activity-logging", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/PostHog/posthog-foss.git --path .agents/skills/adding-activity-logging--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add PostHog/posthog-foss --skill adding-activity-logging -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install PostHog/posthog-foss adding-activity-logging --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PostHog/posthog-foss.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/adding-activity-logging .gemini/skills/adding-activity-logging && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "adding-activity-logging" agent skill from https://github.com/PostHog/posthog-foss/tree/master/.agents/skills/adding-activity-logging into .gemini/skills/adding-activity-logging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "adding-activity-logging", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install PostHog/posthog-foss adding-activity-loggingInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add PostHog/posthog-foss --skill adding-activity-logging -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/PostHog/posthog-foss.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/adding-activity-logging .github/skills/adding-activity-logging && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "adding-activity-logging" agent skill from https://github.com/PostHog/posthog-foss/tree/master/.agents/skills/adding-activity-logging into .github/skills/adding-activity-logging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "adding-activity-logging", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add PostHog/posthog-foss --skill adding-activity-logging -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install PostHog/posthog-foss adding-activity-logging --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PostHog/posthog-foss.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/adding-activity-logging .opencode/skills/adding-activity-logging && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "adding-activity-logging" agent skill from https://github.com/PostHog/posthog-foss/tree/master/.agents/skills/adding-activity-logging into .opencode/skills/adding-activity-logging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "adding-activity-logging", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
adding-activity-loggingAdds or changes activity logging (the audit trail) for a Django model in PostHog.
Adding Activity Logging is an agent skill from PostHog/posthog-foss, published by the product's own GitHub organization. Adds or changes activity logging (the audit trail) for a Django model in PostHog. Use when a model's writes must show in the Activity side panel or the advanced activity logs, when adding ModelActivityMixin, an ActivityScope, a modelactivitysignal receiver, an activity describer, or field exclusions, when auditing which write paths of a model are logged, or when a change is missing from the activity log. Covers the receiver-module convention, writes the signal cannot see (QuerySet.update, bulkcreate), the actor…
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Backend & APIs, covering Backend development. It works with PostHog and Django. The repository describes itself as: PostHog FOSS is a read-only mirror of PostHog, with all proprietary code removed. NOTE: This repo is synced automatically from the main PostHog repo. Please raise any issues and… The licence is MIT.
9 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 2c48221. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
rgruffFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Adding Activity Logging loads about 1.5k tokens when it runs. Until then it costs about 187 tokens; SKILL.md has 642 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from PostHog/posthog-foss at commit 2c48221, republished under its MIT licence (© PostHog). 642 words, ~1,540 tokens.
.claude/skills/adding-activity-logging/SKILL.md (or your agent's skills folder).Read docs/internal/activity-logging.md first. It carries the pipeline, the file locations, and the reasons. This skill carries the workflow and the gates.
Reference implementation: products/feature_flags/backend/activity_logging.py with its apps.py.
Separate-database reference: products/stamphog/backend/activity_logging.py.
The mixin hooks save() and delete().
It does not see QuerySet.update(), bulk_create(), bulk_update(), or raw SQL.
A receiver that logs only the API path gives an audit trail that says nobody changed a row a webhook changed.
rg -n "Thing\.objects|Thing\.all_teams" products/<name>/ --type py | rg -v "tests/"
rg -n "\.update\(|bulk_create\(|bulk_update\(" products/<name>/backend --type pyWrite the list down: which paths call save() (the mixin covers them) and which do bulk writes (you log those by hand in step 5).
Include tasks, Temporal activities, webhook handlers, and management commands.
ModelActivityMixin first in the bases: class Thing(ModelActivityMixin, TeamScopedRootMixin, ...).activity_logging_on_delete = True only when a hard delete must show in the log.ActivityScope in posthog/models/activity_logging/activity_log.py.ActivityScope enum in frontend/src/types.ts.hogli build:openapi (needs the dev stack) because the API scope filter enum is generated from the Literal.No migration is needed. The mixin adds no field.
Create products/<name>/backend/activity_logging.py.
One @mutable_receiver(model_activity_signal, sender=Thing) per model.
The receiver calls changes_between and log_activity; nothing else.
Keep the module import-light.
It must not import a viewset, a serializer, or a query runner.
ready() imports it at django.setup() in every process.
For a model without a .team foreign key (ProductTeamModel), read organization_id from Team on the main database inside the receiver.
products/<name>/backend/apps.py ready(): from products.<name>.backend import activity_logging # noqa: F401, PLC0415, with a one-line comment that says why it must connect in every process.model_activity:products.<name>.backend.activity_logging.<handler> to posthog/test/repo_invariants/setup_receivers_baseline.txt.A receiver that is not imported in ready() connects only where something else imports the module.
That is the silent failure this convention exists to prevent.
For each bulk write from step 1:
Change per field that actually changed, for rows whose value changed.bulk_log_activity (or log_activity for one row) with user=None when no request user exists, and a Trigger that names the job and its id.Do not wrap a request path in mute_selected_signals().
The flag is process-wide.
When the model is routed in products/db_routing.yaml:
using=router.db_for_write(Thing) to every log_activity and bulk_log_activity call in the product, including the receiver.
Without it, the audit row is written before the product row commits and survives its rollback.signal_exclusions (no row is logged when only they change).field_exclusions (dropped from the diff).field_with_masked_contents (the change is recorded, the values are not).field_name_overrides.defaultDescriber renders "X created / updated / deleted <name>".
Write products/<name>/frontend/activityDescriber.tsx and register it in frontend/src/lib/components/ActivityLog/describers.tsx when the default text does not say what changed in the user's words.
Invoke /writing-user-facing-copy before you write the strings.
Invoke /writing-tests first.
Add the tests listed under Tests in the doc, and no more.
hogli test products/<name>/backend/tests/<file>.py
hogli test posthog/test/repo_invariants/test_startup_import_budget.py
ruff check products/<name>/backend/activity_logging.py posthog/models/activity_logging --fixThen check the row in a shell: ActivityLog.objects.filter(scope="Thing").order_by("-created_at").first().detail.
Work down this list; each item is a distinct cause.
ready() (check setup_receivers_baseline.txt for the handler name).save() (step 1).signal_exclusions), or the diff was empty and force_save was not set.ACTIVITY_LOG_TRANSACTION_MANAGEMENT deferred the write to a commit that never came, or to the wrong connection (step 6).activity_visibility_restrictions hides it.© PostHog, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/adding-activity-logging of PostHog/posthog-foss.
Open the folder on GitHubat commit 2c48221
Adding Activity Logging next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Adding Activity Logging this skillPostHog/posthog-foss | 721 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Saleor Django Schema Migrationsaleor/saleor | 23k | — | ~1k | Automated safety check: Pass | BSD-3-Clause | |
| Django Access Reviewgetsentry/skills | 1k | 3 repos | ~2.6k | Automated safety check: Notes | Apache-2.0 | |
| Silk Profilerbaserow/baserow | 6.1k | — | ~2.9k | Automated safety check: Pass | Custom licence | |
| Arch Wikiahmedemad3/arch-wiki | 249 | — | ~5.1k | Automated safety check: Pass | None | |
| Run Testsnetboxlabs/netbox-branching | 155 | — | ~1.2k | Automated safety check: Pass | Custom licence |
saleor/saleor
Generates and splits Django schema migrations for Saleor with manage.py makemigrations, enforcing one new model or one field change per migration file.
getsentry/skills
Django access control and IDOR security review. An agent skill from getsentry/skills.
baserow/baserow
Investigate backend performance using Django Silk profiling data.
ahmedemad3/arch-wiki
Scans any project codebase for new/changed modules, endpoints, middleware, infrastructure, Docker topologies, SQL queries, or permissions and updates docs/architecture/architecture.json.
netboxlabs/netbox-branching
Run the netboxbranching plugin's Django test suite against a local NetBox checkout.
aropan/clist
Add or change a CLIST Django management command, including arguments, resource selection, EventLog monitoring, or cron and Healthchecks wiring.
PostHog/posthog-foss
Author useful, low-noise log alerts on services in a PostHog project.
PostHog/posthog-foss
Operating procedure for the conflict-autoresolver agent: sweep open PostHog/posthog PRs that conflict with master, resolve the trivial conflicts (generated artifacts deterministically, source…
PostHog/posthog-foss
Help users debug PostHog Error Tracking stack-trace symbolication for any supported platform — JavaScript/TypeScript web, React Native (Hermes), Android (Proguard / R8), or iOS / macOS (dSYM).
PostHog/posthog-foss
Investigates distributed application performance using PostHog APM (OpenTelemetry span) data via MCP.
PostHog/posthog-foss
Debug and inspect LLM/AI agent traces using PostHog's MCP tools.
PostHog/posthog-foss
Diagnose why a product metric changed (dropped, spiked, or plateaued) by orchestrating breakdowns, actors, paths, lifecycle, retention, and annotations queries.
Categories
Adds or changes activity logging (the audit trail) for a Django model in PostHog. Adding Activity Logging is an agent skill from PostHog/posthog-foss, published by the product's own GitHub organization. Adds or changes activity logging (the audit trail) for a Django model in PostHog.
Adding Activity Logging fits situations like: A models writes must show in the Activity side panel; the advanced activity logs; adding ModelActivityMixin; an ActivityScope.
Run `npx skills add PostHog/posthog-foss --skill adding-activity-logging -a claude-code`. Or copy the skill folder (.agents/skills/adding-activity-logging in PostHog/posthog-foss) into .claude/skills/adding-activity-logging in your project. Claude Code loads it when a task matches its description.
Run `npx skills add PostHog/posthog-foss --skill adding-activity-logging -a codex`. Or copy the skill folder (.agents/skills/adding-activity-logging in PostHog/posthog-foss) into .agents/skills/adding-activity-logging in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add PostHog/posthog-foss --skill adding-activity-logging -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/adding-activity-logging, .gemini/skills/adding-activity-logging, .github/skills/adding-activity-logging and .opencode/skills/adding-activity-logging in your project.
Going by SKILL.md and its folder, Adding Activity Logging needs the command-line tools its instructions call (rg and ruff).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Adding Activity Logging is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 6.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Adding Activity Logging: Saleor Django Schema Migration (saleor/saleor, 23k stars), Django Access Review (getsentry/skills, 1k stars), Silk Profiler (baserow/baserow, 6.1k stars) and Arch Wiki (ahmedemad3/arch-wiki, 249 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
PostHog (a GitHub organization, an official publisher) maintains it in PostHog/posthog-foss, which has 721 GitHub stars. The repository holds 213 skills in this directory. The repository was last updated on October 7, 2026.
Source: PostHog/posthog-foss on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.