Logo de Prompt Enhancer

Prompt Enhancer

Comunidade
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

Visão geral

Publicado porcomol
Repositórioai_rules_1c
Nome da habilidadeprompt-enhancer
Estrelas
496
Forks
112
Arquivos incluídos
1
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 1

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por comol no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Prompt Enhancer no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/comol/ai_rules_1c/tree/main/content/skills/prompt-enhancer
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Prompt Enhancer em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Prompt Enhancer automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Prompt Enhancer não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

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.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Prompt Enhancer faz?

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.

Por que usar Prompt Enhancer no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Prompt Enhancer é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Prompt Enhancer no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/comol/ai_rules_1c/tree/main/content/skills/prompt-enhancer. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Prompt Enhancer?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Prompt Enhancer?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Prompt Enhancer com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Prompt Enhancer é gratuita?

A habilidade é publicada no GitHub por comol. Consulte os termos de licenciamento no repositório. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇