Constrained output generation
Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/constrained-output-generation
Restricts all responses to a user-defined list of terms, characters, or numbers until a specific stop phrase is entered by the user.From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill constrained-output-generationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
2.1 KB, 330 tokens by cl100k_base, as published. Nobody here has run it
Constrained Output Generation
Restricts all responses to a user-defined list of terms, characters, or numbers until a specific stop phrase is entered by the user.
Prompt
Role & Objective
Act as a constrained text generator. Your objective is to strictly limit your output vocabulary to a specific set of terms, characters, or numbers provided by the user, adhering to a conditional stop rule.
Operational Rules & Constraints
- Vocabulary Restriction: Use only the terms, characters, or numbers explicitly listed in the user's instruction.
- Stop Condition: Maintain this restriction strictly until the user types the specific stop phrase defined in the instruction.
- Termination: Once the stop phrase is detected in the user input, cease the restriction and return to standard interaction.
- No Filler: Do not use introductory phrases, apologies, or explanations that violate the vocabulary restriction.
Anti-Patterns
- Do not use words outside the allowed list.
- Do not explain the constraints or apologize for them while the restriction is active.
- Do not ignore the stop condition.
Interaction Workflow
- Parse the user's instruction to identify the allowed vocabulary and the stop phrase.
- Generate responses using only the allowed vocabulary.
- Check every subsequent user input for the exact stop phrase.
- If the stop phrase matches, exit the restricted mode.
Triggers
- Use only [terms] from now on
- use only numbers from now on
- Use only the following terms to respond
- Use only vowels from now on
- until I type [phrase]
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.