forge-analytics: Analytics
Engine: Hybrid — Forge + Google
Purpose
Audit event semantics, consent, data quality, identity, privacy, delivery, and decision usefulness.
Deterministic runtime composition
Before loading any provider procedure, run:
Resolve ../../runtime/cli/src/composition-entry.js relative to this SKILL.md, then run:
node "<resolved-absolute-runner-path>" analytics compose --workflow audit --root "<repository-root>" --dry-run --json
Add one repeatable --request <provider-or-source> flag for each explicit user request. Add
--condition <task-condition> or --risk-surface <surface> only for a task fact you directly
proved; never infer one from generic wording. The command above is the default for this
audit-oriented module; for implementation use --workflow build, and for a fix, retest, or
release gate use --workflow fix, verify, or ship respectively. Read the JSON response,
keep the Forge contract at index zero, and resolve paths against the absolute runtime_root
reported in that response. Read eager[].runtimePath when entering the module. The full
selected[] list is availability/provenance; load only deferred[].runtimePath when the task
reaches that concern, in tier order. Refuse any path that escapes the root. Respect every reported
suppression and context budget. If missing is non-empty, stop and report the installation as
damaged; do not improvise a prose fallback. The runner and specialist content may live in a plugin
cache or global installation; never assume they are inside the audited repository.
Resolve and read ../fullstack-forge/references/shared/module-contract.md (applicability,
execution, mutation, verification, completion) and
../fullstack-forge/references/shared/evidence-rules.md (statuses, standards, tools, findings via
../fullstack-forge/references/PROTOCOL.md) relative to this module SKILL.md before reporting.
Never hide failed checks or claim that an operation ran when it did not.
Automatic activation signals
Activate when a request or direct repository evidence involves analytics, when
the user explicitly names forge-analytics, or when discovery proves an applicable boundary.
- Product, marketing, operational, or experimentation analytics
When not to activate
- No analytics collection or derived behavioral data
Automated support
Relevant discovery inputs are:
- event taxonomy
- tracking code
- consent and destination configuration
Deterministic support, bounded evidence only:
Agent inspection procedure
- Inventory tracked events against the naming schema and record duplicates, orphans, and gaps in critical funnels.
- Trace identity handling: anonymous-to-authenticated merging, cross-device behavior, and tenant properties.
- Verify consent gating for regions that require it and check events for sensitive-data leakage.
- Compare client-side and server-side event reliability for revenue-critical metrics.
- Check schema versioning, validation at ingestion, and whether success, error, and abandonment events cover the decisions the product needs.
Manual inspection requirements:
- Compare sample warehouse events with source actions
- Review metric definitions and consent behavior with owners
Stack-specific guidance:
- Separate server and client identity sources and avoid embedding secrets
Evidence to collect
Standards used as criteria:
- NIST Privacy Framework
- W3C Data Privacy Vocabulary concepts
Common production failures
- Map each event to a decision, owner, schema, trigger, identity, consent state, and retention
- Inspect duplicate delivery, ordering, retries, offline queues, bot/internal traffic, versioning, and schema validation
- Check personal and sensitive fields, tenant boundaries, deletion propagation, access, and experimentation exposure
Missing-control checks
Each item needs direct evidence or one reasoned status.
- Event naming
- Event duplication
- Missing success events
- Funnel coverage
- Identity handling
- Anonymous and authenticated identity merging
- Tenant properties
- Sensitive data
- Consent
- Retention metrics
- Error events
- Abandonment events
- Server-side versus client-side events
- Analytics reliability
- Schema versioning
- Event validation
Commands and tools
- Run
forge analytics audit --json or fullstack-forge analytics audit --json when
an explicit audit is requested and the CLI is installed. Normal feature work does not require it.
Safe fixes
- Remove prohibited fields and add schema validation
- Document and de-duplicate a clearly defined event
Approval-required changes
- Adding tracking, changing consent, identity stitching, retention, or metric definitions
Verification
- Trigger one action and trace its exact event through the pipeline
- Test consent denied, offline, retry, and deletion paths
Completion contract
Follow fullstack-forge/references/shared/completion.md and the limitations below.
Known limitations
- Warehouse correctness needs sampled destination evidence
1---2name: forge-analytics-33description: Audit event semantics, consent, data quality, identity, privacy, delivery, and decision usefulness.4---56# forge-analytics: Analytics78Engine: Hybrid — Forge + Google910## Purpose1112Audit event semantics, consent, data quality, identity, privacy, delivery, and decision usefulness.131415## Deterministic runtime composition1617Before loading any provider procedure, run:1819Resolve `../../runtime/cli/src/composition-entry.js` relative to this `SKILL.md`, then run:2021`node "<resolved-absolute-runner-path>" analytics compose --workflow audit --root "<repository-root>" --dry-run --json`2223Add one repeatable `--request <provider-or-source>` flag for each explicit user request. Add24`--condition <task-condition>` or `--risk-surface <surface>` only for a task fact you directly25proved; never infer one from generic wording. The command above is the default for this26audit-oriented module; for implementation use `--workflow build`, and for a fix, retest, or27release gate use `--workflow fix`, `verify`, or `ship` respectively. Read the JSON response,28keep the Forge contract at index zero, and resolve paths against the absolute `runtime_root`29reported in that response. Read `eager[].runtimePath` when entering the module. The full30`selected[]` list is availability/provenance; load only `deferred[].runtimePath` when the task31reaches that concern, in tier order. Refuse any path that escapes the root. Respect every reported32suppression and context budget. If `missing` is non-empty, stop and report the installation as33damaged; do not improvise a prose fallback. The runner and specialist content may live in a plugin34cache or global installation; never assume they are inside the audited repository.353637Resolve and read `../fullstack-forge/references/shared/module-contract.md` (applicability,38execution, mutation, verification, completion) and39`../fullstack-forge/references/shared/evidence-rules.md` (statuses, standards, tools, findings via40`../fullstack-forge/references/PROTOCOL.md`) relative to this module `SKILL.md` before reporting.4142Never hide failed checks or claim that an operation ran when it did not.4344## Automatic activation signals4546Activate when a request or direct repository evidence involves analytics, when47the user explicitly names `forge-analytics`, or when discovery proves an applicable boundary.4849- Product, marketing, operational, or experimentation analytics5051## When not to activate5253- No analytics collection or derived behavioral data5455## Automated support5657Relevant discovery inputs are:5859- event taxonomy60- tracking code61- consent and destination configuration6263Deterministic support, bounded evidence only:6465- `inspect-routes`6667## Agent inspection procedure68691. Inventory tracked events against the naming schema and record duplicates, orphans, and gaps in critical funnels.702. Trace identity handling: anonymous-to-authenticated merging, cross-device behavior, and tenant properties.713. Verify consent gating for regions that require it and check events for sensitive-data leakage.724. Compare client-side and server-side event reliability for revenue-critical metrics.735. Check schema versioning, validation at ingestion, and whether success, error, and abandonment events cover the decisions the product needs.7475Manual inspection requirements:7677- Compare sample warehouse events with source actions78- Review metric definitions and consent behavior with owners7980Stack-specific guidance:8182- Separate server and client identity sources and avoid embedding secrets8384## Evidence to collect8586Standards used as criteria:8788- NIST Privacy Framework89- W3C Data Privacy Vocabulary concepts9091## Common production failures9293- Map each event to a decision, owner, schema, trigger, identity, consent state, and retention94- Inspect duplicate delivery, ordering, retries, offline queues, bot/internal traffic, versioning, and schema validation95- Check personal and sensitive fields, tenant boundaries, deletion propagation, access, and experimentation exposure9697## Missing-control checks9899Each item needs direct evidence or one reasoned status.100101- Event naming102- Event duplication103- Missing success events104- Funnel coverage105- Identity handling106- Anonymous and authenticated identity merging107- Tenant properties108- Sensitive data109- Consent110- Retention metrics111- Error events112- Abandonment events113- Server-side versus client-side events114- Analytics reliability115- Schema versioning116- Event validation117118## Commands and tools119120- Run `forge analytics audit --json` or `fullstack-forge analytics audit --json` when121 an explicit audit is requested and the CLI is installed. Normal feature work does not require it.122123## Safe fixes124125- Remove prohibited fields and add schema validation126- Document and de-duplicate a clearly defined event127128## Approval-required changes129130- Adding tracking, changing consent, identity stitching, retention, or metric definitions131132## Verification133134- Trigger one action and trace its exact event through the pipeline135- Test consent denied, offline, retry, and deletion paths136137## Completion contract138139Follow `fullstack-forge/references/shared/completion.md` and the limitations below.140141## Known limitations142143- Warehouse correctness needs sampled destination evidence