AutoSkill 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.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/constrained-output-generation" ~/.claude/skills/ecnu-icalk-autoskill-constrained-output-generation && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/constrained-output-generation/SKILL.mdsource content
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]