prompt-engineering-patterns
86优化生产环境 LLM 提示词
LLM 提示词经常失败,是因为指令、示例和评估标准不清晰。此技能提供模板和工作流,用于改进 Claude、Codex、Claude Code 以及类似工具中的提示词。
优化 Apache Spark 作业
缓慢的 Spark 作业会浪费集群预算并延迟分析工作。此技能提供针对分区、连接、内存、缓存和 shuffle 行为的实用调优模式。
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "spark-optimization" from https://skillstore.io/skills/wshobson-spark-optimization.md and its manifest at https://skillstore.io/api/skills/wshobson-spark-optimization/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
正在使用“spark-optimization”。 一个 Spark 作业将大部分时间花在大型连接上,并且任务耗时不均。
预期结果:
响应会识别可能的倾斜,建议检查分区数量,提出 broadcast 或 salting 选项,并列出验证指标。
正在使用“spark-optimization”。 一个 PySpark 流水线在多次聚合之前反复读取并过滤同一个 DataFrame。
预期结果:
响应会建议选择性缓存、物化、重用后 unpersisting,并避免对一次性转换使用 cache。
正在使用“spark-optimization”。 一个团队希望为中等规模批处理工作负载设置默认 Spark 配置。
预期结果:
响应会为 AQE、executor memory、shuffle partitions、compression 和 file partition size 提出起始值。
The static findings are false positives caused by Markdown code fences, Spark example syntax, Spark monitoring APIs, and documentation links. I found no evidence of executable installer code, credential access, command injection, prompt injection, or data exfiltration intent in SKILL.md.
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
https://skillstore.io/skills/wshobson-spark-optimization/audits/8?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report[](https://skillstore.io/skills/wshobson-spark-optimization?utm_source=security_passport_badge)<a href="https://skillstore.io/skills/wshobson-spark-optimization?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/wshobson-spark-optimization/security.svg" alt="Skillstore security assessment" loading="lazy"></a><iframe src="https://skillstore.io/embed/skills/wshobson-spark-optimization.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). spark-optimization security audit report (audit version 8) [Author version unspecified]. Skillstore. https://skillstore.io/skills/wshobson-spark-optimization/audits/8@techreport{wshobson-wshobson-spark-optimization-2026,
author = {wshobson},
title = {spark-optimization security audit report (audit version 8)},
institution = {Skillstore},
year = {2026},
number = {8},
url = {https://skillstore.io/skills/wshobson-spark-optimization/audits/8},
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: "spark-optimization security audit report (audit version 8)"
version: "unspecified"
type: report
authors:
- name: "wshobson"
date-released: "2026-07-08"
url: "https://skillstore.io/skills/wshobson-spark-optimization/audits/8"
identifiers:
- type: other
value: "skillstore:wshobson-spark-optimization:audit:8"
description: "Skillstore immutable audit report identifier"
每位作者的技能都保持为独立的可安装项。推荐变体按 Skillstore 证据排序。
为什么此变体排名第一
使用该技能检查缓慢 Spark 批处理作业中的分区、shuffles、连接、缓存和文件格式。
应用配置速查表来选择 executor memory、shuffle partitions、broadcast thresholds 和 compression settings。
使用 skew detection 和 salting 模式诊断不均衡分区并减少长时间运行的任务。
Use the spark-optimization skill to review my slow Spark job. Focus on obvious partitioning, shuffle, caching, and join issues.
Use the spark-optimization skill to suggest Spark settings for a job that processes my data size, executor count, and join pattern.
Use the spark-optimization skill to diagnose possible data skew in this aggregation or join. Recommend checks and practical fixes.
Use the spark-optimization skill to create a staged optimization plan for this Spark pipeline, including benchmarks and rollback checks.
作者
wshobson许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
引用
64ca8af0f54a325752f08bd54e52151061ea659a
维护新鲜度
2026/7/26
使用量
13 次下载 · 265 次浏览
文件结构
📄 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 将分析塑造成清晰的叙事、视觉呈现和建议。
构建生产级数据管道
由 alirezarezvani
生产数据团队需要可靠的模式来处理管道、质量检查和编排。此技能为现代数据栈提供架构、脚手架和 DataOps 实践指导。
在 Rust 中优化 Parquet 性能
由 EmilLindfors
使用默认设置时,Parquet 流水线可能会浪费存储和内存。此技能会审查 Rust Parquet 读取和写入,然后建议压缩、大小设置、投影和过滤方面的改进。
使用 pymoo 优化多目标问题
由 davila7
优化项目通常需要可重复的算法选择、约束处理和 Pareto 前沿分析。此技能通过示例、参考资料和故障排查模式指导 pymoo 工作流。
优化 Supabase Postgres 性能
由 supabase
慢查询和架构漂移会让 Postgres 应用难以扩展。此技能为 AI 智能体提供基于 Supabase 的索引、RLS、连接池和诊断规则。
优化 Postgres 查询和架构
由 sickn33
慢查询和不安全的数据库模式在常规代码审查中很难发现。此技能为 Claude、Codex 和 Claude Code 提供有关索引、RLS、连接池、事务和诊断的结构化 Postgres 指导。
优化 PostgreSQL 性能
由 sickn33
缓慢的 PostgreSQL 系统在变更前需要结构化分析。此技能可指导查询调优、索引规划、配置审查、维护和监控。