Back to Skills

outlines

davila7
Updated 4 days ago
212 views
18,478
1,685
18,478
View on GitHub
MetaPrompt EngineeringOutlinesStructured GenerationJSON SchemaPydanticLocal ModelsGrammar-Based GenerationvLLMTransformersType Safety

About

Outlines is a structured generation library that guarantees valid JSON/XML/code outputs by constraining LLM sampling to specific grammars or schemas. It enables type-safe generation using Pydantic models and supports fast inference with local models like Transformers and vLLM. Use this skill when you need to enforce exact output formats and maximize speed for local model deployments.

Quick Install

Claude Code

Recommended
Primary
npx skills add davila7/claude-code-templates -a claude-code
Plugin CommandAlternative
/plugin add https://github.com/davila7/claude-code-templates
Git CloneAlternative
git clone https://github.com/davila7/claude-code-templates.git ~/.claude/skills/outlines

Copy and paste this command in Claude Code to install this skill

GitHub Repository

davila7/claude-code-templates
Path: cli-tool/components/skills/ai-research/prompt-engineering-outlines
0
anthropicanthropic-claudeclaudeclaude-code

Related Skills

sglang

Meta

SGLang is a high-performance LLM serving framework that uses RadixAttention for automatic prefix caching, enabling significantly faster structured generation. It's ideal for developers needing JSON/regex outputs, constrained decoding, or building agentic workflows with tool calls. Use it when you require up to 5× faster inference than alternatives like vLLM in scenarios with shared prefixes.

View skill

openrlhf-training

Design

OpenRLHF is a high-performance RLHF training framework for fine-tuning large language models (7B-70B+ parameters) using methods like PPO, DPO, and GRPO. It leverages Ray for distributed architecture and vLLM for accelerated inference, achieving speeds 2x faster than alternatives like DeepSpeedChat. Use this skill when you need efficient, distributed RLHF training with optimized GPU resource sharing and ZeRO-3 support.

View skill

dspy

Meta

DSPy is a framework for building complex AI systems like RAG pipelines and agents using declarative programming. It automatically optimizes prompts and LM calls based on your data, moving beyond manual prompt engineering. Use it to create modular, maintainable, and systematically improved AI applications.

View skill

instructor

Testing

Instructor is a structured output library that extracts validated data from LLM responses using Pydantic schemas. It automatically retries failed extractions and provides type-safe JSON parsing with streaming support. Use it when you need reliable, validated data extraction from LLMs like OpenAI or Anthropic.

View skill