Model or dataset
yunwei37/Prompt-Engineering-Guide-zh-CN avatar
yunwei37/Prompt-Engineering-Guide-zh-CN

Prompt-Engineering-Guide-zh-CN: A Chinese Translation of the dair-ai Prompt Engineering Guide

🐙 关于提示词工程(prompt)的指南、论文、讲座、笔记本和资源大全(自动持续更新)

1,059 stars98 forksMDXNOASSERTION

At a glance

What is it?
It is a Chinese-language documentation site built on Nextra that mirrors the dair-ai Prompt Engineering Guide. The content is broad and readable, but the repository is a translation layer, not an original source, and its package metadata still points at the upstream Nextra template.
Who is it for?
Adopt this if you need Chinese-language prompt engineering material and want the guides as MDX files you can read or self-host. Do not treat it as a canonical reference for API behaviour or as a substitute for the upstream English guide, since the repository is a translation and the README does not document a sync policy.
Can I use it commercially?
Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
Is it still maintained?
Yes. The repository last received commits 125 days ago.
What is it written in?
Mainly MDX, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on September 15, 2026, and from our analysis. They are not legal advice.

DEEP OPEN-SOURCE ANALYSIS

What the Chinese prompt engineering guide actually is

This repository is a Chinese-language version of the Prompt Engineering Guide, which the README describes as a collection of papers, learning guides, lectures, references and tools related to prompt engineering. The original project is credited in the README through a citation to Saravia, Elvis, with the upstream homepage listed as github.com/dair-ai/Prompt-Engineering-Guide. The audience is Chinese-speaking developers and researchers who want the same material without reading English. The README frames the subject plainly: prompt engineering is a relatively new discipline for developing and optimising prompts so that language models can be used effectively across applications and research topics. It notes that researchers use it to improve LLM performance on tasks such as question answering and arithmetic reasoning, while developers use it to design prompts that interact with LLMs and other tools. Nothing here suggests the repository adds original research. It is a translation and packaging effort, and that is the honest way to read it.

How the Nextra site is put together

The top-level layout shows a Next.js documentation site. There is a pages/ directory for MDX pages, a components/ directory, a public/ directory for static assets, theme.config.tsx for the Nextra theme, next.config.js, tsconfig.json, and two lockfiles (package-lock.json and pnpm-lock.yaml). The guides themselves live in guides/ as Markdown files: prompts-intro.md, prompts-basic-usage.md, prompts-advanced-usage.md, prompts-applications.md, prompts-chatgpt.md, prompts-adversarial.md, prompts-reliability.md, and prompts-miscellaneous.md. Index-style pages sit under pages/ as .mdx files, including papers.mdx, tools.mdx, datasets.mdx and readings.mdx. The README also links a lecture directory with slides and a notebooks/ directory with a lecture notebook. The primary language is listed as MDX, which matches this structure: prose lives in Markdown and MDX, and the Nextra theme renders it. One detail worth flagging is that package.json still names the project nextra-docs-template, version 0.0.1, and its repository field points at shuding/nextra-docs-template. The site is a themed template with translated content dropped in, and the metadata was never renamed.

Installing and running the guide locally

The README does not include install instructions, so the commands below come from package.json, which defines dev, build and start scripts backed by Next.js. You need Node.js and a package manager. Both package-lock.json and pnpm-lock.yaml are present, so npm or pnpm will work; the commands here use npm. Clone the repository, install dependencies, then start the development server. The dev script runs next dev, which serves the site on the default Next.js port 3000. Open http://localhost:3000 in a browser and you should see the Chinese guide landing page with the guide links from the README.

bash
npm install
npm run dev

Building the static site

For a production build, package.json defines next build followed by next start. The build step compiles the MDX pages and the Nextra theme; the start step serves the result. If the build fails, the most likely causes are a Node version mismatch with Next 13 or a broken MDX page under pages/ or guides/, since MDX parses embedded JSX and a malformed component will stop the build. The repository does not document a supported Node version, so check next.config.js and the lockfiles before assuming your local Node release is compatible.

bash
npm run build
npm run start

Where the documentation is thinner than it looks

The README is a landing page, not a manual. It lists guides, a lecture, a notebook and links to a Discord, Twitter and newsletter, but it does not describe how translations are kept in sync with the upstream dair-ai guide, who reviews translated pages, or how to report a translation error other than opening a PR or an issue. The README says the guides are still being improved, which is the only statement about completeness. There is no changelog, and the release list is empty, so there is no versioned way to tell what changed between two points in time. Anyone citing a specific technique from this repository should verify the same technique against the upstream English guide, because a translation can drift and this repository does not publish a sync record. The licence field is NOASSERTION, and the README does not state terms for the translated text, which is a gap if you plan to redistribute the content.

Prompt-Engineering-Guide-zh-CN compared with the upstream English guide

The upstream dair-ai/Prompt-Engineering-Guide is the origin of the material, and this repository is its Chinese counterpart. The practical difference is language coverage, not technique. The upstream project also runs a web version at promptingguide.ai, while this repository ships a Nextra site you can build and host yourself. That self-hosting option is the main reason to pick this repository over reading the upstream site: you can edit the Markdown under guides/ and rebuild. The trade-off is that the upstream project is the place where new papers, tools and datasets appear first, and this repository has to be updated afterwards. If you need the newest additions, or you need to cite an English source, go upstream. If your team reads Chinese and wants the material in a local, editable form, this repository fits that job.

Maintenance, upgrades and licence questions

The repository is not archived, and the last push was on 2026-05-13. That is roughly four months before today, so it is not stale, but the repository gives no release history to judge how often translations land. Upgrading means pulling the latest main branch and reinstalling dependencies, since package.json pins next to ^13.0.6 and uses nextra and nextra-theme-docs at latest, which means a fresh install can pull newer Nextra versions than the ones the site was last built against. That is a real upgrade risk: a major Nextra release can change theme.config.tsx expectations. The licence situation is unresolved. The repository's licence field is NOASSERTION, while package.json declares MIT for the Nextra template it was generated from. Those are two different things, and the README does not clarify which terms apply to the translated guides. If you plan to republish the text, confirm the terms with the maintainers rather than assuming the template's MIT licence covers the content.

Who should adopt it and what to check first

Adopt it if you want Chinese-language prompt engineering material in a form you can read, fork, or self-host, and if the guides under guides/ cover the topics you need. Do not adopt it as an authority on model behaviour or as a citation source when the upstream English guide will do, and do not assume the translation tracks the upstream project closely. Before you commit, open the guides/ directory and check the specific pages you care about, then compare a sample against the upstream dair-ai content. Also check the licence terms, because NOASSERTION leaves the question open. The repository is a useful Chinese entry point; it is not the canonical record.

Editorial conclusion

Adopt this if you need Chinese-language prompt engineering material and want the guides as MDX files you can read or self-host. Do not treat it as a canonical reference for API behaviour or as a substitute for the upstream English guide, since the repository is a translation and the README does not document a sync policy. Before relying on it, check the guides/ directory for the specific topic you need, and confirm whether the pages you plan to cite match the upstream dair-ai content.

Frequently asked questions

What is Prompt-Engineering-Guide-zh-CN?

It is a Chinese-language version of the dair-ai Prompt Engineering Guide, containing guides, papers, tools, datasets, a lecture and a notebook. The README credits the original project and links to its homepage.

How do I run Prompt-Engineering-Guide-zh-CN locally?

Install dependencies with npm install, then run npm run dev, which starts next dev on the default port 3000. The scripts come from package.json, since the README does not list install steps.

Is Prompt-Engineering-Guide-zh-CN the same as the dair-ai guide?

It is a translation of that material, not a separate project. The README cites Saravia, Elvis and links to github.com/dair-ai/Prompt-Engineering-Guide as the upstream homepage.

What licence does Prompt-Engineering-Guide-zh-CN use?

The repository's licence field is NOASSERTION, while package.json declares MIT for the Nextra template it was generated from. The README does not state which terms apply to the translated guides.

What technology is Prompt-Engineering-Guide-zh-CN built with?

It is a Next.js documentation site using Nextra and MDX. The top-level layout includes pages/, components/, theme.config.tsx and next.config.js, with guide content stored as Markdown files in guides/.

Official sources

  1. Issues
  2. Project website
  3. README
  4. yunwei37/Prompt-Engineering-Guide-zh-CN on GitHub
Community notes

Community notes