analytics-instrumentation

analytics-instrumentation is a skill for Codex from Eliyce/paqad-ai. It costs 41 tokens per session (1,043 once invoked), scanned A, original, MIT.

A governed process for adding analytics tracking to a software feature. Analytics tracking records actions, such as button clicks, so a team can understand how a product is used.

In plain words
What is it for?
Use it to define and document feature events, check existing analytics guidance, reuse an existing event where possible, and produce the provider tracking call to add to the source code.
Why use it?
It reduces unclear event names, undocumented tracking, and differences between the tracking plan and the code. It only applies when analytics is enabled and the project has been classified for instrumentation.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to define and document feature events, check existing analytics guidance, reuse an existing event where possible, and produce the provider tracking call to add to the source code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eliyce/paqad-ai/analytics-instrumentation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Eliyce/paqad-ai --skill analytics-instrumentation
Clone the repo
git clone --depth 1 https://github.com/Eliyce/paqad-ai

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for analytics-instrumentation

README.md
[![agentmods](https://agentmods.dev/badge/skills/eliyce/paqad-ai/analytics-instrumentation/github.svg)](https://agentmods.dev/skills/eliyce/paqad-ai/analytics-instrumentation)
Your own site
<a href="https://agentmods.dev/skills/eliyce/paqad-ai/analytics-instrumentation"><img src="https://agentmods.dev/badge/skills/eliyce/paqad-ai/analytics-instrumentation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for analytics-instrumentation

Your own site · 80×15
<a href="https://agentmods.dev/skills/eliyce/paqad-ai/analytics-instrumentation"><img src="https://agentmods.dev/badge/skills/eliyce/paqad-ai/analytics-instrumentation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,043 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.01043
Opus 5 $0.00020 $0.00522
Sonnet 5 $0.00008 $0.00209
Haiku 4.5 $0.00004 $0.00104

Measured 12d ago against content hash 870f6912d22f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

analytics-instrumentation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/instrument.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

runtime/base/skills/analytics-instrumentation/SKILL.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Analytics instrumentation

What It Does

Turns "add tracking for this feature" into the governed, documented, drift-resistant flow paqad promises: it names and documents each event as a reviewed per-event doc, governs every new event through a Decision Pause, and emits the provider tracking-call to paste into the source.

Use This When

Analytics is enabled (analytics_instrumentation on) and the classify-time gate wrote .paqad/planning/analytics-decision.json with status: instrument — i.e. a user-facing change in a project with a detected provider. Skip entirely when analytics is off or the change is not user-facing.

Inputs

  • project_root — resolves the docs tree and the analytics decision sidecar.
  • module, feature — the module and feature slugs the event belongs to (from the module map).
  • event — the exact event name, in the project's ONE consistent convention.
  • provider — one or more analytics provider ids the event fires to.

Procedure

  1. Name the event in the project's one consistent convention. Read docs/instructions/stack/analytics.md and the module's analytics/index.md first, and reuse an existing event before coining a new one. Object-action + past tense is a common default, not a rule; consistency is the rule, and no variable data goes in the name.
  2. Govern a new event. If the event does not already exist, open a Decision Pause packet in the analytics.new_event category (who proposed it, why, with the name/casing/taxonomy/PII surfaced) via the decision skill and wait for the answer. Never add a new event silently.
  3. Instrument + document. Run the bundled script to write the per-event doc and get the provider call snippet: node scripts/instrument.mjs <project-root> --module <m> --feature <f> --event <name> --provider <p> [--provider <p> ...]. Paste the printed snippet at the call site, then fill in the doc body — what the event means, its properties, and the PII/consent section.

Read the full file on GitHub · 91 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 91 lines · 41 tokens per session scan A 870f6912d22f

Subscribe to this mod's changes

analytics-instrumentation is a skill published in the GitHub repository Eliyce/paqad-ai (8 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 1,043 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.