LangGPT

LangGPT is a structured prompt design framework proposed by Yunzhong Jiangshu in 2023, empowering everyone to become a prompt expert.

LangGPT official website screenshot
Screenshot of github.com. The live site may look different.

What is LangGPT?

LangGPT is a structured prompt design framework proposed by Yunzhong Jiangshu in 2023, empowering everyone to become a prompt expert.Regarded as the 'programming language for prompts,' it transforms traditional trial-and-error prompt engineering into a systematic, template-based, and modular methodology.

As the most popular structured prompt paradigm in the Chinese AI community, LangGPT has garnered over 12,700 stars on GitHub and is battle-tested by thousands of users worldwide.Its core philosophy uses hierarchical structures—such as Role, Goal, Rules, and Workflow—to standardize LLM outputs, becoming so deeply integrated into major models that they often recognize the pattern natively.

Users can trigger high-quality structured prompts in models like ChatGPT, Claude, DeepSeek, or Qwen simply by using keywords like 'LangGPT way' or 'Yunzhong Jiangshu.' The project also offers specialized skills for Claude Code and an extensive library of examples, enabling rapid conversion of ideas into reusable prompt modules.

Key features

  • Structured TemplOffers hierarchical organization inspired by programming paradigms, including standard modules like Role, Profile, Goal, Skills, Rules, and Workflow.
  • High ReusabilityCreate once and adapt infinitely like code modules; supports variables and conditional logic to significantly improve efficiency.
  • Native Model SupDue to its widespread adoption, major LLMs (such as GPT-4, Claude, Qwen) have implicitly learned the structure, allowing activation via simple keywords.
  • Claude Code SkilProvides an official marketplace plugin that enables direct generation of structured prompts using the /langgpt command within Claude Code.
  • Academic FoundatBacked by published research on arXiv (arXiv:2402.16929), offering a theoretical basis rather than just empirical tips.
  • Rich Example LibIncludes a vast collection of battle-tested prompt templates across design, coding, and writing domains for easy adaptation.

How to use it

  1. Method 1: Direct Trigger.Simply type 'Write a prompt the LangGPT way' or mention 'Yunzhong Jiangshu' in any mainstream LLM chat.
  2. Method 2: Use Automated Tools.Leverage tools like LangGPT GPTs, Kimi+ LangGPT, or PromptGPT to assist in generation.
  3. Method 3: Master the Template.Learn basic Markdown formatting and manually write prompts following the #Role, ##Profile, ##Goal structure.
  4. Method 4: Reference Examples.Browse the Prompts folder in the GitHub repository to copy and adapt existing templates to your needs.
  5. Method 5: Install Skill.In Claude Code, install the langgptai/claude_marketplace plugin and use the /langgpt command to invoke capabilities.

Where it fits

  • Complex Task BreUse LangGPT to clearly define workflows and boundaries when requiring models to perform multi-step, long-logic analysis or creation tasks.
  • Team Prompt StanEstablish unified prompt specifications for enterprises or teams to ensure stable and consistent output quality across different members.
  • Vertical DomainDefine detailed Role and Skill modules to enable general LLMs to act as senior experts in specific fields, providing more professional advice.

Pricing and free quota

LangGPT is an open-source project under the Apache-2.0 license, available for free use.Pricing follows the official site.

Who it is for

  • Prompt Engineers
  • AI Application Developers
  • Content Creators
  • Enterprise AI Teams

FAQ

Is LangGPT free to use?

Yes.LangGPT is an open-source project hosted on GitHub under the Apache-2.0 license, allowing anyone to view, download, and use its templates and methodology for free.

Do I need to memorize the complex template structure?

No.Due to its widespread adoption, most mainstream LLMs have already 'learned' this structure.You can simply mention 'LangGPT' or 'Yunzhong Jiangshu' in your chat, and the model will typically generate a compliant prompt automatically.

Which LLMs does LangGPT support?

It is compatible with almost all major large language models, including ChatGPT (GPT-4/3.5), Claude, DeepSeek, Gemini, Kimi, Doubao, and Qwen.

How do I use LangGPT in Claude Code?

You can install the plugin via the official marketplace (/plugin marketplace add langgptai/claude_marketplace) or manually place the langgpt.skill file in the ~/.claude/skills/ directory, then type /langgpt to use it.

Tags

  • Prompt Engineering
  • Structured Prompts
  • LangGPT
  • Yunzhong Jiangshu

More Prompts & plugins