inference-sh/skills

prompt-engineeringinference-sh/skills

先明确任务和判断标准,再比较一次受控改写

  • SKILL.md 已保存
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

prompt-engineering 是什么?

prompt-engineering 汇总文本模型的任务、上下文、示例与输出格式,以及图像主体/构图/光线和视频动作/镜头等提示词写法。它是跨模型入门参考,具体字段如negative_prompt或system须核对实际App,不能按模型名字假定支持。

中文说明由本站依据来源整理;英文原文保留在页面下方。

按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 prompt-engineering,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 prompt-engineering

请在 Codex 的当前工作环境中安装并检查 prompt-engineering 这个 Skill。

项目身份:inference-sh/skills / prompt-engineering
来源:https://github.com/inference-sh/skills/blob/0cbf91c26ada28702c79962406286f0c14292150/guides/prompting/prompt-engineering/SKILL.md
已定位的源文件:guides/prompting/prompt-engineering/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 提供原提示词、实际模型或App、输入与失败输出,并说明什么算满足任务;平台执行另需账号。

会得到什么

  • 有修改理由的新提示词和实际比较结果;未执行时只给待验证方案。

实际使用顺序

  1. 先把目标、必要上下文、约束和输出形式写清,删除矛盾指令,示例标明输入输出关系。
  2. 针对当前失败只改相关部分:文字抽取约定字段与缺失值,图像补主体和构图,视频补一个主要动作与镜头。
  3. 保留原版与改版,在相同任务条件下比较实际结果;JSON仍需解析和字段验证,图像真实尺寸由输出确定。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

教学示例:请用prompt-engineering改进“帮我介绍这个Skill”。任务限定为从我提供的SKILL.md提取用途、输入、操作和边界,缺失就标未说明,输出中文并保留原文证据位置。先给改写,不调用额外模型。
预期结果

预期约束清楚且不按名称补能力;本站未做模型对照实验。

使用前先看这些限制

使用条件与边界

  • “8K”等提示词不会自动设置输出像素,需查看App真实尺寸参数。
  • few-shot和角色描述能提供模式,不保证事实正确或稳定遵循全部约束。
针对这个 Skill 的疑问

常见问题

要求“只输出JSON”就不用做校验了吗?

仍要校验语法、字段和内容。提示词约束不能代替解析器、schema或业务事实核对。

需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

guides/prompting/prompt-engineering/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Master prompt engineering for AI models: LLMs, image generators, video models. Techniques: chain-of-thought, few-shot, system prompts, negative prompts. Models: Claude, GPT-4, Gemini, FLUX, Veo, Stable Diffusion prompting. Use for: better AI outputs, consistent results, complex tasks, optimization. Triggers: prompt engineering, how to prompt, better prompts, prompt tips, prompting guide, llm prompting, image prompt, ai prompting, prompt optimization, prompt template, prompt structure, effective prompts, prompt techniques

查看源文件章节 / Source sections
  • 原文:Prompt Engineering Guide
  • 快速开始 / Quick Start
  • 原文:LLM Prompting
  • 原文:Basic Structure
  • 原文:Role Prompting
  • 原文:Task Clarity
  • 原文:Chain-of-Thought
  • 原文:Few-Shot Examples
  • 原文:Output Format Specification
  • 原文:Constraint Setting
  • 原文:Image Generation Prompting
  • 原文:Basic Structure
  • 原文:Subject Description
  • 原文:Style Keywords
  • 原文:Composition Control
  • 原文:Quality Keywords
  • 原文:Negative Prompts
  • 原文:Video Prompting
  • 原文:Basic Structure
  • 原文:Camera Movement
  • 原文:Action Description
  • 原文:Temporal Keywords
  • 原文:Advanced Techniques
  • 原文:System Prompts
  • 原文:Structured Output
  • 原文:Iterative Refinement
  • 原文:Multi-Turn Reasoning
  • 原文:Model-Specific Tips
  • 原文:Claude
  • 原文:GPT-4
原文:正文开头

> **Install the belt CLI skill:** `npx skills add belt-sh/cli`

原文:Prompt Engineering Guide

Master prompt engineering for AI models via [inference.sh](https://inference.sh) CLI. ![Prompt Engineering Guide](https://cloud.inference.sh/app/files/u/4mg21r6ta37mpaz6ktzwtt8krr/01kgvftjwhby36trvaj66bwzcf.jpeg)

快速开始 / Quick Start

> Requires inference.sh CLI (`belt`). [Install instructions](https://raw.githubusercontent.com/inference-sh/skills/refs/heads/main/cli-install.md) ```bash belt login # Well-structured LLM prompt belt app run openrouter/claude-sonnet-45 --input '{ "prompt": "You are a senior software engineer. Review this code for security vulnerabilities:\n\n```python\nuser_input = request.args.get(\"query\")\nresult = db.execute(f\"SELECT * FROM users WHERE name = {user_input}\")\n```\n\nProvide specific issues and fixes." }' ```

原文:Basic Structure

``` [Role/Context] + [Task] + [Constraints] + [Output Format] ```

原文:Role Prompting

```bash belt app run openrouter/claude-sonnet-45 --input '{ "prompt": "You are an expert data scientist with 15 years of experience in machine learning. Explain gradient descent to a beginner, using simple analogies." }' ```

原文:Task Clarity

```bash # Bad: vague "Help me with my code" # Good: specific "Debug this Python function that should return the sum of even numbers from a list, but returns 0 for all inputs: def sum_evens(numbers): total = 0 for n in numbers: if n % 2 == 0: total += n return total Identify the bug and provide the corrected code." ```

文件 SHA256:93bbc8371a19d7ee990d6fbddcce316719f8e561a22f70ad4cc3ddecd59bc753

仓库许可证记录:未提供;not-established,查看来源。

SKILL.md原文description · 2026-11-16T12:36:35.145Z

Master prompt engineering for AI models: LLMs, image generators, video models. Techniques: chain-of-thought, few-shot, system prompts, negative prompts. Models: Claude, GPT-4, Gemini, FLUX, Veo, Stable Diffusion prompting. Use for: better AI outputs, consistent results, complex tasks, optimization. Triggers: prompt engineering, how to prompt, better prompts, prompt tips, prompting guide, llm prompting, image prompt, ai prompting, prompt optimization, prompt template, prompt structure, effective prompts, prompt techniques

查看历史简介来源

历史收录数据

来源仓库inference-sh/skills
Skill源路径guides/prompting/prompt-engineering/SKILL.md

安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源