Agent skill

CometChat Angular Chat Placement

by cometchat in cometchat/cometchat-skills

Decides where CometChat chat UI goes in an Angular app: a dedicated route, a dashboard panel, a support widget or the full multi-pane app, with thread and search panels.

MITAuto-check passedFrontend & Design

Install CometChat Angular Chat Placement

skills CLI
$ npx skills add cometchat/cometchat-skills --skill cometchat-angular-v5-placement -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install cometchat/cometchat-skills cometchat-angular-v5-placement --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/cometchat/cometchat-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/cometchat-angular-v5-placement .claude/skills/cometchat-angular-v5-placement && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cometchat-angular-v5-placement
GitHub stars
129
Token cost
~2.2k tokens
SKILL.md length
729 words
Files
3 (incl. references)
Skills in repo
97
Repo updated
First seen
Licence
MIT

At a glance

Decides where CometChat chat UI goes in an Angular app: a dedicated route, a dashboard panel, a support widget or the full multi-pane app, with thread and search panels.

  • Works in 2 steps: Do not re-init CometChat per route. Init… → Tear down on leave. Every subscription…
  • Adding a chat page and route to an Angular app
  • SKILL.md covers Companion skills (read first), Use this skill when, Pick a placement and Active item — use…, plus 7 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

This skill picks a placement before any code is written. An unscoped request to add chat defaults to the core surface, a conversation list beside a message pane with thread and search as panels. A request for the whole chat app with users, groups, calls and details gets the combined app with a tabbed selector. Chat inside a dashboard embeds the core surface in an existing layout slot, and a support widget uses a single conversation with header, list and composer. Detailed recipes sit in references/core-surface.md and references/combined-app.md.

The active chat is tracked with the injectable ChatStateService, which exposes signals and observables such as activeUser, activeGroup and activeConversation plus setters and clearActiveChat, so selected rows and panel closing stay in sync. The skill targets @cometchat/chat-uikit-angular version 5, verified with 5.1.0 to 5.2.0 and Angular 17 to 21. It builds only on components from its angular-v5 catalog, appends to the existing app without rewriting it, and points to companion core and components skills for installation, credentials and component inputs.

When your agent uses it

  • Adding a chat page and route to an Angular app
  • Putting a conversation list beside a message pane in a dashboard
  • Opening thread or details panels from a chat view
  • Making the chat layout fall back to one pane on mobile
  • Embedding a single-conversation support widget

Example prompts

  • “Add a chat page at /chat with the conversation list on the left and messages on the right.”
  • “Put chat inside my existing dashboard layout without touching the other widgets.”
  • “Open a thread panel when a user clicks reply on a message.”
  • “Make the chat page show one pane at a time on phones.”

Requirements

  • `@cometchat/chat-uikit-angular` version 5
  • Angular 17 to 21
  • CometChat credentials
  • Compatibility (from SKILL.md): @cometchat/chat-uikit-angular ^5 (5.1.0–5.2.0 verified); Angular 17-21

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Do not re-init CometChat per route. Init happens once at bootstrap (core). A route guard may await login, never re-init.
  2. Tear down on leave. Every subscription in the chat component needs takeUntil(destroy$) in ngOnDestroy, or navigating away leaks listeners…

What it can do on your machine

Read from SKILL.md and the folder at commit 911b108. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript, html and css).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    @cometchat/chat-uikit-angular ^5 (5.1.0–5.2.0 verified); Angular 17-21

    From compatibility in the SKILL.md frontmatter.

Context cost

CometChat Angular Chat Placement loads about 2.2k tokens when it runs, and up to ~7.1k if it reads all its reference files. Until then it costs about 87 tokens; SKILL.md has 729 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~87
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~7.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from cometchat/cometchat-skills at commit 911b108, republished under its MIT licence (© cometchat). 729 words, ~2,191 tokens.

Download SKILL.mdSave it as .claude/skills/cometchat-angular-v5-placement/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
cometchat-angular-v5-placement
description
Where CometChat components go in an Angular app — the chat shell layout, thread and details panels, search, routing a chat page, and the mobile one-pane fallback. Triggers: 'add a chat page', 'put chat in my dashboard', 'conversation list beside messages', 'open a thread panel', 'chat route', 'make chat responsive'.
compatibility
@cometchat/chat-uikit-angular ^5 (5.1.0–5.2.0 verified); Angular 17-21
license
MIT
metadata.author
CometChat
metadata.version
1.0.0
metadata.tags
cometchat angular placement v5 layout routing panels responsive shell

Ground truth: @cometchat/chat-uikit-angular@5 (5.1.0–5.2.0 verified). Uses only components in the angular-v5 catalog. The layouts here are built FROM the live task guides — {DOCS_BASE}/ui-kit/angular/guides/new-chat.md, /guides/group-chat.md, /guides/threaded-messages.md, /guides/search-messages.md, plus /angular-conversation, /angular-one-to-one-chat, /angular-tab-based-chat and /api-reference/chat-state-service.md; base + paths in cometchat-angular-v5-core/references/docs-map.md. Fetch layout-specific inputs from the component's .md twin rather than reading the installed bundle. APPEND to the user's app — additive only (RULES.md).

Companion skills (read first)

  • cometchat-angular-v5-core — install, credentials, init→login→render, and references/layout.md for the sizing rules this skill assumes.
  • cometchat-angular-v5-components — which component to use and its real inputs/outputs.

Use this skill when

Deciding where chat lives: a dedicated route, a panel inside an existing dashboard, a widget, or the full multi-pane app.

Pick a placement

AskPlacementRecipe
"add chat to my app" (unscoped)Core surface — list + message pane, thread and search as panelsreferences/core-surface.md
"the whole chat app" — users, groups, calls, detailsCombined app — tabbed selector + panelsreferences/combined-app.md
"chat inside my dashboard"Embed the core surface in an existing layout slotbelow
"a support widget"Single conversation — header + list + composer, no list panebelow

Default to the core surface for an unscoped request. Grow to the combined app only when asked.

Active item — use ChatStateService, not your own field

Angular ships an injectable source of truth for the active chat. It exposes signals and observables; prefer signals in templates. This is what satisfies "the selected row is visually reflected" and makes panel-close round-trip correctly.

ts
import { Component, computed, inject } from '@angular/core';
import { CometChat } from '@cometchat/chat-sdk-javascript';
import { ChatStateService, CometChatUIKitConstants } from '@cometchat/chat-uikit-angular';

@Component({ selector: 'app-chat-shell', standalone: true, template: '' })
export class ChatShellComponent {
  readonly chatState = inject(ChatStateService);
  // The service's signals are `T | null`, but the kit's inputs are optional
  // (`T | undefined`) — bind the raw signal and Angular's strict template check
  // rejects it. Normalise once, here.
  readonly activeUser = computed(() => this.chatState.activeUser() ?? undefined);
  readonly activeGroup = computed(() => this.chatState.activeGroup() ?? undefined);

  // (itemClick) emits a Conversation — resolve the subject, then branch on its TYPE.
  // A Conversation has no getGuid(), so duck-typing routes groups into the user slot
  // and the message pane throws "getUid is not a function". See references/core-surface.md.
  open(conversation: CometChat.Conversation) {
    const subject = conversation.getConversationWith();
    if (conversation.getConversationType() === CometChatUIKitConstants.MessageReceiverType.group) {
      this.chatState.setActiveGroup(subject as CometChat.Group);
    } else {
      this.chatState.setActiveUser(subject as CometChat.User);
    }
  }
  closeChat() { this.chatState.clearActiveChat(); }
}

Available: activeUser activeGroup activeConversation (signals) · activeUser$ activeGroup$ activeConversation$ (observables) · setActiveUser/Group/Conversation · getActiveChatEntity() · clearActiveChat().

Keeping a separate selected field alongside this is how the two drift and the list stops highlighting the open conversation.

Panels are columns, not overlays

Thread, user/group details and search are additional columns in the same flex shell. Opening one must not resize or remount the message list, and closing must return to the exact prior layout.

html
<div class="cc-shell">
  <aside class="cc-side"><!-- list --></aside>
  <main class="cc-main"><!-- header · list · composer --></main>
  <aside class="cc-panel" *ngIf="threadParent()"><!-- thread --></aside>
</div>
css
.cc-shell { display: flex; height: 100dvh; width: 100%; min-height: 0; overflow: hidden; }
.cc-side  { width: 320px; min-height: 0; overflow: hidden; }
.cc-main  { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.cc-panel { width: 360px; min-height: 0; overflow: hidden; border-left: 1px solid var(--cometchat-border-color-default); }

min-height: 0 on every column is required — see core's references/layout.md.

Routing a chat page

ts
// app.routes.ts
import { Routes } from '@angular/router';
export const routes: Routes = [
  { path: 'chat', loadComponent: () => import('./chat/chat.component').then(m => m.ChatComponent) },
  { path: 'chat/:uid', loadComponent: () => import('./chat/chat.component').then(m => m.ChatComponent) },
];

Two rules:

  1. Do not re-init CometChat per route. Init happens once at bootstrap (core). A route guard may await login, never re-init.
  2. Tear down on leave. Every subscription in the chat component needs takeUntil(destroy$) in ngOnDestroy, or navigating away leaks listeners that keep firing.

Reading :uid into the active chat belongs in the component's ngOnInit, resolved through ChatStateService.

Embedding in an existing dashboard

Give the host slot a resolved height and let the shell fill it — do not put the kit inside a container sized by its content.

css
.dashboard-chat-slot { height: calc(100dvh - var(--app-header-height)); min-height: 0; display: flex; }

If the surrounding app uses transform or filter on an ancestor, the height chain breaks — core's layout.md covers why.

Show full SKILL.md (306 more words)Show less

Mobile — one pane at a time (mandatory for any multi-pane layout)

Below ~768px show the list or the conversation, never both.

html
<div class="cc-shell">
  <aside class="cc-side" [hidden]="isMobile() && hasActiveChat()"><!-- list --></aside>
  <main class="cc-main" [hidden]="isMobile() && !hasActiveChat()"><!-- message pane --></main>
</div>

Drive [hidden] from the same ChatStateService state as the message components, and give the mobile conversation view a back control that calls clearActiveChat(). A multi-pane layout squeezed onto a phone is a defect, not a style choice.

Common pitfalls

  1. Two sources of truth — a local selected field plus ChatStateService. They drift; the list stops highlighting.
  2. Panels as overlays — thread rendered over the list instead of beside it, so closing does not restore layout.
  3. Re-initialising per route — init belongs at bootstrap, once.
  4. No teardown on navigate — leaked listeners keep firing against a destroyed view.
  5. Unsized embed slot — the kit collapses to zero height inside a content-sized container.
  6. Both panes on mobile — unusable at 375px.

Verify it works

Clicking a conversation opens it AND highlights the row · opening a thread does not resize the message list · closing returns to the exact prior layout · navigating away and back does not duplicate messages · at 375px only one pane is visible with a working back control · no console errors.

Explain what you built (REQUIRED close)

Tell the developer what changed, naming the files: the layout you built — which panes exist, and how the mobile one-pane fallback behaves. Flag anything dev-only as dev-only, and say what you did not touch — this is additive.

Then offer these THREE options as a SELECTABLE choice and WAIT for the pick — never auto-continue (RULES.md §19):

  1. Add another feature → a feature from features.angular-v5.json, or growing the surface — users/groups tabs, a details panel, calling. Never offer an auto entry (reactions, mentions, receipts, typing, media) — those are core in v5 and already on.
  2. Customize theming → cometchat-angular-v5-customization.
  3. Test it manually → do nothing further; hand back so the user runs it.

© cometchat, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in skills/cometchat-angular-v5-placement of cometchat/cometchat-skills.

  • SKILL.md
  • references/combined-app.md
  • references/core-surface.md

Open the folder on GitHubat commit 911b108

Compare with similar skills

CometChat Angular Chat Placement next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

CometChat Angular Chat Placement compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
CometChat Angular Chat Placement this skillcometchat/cometchat-skills129—~2.2kAutomated safety check: PassMIT
Spartan UI Angular Componentsspartan-ng/spartan2.9k—~2.4kAutomated safety check: PassMIT
HTML CoderTokenRhythm/opensquilla7.1k—~1.4kAutomated safety check: PassApache-2.0
Frontend Design Routercode-yeongyu/oh-my-openagent70k—~5.3kAutomated safety check: PassCustom licence
Oil Frontend Rulesoil-oil/oil-frontend132—~1.4kAutomated safety check: PassMIT
Using Ouds Web Version Major MinorOrange-OpenSource/Orange-Boosted-Bootstrap222—~4.1kAutomated safety check: PassMIT

Similar skills

  • Helps add, compose, debug and style spartan/ui components in Angular projects, using its Brain headless primitives and Helm styled layer through the @spartan-ng/cli generators.

    2.9k GitHub stars~2.4k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • HTML Coder

    TokenRhythm/opensquilla

    Guides semantic, accessible HTML work: pages, forms, media and HTML5 APIs, plus how to deliver a runnable webpage project with a preview.

    7.1k GitHub stars~1.4k tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed
  • Frontend Design Router

    code-yeongyu/oh-my-openagent

    Routes frontend and UI work through design reference rulesets, with a design-system gate plus layout and print guidance, before any UI code is written.

    70k GitHub stars~5.3k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Oil Frontend Rules

    oil-oil/oil-frontend

    Chinese-language rules for building, changing and reviewing product front ends, covering interface, interaction, state and data flow and component organization.

    132 GitHub stars~1.4k tokensUpdated 3 days ago
    Frontend & DesignAuto-check passed
  • Using Ouds Web Version Major Minor

    Orange-OpenSource/Orange-Boosted-Bootstrap

    Provides comprehensive knowledge of the OUDS Web library (Orange Unified Design System for Web), a Bootstrap-based CSS/JS framework for building Orange-branded web interfaces.

    222 GitHub stars~4.1k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Better Layout

    Lily-404/blog

    Layout structure for web interfaces. An agent skill from Lily-404/blog.

    151 GitHub starsUsed in 3 repos~1.5k tokens
    Frontend & DesignAuto-check passed

More from cometchat/cometchat-skills

All 97 skills in this repo
  • CometChat Android Calls SDK v5

    cometchat/cometchat-skills

    Adds voice and video calling to an Android app in Kotlin with the headless CometChat Calls SDK v5, covering meeting-style rooms, 1:1 ringing calls, call logs and recording.

    129 GitHub stars~5.2k tokensUpdated 2 days ago
    Auto-check passed
  • CometChat Android v5 Headless SDK

    cometchat/cometchat-skills

    Builds chat on Android with your own UI against the headless CometChat Chat SDK v5, covering install, Jetifier conflicts, credentials and init-before-login ordering.

    129 GitHub stars~4k tokensUpdated 2 days ago
    Auto-check passed
  • CometChat Angular Component Picker

    cometchat/cometchat-skills

    Picks and customizes CometChat's Angular UI Kit components by their verified component list, exact input and output event names, and the surfaces that have no kit component at all.

    129 GitHub stars~2.6k tokensUpdated 2 days ago
    Auto-check passed
  • CometChat Angular Features

    cometchat/cometchat-skills

    Enables or builds CometChat features such as polls, reactions, smart replies and pinned messages in an Angular app, first classifying how much client code each one needs.

    129 GitHub stars~2.6k tokensUpdated 2 days ago
    Auto-check passed
  • Cometchat iOS V5 SDK

    cometchat/cometchat-skills

    Add voice & video calling to any iOS app FROM SCRATCH with the headless CometChat Calls SDK v5 (CometChatCallsSDK, via Swift Package Manager) — no UI Kit.

    129 GitHub stars~5.2k tokensUpdated 2 days ago
    Auto-check passed
  • Cometchat JS V5 SDK

    cometchat/cometchat-skills

    Add voice & video calling to any web app FROM SCRATCH with the headless CometChat Calls SDK v5 (@cometchat/calls-sdk-javascript@5) — no prebuilt UI Kit.

    129 GitHub stars~3.9k tokensUpdated 2 days ago
    Auto-check passed

Questions about CometChat Angular Chat Placement

What does CometChat Angular Chat Placement do?

Decides where CometChat chat UI goes in an Angular app: a dedicated route, a dashboard panel, a support widget or the full multi-pane app, with thread and search panels. This skill picks a placement before any code is written. An unscoped request to add chat defaults to the core surface, a conversation list beside a message pane with thread and search as panels.

When should I use CometChat Angular Chat Placement?

CometChat Angular Chat Placement fits situations like: adding a chat page and route to an Angular app; putting a conversation list beside a message pane in a dashboard; opening thread or details panels from a chat view; making the chat layout fall back to one pane on mobile.

How do I install CometChat Angular Chat Placement in Claude Code?

Run `npx skills add cometchat/cometchat-skills --skill cometchat-angular-v5-placement -a claude-code`. Or copy the skill folder (skills/cometchat-angular-v5-placement in cometchat/cometchat-skills) into .claude/skills/cometchat-angular-v5-placement in your project. Claude Code loads it when a task matches its description.

How do I install CometChat Angular Chat Placement in Codex?

Run `npx skills add cometchat/cometchat-skills --skill cometchat-angular-v5-placement -a codex`. Or copy the skill folder (skills/cometchat-angular-v5-placement in cometchat/cometchat-skills) into .agents/skills/cometchat-angular-v5-placement in your project. Codex loads it when a task matches its description.

Can I use CometChat Angular Chat Placement in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cometchat/cometchat-skills --skill cometchat-angular-v5-placement -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cometchat-angular-v5-placement, .gemini/skills/cometchat-angular-v5-placement, .github/skills/cometchat-angular-v5-placement and .opencode/skills/cometchat-angular-v5-placement in your project.

What does CometChat Angular Chat Placement need to run?

SKILL.md names no scripts, command-line tools or credentials: CometChat Angular Chat Placement is instructions for the agent only. Our summary lists: `@cometchat/chat-uikit-angular` version 5; Angular 17 to 21; CometChat credentials. Compatibility (from SKILL.md): @cometchat/chat-uikit-angular ^5 (5.1.0–5.2.0 verified); Angular 17-21.

Does CometChat Angular Chat Placement access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is CometChat Angular Chat Placement safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does CometChat Angular Chat Placement use?

CometChat Angular Chat Placement is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does CometChat Angular Chat Placement use?

About 2.2k tokens (SKILL.md is roughly 8.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.9k tokens, read only when the agent opens those files.

What are the alternatives to CometChat Angular Chat Placement?

Skills that share tags, products or a category with CometChat Angular Chat Placement: Spartan UI Angular Components (spartan-ng/spartan, 2.9k stars), HTML Coder (TokenRhythm/opensquilla, 7.1k stars), Frontend Design Router (code-yeongyu/oh-my-openagent, 70k stars) and Oil Frontend Rules (oil-oil/oil-frontend, 132 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains CometChat Angular Chat Placement?

cometchat (a GitHub organization) maintains it in cometchat/cometchat-skills, which has 129 GitHub stars. The repository holds 97 skills in this directory. The repository was last updated on October 5, 2026.

Source: cometchat/cometchat-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.