← 返回 Skills 市场
bovinphang

Legacy Web Standard

作者 Bovin Phang · GitHub ↗ · v2.4.0 · MIT-0
cross-platform ✓ 安全检测通过
50
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install fec-legacy-web-standard
功能描述
Maintain and safely modify legacy frontend code using vanilla JS, jQuery, HTML/CSS, and server-rendered templates without migrating frameworks.
使用说明 (SKILL.md)

传统前端项目规范(JS + jQuery + HTML)

Purpose

在不重写技术栈的前提下安全维护 vanilla JS、jQuery、HTML/CSS 和服务端模板项目。

Procedure

  1. 先确认本次改动是维护旧栈还是迁移;迁移到 React/Vue/TypeScript 时切换到现代化迁移 workflow。
  2. 沿用现有架构和代码风格,优先修复问题,不在一次改动中引入多项现代化。
  3. JavaScript 用 IIFE/命名空间减少全局污染,事件绑定优先委托到合理容器。
  4. DOM 更新缓存选择器、批量操作、转义用户输入;Ajax 必须处理 loading、error、空状态和防重复提交。
  5. HTML/CSS 保持语义、label、alt、BEM/既有命名和低选择器深度。
  6. 安全重点检查 .html()innerHTML、URL 参数渲染、CSRF token 和文件上传。

Detailed References

涉及 jQuery 命名空间、事件绑定、Ajax、XSS 转义、文件组织和维护清单示例时,加载 references/legacy-patterns.md

Constraints

  • 在现有架构内改进,不要引入与项目格格不入的现代框架。
  • 渐进增强优于推倒重来。
  • 禁止用 innerHTML / .html() 直接插入用户输入。
  • 避免全局变量污染。
  • 每次聚焦一个维护点,避免顺手重构整个模块。

Expected Output

改动与旧项目风格一致,无全局变量泄漏,事件和 DOM 操作可维护,Ajax 状态完整,用户输入已转义,渐进改进不破坏现有功能。

安全使用建议
This appears safe to install as a guidance skill. Users should still review generated code changes carefully, especially around legacy DOM rendering, Ajax, CSRF, and user-input handling, because the skill gives patterns rather than enforcing security automatically.
能力评估
Purpose & Capability
The stated purpose is legacy vanilla JS, jQuery, HTML/CSS, and server-rendered template maintenance; the instructions and reference examples align with that purpose.
Instruction Scope
Runtime guidance is scoped to preserving the existing stack, limiting broad refactors, handling Ajax states, and avoiding unsafe user-input insertion with innerHTML or .html().
Install Mechanism
The artifact contains SKILL.md, README, metadata, package.json, and one markdown reference; no executable scripts, dependencies, lifecycle hooks, or install-time commands are present.
Credentials
The skill only provides coding guidance and examples; it does not request credentials, network access, broad filesystem access, or external service permissions.
Persistence & Privilege
No persistence, background workers, privilege escalation, profile/session access, or automatic mutation behavior is present.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install fec-legacy-web-standard
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /fec-legacy-web-standard 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.4.0
- Added supporting documentation: README, metadata, package, and reference guide for legacy patterns. - Removed obsolete "skill-card.md" file. - Updated skill name and description: emphasizes safe maintenance & non-migration use case with English and Chinese triggers. - SKILL.md restructured: concise purpose, workflow, constraints, and output expectations; refers to references file for detailed patterns. - Scope clarified: for ongoing legacy stack work, not framework migration.
元数据
Slug fec-legacy-web-standard
版本 2.4.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Legacy Web Standard 是什么?

Maintain and safely modify legacy frontend code using vanilla JS, jQuery, HTML/CSS, and server-rendered templates without migrating frameworks. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 50 次。

如何安装 Legacy Web Standard?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install fec-legacy-web-standard」即可一键安装,无需额外配置。

Legacy Web Standard 是免费的吗?

是的,Legacy Web Standard 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Legacy Web Standard 支持哪些平台?

Legacy Web Standard 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Legacy Web Standard?

由 Bovin Phang(@bovinphang)开发并维护,当前版本 v2.4.0。

💬 留言讨论