Skip to main content
Glama
j0hanz

PromptTuner MCP

by j0hanz
patterns.ts1.86 kB
export const PATTERNS = { roleIndicators: /\b(you are|act as|pretend to be|as a|role:|persona:|imagine you are|your role is|you're an?)\b/i, exampleIndicators: /(?:^|\s|[([{])(example:|for example|e\.g\.|such as|here's an example|input:|output:|sample:|demonstration:)(?:$|\s|[)\]}.!?,])/i, stepByStepIndicators: /(?:^|\s|[([{])(step by step|step-by-step|first,|then,|finally,|1\.|2\.|3\.|let's think|let's work through|let's analyze|let's break|systematically)(?:$|\s|[)\]}.!?,])/i, xmlStructure: /<[a-z_]+>.*<\/[a-z_]+>/is, markdownStructure: /^#+\s|^\*\s|^-\s|^\d+\.\s|```/m, jsonStructure: /^\s*\{[\s\S]*\}\s*$|^\s*\[[\s\S]*\]\s*$/, claudePatterns: /<(thinking|response|context|instructions|example|task|requirements|output_format|rules|constraints)>/i, gptPatterns: /^##\s|^###\s|\*\*[^*]+\*\*|^>\s/m, vagueWords: /\b(something|stuff|things|maybe|kind of|sort of|etc|whatever|somehow|certain|various)\b/gi, needsReasoning: /\b(calculate|analyze|compare|evaluate|explain|solve|debug|review|reason|deduce|derive|prove|assess|investigate|examine|determine)\b/i, hasStepByStep: /step[- ]by[- ]step|first,|then,|finally,|let's think|let's work through|let's analyze/i, hasRole: /\b(you are|act as|as a|role:|persona:|your role|you're an?|imagine you are)\b/i, constraintPatterns: /\b(NEVER|ALWAYS|MUST|MUST NOT|DO NOT|RULES:|CONSTRAINTS:|REQUIREMENTS:)\b/, outputSpecPatterns: /\b(output format|respond with|return as|format:|expected output|response format|<output|## Output)\b/i, fewShotStructure: /<example>|Example \d+:|Input:|Output:|###\s*Example|Q:|A:/i, qualityIndicators: /\b(specific|detailed|comprehensive|thorough|clear|concise|precise|accurate)\b/i, antiPatterns: /\b(do whatever|anything|everything|all of it|any way you want)\b/i, } as const;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/j0hanz/prompt-tuner-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server