SkillAgentSearch skills...

LangGPT

LangGPT: Empowering everyone to become a prompt expert! 🚀 📌 结构化提示词(Structured Prompt)提出者 📌 元提示词(Meta-Prompt)发起者 📌 最流行的提示词落地范式 | Language of GPT The pioneering framework for structured & meta-prompt design 10,000+ ⭐ | Battle-tested by thousands of users worldwide Created by 云中江树

Install / Use

/learn @langgptai/LangGPT
About this skill

Quality Score

0/100

Category

Design

Supported Platforms

Claude Code
Claude Desktop
Gemini CLI

README

🚀 LangGPT — Empowering Everyone to Create High-Quality Prompts!

<div align="center"> <img src="imgs/logo.png" width="60%" height="auto">

License Status Paper Stars

English | 简体中文 | 日本語

Quick Start | Theoretical Foundations | Ecosystem | Community

</div>

📖 What is LangGPT?

LangGPT is a structured, reusable prompt design framework that enables anyone to create high-quality prompts for Large Language Models. Think of it as a "programming language for prompts" — systematic, template-based, and infinitely scalable.

Why LangGPT?

Traditional prompt engineering relies on scattered tips and trial-and-error. LangGPT transforms this chaos into a structured methodology:

  • 🎯 Structured Templates — Hierarchical organization inspired by programming paradigms
  • 🔄 Reusability — Create once, adapt infinitely like code modules
  • 📦 Modularity — Variables, commands, and conditional logic at your fingertips
  • Efficiency — Go from idea to working prompt in minutes
  • 🌍 Community-Driven — 11,000+ stars, battle-tested by thousands of users

Academic Foundation: Published research at arXiv:2402.16929 | 中文版


🚀 Quick Start

Method 1: Use Automated Tools (Fastest)

Let AI create prompts for you:

Method 2: Master the Template (5 Minutes)

Basic LangGPT structure:

# Role: Your_Role_Name

## Profile
- Author: YourName
- Version: 1.0
- Language: English
- Description: Clear role description and core capabilities

## Goal
- Outcome: What concrete result/outcome should be delivered for the user/session
- Done Criteria: Clear acceptance criteria (how we know it’s finished and good)
- Non-Goals: What is explicitly out of scope to avoid scope creep

### Skill-1
1. Specific skill description
2. Expected behavior and output

## Rules
1. Don't break character under any circumstance
2. Don't make up facts or hallucinate

## Workflow
1. Analyze user input and identify intent
2. Apply relevant skills systematically
3. Deliver structured, actionable output

## Initialization
As a/an <Role>, you must follow the <Rules>, you must talk to user in default <Language>, you must greet the user. Then introduce yourself and introduce the <Workflow>.

Prerequisites: Basic Markdown knowledge (Quick Guide) | GPT-4 or Claude recommended

Method 3: Start from Examples

Explore our example library and adapt proven templates to your needs.

Method 4: Claude Code Skill (Recommended)

If you use Claude Code, install the LangGPT Skill to get structured prompt writing capabilities:

Installation:

  1. Download langgpt.skill
  2. Extract to ~/.claude/skills/ directory
  3. Type /langgpt in Claude Code to use

Skill Features:

  • 📝 Structured prompt templates (Role, Profile, Skills, Rules, Workflow)
  • 📚 Rich example library (FitnessGPT, Poet, Xiaohongshu Master, Name Master, etc.)
  • 🔧 Advanced techniques: variables, commands, conditional logic
  • 🎯 Model compatibility guide (GPT-4, Claude, GPT-3.5)

🧠 Theoretical Foundations

Before diving into tactics, understand the principles. These essays explore the philosophy behind effective prompting:

These foundational insights will transform how you think about prompts.


💡 Core Concepts

1. Structured Roles

Define AI personas through clear, modular sections:

| Section | Purpose | Example | |---------|---------|---------| | Role | Role name/title | "逻辑学家" / "Expert Analyst" / "FitnessGPT" | | Profile | Identity and capabilities | "Expert Python developer with 10 years experience" | | Goal | Desired outcome, done criteria, and non-goals for this session/task | “Refactor a prompt into a reusable template; acceptance criteria: pass three structured checks; non-goal: rewriting the business logic.” | | Skills | Specific abilities | "Debug complex code, optimize performance" | | Rules | Boundaries and constraints | "Never execute destructive commands" | | Workflow | Interaction logic | "1. Analyze → 2. Plan → 3. Execute" | | Initialization | Opening message and setup | "As a <Role>, I will greet you and introduce the <Workflow>" |

2. Variables and References

Use <Variable> syntax for dynamic content:

As a <Role>, you must follow <Rules> and communicate in <Language>

This creates self-referential prompts that maintain consistency across complex instructions.

3. Commands

Define reusable actions for better UX:

## Commands
- Prefix: "/"
- Commands:
    - help: Display all available commands
    - continue: Resume interrupted output
    - improve: Enhance current response with deeper analysis

4. Conditional Logic

Add intelligence to your prompts:

If user provides [code], then analyze and suggest improvements
Else if user asks [question], then provide detailed explanation
Else, prompt for clarification

5. Advanced Techniques

Reminders — Combat context loss in long conversations:

## Reminder
1. Always check role settings before responding
2. Current language: <Language>, Active rules: <Rules>

Alternative Formats — Use JSON/YAML when markdown isn't ideal:

role: DataAnalyst
profile:
  version: "2.0"
  language: "Python"
skills:
  - statistical_analysis
  - data_visualization

🌟 Featured Examples

| Prompt | Description | Link | |--------|-------------|------| | 🎯 FitnessGPT | Personalized diet and workout planner | View | | 💻 Code Master CAN | Advanced coding assistant with debugging expertise | View | | ✍️ Xiaohongshu Writer | Viral social media content generator | View | | 🎨 Chinese Poet | Classical poetry composer in traditional styles | View |

Browse 100+ more examples →


📚 Learning Resources

Essential Guides

| Resource | Description | Date | |----------|-------------|------| | Academic Paper | LangGPT: Rethinking Structured Reusable Prompt Design (中文) | Feb 2024 | | Structured Prompts Guide | Comprehensive tutorial on building high-performance prompts | Jul 2023 | | Prompt Chains | Multi-prompt collaboration and task decomposition strategies | Aug 2023 | | Video Tutorial | BiliBili walkthrough (by AIGCLINK) | Sep 2023 |

Advanced Topics

Community Hub

Feishu Knowledge Base — Curated resources, templates, and community contributions


🎨 LangGPT Ecosystem

Core Framework & Tools

| Project | Description | Stars | |---------|-------------|-------| | LangGPT | Core framework and methodology | | | PromptVer | Semantic versioning for prompts — version control like Git | | | **[PromptShow](https:

View on GitHub
GitHub Stars11.9k
CategoryDesign
Updated2h ago
Forks918

Languages

Jupyter Notebook

Security Score

100/100

Audited on Apr 5, 2026

No findings