congiuluc/my-awesome-copilot/audit-frontend

Claude Code and agent skill by congiuluc/my-awesome-copilot

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Implement frontend audit logging for React applications. Covers user action tracking, page view logging, consent-aware analytics, audit event shipping to backend, and privacy-compliant tracking. Use when: tracking user actions for compliance, logging page views, implementing consent management, or shipping audit events to a backend service.

Install

npx vskill@latest install congiuluc/my-awesome-copilot/audit-frontend

SKILL.md

The same SKILL.md was published earlier as congiuluc/my-awesome-copilot/audit-frontend.

Frontend Audit Logging (React)

When to Use

  • Tracking user actions for compliance or analytics
  • Logging page views and navigation events
  • Implementing consent-aware tracking (GDPR cookie consent)
  • Shipping audit events to a backend collection endpoint
  • Reviewing audit coverage in a React application

Key Principles

  • Privacy first — only track after user consent; honor opt-out preferences.
  • Minimal data — capture action type and context, not raw user input.
  • Never track PII — no passwords, tokens, emails, or personal identifiers in audit events.
  • Batch and debounce — ship events in batches, not on every click.
  • Graceful degradation — audit failures must never break the UI.

Procedure

  1. Create an AuditService (see audit service sample)
  2. Track meaningful user actions: form submissions, navigation, setting changes
  3. Use a useAuditAction hook for declarative tracking in components
  4. Batch events and ship to a backend endpoint periodically
  5. Respect consent preferences before tracking
  6. Never include PII or sensitive form data in audit events

Audit Event Structure

FieldTypeDescription
eventIdstringUnique event ID (UUID)
timestampstringISO 8601 UTC timestamp
actionstringThe user action (e.g., page_view, form_submit, button_click)
pagestringCurrent route/page
contextobject?Non-sensitive metadata (entity type, entity ID, etc.)
sessionIdstringBrowser session ID

Constraints

  • NEVER track before user consent is given
  • NEVER include PII, passwords, or tokens in audit events
  • ALWAYS batch events to reduce network calls
  • ALWAYS handle shipping failures silently (no user-facing errors)
  • ALWAYS respect Do Not Track headers and consent preferences

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/congiuluc/my-awesome-copilot/audit-frontend/badge)](https://verified-skill.com/skills/congiuluc/my-awesome-copilot/audit-frontend)

Something wrong with this skill or its page? Tell us.