prompt-engineering-patterns
86优化生产环境 LLM 提示词
LLM 提示词经常失败,是因为指令、示例和评估标准不清晰。此技能提供模板和工作流,用于改进 Claude、Codex、Claude Code 以及类似工具中的提示词。
现代化 JavaScript 模式
旧式 JavaScript 往往会变得难以阅读、测试和维护。此技能帮助 Claude、Codex 和 Claude Code 应用现代 ES6+ 语法、async 工作流和函数式模式。
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "modern-javascript-patterns" from https://skillstore.io/skills/wshobson-modern-javascript-patterns.md and its manifest at https://skillstore.io/api/skills/wshobson-modern-javascript-patterns/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
正在使用“modern-javascript-patterns”。 一个基于回调的用户加载函数,包含嵌套的成功和错误处理程序。
预期结果:
一个更清晰的 async 函数,包含 try 和 catch 流程、直接返回值,以及关于保留行为的说明。
正在使用“modern-javascript-patterns”。 一个在筛选和转换记录时会修改数组的循环。
预期结果:
一个使用筛选、映射和不可变结果的函数式流水线,并附有关于可读性收益的简短说明。
正在使用“modern-javascript-patterns”。 一个混用了旧式语法、缺失 awaits 和重复对象更新的 pull request。
预期结果:
一份审查清单,指出 async 风险、语法现代化机会和安全重构步骤。
All static findings were assessed as false positives caused by Markdown fences, JavaScript template literals, educational fetch examples, import examples, and public resource links. No prompt injection, data exfiltration intent, hidden execution path, or host reconnaissance request was found in SKILL.md.
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
https://skillstore.io/skills/wshobson-modern-javascript-patterns/audits/9?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report[](https://skillstore.io/skills/wshobson-modern-javascript-patterns?utm_source=security_passport_badge)<a href="https://skillstore.io/skills/wshobson-modern-javascript-patterns?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/wshobson-modern-javascript-patterns/security.svg" alt="Skillstore security assessment" loading="lazy"></a><iframe src="https://skillstore.io/embed/skills/wshobson-modern-javascript-patterns.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>wshobson. (2026). modern-javascript-patterns security audit report (audit version 9) [Author version unspecified]. Skillstore. https://skillstore.io/skills/wshobson-modern-javascript-patterns/audits/9@techreport{wshobson-wshobson-modern-javascript-patterns-2026,
author = {wshobson},
title = {modern-javascript-patterns security audit report (audit version 9)},
institution = {Skillstore},
year = {2026},
number = {9},
url = {https://skillstore.io/skills/wshobson-modern-javascript-patterns/audits/9},
note = {Author version unspecified}
}cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "modern-javascript-patterns security audit report (audit version 9)"
version: "unspecified"
type: report
authors:
- name: "wshobson"
date-released: "2026-07-08"
url: "https://skillstore.io/skills/wshobson-modern-javascript-patterns/audits/9"
identifiers:
- type: other
value: "skillstore:wshobson-modern-javascript-patterns:audit:9"
description: "Skillstore immutable audit report identifier"
每位作者的技能都保持为独立的可安装项。推荐变体按 Skillstore 证据排序。
为什么此变体排名第一
将较旧的函数、回调和可变更新转换为更清晰的 ES6+ 模式。
使用简洁示例解释 async 工作流、模块和函数式转换。
检查代码是否使用可读模式、处理 async 错误并避免常见陷阱。
Use the modern-javascript-patterns skill to refactor this JavaScript function with ES6+ syntax. Explain each change briefly.
Use the modern-javascript-patterns skill to review this async JavaScript code. Improve error handling, parallelism, and readability.
Use the modern-javascript-patterns skill to convert this data processing code into clear functional JavaScript with immutable updates.
Use the modern-javascript-patterns skill to create a phased plan for modernizing this JavaScript module while preserving behavior and tests.
作者
wshobson许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
引用
64ca8af0f54a325752f08bd54e52151061ea659a
维护新鲜度
2026/7/22
使用量
15 次下载 · 227 次浏览
文件结构
📄 SKILL.md
优化生产环境 LLM 提示词
LLM 提示词经常失败,是因为指令、示例和评估标准不清晰。此技能提供模板和工作流,用于改进 Claude、Codex、Claude Code 以及类似工具中的提示词。
管理上下文驱动开发
当产品目标、技术栈选择和工作流规则分散各处时,AI 辅助项目会失去一致性。此技能通过 Conductor 上下文工件指导 Claude、Codex 和 Claude Code。
构建初创公司财务模型
初创团队在规划招聘、融资和现金使用之前,需要清晰的预测。此技能将收入、成本、资金可支撑时间和情景分析组织成实用的财务规划输出。
设计推动决策的 KPI 仪表板
团队经常构建展示大量数字却无法指导行动的仪表板。此技能可帮助 Claude、Codex 和 Claude Code 选择有意义的 KPI、组织视图,并清晰呈现指标。
编写无责事故复盘
事故评审常常变得不一致、侧重追责,或难以转化为行动。此技能帮助 Claude、Codex 和 Claude Code 起草结构化复盘,包含清晰的时间线、根本原因和负责人。
构建清晰的数据故事
原始指标往往难以说服利益相关者或支持决策。此技能帮助 Claude、Codex 和 Claude Code 将分析塑造成清晰的叙事、视觉呈现和建议。
分析代码模式和架构
由 C0ntr0lledCha0s
大型代码库中隐藏着重复结构和不清晰的架构选择。此技能可发现模式、解释其意图,并突出实际的重构机会。
按 AST 结构搜索代码
由 0xDarkMatter
文本搜索会遗漏语义关系并产生大量噪声匹配。此技能使用 ast-grep 模式定位代码结构,并为针对性重构做好准备。
更快查找代码上下文
由 89jobrien
开发者常常花时间追踪代码为何存在以及哪些内容依赖它。此技能会提示 Claude、Codex 或 Claude Code 在进行更改前收集相关图谱知识、调用方、imports 和测试。
Build Interactive Three.js Scenes
由 freshtechbro
Building browser-based 3D scenes requires coordinating rendering, assets, interaction, and performance. This skill provides Three.js examples, reference guides, and a WebGL starter to support implementation.
安全构建 WordPress 区块
由 Automattic
WordPress 区块变更经常会破坏已保存内容、资产或注册流程。此技能为 Gutenberg 项目提供 metadata、rendering、migrations 和 tests 方面的指导。
简化 Rust If-Let 控制流
由 EmilLindfors
嵌套的模式匹配可能会隐藏 Rust 代码中的主要决策路径。此 skill 可帮助 Claude、Codex 和 Claude Code 建议使用 let chains,从而实现更清晰的 Rust 2024 控制流。