cipher

Writes, debugs, and evaluates LLM prompts using structured prompt-engineering techniques.

1|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/kridaydave/My_Skills --skill cipher-kridaydave
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cipher
Source: https://github.com/kridaydave/My_Skills/tree/main/cipher
Command: npx skills add https://github.com/kridaydave/My_Skills --skill cipher-kridaydave

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? LLM prompts that "usually work" fail unpredictably in production: models ignore instructions, hallucinate, produce unparseable output, or behave inconsistently. This Skill treats prompting as engineering — it diagnoses why a prompt fails, rewrites it with deliberate structure, and defines an eval so you can measure whether it actually improved. ## Core Features & Use Cases - Prompt writing and rewriting: Produces complete, runnable prompts with clear instructions, few-shot examples for hard cases, delimited untrusted content, and constrained output schemas. - Prompt debugging: Traces symptoms (ignored instructions, contradictions, format failures) to the specific tokens or conflicting rules causing them, then provides a minimal fix. - Eval-driven verification: Requires naming the failing cases and pass criteria before editing, so improvements are measured rather than vibes-based. - Security hardening: Defends against prompt injection by delimiting retrieved content, and supports authorized red-teaming of your own systems. - Use Case: Your chatbot ignores the "one sentence" rule. Cipher traces the cause — your few-shot examples are all three sentences long — and fixes the examples so the model pattern-matches the behavior you actually want. ## Quick Start Ask Cipher to rewrite your system prompt so the model reliably outputs valid JSON, and to define the test cases that prove it works.

Frequently Asked Questions about cipher

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix an LLM prompt that the model ignores?▼

Trace the full context in order — system prompt, examples, retrieved content, user turn — to find where the instruction is buried, contradicted, or outvoted by few-shot examples. The model pattern-matches what it sees, so align examples with the stated rule and move key instructions where recency helps.

How do I get an LLM to reliably output valid JSON?▼

Use the API's structured-output or tool-call mode with an explicit schema rather than prompting alone, since the decoder can always prepend stray tokens to free text. Prompt-only JSON instructions are a fallback, not a fix, for parsing failures.

When should I use chain-of-thought prompting?▼

Use reasoning-before-answer for multi-step tasks where it raises accuracy, but skip it for lookups and classification where it wastes tokens and latency. With reasoning models, state the goal and constraints rather than hand-scripting the reasoning steps.

How do I protect my prompt from prompt injection?▼

Wrap retrieved or user-supplied content in delimiters like <untrusted_document> tags and instruct the model that everything inside is data, never instructions. Keep tool access minimal and add output filtering for hostile content sources.

Why is my LLM output inconsistent across runs?▼

Check the decoding settings first — high temperature introduces variance that looks like a flaky prompt. Lower temperature toward zero for determinism, then look for contradictory instructions the model resolves randomly.

How do I know if a prompt change actually improved things?▼

Define the eval before editing: collect the cases that currently fail, name the property being checked, and set a readable pass/fail criterion. Comparing old and new prompts against those cases shows real improvement instead of vibes.