canopy-alert
Best practices for the Canopy Inline Message (Alert) component.
Skill by Legal-and-General
Chalk Labs
Need help deploying canopy-alert?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/legal-and-general-canopy-alert
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/canopy-alert
What's inside
- Skill name
canopy-alert- Description
- Best practices for the Canopy Inline Message (Alert) component. Trigger when adding inline messages, status alerts, info/warning/error/success notifications, or feedback messages in an Angular project using Canopy.
- License
- MIT
- Metadata
- source: https://github.com/Legal-and-General/canopy/tree/master/projects/canopy/src/lib/alert/docs/guide.mdx
- Instructions
- 92 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: "canopy-alert" does not match folder "alert"
Files (1)
- SKILL.md
SKILL.md (first lines)
# Canopy Inline Message (Alert) — Best Practices
This skill provides usage guidance, dos and don'ts, and input reference for the Canopy `lg-alert` component (`LgAlertComponent`) from `@legal-and-general/canopy`.
Apply this skill whenever you use `LgAlertComponent` or `lg-alert`.
---
## Import
```ts
import { LgAlertComponent } from '@legal-and-general/canopy';
```
---
## Basic Usage
```html
<lg-alert status="info" [showIcon]="true">
This product comes with a free umbrella.
Here is some <a href="#">link text</a>.
</lg-alert>
```
---
## Statuses
| Status | When to use | Example |
|--------|-------------|----------|
| `generic` | Basic message; no semantic role assigned. Icon is customisable. | `<lg-alert status="generic">Check out our new feature</lg-alert>` |
| `info` | Calmly highlight information; no action required. | This product comes with a free umbrella. |
| `success` | Confirm a completed action; no further user action needed. | Your umbrella has been dispatched successfully. |
| `warning` | Elevated alert; interrupted service or something that may affect the user's holding. | We can't get details of your umbrella right now. |
| `error` | Error that stops the user completing their journey; include steps to resolve. | You must confirm the terms and conditions before proceeding. |
The `alert` ARIA role is automatically applied for `warning`, `error`, and `success` statuses, sending an accessible event to assistive technologies.
---
## Customising Icons
For `generic` and `info` statuses, you can provide a custom icon via the `icon` input. All other statuses use fixed icons that cannot be overridden.
```html
<lg-alert status="generic" [icon]="'help'">
This is helpful information.
</lg-alert>
```
---
## Inputs
| Input | Type | Default | Description |
|-------|------|---------|-------------|
| `status` | `'generic' \| 'info' \| 'success' \| 'warning' \| 'error'` | `'generic'` | Applies colour treatment and ARIA role. |
| `statusTheme` | `'neutral' \| 'bold'` | `'neutral'` | The theme variant applied alongside the status. |
| `showIcon` | `boolean` | `true` | Whether to show the status icon. Applies to all statuses. |
| `icon` | `IconName \| null` | `null` | Custom icon for `generic` or `info` statuses. Ignored for other statuses. |
| `role` | `string` | auto | Override the ARIA role, or pass `'none'` to suppress it. |
---
## Dos and Don'ts
### Do
1. **Do** display inline messages in a timely manner so users can resolve issues immediately.
2. **Do** keep the message succinct.
3. **Do** include a link to take an action or get more detailed information when appropriate.
4. **Do** place the inline message close to the element it relates to so users understand the context.
### Don't
1. **Don't** use inline messages when space is not an issue — consider using Notice with Pictogram instead.
2. **Don't** overload the page with multiple inline messages simultaneously.
3. **Don't** use error status without providing clear steps to resolve the issue.
4. **Don't** use inline messages to hide important information; place them where users will see them in context.
---
## Accessibility
- `warning`, `error`, and `success` statuses automatically add `role="alert"`, which triggers an accessible alert event in assistive technologies.
- `info` and `generic` statuses do not receive an ARIA role by default.
- To suppress the role on any status, pass `[role]="'none'`.
- Always include meaningful, actionable text in error messages — explain the problem and how to fix it.
- Error messages should include a link to detailed help or next steps when appropriate.From Legal-and-General/canopy, MIT.
More from Legal-and-General/canopy
- 0.647score
review-pr-feedback
Legal-and-General
Fetches unresolved review comments from a GitHub PR using the GH CLI, groups and summarises them, automatically reads the referenced files locally to…
SkillAFreshness: A★ 24Claude Code +9 - 0.643score
canopy-forms-date
Legal-and-General
Best practices for the Canopy Date Input component.
SkillAFreshness: A★ 24Claude Code +9 - 0.643score
canopy-accessibility
Legal-and-General
Accessibility guidance for Canopy applications.
SkillAFreshness: A★ 24Claude Code +9 - 0.643score
canopy-forms-radio
Legal-and-General
Best practices for the Canopy Radio component.
SkillAFreshness: A★ 24Claude Code +9 - 0.643score
canopy-notice
Legal-and-General
Best practices for the Canopy Notice component.
SkillAFreshness: A★ 24Claude Code +9 - 0.643score
canopy-page
Legal-and-General
Best practices for the Canopy Page component.
SkillAFreshness: A★ 24Claude Code +9 - 0.643score
canopy-footer
Legal-and-General
Best practices for the Canopy Footer component.
SkillAFreshness: A★ 24Claude Code +9 - 0.643score
canopy-accordion
Legal-and-General
Best practices for the Canopy Accordion component.
SkillAFreshness: A★ 24Claude Code +9 - 0.643score
canopy-banner
Legal-and-General
Best practices for the Canopy Banner Message component.
SkillAFreshness: A★ 24Claude Code +9 - 0.643score
canopy-icon
Legal-and-General
Best practices for the Canopy UI Icon component.
SkillAFreshness: A★ 24Claude Code +9 - 0.643score
canopy-breadcrumb
Legal-and-General
Best practices for the Canopy Breadcrumb component.
SkillAFreshness: A★ 24Claude Code +9 - 0.643score
canopy-button
Legal-and-General
Best practices for the Canopy Button component.
SkillAFreshness: A★ 24Claude Code +9
Signals
- Stars
- 24
- Forks
- 46
- Open issues
- 11
- Last commit (this folder)
- Sep 22, 2026 (1 month ago)
- Last release
- Oct 20, 2026 (13 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Legal-and-General/canopy
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Legal-and-General
- 0.647score
review-pr-feedback
Legal-and-General
Fetches unresolved review comments from a GitHub PR using the GH CLI, groups and summarises them, automatically reads the referenced files locally to…
SkillAFreshness: A★ 24Claude Code +9 - 0.643score
canopy-forms-date
Legal-and-General
Best practices for the Canopy Date Input component.
SkillAFreshness: A★ 24Claude Code +9 - 0.643score
canopy-forms-radio
Legal-and-General
Best practices for the Canopy Radio component.
SkillAFreshness: A★ 24Claude Code +9 - 0.643score
canopy-icon
Legal-and-General
Best practices for the Canopy UI Icon component.
SkillAFreshness: A★ 24Claude Code +9 - 0.643score
canopy-notice
Legal-and-General
Best practices for the Canopy Notice component.
SkillAFreshness: A★ 24Claude Code +9 - 0.643score
canopy-footer
Legal-and-General
Best practices for the Canopy Footer component.
SkillAFreshness: A★ 24Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get canopy-alert running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
canopy-alert skill. Agent Mart. https://agentmart.dev/skills/legal-and-general-canopy-alert (last updated 2026-10-24)