congiuluc/my-awesome-copilot/audit-frontend-angular

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 Angular applications. Covers user action tracking, page view logging, consent-aware analytics, and audit event shipping to backend. Use when: tracking user actions for compliance, logging page views, implementing consent management, or shipping audit events in an Angular app.

Install

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

SKILL.md

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

Frontend Audit Logging (Angular)

When to Use

  • Tracking user actions for compliance or analytics in Angular apps
  • Logging page views and navigation events via Angular Router
  • Implementing consent-aware tracking (GDPR cookie consent)
  • Shipping audit events to a backend collection endpoint
  • Reviewing audit coverage in an Angular 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.
  • Use Angular patterns — services, interceptors, and Router events.

Procedure

  1. Create an AuditService (see audit service sample)
  2. Listen to Angular Router events for page view tracking
  3. Track meaningful user actions: form submissions, navigation, setting changes
  4. Batch events and ship to a backend endpoint periodically via HttpClient
  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
  • ALWAYS use Angular inject() function — no constructor injection
  • ALWAYS use DestroyRef + takeUntilDestroyed() for subscription cleanup

Security

  • Security scanPassed, 95 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-angular/badge)](https://verified-skill.com/skills/congiuluc/my-awesome-copilot/audit-frontend-angular)

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