Skip to content

Instantly share code, notes, and snippets.

@0H4S

0H4S/English.md Secret

Last active March 1, 2026 13:31
Show Gist options
  • Select an option

  • Save 0H4S/109af9d102881cbc34b20d6f2bc196e7 to your computer and use it in GitHub Desktop.

Select an option

Save 0H4S/109af9d102881cbc34b20d6f2bc196e7 to your computer and use it in GitHub Desktop.
User Guide - Dynamic Prompt

Dynamic Prompt

The Dynamic Prompt converts static texts into interactive tools. Through specific syntax, you create visual forms where you fill in only the essential data. The system processes these choices and generates the final prompt perfectly structured for the AI.

Refer to the reference tables below, followed by the step-by-step guide with practical examples.


1. Essential Syntax (Start here)

Basic tools to create forms and simple lists.

SYNTAX FUNCTION BEHAVIOR
[...] Text Field Generates an input box for free typing. The text inside the brackets is the field title.
[Label = $var] Linked Variable Defines a field that will be filled only once. The entered value will automatically replace all $var shortcuts scattered throughout the text.
#start Group Start Opens an interactive section to list choice options.
#end Group End Mandatory to close #start or #ignore blocks.
# Title Group Title Defines the visual name of the choice section (used inside a region).
+ [...] Multiple Choice Creates a selection box (Checkbox). Allows checking multiple options at the same time.
- [...] Single Choice Exclusive option. If checked, it clears all other selections and remains as the unique choice.

2. Advanced Syntax (Logic and Control)

Tools for complex flows, radio buttons, and code protection.

SYNTAX FUNCTION BEHAVIOR
[...](Info) Comment Adds an (i) icon next to the field in the menu. When clicked, displays the provided "Info" to guide the user.
NumID [...] Exclusive Group Options with the same number (ID) form a group where only one can be chosen (Radio Button).
'...' Hidden Value Replacement text. The user sees the name in the bracket, but the AI receives the content of the single quotes.
#ignore Ignore Region Block where dynamic syntax is turned off. Useful for posting codes containing brackets.
\[...\] Escape Brackets Forces the display of literal brackets in the final text, without creating input fields.
\'...\' Escape Quotes Allows using single quotes inside a Hidden Value without breaking the command.

How to use

Ensure you activate Dynamic Prompt mode in your system.

  1. [...]: Insert a placeholder between brackets. The system will create a text field using the content as a label.

    • Ex: In the prompt: Hello! My name is [Type your name]! In the menu: Type your name (user types "John") Output: Hello! My name is John!
  2. [Label = $var]: Use when you need to repeat the same information multiple times.

    • Ex: Hello [Client = $name]. How are you Mr./Ms. $name?
    • The system will ask for "Client" only once and fill both locations with the same value.
  3. (Comment): Use immediately after the brackets to give instructions.

    • Ex: [Date](In DD/MM/YYYY format) -> Shows a help icon with the formatting tip.
  4. #ignore: Protects text blocks (like code) so they are not processed.

    • Ex:
       #ignore
       [This is not a field]
       #end
      

    Always close with #end.

  5. #start and #end: Defines the area where choice options (+, -, NumID) will appear. Everything between these two commands will be transformed into a menu.

  6. Selector Types (Inside a region):

    • + [...] (Checkbox): Use for lists where the user might want everything (e.g., Ingredients).
    • - [...] (Sovereign): Use for options that override others (e.g., "None of the above").
    • NumID [...] (Radio Button): Use for mandatory and unique choices per category.
      • Hint: The number is not a count, it is the group identifier.
      • 1 [Option A] and 1 [Option B] = The user can only choose A or B.
  7. '...' (Hidden Value): [Advanced Feature] Replaces the button text with a complex prompt invisible to the user.

    ⚠️ The hidden text must be on the line immediately below the option, without blank lines between them.

    • Ex:
        #start
        - [Simple Button]
        'Technical and complex prompt sent to the AI.'
        #end
      
  8. \: Backslash to "escape" special characters.

    • Use \[ and \] to show a real bracket in the final text.
    • Use \' to write a single quote inside a hidden value ('The glass of water\'s edge').

Practical Examples

Copy the examples below to test the logic.

Level 1: Simple Text Variables [...]

For fixed prompts where only the context changes.

Prompt:

Act as an SEO specialist. Write an optimized meta-description for an article about **[Main Keyword]**. The tone should be **[Desired Tone of Voice]**.

Level 2: Multiple Selection List +

To combine multiple criteria.

Prompt:

Analyze the following JavaScript code. Focus your review on the following aspects:
#start
# Review Criteria:
+ [Performance]
+ [Security]
+ [Readability]
+ [Best Practices]
#end

Code: [Paste code here]

Level 3: Single Selection -

For absolute options or a "reset" button.

Prompt:

Tell a story with the theme:
#start
+ [Christmas]
+ [Easter]
- [Random Theme]
#end

Level 4: Exclusive Groups by ID (Advanced Logic)

Here we have two categories in the same menu. Number 1 controls Diet, number 2 controls Goal. The user can only mark one item from each number.

Prompt:

Create a weekly menu.
Diet Configuration:
#start
# Dietary Preferences:
1 [Vegan]
1 [Carnivore]
1 [Pescatarian]
2 [Low Calorie (Low Carb)]
2 [High Carb (Bulking)]
#end

Level 5: The Power of Hidden Text '...'

Observe how the user sees a simple option, but the AI receives a detailed instruction.

Prompt:

Act as a career consultant.
I need help with:
#start
# Select the problem:
- [Improve Resume]
'Analyze my resume focusing on clarity, impact metrics, and ATS keyword usage.'
- [Simulate Interview]
'Conduct a tough interview simulation. Ask me one question at a time, wait for my answer, and then give me acidic feedback.'
#end

Level 6: Protecting Codes and Formats \[ \] and #ignore

How to avoid the system confusing JSON or Arrays with form fields.

Prompt:

Analyze this JSON file:
#ignore
{
  "users": [
    { "id": 1, "name": "Example" }
  ]
}
#end

Ensure that the array \[tags\] contains only strings and then convert it to [Enter desired conversion format]

Level 7: Linked Variables and Comments

Use variables to avoid typing the same thing twice and comments to guide filling.

Prompt:

Service Agreement Contract.

CLIENT: [Company Name = $company](Full Legal Name)
DATE: [Start Date = $date](DD/MM/YYYY)

I, representative of $company, declare to be aware that the project will start on $date.
The $company commits to providing the necessary resources.

Field with automatic context:
Please describe here the [Project Scope](). (When clicking the help icon on this field, you will see this text surrounding it).

Level 8: Multiple Scenarios

Prompt:

Act as an Expert Software Engineer.

--- PROJECT DATA ---
Project Name: [Project = $proj]
Developer: [Author = $dev](Name and Surname)
Version: [Version]()
(The field 'Version' above has an empty automatic context for testing).

I need you to create a module for the file [File Name = $file] (ex: index.js).

--- TECHNICAL CONFIGURATION ---
Select technologies and style:
#start
# 1. Seniority Level (Testing Hidden Value):
- [Senior Mode]
'Use Clean Architecture, SOLID patterns, robust error handling, and optimized code.'
- [Didactic Mode]
'Write simple code, with explanatory comments line by line for beginners.'

# 2. Language (Testing Radio Group 1):
1 [JavaScript]
1 [Python]
1 [TypeScript]

# 3. Framework/Lib (Testing Radio Group 2):
2 [React]
2 [Vue.js]
2 [Django]
2 [Express]

# 4. Extra Features (Testing Checkbox +):
+ [Include Unit Tests]
+ [Add Dockerfile]
+ [Create README.md]
#end

--- BASE CODE ---
Use this configuration as a base for the connection (Do not alter the content of the brackets inside this block):
#ignore
const dbConfig = {
  host: "[SERVER_IP]",
  timeout: 5000,
  retry_policy: ["[ON_ERROR]", "[ON_TIMEOUT]"]
};
#end

--- FINAL REQUIREMENTS ---
1. The header of the file **$file** must contain: "Property of **$proj** - Created by **$dev**".
2. Ensure the final response is wrapped in the tag \[CODE_BLOCK\] so I can process it via regex.

Common Troubleshooting

If your prompt is not working as expected, check:

  1. Did you forget to close the region? Every #start or #ignore needs an #end at the end.
  2. Did the Hidden Value fail? Check if you left a blank line between the option [...] and the value '...'. They must be "glued".
  3. Did text brackets turn into fillable fields in the menu? If the system interpreted parts of your text (like [tags]) as variables and opened unwanted question boxes, it's because the escape was missing. Use the backslash beforehand to lock interpretation: \[tags\].

Prompt Dinâmico

O Prompt Dinâmico converte textos estáticos em ferramentas interativas. Através de sintaxes específicas, você cria formulários visuais onde preenche apenas os dados essenciais. O sistema processa essas escolhas e gera o prompt final perfeitamente estruturado para a IA.

Consulte as tabelas de referência abaixo e, em seguida, o guia passo a passo com exemplos práticos.


1. Sintaxe Essencial (Comece por aqui)

Ferramentas básicas para criar formulários e listas simples.

SINTAXE FUNÇÃO COMPORTAMENTO
[...] Campo de Texto Gera uma caixa de entrada para digitação livre. O texto entre colchetes é o título do campo.
[Label = $var] Variável Vinculada Define um campo que será preenchido uma única vez. O valor digitado substituirá automaticamente todos os atalhos $var espalhados pelo texto.
#start Início de Grupo Abre uma seção interativa para listar opções de escolha.
#end Fim de Grupo Obrigatório para fechar blocos de #start ou #ignore.
# Título Título do Grupo Define o nome visual da seção de escolhas (usado dentro de uma região).
+ [...] Múltipla Escolha Cria uma caixa de seleção (Checkbox). Permite marcar várias opções ao mesmo tempo.
- [...] Escolha Única Opção exclusiva. Se marcada, ela apaga todas as outras seleções e fica como única escolha.

2. Sintaxe Avançada (Lógica e Controle)

Ferramentas para fluxos complexos, botões de rádio e proteção de código.

SINTAXE FUNÇÃO COMPORTAMENTO
[...](Info) Comentário Adiciona um ícone (i) ao lado do campo no menu. Ao clicar, exibe a "Info" fornecida para orientar o usuário.
NumID [...] Grupo Exclusivo Opções com o mesmo número (ID) formam um grupo onde apenas uma pode ser escolhida (Radio Button).
'...' Valor Oculto Texto de substituição. O usuário vê o nome no colchete, mas a IA recebe o conteúdo das aspas simples.
#ignore Ignorar Região Bloco onde a sintaxe dinâmica é desligada. Útil para postar códigos que contêm colchetes.
\[...\] Escapar Colchetes Força a exibição de colchetes literais no texto final, sem criar campos de entrada.
\'...\' Escapar Aspas Permite usar aspas simples dentro de um Valor Oculto sem quebrar o comando.

Como usar

Certifique-se de ativar o modo Prompt Dinâmico no seu sistema.

  1. [...]: Insira um espaço reservado entre colchetes. O sistema criará um campo de texto usando o conteúdo como rótulo.

    • Ex: No prompt: Olá! Meu nome é [Digite seu nome]! No menu: Digite seu nome (usuário digita "João") Como sai: Olá! Meu nome é João!
  2. [Label = $var]: Use quando precisar repetir a mesma informação várias vezes.

    • Ex: Olá [Cliente = $nome]. Como vai Sr(a). $nome?
    • O sistema pedirá "Cliente" apenas uma vez e preencherá os dois locais com o mesmo valor.
  3. (Comentário): Use logo após os colchetes para dar instruções.

    • Ex: [Data](No formato DD/MM/AAAA) -> Mostra um ícone de ajuda com a dica de formatação.
  4. #ignore: Protege blocos de texto (como códigos) para que não sejam processados.

    • Ex:
       #ignore
       [Isso não é um campo]
       #end
      

    Sempre feche com #end.

  5. #start e #end: Define a área onde as opções de escolha (+, -, NumID) irão aparecer. Tudo que estiver entre esses dois comandos será transformado em menu.

  6. Tipos de Seletores (Dentro de uma região):

    • + [...] (Checkbox): Use para listas onde o usuário pode querer tudo (ex: Ingredientes).
    • - [...] (Soberana): Use para opções que anulam as outras (ex: "Nenhuma das anteriores").
    • NumID [...] (Radio Button): Use para escolhas obrigatórias e únicas por categoria.
      • Dica: O número não é uma contagem, é o identificador do grupo.
      • 1 [Opção A] e 1 [Opção B] = O usuário só pode escolher A ou B.
  7. '...' (Valor Oculto): [Recurso Avançado] Substitui o texto do botão por um prompt complexo invisível ao usuário.

    ⚠️ O texto oculto deve estar na linha imediatamente abaixo da opção, sem linhas em branco entre eles.

    • Ex:
        #start
        - [Botão Simples]
        'Prompt técnico e complexo enviado para a IA.'
        #end
      
  8. \: Barra invertida para "escapar" caracteres especiais.

    • Use \[ e \] para mostrar um colchete real no texto final.
    • Use \' para escrever uma aspa simples dentro de um valor oculto ('O copo d\'água').

Exemplos Práticos

Copie os exemplos abaixo para testar a lógica.

Nível 1: Variáveis de Texto Simples [...]

Para prompts fixos onde muda apenas o contexto.

Prompt:

Atue como um especialista em SEO. Escreva uma meta-descrição otimizada para um artigo sobre **[Palavra-chave Principal]**. O tom deve ser **[Tom de voz desejado]**.

Nível 2: Lista de Seleção Múltipla +

Para combinar vários critérios.

Prompt:

Analise o seguinte código JavaScript. Foque sua revisão nos seguintes aspectos:
#start
# Critérios de revisão:
+ [Performance]
+ [Segurança]
+ [Legibilidade]
+ [Boas Práticas]
#end

Código: [Cole o código aqui]

Nível 3: Seleção Única -

Para opções absolutas ou botão de "reset".

Prompt:

Conte uma história com o tema:
#start
+ [Natal]
+ [Páscoa]
- [Tema Aleatório]
#end

Nível 4: Grupos Exclusivos por ID (Lógica Avançada)

Aqui temos duas categorias no mesmo menu. O número 1 controla a Dieta, o número 2 controla o Objetivo. O usuário só pode marcar um item de cada número.

Prompt:

Crie um cardápio semanal.
Configuração da Dieta:
#start
# Preferências Alimentares:
1 [Vegano]
1 [Carnívoro]
1 [Pescatariano]
2 [Baixa Caloria (Low Carb)]
2 [Alto Carbo (Bulking)]
#end

Nível 5: O Poder do Texto Oculto '...'

Observe como o usuário vê uma opção simples, mas a IA recebe uma instrução detalhada.

Prompt:

Aja como um consultor de carreira.
Eu preciso de ajuda com:
#start
# Selecione o problema:
- [Melhorar Currículo]
'Analise meu currículo focando em clareza, métricas de impacto e uso de palavras-chave para ATS.'
- [Simular Entrevista]
'Faça uma simulação de entrevista difícil. Me faça uma pergunta por vez, aguarde minha resposta e depois me dê um feedback ácido.'
#end

Nível 6: Protegendo Códigos e Formatos \[ \] e #ignore

Como evitar que o sistema confunda JSON ou Arrays com campos de formulário.

Prompt:

Analise esse arquivo JSON:
#ignore
{
  "usuarios": [
    { "id": 1, "nome": "Exemplo" }
  ]
}
#end

Certifique-se de que o array \[tags\] contenha apenas strings e depois converta ele para [Informe o formato de conversão desejado]

Nível 7: Variáveis Vinculadas e Comentários

Use variáveis para não digitar a mesma coisa duas vezes e comentários para guiar o preenchimento.

Prompt:

Contrato de Prestação de Serviços.

CONTRATANTE: [Nome da Empresa = $empresa](Razão Social Completa)
DATA: [Data de Início = $data](DD/MM/AAAA)

Eu, representante da $empresa, declaro estar ciente que o projeto iniciará em $data.
A $empresa se compromete a fornecer os recursos necessários.

Campo com contexto automático:
Por favor, descreva aqui o [Escopo do Projeto](). (Ao clicar no ícone de ajuda deste campo, você verá este texto ao redor).

Nível 8: Múltiplos Cenários

Prompt:

Atue como um Engenheiro de Software Especialista.

--- DADOS DO PROJETO ---
Nome do Projeto: [Projeto = $proj]
Desenvolvedor: [Autor = $dev](Nome e Sobrenome)
Versão: [Versão]()
(O campo acima 'Versão' está com contexto automático vazio para teste).

Preciso que você crie um módulo para o arquivo [Nome do Arquivo = $arquivo] (ex: index.js).

--- CONFIGURAÇÃO TÉCNICA ---
Selecione as tecnologias e o estilo:
#start
# 1. Nível de Senioridade (Testando Valor Oculto):
- [Modo Sênior]
'Use Clean Architecture, padrões SOLID, tratamento de erros robusto e código otimizado.'
- [Modo Didático]
'Escreva um código simples, com comentários explicativos linha a linha para iniciantes.'

# 2. Linguagem (Testando Radio Group 1):
1 [JavaScript]
1 [Python]
1 [TypeScript]

# 3. Framework/Lib (Testando Radio Group 2):
2 [React]
2 [Vue.js]
2 [Django]
2 [Express]

# 4. Funcionalidades Extras (Testando Checkbox +):
+ [Incluir Testes Unitários]
+ [Adicionar Dockerfile]
+ [Criar README.md]
#end

--- CÓDIGO BASE ---
Use esta configuração como base para a conexão (Não altere o conteúdo dos colchetes dentro deste bloco):
#ignore
const dbConfig = {
  host: "[SERVER_IP]",
  timeout: 5000,
  retry_policy: ["[ON_ERROR]", "[ON_TIMEOUT]"]
};
#end

--- REQUISITOS FINAIS ---
1. O cabeçalho do arquivo **$arquivo** deve conter: "Propriedade de **$proj** - Criado por **$dev**".
2. Certifique-se de que a resposta final esteja envolvida na tag \[CODE_BLOCK\] para que eu possa processar via regex.

Solução de Problemas Comuns

Se o seu prompt não está funcionando como esperado, verifique:

  1. Esqueceu de fechar a região? Todo #start ou #ignore precisa de um #end no final.
  2. O Valor Oculto falhou? Verifique se você deixou uma linha em branco entre a opção [...] e o valor '...'. Eles devem estar "colados".
  3. Colchetes do texto viraram campos de preenchimento no menu? Se o sistema interpretou trechos do seu texto (como [tags]) como variáveis e abriu caixas de perguntas indesejadas, é porque faltou o escape. Use a barra invertida antes para travar a interpretação: \[tags\].

动态提示词 (Dynamic Prompt)

动态提示词将静态文本转化为交互式工具。通过特定语法,您可以创建可视化表单,仅需填写关键数据。系统处理这些选择并生成结构完美的最终提示词,供人工智能使用。

请参考下方的参考表,然后查看带有实际示例的分步指南。


1. 基础语法(从这里开始)

用于创建表单和简单列表的基本工具。

语法 功能 行为
[...] 文本字段 生成一个用于自由输入的输入框。方括号内的文本是字段的标题。
[Label = $var] 关联变量 定义一个只需填写一次的字段。输入的值将自动替换文中所有分散的 $var 快捷方式。
#start 组开始 开启一个用于列出选择项的交互区域。
#end 组结束 必须用于关闭 #start#ignore 块。
# 标题 组标题 定义选择部分的视觉名称(在区域内使用)。
+ [...] 多项选择 创建一个复选框 (Checkbox)。允许同时标记多个选项。
- [...] 单项选择 排他性选项。如果选中,它会清除所有其他选择并成为唯一选项。

2. 进阶语法(逻辑与控制)

用于复杂流程、单选按钮和代码保护的工具。

语法 功能 行为
[...](Info) 注释 在菜单中的字段旁添加一个 (i) 图标。点击时显示提供的“信息”以指导用户。
NumID [...] 互斥组 具有相同数字 (ID) 的选项形成一个组,其中只能选择一个(单选按钮/Radio Button)。
'...' 隐藏值 替换文本。用户看到括号内的名称,但 AI 接收单引号内的内容。
#ignore 忽略区域 在此块中关闭动态语法。用于发布包含方括号的代码。
\[...\] 转义方括号 强制在最终文本中显示字面意义的方括号,而不创建输入字段。
\'...\' 转义引号 允许在隐藏值内使用单引号而不中断命令。

如何使用

确保在您的系统中激活了 动态提示词 (Dynamic Prompt) 模式。

  1. [...]: 在方括号之间插入占位符。系统将使用该内容作为标签创建一个文本字段。

    • 例如: 在提示词中: 你好!我的名字是 [输入你的名字]在菜单中: 输入你的名字(用户输入“张三”) 输出结果: 你好!我的名字是 张三
  2. [Label = $var]: 当你需要多次重复相同信息时使用。

    • 例如:你好 [客户 = $name]。$name 先生/女士最近怎么样?
    • 系统只会询问一次“客户”,并在两个位置填入相同的值。
  3. (注释): 在方括号后紧接着使用,以提供说明。

    • 例如:[日期](格式为 YYYY-MM-DD) -> 显示一个带有格式提示的帮助图标。
  4. #ignore: 保护文本块(如代码),使其不被处理。

    • 例如:
       #ignore
       [这不是一个字段]
       #end
      

    务必用 #end 结尾。

  5. #start#end: 定义选择选项(+-NumID)出现的区域。这两个命令之间的所有内容都将转换为菜单。

  6. 选择器类型(在区域内):

    • + [...] (复选框): 用于用户可能想要全选的列表(例如:配料)。
    • - [...] (独占项): 用于覆盖其他的选项(例如:“以上皆非”)。
    • NumID [...] (单选按钮): 用于每个类别中必须且唯一的选择。
      • 提示: 数字不是计数,而是组的标识符。
      • 1 [选项 A]1 [选项 B] = 用户只能选择 A B。
  7. '...' (隐藏值): [进阶功能] 将按钮文本替换为用户不可见的复杂提示词。

    ⚠️ 隐藏文本必须位于选项正下方的行,中间不能有空行。

    • 例如:
        #start
        - [简单按钮]
        '发送给 AI 的技术性且复杂的提示词。'
        #end
      
  8. \: 反斜杠用于“转义”特殊字符。

    • 使用 \[\] 在最终文本中显示真实的方括号。
    • 使用 \' 在隐藏值中写入单引号 ('水杯\'边缘')。

实际案例

复制以下示例以测试逻辑。

等级 1: 简单文本变量 [...]

用于仅上下文变化的固定提示词。

提示词:

扮演一名 SEO 专家。为一篇关于 **[主要关键词]** 的文章写一段优化过的元描述(meta-description)。语气应该是 **[期望的语气]**。

等级 2: 多项选择列表 +

用于组合多个标准。

提示词:

分析以下 JavaScript 代码。重点审查以下方面:
#start
# 审查标准:
+ [性能]
+ [安全性]
+ [可读性]
+ [最佳实践]
#end

代码:[在此粘贴代码]

等级 3: 单项选择 -

用于绝对选项或“重置”按钮。

提示词:

讲述一个故事,主题为:
#start
+ [圣诞节]
+ [复活节]
- [随机主题]
#end

等级 4: 按 ID 分组的互斥组(进阶逻辑)

这里我们在同一个菜单中有两个类别。数字 1 控制饮食,数字 2 控制目标。用户只能从每个数字组中标记一项。

提示词:

创建一份每周菜单。
饮食配置:
#start
# 饮食偏好:
1 [纯素]
1 [食肉]
1 [鱼素]
2 [低卡路里 (低碳水)]
2 [高碳水 (增肌)]
#end

等级 5: 隐藏文本的力量 '...'

观察用户看到的是一个简单的选项,但 AI 收到的是详细的指令。

提示词:

扮演职业顾问。
我需要帮助:
#start
# 选择问题:
- [改进简历]
'分析我的简历,重点关注清晰度、影响力指标和 ATS 关键词的使用。'
- [模拟面试]
'进行一场高难度的模拟面试。一次问我一个问题,等待我的回答,然后给我尖锐的反馈。'
#end

等级 6: 保护代码和格式 \[ \]#ignore

如何避免系统将 JSON 或数组混淆为表单字段。

提示词:

分析这个 JSON 文件:
#ignore
{
  "users": [
    { "id": 1, "name": "Example" }
  ]
}
#end

确保数组 \[tags\] 仅包含字符串,然后将其转换为 [输入期望的转换格式]

等级 7: 关联变量和注释

使用变量以避免重复输入相同内容,并使用注释指导填写。

提示词:

服务提供合同。

委托方:[公司名称 = $company](全称)
日期:[开始日期 = $date](格式 YYYY-MM-DD)

我,$company 的代表,声明知晓项目将于 $date 开始。
$company 承诺提供必要的资源。

带有自动上下文的字段:
请在此描述 [项目范围]()。(点击此字段的帮助图标时,您将看到周围的这段文本)。

等级 8: 多场景综合

提示词:

扮演一名软件工程专家。

--- 项目数据 ---
项目名称:[项目 = $proj]
开发者:[作者 = $dev](姓名)
版本:[版本]()
(上面的“版本”字段具有空的自动上下文以进行测试)。

我需要你为文件 [文件名 = $file] (例如: index.js) 创建一个模块。

--- 技术配置 ---
选择技术和风格:
#start
# 1. 资历级别(测试隐藏值):
- [高级模式]
'使用整洁架构 (Clean Architecture)、SOLID 模式、稳健的错误处理和优化代码。'
- [教学模式]
'编写简单的代码,为初学者提供逐行的解释性注释。'

# 2. 语言(测试单选组 1):
1 [JavaScript]
1 [Python]
1 [TypeScript]

# 3. 框架/库(测试单选组 2):
2 [React]
2 [Vue.js]
2 [Django]
2 [Express]

# 4. 额外功能(测试复选框 +):
+ [包含单元测试]
+ [添加 Dockerfile]
+ [创建 README.md]
#end

--- 基础代码 ---
使用此配置作为连接基础(不要更改此块内方括号的内容):
#ignore
const dbConfig = {
  host: "[SERVER_IP]",
  timeout: 5000,
  retry_policy: ["[ON_ERROR]", "[ON_TIMEOUT]"]
};
#end

--- 最终要求 ---
1. 文件 **$file** 的头部必须包含:“Property of **$proj** - Created by **$dev**”。
2. 确保最终回复包裹在标签 \[CODE_BLOCK\] 中,以便我可以通过正则处理。

常见问题排查

如果您的提示词没有按预期工作,请检查:

  1. 忘记关闭区域了? 每个 #start#ignore 结尾都需要一个 #end
  2. 隐藏值失效了? 检查您是否在选项 [...] 和值 '...' 之间留了空行。它们必须“紧挨着”。
  3. 文本中的方括号变成了菜单中的填写字段? 如果系统将您文本中的片段(如 [tags])解释为变量并打开了不需要的输入框,是因为缺少转义。请在前面使用反斜杠来锁定解释:\[tags\]

Comments are disabled for this gist.