Repolode
langgptai

langgptai/LangGPT

A structured, reusable prompt design framework for LLMs, with a template of Role, Profile, Goal, Skills, Rules and Workflow sections.

Stars
12,609
Forks
951
Open issues
0
Last commit
last month

What is it?

LangGPT is a prompt design framework that organizes instructions for large language models into structured, reusable sections. Instead of writing ad-hoc prompts, users fill in a template with sections such as Role, Profile, Goal, Skills, Rules, Workflow and Initialization, and can add variables, commands and conditional logic to build more consistent behavior.

The repository centers on a Markdown template and a set of example prompts, including personas, writing assistants and a fitness planner. It also hosts tutorials and a related academic paper (arXiv:2402.16929) describing the approach. Prompts can be used directly in ChatGPT, Claude, Gemini, Qwen and other chat models, and the repo offers an installable Claude Code skill for writing prompts in this format.

The project is aimed at people who write prompts regularly and want a repeatable structure rather than scattered tips. It also includes a collection of model-specific prompt libraries, such as ones for Claude, DeepSeek and Gemini.

Key features

  • 01Provides a Markdown template with Role, Profile, Goal, Skills, Rules and Workflow sections.
  • 02Supports variables, commands and conditional logic inside prompts.
  • 03Includes example prompts such as FitnessGPT, a Chinese poet and a Xiaohongshu writer.
  • 04Offers an installable Claude Code skill for writing structured prompts.
  • 05Hosts model-specific prompt collections for ChatGPT, Claude, DeepSeek, Gemini and others.

Use cases

  • Standardizing system prompts for a team that writes many chatbot personas.
  • Building reusable role-based prompts for customer support or writing assistants.
  • Learning a structured approach to prompt design before adapting it to your own models.
  • Generating prompts inside Claude Code with the provided skill.

Quick start

  1. 1

    Install the Claude Code marketplace plugin

    /plugin marketplace add langgptai/claude_marketplace
  2. 2

    Install the structured prompt writer plugin

    /plugin install structured-prompt-writer@langgpt
  3. 3

    Type /langgpt in Claude Code to use it

    /langgpt

Things to know

  • Mainly a prompt-writing template and paradigm, not a runnable software library.
  • Its Claude Code skill requires Claude Code to use.
  • Some listed tools are third-party services such as GPTs and Kimi+ that may change or need accounts.

Topics

FAQ

What is LangGPT?
A structured, reusable prompt design framework for LLMs, with a template of Role, Profile, Goal, Skills, Rules and Workflow sections. LangGPT is a prompt design framework that organizes instructions for large language models into structured, reusable sections. Instead of writing ad-hoc prompts, users fill in a template with sections such as Role, Profile, Goal, Skills, Rules, Workflow and Initialization, and can add variables, commands and conditional logic to build more consistent behavior.
Is LangGPT free to use? What license does it have?
LangGPT is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
Is LangGPT still maintained?
Updated within 6 months. The last commit to LangGPT was on Sep 11, 2026.
What can I use LangGPT for?
Standardizing system prompts for a team that writes many chatbot personas. Building reusable role-based prompts for customer support or writing assistants. Learning a structured approach to prompt design before adapting it to your own models. Generating prompts inside Claude Code with the provided skill.
How do I install LangGPT?
Install the Claude Code marketplace plugin: /plugin marketplace add langgptai/claude_marketplace Install the structured prompt writer plugin: /plugin install structured-prompt-writer@langgpt Type /langgpt in Claude Code to use it: /langgpt
Where can I get LangGPT?
The source code and installation instructions are on GitHub: https://github.com/langgptai/LangGPT

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects