agentleFS
antdigital-aiantdigital-ai/agentic-ui/.cursor/skills/component-answer-alert/SKILL.md

component-answer-alert

Skill233 starsChanged 7 months agoMITView on GitHub

Develop AnswerAlert for result or status alert (success, error, warning, info) in @ant-design/agentic-ui. Use when showing answer status, alert message, or closable banner. Triggers on AnswerAlert, alert, success error warning info, answer status.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

AnswerAlert 组件开发

结果/状态提示条:成功、错误、警告、信息等类型,可带图标与操作。

源码位置

  • 主组件:src/AnswerAlert/index.tsx
  • 图标:CloseIcon、ErrorIcon、InfoIcon、LoaderIcon、SuccessIcon、WarningIcon(见 components/)
  • 类型:AnswerAlertProps
  • 样式:src/AnswerAlert/style.ts

主要 Props

  • message、description、icon、showIcon
  • type: 'success' | 'error' | 'warning' | 'info' | 'gray'
  • 自定义操作项、关闭等

开发规范

  • 使用 token 与 createStyles;与 Bubble、TaskList 等结果展示保持一致。

修改 AnswerAlert 时,参考 src/AnswerAlert/ 与 AGENTS.md。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.