Logo Prompt Enhancer

Prompt Enhancer

Cộng đồng
comol
prompt-enhancer

Turn a short, unstructured prompt or task statement into a detailed imperative spec — numbered analysis steps, edge cases, expected output format — keeping every source term and adding no requirements. Use to improve, refine or structure a prompt or spec; takes text or a .md path.

Add to TypingMind

Tổng quan

Nhà phát hànhcomol
Kho mãai_rules_1c
Tên kỹ năngprompt-enhancer
Sao
496
Bản fork
112
Tệp đi kèm
1
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được comol công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Prompt Enhancer trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/comol/ai_rules_1c/tree/main/content/skills/prompt-enhancer
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/comol/ai_rules_1c.git /tmp/ai_rules_1c
mkdir -p .claude/skills
cp -r /tmp/ai_rules_1c/content/skills/prompt-enhancer .claude/skills/prompt-enhancer
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Prompt Enhancer trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Prompt Enhancer ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Prompt Enhancer với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

prompt-enhancer — improving prompts and task statements

Turns a short note or unstructured task into a detailed imperative specification. Suitable for 1C developers who need to formalize a quickly written thought into a clear task statement.

When to use

Trigger this skill on user phrases like:

  • "improve the prompt", "make the prompt better / more precise / more detailed"
  • "refine the task statement", "formalize this task", "polish the task"
  • "structure the spec", "prepare a spec from a note"
  • "expand the task description", "turn this into a detailed instruction"

The skill works with any subject area, but specifically accounts for 1C task specifics (terminology, attribute names, object names, form names).

Modes

ModeTriggerWhat it does
Inlineargument is arbitrary textImproved prompt is printed in chat
Fileargument is a path to an existing fileResult is saved next to the source with -enhanced.md suffix
Interactiveargument is emptyAsk the user for the prompt text or a file path

Mode detection algorithm

The mode is selected deterministically, without heuristic on the argument text:

  1. If the argument is empty — Interactive mode. Ask the user for the prompt text or a file path with a regular message.
  2. Otherwise try reading the argument via the Read tool.
    • If Read returns file content — File mode.
    • If Read returns a "file does not exist / not found" error — that is the normal path, not a failure. Switch to Inline: use the entire argument as the prompt text.
  3. Do not detect mode by the presence of .md in the text. A phrase like "prepare a spec about .md generation" must not be interpreted as a path. File existence is checked by Read, not by string parsing.

Transformation principles

The core of the skill. Re-check this list on every generation:

  1. Source as the single source of truth. All terms, attribute names, tab names, object names, form names, subsystem names, numbers, enumerations are carried over verbatim. Do not replace Айс_КодИсточника77 with "service attribute".
  2. Imperative instead of description. "needs to be displayed" becomes "Display"; "we should analyze" becomes "Analyze". The result is a plan of actions, not a story.
  3. Explicit edge cases. Exception conditions are extracted into a separate sentence in the form "if ..., then ...", not hidden inside parentheses. An edge case must stand out.
  4. Fixed expected output. Add a "For each item, specify" section with a numbered list of fields. State the result format (table, structured list, JSON) explicitly.
  5. No new requirements. Do not add requirements that were not in the source: tests, documentation, roles, rollback, logging. Improvement is form, not content.
  6. Numbering of analysis steps. Split user wishes into discrete verifiable operations 1..N. Each step — one operation.
  7. Preserve intent, not literal text. If the source says "prepare a list" but then lists analytical tasks, analysis comes first, list compilation second. Restore the correct order.
  8. Neutral business register. Remove conversational and emotional elements ("would be nice", "somehow", "we'd like"), keep neutral phrasing.
  9. Short essence in the first line. Before the step-by-step plan — one sentence stating the task goal.
  10. Formatting per repo rules. No long or short dashes (only the regular hyphen), no letter "ё" with dots, no time or ROI estimates.

Improved prompt template

Mandatory result blocks:

  1. Goal — one sentence, what to do.
  2. Analysis steps — numbered list of imperatives (Analyze, Study, Determine, Output).
  3. Edge cases — explicit "if ..., then ..." conditions with concrete names and values from the source.
  4. Output format — name of the format (table / structured list / JSON) and the list of fields the result must contain.
  5. Additional clarifications (optional) — details, if the source mentioned deadlines, owners, dependencies.

Before / after example

Source prompt (short, unstructured):

The task — display all non-typical attributes of typical objects on the "Доп. реквизиты Айс" tab. Place the tab last. If only one attribute is added, Айс_КодИсточника77, do nothing. Prepare a list of objects, analyze element forms, determine where and how to add the tab.

Improved prompt (structured, detailed):

Analyze all typical configuration objects and prepare a list of those that contain non-typical attributes. Study the element forms of these objects. Add a new "Доп. реквизиты Айс" tab last in order to each form. Move all non-typical attributes onto the tab, except when the only non-typical attribute is Айс_КодИсточника77 (then no changes are made). For each object, specify:

  1. Object name.
  2. List of non-typical attributes.
  3. Name of the element form used and current tab structure.
  4. Recommended changes to tab placement and attribute movement, taking interface logic into account.

Format the output as a convenient table or structured list ready for implementation.

Additional cases — see examples/.

DO / DON'T

DO:

  • Preserve names of objects, attributes, tabs, constants, enumerations verbatim.
  • Turn requests into imperatives, add structure and numbering.
  • Extract exceptions and edge cases into separate sentences.
  • Specify the expected result format explicitly.
  • Add a short essence on the first line before the step-by-step plan.

DON'T:

  • Invent new requirements that were not in the source (roles, tests, rollback, printing, logging).
  • Replace concrete terms with generalizations.
  • Add technical solutions ("use БСП", "do this via HTTP service") unless mentioned in the source.
  • Use long dash, en dash, double hyphen, or letter "ё" with dots.
  • Estimate effort in hours, days, weeks, or money.

Saving the file (file mode)

  • Result name: <source filename without extension>-enhanced.md. If the original is postanovka.md, the result is postanovka-enhanced.md in the same folder.
  • Encoding: UTF-8.
  • Do not overwrite, delete, or rename the original.
  • If the result file already exists — overwrite without asking (this is a rerun of the skill).

Encoding handling

Source files are read as UTF-8. If Read returns obvious mojibake (unreadable Cyrillic like "ж©", "­", squares), inform the user that the file is likely in cp1251 or another encoding and ask to save it as UTF-8. Auto-detection of encoding is intentionally not implemented in the skill — a deliberate simplification of the first version.

Trigger phrases (for reliable detection)

The skill should recognize these user phrasings as triggers, even when the /prompt-enhancer command is not specified explicitly:

  • improve / make the prompt better
  • expand / refine / formalize the task statement (task, spec)
  • structure the spec / task
  • make the prompt more detailed / more precise / better
  • prepare a detailed spec from a note / draft
  • polish the task / statement
  • turn this into a clear spec / detailed instruction

Limitations

  • The skill rewrites form, not content. If the source prompt is logically contradictory or incomplete, the result will also be incomplete (see principle 5 — no new requirements).
  • For very long source texts (2000+ words), processing may miss details. In that case, split the text into logical blocks and process them in parts.
  • The skill assumes no domain knowledge beyond the source. If 1C-specifics need clarification, consult the relevant on-demand rules in this repo (e.g. content/rules/coding-standards.md, standards(name="dev-standards-architecture")) and the 1c-metadata-manage skill (docs/query-writing.md, docs/query-optimization.md) for query and metadata details.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Prompt Enhancer làm được gì?

Turn a short, unstructured prompt or task statement into a detailed imperative spec — numbered analysis steps, edge cases, expected output format — keeping every source term and adding no requirements. Use to improve, refine or structure a prompt or spec; takes text or a .md path.

Vì sao nên dùng Prompt Enhancer trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Prompt Enhancer là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Prompt Enhancer trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/comol/ai_rules_1c/tree/main/content/skills/prompt-enhancer. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Prompt Enhancer?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Prompt Enhancer với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Prompt Enhancer với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Prompt Enhancer có miễn phí không?

Kỹ năng này được comol phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả
Logo của CherryHQ

Cherry Skill Marketplace

CherryHQ
Tổ chứcPhổ biến

当用户明确要求搜索、安装、查看、卸载或创建 Skill,或内置 Skill / 工具出现能力缺口、无法完成当前任务时触发。通过 `mcp__skills__search_skills` 搜索并用 `mcp__skills__install_skill` 安装;已安装 Skill 的查看和删除通过产品清单导航到 Skills UI;没有合适结果时调用内置 `skill-creator`…

5.1K
52.5K
Hướng dẫn
Xem
Logo của CherryHQ

Faq Collector

CherryHQ
Tổ chứcPhổ biến

将成功解决的用户问题收录到 FAQ 知识库。问题解决后自动判断是否收录。也可以在用户说"收录到 FAQ"、"记录这个问题"、"add to FAQ"时手动触发。

5.1K
52.5K
Hướng dẫn
Xem
Logo của CherryHQ

Issue Reporter

CherryHQ
Tổ chứcPhổ biến

只在用户明确要求提交 GitHub Issue、GitHub Bug Report 或 GitHub Feature Request 时使用。用户只说“提交问题”“提交反馈”“上报 bug”“这是个 bug”或描述功能建议但未点名 GitHub 时不得触发,必须改用 cherry-studio-feedback 并默认提交飞书。

5.1K
52.5K
Hướng dẫn
Xem
Logo của CherryHQ

Skills Manager

CherryHQ
Tổ chứcPhổ biến

搜索、安装和协调创建 Claude Code Agent Skills。当用户想要搜索技能、安装工具、创建自定义 Skill,或者说"find a skill"、"搜索技能"、"帮我做个 skill"、"create a skill"时触发。也适用于用户说"有没有做 X 的工具"、"我想扩展 Agent 能力",或当前能力不足需要先查找可复用方案的场景。

5.1K
52.5K
Hướng dẫn
Xem

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇