lfx-intercom

Audit and standardize Intercom integration in LFX Angular apps.

8|1|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/linuxfoundation/lfx-skills --skill lfx-intercom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lfx-intercom
Source: https://github.com/linuxfoundation/lfx-skills/tree/main/lfx-intercom
Command: npx skills add https://github.com/linuxfoundation/lfx-skills --skill lfx-intercom

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Audits and standardizes Intercom integration in LFX Angular apps to enforce identity-based boot, proper shutdown, and consistent configuration across projects.

Core Features & Use Cases

  • Audits existing Intercom integration for JWT, CSP, app IDs, and anonymous/identified boot patterns.
  • Provides a canonical IntercomService with script loading, a stub initializer, and identity upgrade/shutdown flow.
  • Wires the Intercom lifecycle in AppComponent to support anonymous boot on page load, upgrade on login, and logout reset.

Quick Start

Install the skill and configure Intercom environment variables, implement IntercomService, and wire the lifecycle in AppComponent per the guidance.

Frequently Asked Questions about lfx-intercom

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I standardize Intercom integration in an Angular application to support both anonymous and identified boot patterns?

Implement an IntercomService that handles script loading and stub initialization, configure Intercom environment variables, and wire the lifecycle in AppComponent to manage anonymous boot on page load, identity upgrade on login, and reset on logout.

How does JWT-based identity boot work when integrating Intercom with LFX Angular apps?

JWT-based identity boot works by passing the JSON Web Token to Intercom during the boot process to securely verify the user identity, upgrading the session from anonymous to identified upon login, and shutting down the session upon logout.

What Content Security Policy considerations are required for safely loading Intercom scripts in an Angular app?

Content Security Policy considerations for Intercom involve configuring CSP headers to whitelist Intercom script domains, ensuring the IntercomService loads external resources safely without violating policy restrictions, and maintaining secure identity-based boot patterns.

Can I use this Intercom standardization pattern with Auth0 for identity management in LFX applications?

Yes, the Intercom standardization pattern supports Auth0 for identity management by utilizing JWT-based identity verification, allowing the IntercomService to upgrade the session from anonymous to identified boot upon successful Auth0 authentication.

Why does Intercom not shut down properly when a user logs out of my Angular application?

Intercom may not shut down properly if the AppComponent lifecycle is not wired to trigger the IntercomService shutdown method, which is required to reset the session and clear the JWT-based identity data during the logout transition.