1,906
Stars
0
Forks
0
Watchers
0
Open Issues
未知
许可证
TypeScript
语言
创建时间
最近更新
项目能做什么
该项目解决 AI 编程助手容易生成过时、臃肿代码的问题。它由 Chrome、Firefox 等团队维护,为 AI 助手注入现代 Web 原生 API 与最佳实践。核心提供 CLI 工具,支持搜索、获取现代开发指南,以及扫描代码库以识别和现代化过时模式。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# <img src="./.github/img/modern-web-guidance.svg" alt="Modern Web Guidance" width="30" height="30"> Modern Web Guidance (Source) This repo is the source repository for [GoogleChrome/modern-web-guidance](https://github.com/GoogleChrome/modern-web-guidance) and includes the code and documentation for authoring, calibrating, and evaluating its contents. [**Modern Web Guidance**](https://developer.chrome.com/docs/modern-web-guidance) is a set of skills that embed web platform expertise, best practices, and browser compatibility data directly into your coding agents. It helps to steer your coding agents away from legacy patterns, and instead toward solutions that harness the power and capabilities of the modern web platform. See [CONTRIBUTING.md](./CONTRIBUTING.md) and [GOVERNANCE.md](./GOVERNANCE.md) for how we work on the project and orientation of the codebase. --- *Stewarded by the Google Chrome, Microsoft Edge, Mozilla Firefox, and MDN teams, alongside the web development community.* [Documentation](https://developer.chrome.com/docs/modern-web-guidance) · [Eval Dashboard](https://googlechrome.github.io/modern-web-guidance-src/) · [Source Code](https://github.com/GoogleChrome/modern-web-guidance-src) · [Report an Issue](https://github.com/GoogleChrome/modern-web-guidance-src/issues) ## <img src="https://github.com/GoogleChrome/modern-web-guidance/raw/main/.github/img/terminal.svg" width="24" height="24" style="vertical-align: middle; margin-right: 4px;"> Quickstart ```shell npx modern-web-guidance@latest install ``` This command runs an interactive wizard to install Modern Web Guidance. See [Alternative Installation Methods](#-alternative-installation-methods) below. #### Try it out (without installing) ```shell # Search for relevant guides npx modern-web-guidance@latest search "animate a dialog modal backdrop" # Retrieve a guide by ID npx modern-web-guidance@latest retrieve "animate-to-from-top-layer" # Scan a codebase for legacy patterns to modernize npx modern-web-guidance@latest legacy-scan . ``` ## <img src="https://github.com/GoogleChrome/modern-web-guidance/raw/main/.github/img/lightbulb.svg" width="24" height="24" style="vertical-align: middle; margin-right: 4px;"> Why? Coding agents often default to older patterns because LLM training data contains vast amounts of legacy code. This often leads them to generate bloated JavaScript for tasks that now have native, high-performance web platform solutions. Even if a model knows an API exists, it often lacks the density of real-world, modern implementation patterns required for production-ready code. **Modern Web Guidance bridges this gap.** Our skill's CLI returns targeted, expert-curated guidelines directly into your agent's context window, focusing on: * **Modern Browser APIs**: Helping models correctly structure APIs they frequently misuse. * **Performance & Accessibility**: Preferring platform-level APIs that can be optimized by the browser and include built-in accessibili阅读完整原文
商业机会分析 AI 生成
企业级现代Web代码迁移与自动化重构 SaaS / CLI
| 产品构想 | 基于该项目的 legacy-scan 概念与现代 Web 指南,构建自动化扫描 GitHub/GitLab 仓库并生成 PR 替换废弃库/过时写法的商业工具(如将复杂 JS 动效迁移至原生 View Transitions/CSS 方案)。 |
| 核心功能 | 代码库静态依赖与模式扫描、现代 API 替换可行性报告、结合 LLM 自动生成无损重构 PR、跨浏览器兼容性回归测试辅助。 |
| 目标用户 | 维护大型前端项目的中大型企业团队、注重性能与轻量化的前端工程主管。 |
| 难度/周期 | 中等 · 1-2 个月 · 成本:极低(主要是云函数/CLI分发成本与少量 LLM API 调用) |
| 收费模式 | 按仓库席位订阅制,或按成功合并的现代化 PR 数量阶梯收费。 |
| 竞争风险 | 自动重构在复杂业务逻辑下容易引入破坏性改动(Breaking changes),需要完备的测试配合;官方自身若完善 legacy-scan 会挤压空间。 |
| 依据 | 已验证事实 |
面向 Coding Agent 的垂直领域 Skills / Guidelines 托管市场
| 产品构想 | 借鉴该项目向 Coding Agent 动态注入 context 的架构,搭建平台让开发者订阅或定制各类技术栈(如 React 最新特性、企业内部私有 UI 库、特定后端 API)的 Token 精简型 Prompt/Skill 扩展包。 |
| 核心功能 | 一键注入各主流 Agent 工具的 Skills 注册表、Token 占用量与有效性 Eval 测试、企业私有规范上传与格式化分发。 |
| 目标用户 | 依赖 Cursor、Claude Code、GitHub Copilot 的独立开发者和研发团队。 |
| 难度/周期 | 较低 · 2-4 周 · 成本:极低(静态网站 + CDN + 基础用户鉴权系统) |
| 收费模式 | 优质/高频更新规则包买断或月度会员订阅,企业私有托管定制服务费。 |
| 竞争风险 | 技术门槛较低,容易被各大 AI IDE 自身的 Rules / Prompts 体系直接内置覆盖。 |
| 依据 | AI推测 |
前端架构现代化与 AI 研发效能咨询/内训服务
| 产品构想 | 基于 Google/Edge/Mozilla 的现代 Web 指南框架,为传统企业研发团队提供代码现代化审计、淘汰冗余 polyfill/第三方依赖,以及配置团队 Coding Agent 现代开发流的实施服务。 |
| 核心功能 | 代码资产健康度与现代化水平评估报告、团队 Agent 提示词工程与标准规则配置、性能优化与轻量化落地指导。 |
| 目标用户 | 传统企业 IT 部门、技术转型期面临历史包袱的软件外包与自研团队。 |
| 难度/周期 | 低 · 1-2 周启动 · 成本:极低(主要为个人时间成本) |
| 收费模式 | 咨询项目制收费,或按内训培训场次结算。 |
| 竞争风险 | 个人交付模式难以规模化复制,获客依赖人脉与行业影响力。 |
| 依据 | 数据支持的判断 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 ,最近推送 ,发布过 1 个 Release |
| 社区活跃 | Star 1,906 / Fork 0 / Issue 0(数据支持,可自行核实) |
| 许可证 | 未检测到(需人工确认) |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/GoogleChrome/modern-web-guidance-src.git cd modern-web-guidance-src # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。