← Back to Skills Marketplace
bovinphang

Legacy Web Standard

by Bovin Phang · GitHub ↗ · v2.4.0 · MIT-0
cross-platform ✓ Security Clean
50
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install fec-legacy-web-standard
Description
Maintain and safely modify legacy frontend code using vanilla JS, jQuery, HTML/CSS, and server-rendered templates without migrating frameworks.
README (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 状态完整,用户输入已转义,渐进改进不破坏现有功能。

Usage Guidance
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install fec-legacy-web-standard
  3. After installation, invoke the skill by name or use /fec-legacy-web-standard
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug fec-legacy-web-standard
Version 2.4.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Legacy Web Standard?

Maintain and safely modify legacy frontend code using vanilla JS, jQuery, HTML/CSS, and server-rendered templates without migrating frameworks. It is an AI Agent Skill for Claude Code / OpenClaw, with 50 downloads so far.

How do I install Legacy Web Standard?

Run "/install fec-legacy-web-standard" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Legacy Web Standard free?

Yes, Legacy Web Standard is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Legacy Web Standard support?

Legacy Web Standard is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Legacy Web Standard?

It is built and maintained by Bovin Phang (@bovinphang); the current version is v2.4.0.

💬 Comments