prompt-engineering

Creates secure, rule-based prompts for LLM workflows with structured outputs.

3|1|Updated Dec 3, 2025
One-click install
npx skills add https://github.com/Probably-Group/Dev-AID --skill prompt-engineering-probably-group
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-engineering
Source: https://github.com/Probably-Group/Dev-AID/tree/main/.dev-aid/skills/expert/prompt-engineering
Command: npx skills add https://github.com/Probably-Group/Dev-AID --skill prompt-engineering-probably-group

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill solves unreliable and vulnerable LLM prompt construction by providing practical patterns for secure, deterministic, and composable prompt workflows.

Core Features & Use Cases

  • Prompt injection prevention: Isolate user content with clear delimiters and instruction hierarchy (CWE-94).
  • Output validation and safety gates: Validate LLM outputs before using them in code or displaying them (CWE-20).
  • Secret-safe prompt design: Keep credentials and PII out of prompt templates and handle them in application code (CWE-798).
  • Chain and routing patterns: Use structured handoffs, explicit allowlists, and validated routing decisions for multi-step orchestration.
  • Few-shot and structured-output guidance: Improve consistency with diverse examples and schema-constrained responses.

Quick Start

Ask your AI to generate prompt text using an explicit template where user content is placed inside isolated tags and every LLM output is returned in validated JSON format.

Frequently Asked Questions about prompt-engineering

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

FAQPage Schema
How do I prevent prompt injection in LLM workflows?

Preventing prompt injection involves isolating untrusted user content using clear delimiters and strict instruction hierarchy. This approach separates trusted system instructions from user inputs to mitigate jailbreak risks and ensure deterministic behavior across multi-step orchestration tasks.

What is the best way to get structured JSON output from an LLM?

Getting structured JSON output requires using schema-constrained response templates and validating the LLM outputs before using them in code. Applying few-shot examples with validated structured outputs reduces format drift and prevents downstream execution hazards.

How do I design multi-step orchestration chains for LLMs?

Designing multi-step orchestration chains requires explicit routing patterns and structured handoffs between tasks. Using validated routing decisions and explicit allowlists maintains context isolation and ensures deterministic behavior across chain handoffs.

Can I use credentials or secrets inside prompt templates?

Secrets and credentials should never be placed inside prompt templates. Secret-safe prompt design requires handling PII and credentials in application code rather than in prompt text to prevent accidental exposure and maintain security boundaries.

Why does my LLM output format drift during task routing?

LLM output format drift during task routing happens when outputs lack validation and schema constraints. Enforcing safety gates by validating LLM outputs before use and applying schema-constrained responses ensures consistent structured data across routing steps.