Token导航 LogoToken导航

Agent Skill · 开发

skill-to-prompt(提示技巧)

用于辅助提示词、系统指令、Agent 行为约束和工作流模板的整理。它适合让 Agent 规范任务边界、统一输出格式、拆分操作步骤或优化提示词可复用性。使用时需要保留真实业务约束,不要把示例当硬规则;涉及自动执行、外部工具或高风险操作时,应在提示词中明确确认步骤、权限边界和失败处理方式。

skill-to-prompt 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有未通过项,按安装量在开发类的 21,746 个 Skill 里排第 19,470。

总安装 269周安装 11GitHub Stars 26下载 87核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:skill-to-prompt(提示技巧)
来源仓库:https://github.com/realjaymes/marketingagentskills
仓库路径:skills/skill-to-prompt
安装命令:
npx skills add https://github.com/realjaymes/marketingagentskills --skill skill-to-prompt
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/realjaymes/marketingagentskills --skill skill-to-prompt

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

用于辅助提示词、系统指令、Agent 行为约束和工作流模板的整理。适合规范任务边界、统一输出格式、拆分操作步骤或优化可复用性。使用时需保留真实业务约束,避免将示例当作硬规则。涉及自动执行或高风险操作时应在提示词中明确确认步骤和权限边界。

skill-to-prompt 属于开发类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/skill-to-prompt

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/realjaymes/marketingagentskills --skill skill-…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

skill-to-prompt 怎么安装?

在终端执行 npx skills add https://github.com/realjaymes/marketingagentskills --skill skill-to-prompt。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

skill-to-prompt 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

skill-to-prompt 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

skill-to-prompt 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

skill-to-prompt 用的人多吗?

公开数据是累计安装 269 次,近一周安装 11 次,下载 87 次,GitHub 26 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

skill-to-prompt 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
skill-to-prompt

提示技巧 · 本页

26926需要联网未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Skill to Prompt Converter

Converts a Claude skill (SKILL.md + references/) into ChatGPT Project format: one prompt instruction document (.docx, under 8,000 characters) and one knowledge file document (.docx).

What This Produces

For each conversion:

  1. Prompt Instructions (.docx) — The text that gets pasted into ChatGPT's "Instructions" field. Under 8,000 characters. Structured using the 9-component prompt formula.
  2. Knowledge File (1.docx file) — Uploaded to the ChatGPT Project as reference material. Contains all detailed workflows, templates, frameworks, examples, and reference content consolidated into a single document.

All.docx files follow standard formatting: Arial font, 10pt normal text, H1=20pt, H2=16pt, H3=14pt, H4=12pt, 1.15 line spacing.


Conversion Workflow

Step 1: Locate and Read Source Skill

If user provides a skill name (e.g., "copywriting"):

  • Look in ~/.claude/skills/[skill-name]/SKILL.md

If user provides a path, use it directly.

Read everything:

  • SKILL.md (full content)
  • All files in references/ folder
  • Note any scripts/ or assets/ folders (these need special handling)

Step 2: Analyze Skill Complexity

Count total source content to understand how much compression is needed for the single knowledge file:

ComplexityCriteriaCompression Needed
Simple<300 lines in SKILL.md, no reference filesMinimal — content fits easily in one knowledge file
Medium300-500 lines or 1-2 reference filesModerate — condense verbose sections, keep all frameworks and examples
Complex500+ lines or 3+ reference filesHeavy — prioritize frameworks, worked examples, and actionable content. Summarize repetitive sections

Regardless of complexity, always produce exactly 1 knowledge file.

Step 3: Map Content to the 9-Component Prompt Formula

Read references/prompt-structure-guide.md for the full mapping guide.

Extract from the Claude skill and map to ChatGPT instruction components:

Claude Skill SectionChatGPT Prompt Component
Frontmatter descriptionRole + Task summary
"When to Use" / trigger conditionsTask context
"Before Starting" / gather context stepsInputs/Variables
Core workflow sections (numbered steps)Task (condensed steps)
"Output Format" sectionFormatting Instructions
"Examples" sectionExample Output (1-2 max in instructions)
"Constraints" / "Rules" / "Never" statementsConstraints
Target audience mentionsAudience
Voice/tone guidanceStyle/Tone
Purpose / outcome descriptionsGoal

Step 4: Split Content Between Instructions and Knowledge Files

Apply the priority system to stay under 8,000 characters:

P1 — Always in the prompt instructions:

  • Role statement (who the AI is, what it specializes in)
  • Task overview (primary task + condensed workflow steps)
  • Goal (desired outcome)
  • Critical constraints (never/always rules)
  • Knowledge file references (what each file contains, when to consult it)

P2 — Include in instructions if character budget allows:

  • 1-2 key examples (keep short, move full examples to knowledge files)
  • Input variables (what the user must provide before starting)
  • Output formatting specs
  • Style/tone guidance

P3 — Always in knowledge files:

  • Full detailed workflow with multi-paragraph explanations
  • Complete example library
  • Templates and frameworks (from SKILL.md body and references/)
  • All reference material (from references/ folder)
  • Edge cases and advanced scenarios
  • Decision trees and detailed tables
  • Script code (from scripts/ folder, documented as reference)

Character budget: Target 7,500 characters for the instruction text (500-char safety buffer).

Step 5: Write Prompt Instructions

Draft the instruction text following this structure:

Every prompt instruction document must include all 9 headings below, in this exact order. No headings may be omitted or renamed.

## Role

You are [expertise extracted from skill description and intro].
You specialize in [specific domain/capabilities].

## Task

Your primary task is to [main objective from the skill].

Follow this workflow:
1. [Condensed step from skill workflow]
2. [Condensed step]
3. [Condensed step]
...

## Goal

[Desired outcome extracted from the skill's purpose/output sections]

## Audience

[Target audience. If the skill does not specify an audience, write: "General users seeking [skill domain] assistance. Adjust complexity based on the user's apparent experience level."]

## Style/Tone

[Voice/tone rules extracted from the skill. If the skill does not specify tone, write: "Professional and clear. Match the register of the target audience. Avoid jargon unless the audience expects it."]

Always include these writing rules regardless of skill-specific tone:
- Avoid dashes unless absolutely necessary. Prefer commas, periods, or conjunctions to keep the tone natural.
- Use en dashes (with spaces, e.g. word – word) or em dashes (without spaces, e.g. word—word) only when unavoidable, ideally no more than once per complete piece of output.

## Constraints

- [Never/always rule]
- [Character/word limits]
- [Format restrictions]
- [Quality standards]

## Inputs/Placeholders

Before starting, ask the user for:
1. [Required input from the skill's context-gathering steps]
2. [Required input]

## Example Output

[1-2 short examples showing expected output structure. Keep brief.]

## Formatting Instructions

[Output structure and formatting rules from the skill]

After the 9 required sections, always append a Knowledge Files section:

## Knowledge Files

This project includes 1 knowledge file. Consult it as needed:

1. **[SkillName]_Reference_Guide.docx** — [What it contains and when to reference it]

After drafting, count characters. If over 7,500:

  • Cut examples to bare minimum (but keep the Example Output heading with at least a brief example)
  • Compress workflow steps further
  • Shorten Audience and Style/Tone content (but never remove the headings)

If over 8,000 after compression: shorten section content further, but all 9 headings must remain. Move detailed explanations to the knowledge file and replace with concise summaries under each heading.

Step 6: Organize Knowledge File Content

Always produce exactly 1 knowledge file named [SkillName]_Reference_Guide.docx.

Consolidate all P3 content into this single document, organized with clear heading hierarchy:

[SkillName]_Reference_Guide.docx containing:

  • Full detailed workflow with complete explanations
  • All examples and worked examples
  • Templates and frameworks (from SKILL.md body and references/ folder)
  • All reference material (from references/ folder)
  • Guidelines, best practices, and edge cases
  • Decision trees and detailed tables
  • Script documentation (from scripts/ folder, noted as non-executable reference)

Organization within the single file:

  • Use H1 for major sections (Workflows, Templates, Examples, Reference Material)
  • Use H2-H3 for subsections within each major section
  • Use page breaks between major sections for readability
  • For complex skills with heavy reference content, prioritize frameworks, worked examples, and actionable content over verbose explanations

Step 7: Generate JSON Data

Structure all content as a JSON object matching the docx-generator input format.

The JSON structure:

{
  "skillName": "Skill Display Name",
  "originalSkillName": "skill-name",
  "version": "1.0.0",
  "outputDir": "~/Downloads/",
  "instructionDoc": {
    "filename": "SkillName_Prompt_Instructions.docx",
    "title": "Skill Name — ChatGPT Project Instructions",
    "characterCount": 7234,
    "sections": [
      { "type": "heading", "level": 1, "text": "Section Title" },
      { "type": "paragraph", "text": "Regular paragraph text." },
      { "type": "bold-paragraph", "label": "Label:", "text": "Text after label" },
      { "type": "bullet", "text": "Bullet point", "level": 0 },
      { "type": "numbered", "text": "Numbered item", "number": 1 },
      { "type": "table", "headers": ["H1","H2"], "rows": [["a","b"]], "columnPcts": [30,70] },
      { "type": "divider" },
      { "type": "spacer", "size": 200 },
      { "type": "meta", "text": "Metadata or footnote text" }
    ]
  },
  "knowledgeFiles": [
    {
      "filename": "SkillName_Reference_Guide.docx",
      "title": "Skill Name Reference Guide",
      "sections": [...]
    }
  ]
}

Write this JSON to a temporary file in the current directory: [skill-name]-conversion.json

Step 8: Generate.docx Files

Run the generator:

NODE_PATH=~/Documents/node_modules node ~/.claude/skills/skill-to-prompt/references/docx-generator.js [skill-name]-conversion.json

This produces all.docx files in the ~/Downloads/ folder.

If the docx package is not available, install it first:

cd ~/Documents && npm install docx && cd -

Fallback: If.docx generation fails entirely, output the content as formatted markdown that the user can paste into Google Docs or Word. Apply the same heading hierarchy and section structure.

Step 9: Validate and Present Results

Check and report:

  • Instruction character count (must be under 8,000)
  • All.docx files generated successfully
  • Knowledge files contain complete referenced content
  • Cross-references between instructions and knowledge files are clear

Present to the user:

Conversion complete: [skill-name] → ChatGPT Project

Output saved to ~/Downloads/

Prompt Instructions:
  [SkillName]_Prompt_Instructions.docx (X,XXX characters)

Knowledge File:
  [SkillName]_Reference_Guide.docx — [brief description]

Setup in ChatGPT:
  1. Create a new Project in ChatGPT
  2. Paste the instruction text from the Instructions .docx into the project's Instructions field
  3. Upload the knowledge file to the project
  4. Test with a sample prompt

After presenting, clean up the temporary JSON file:

rm [skill-name]-conversion.json

Conversion Rules

What Transfers Directly

  • Role and purpose definitions
  • Workflow steps (condensed)
  • Constraints and rules
  • Output format specifications
  • Examples and templates
  • Reference content

What Requires Rewriting

  • Claude tool references (Read, Grep, Glob, Bash, Edit, Write) → Rewrite as natural language instructions. Example: "Read the user's file" becomes "Ask the user to paste or upload the content."
  • Dynamic commands (!command syntax) → Not available in ChatGPT. Document as manual steps.
  • File system operations → Replace with "ask the user to provide" patterns.
  • Progressive disclosure (loading references on demand) → All content must be in knowledge files upfront.

What Does Not Transfer

  • Scripts (scripts/ folder) → Document the script's purpose in the knowledge file. Include the code as reference if useful, but note it cannot execute in ChatGPT.
  • Assets (assets/ folder) → Note in the output: "These assets must be manually transferred if needed."
  • Cross-skill references → Flag as dependencies: "This skill references [other-skill]. Consider converting that skill separately."
  • MCP server integrations → Not available in ChatGPT Projects.
  • Frontmatter fields (version, argument-hint, context, agent, allowed-tools) → These are Claude-specific metadata. Do not include in ChatGPT instructions.

Output Naming Convention

[SkillName]_Prompt_Instructions.docx
[SkillName]_Reference_Guide.docx

Where [SkillName] is the skill name in Title Case with spaces replaced by underscores.

Examples:

  • copywriting → Copywriting_Prompt_Instructions.docx
  • digital-product-video-ads → Digital_Product_Video_Ads_Prompt_Instructions.docx
  • page-cro → Page_CRO_Prompt_Instructions.docx

Document Formatting Standards

All.docx output follows these standards:

ElementSetting
FontArial
Font colorBlack (default) for all text and headings
Normal text10pt
Heading 120pt
Heading 216pt
Heading 314pt
Heading 412pt
Line spacing1.15

Additional rules:

  • Headings are styled by size only. No extra bold on headings.
  • All text and headings must be default black. No additional colors on any text or headings.
  • Add space after each paragraph.
  • Tables use alternating row shading for readability.
  • When generating.docx, explicitly set Arial font, heading sizes, black color (no theme colors), and 1.15 line spacing on every element. Never rely on Word default styles.

References

  • references/prompt-structure-guide.md — 9-component prompt formula, character budget allocation, compression techniques
  • references/docx-generator.js — Node.js script for generating.docx files from JSON data
  • references/AI Prompting Techniques.pdf — Source material for the prompt structure framework

Related Skills

  • agent-skill-builder — The reverse direction: converts ChatGPT Projects into Claude skills
  • skill-creator — Guide for creating new Claude skills from scratch

平台分布

Codex

37.28%
按下载量换算32

Claude

29.86%
按下载量换算26

Cursor

19.11%
按下载量换算17

Gemini CLI

9.69%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

未通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills