mcpField
A
ascii-motd-profile-banner

ascii-motd-profile-banner

github.com/full-stack-skills云与 DevOps575 次安装4 周前更新
代码仓库

关于 ascii-motd-profile-banner

用于生成 ASCII SSH 登录欢迎横幅的技能,提供短版和长版模板、安全提示及显示建议。仅在用户明确提及其准确名称时使用。

主要功能

  1. 01ASCII 横幅模板
  2. 02短版和长版格式
  3. 03可选 ANSI 颜色
  4. 04安全提示
  5. 05交互式显示建议

适用场景

  1. 01制作 SSH 登录欢迎语
  2. 02起草终端安全提示

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/full-stack-skills/ascii-skills --skill ascii-motd-profile-banner

安装后在 Claude Code 中输入/ascii-motd-profile-banner确认已加载。

包含的文件

除 SKILL.md 外,安装时一起下载的参考资料和脚本。

LICENSE.txt
agents/
openai.yaml
examples/
ssh-long.md
ssh-short.md

详细介绍

适用场景

关键触发规则

  • 仅当用户明确提及确切的技能名称 ascii-motd-profile-banner 时,才使用此技能。

触发短语包括:

  • "ascii-motd-profile-banner"
  • "use ascii-motd-profile-banner"
  • "用 ascii-motd-profile-banner 生成 SSH 登录欢迎"
  • "使用 ascii-motd-profile-banner 输出 MOTD(短版/长版)"

使用边界

  • 仅生成模板并提供放置指导;不要修改系统文件。
  • 切勿包含敏感信息(令牌、内部 URL、账户详情、个人数据)。
  • 默认输出仅包含 ASCII 字符;可选用 ANSI 颜色,但必须提供无颜色回退方案。

使用方法

输入
  • title(必填)
  • messageBullets(1–5 条要点,必填)
  • mode(short | long,默认 short)
  • width(默认 80)
  • includeLinks(可选:Docs / Tickets / Repo)
  • colorMode(none | ansi256,默认 none)
  • quietHint(默认 true:建议在非交互式 Shell 中使用安静输出)
输出(必需)
  • bannerShort(不超过 12 行)
  • bannerLong(不超过 30 行)
  • safetyNotes(至少 3 条可操作的安全提示)
  • toggleAdvice(交互式与非交互式显示指导)

示例

  • examples/ssh-short.md
  • examples/ssh-long.md

质量检查清单

  1. 短模式不会刷屏(不超过 12 行)
  2. 复制粘贴安全(无尾随空格)
  3. 安全提示清晰、简短且可操作

关键词

英文: ascii-motd-profile-banner, motd, ssh banner, profile, welcome message, security notice, terminal 中文: ascii-motd-profile-banner, MOTD, SSH Banner, 登录欢迎, Profile, 安全提示, 终端

常见陷阱 (Gotchas)

  1. 版本兼容性:注意框架版本与依赖库的兼容性,不同版本 API 可能有差异
  2. 配置文件格式:配置文件格式错误是最常见的问题,建议使用编辑器的语法检查
  3. 环境变量:确保所有必要的环境变量已正确设置,敏感信息不要硬编码
  4. 依赖冲突:多版本共存时注意依赖冲突,使用 lock 文件锁定版本
  5. 性能陷阱:大数据量场景下注意性能优化,避免 N+1 查询等常见问题

使用流程

步骤 1:环境准备

确保开发环境已安装必要的依赖和工具。

步骤 2:配置初始化

根据项目需求进行基础配置。

步骤 3:使用核心功能

按照示例代码实现核心功能。

步骤 4:测试验证

运行测试,确保功能正常。

步骤 5:部署上线

完成开发后进行部署和监控。

评论

支持 Markdown