ClaudeMap

LangGPT

A structured, modular prompt-template language designed for LLM agents — Chinese-origin community standard.

Prompt Librariespromptsprompt-engineeringstructuredchinese

LangGPT is a structured prompt-template framework that breaks prompts into reusable sections (Role, Profile, Goal, Skills, Rules, Workflow). Created by Yunzhong Jiangshu in 2023 and published as arXiv:2402.16929, it is now so deeply adopted in the Chinese AI community that mainstream models produce LangGPT-style output when simply asked for it by name.

What it does

  • Markdown template organizing a prompt into Role, Profile, Goal, Skills, Rules, Workflow, and Initialization sections
  • Trigger-by-name usage: mainstream models (ChatGPT, Claude, DeepSeek, Gemini, Kimi, Qwen) already produce LangGPT-style output when asked
  • Generator tools — LangGPT GPTs, Kimi+ LangGPT, PromptGPT — draft structured prompts for you
  • Methodology published as arXiv paper 2402.16929, with a community example library

When to use it

Use it to turn ad-hoc role prompts into maintainable, versionable templates — especially for assistant-style agents where role, rules, and workflow need to stay separable.

Getting started

Nothing to install — copy the template from the README and fill in your role, or just ask any mainstream model to write a prompt the LangGPT way; the GPT-store and Kimi generators are linked in the README.

Things to know

Adoption claims center on the Chinese AI ecosystem; outside it, name-trigger behavior varies by model, and the README's self-description reads promotional.

Repository

langgptai/langgpt

Charted

Related on the map

  • Version-by-version teardown of Claude Code's system prompts and 27 built-in tool descriptions, updated with every release.

    • system-prompt
    • claude-code
    • analysis
    • prompt-engineering
  • A single-file CLAUDE.md distilling Karpathy's coding observations into four working rules (211k stars).

    • claude-md
    • rules
    • prompt-engineering
    • best-practices
  • prompts.chat

    Prompt Library

    The de-facto standard ChatGPT role-prompt collection (f.k.a. Awesome ChatGPT Prompts).

    • prompts
    • awesome-list
    • roles
    • community