yao-open-prompts: Yao Open Prompts Turns Prompt Writing Into a Compiler Problem

A Chinese prompt library with versioning, linting, RTF meta-prompts, and pseudo-LISP syntax reveals what prompt engineering looks like when it starts acting like software.

8 min read View on GitHub More from yaojingang

A wide editorial scene shows loose handwritten prompt notes being fed into a printing-press-like compiler. On the other side, neatly boxed prompt modules emerge in ordered stacks, each with a stamped label and strict structure. The image explains the article's central idea: prompts become managed artifacts when treated like software.
The repo does not just collect prompts. It packages them, tags them, and pushes them through a workflow that looks a lot like compilation.
Key Takeaways

Most prompt libraries feel like bookmarks. This one feels like a build system. The repository's real story is not the number of prompts, but the way it forces them into a maintainable shape: versioned, categorized, mirrored, and checked like code.

yao-open-prompts is a collection of open prompts for the yao project.

yaojingang, Project Creator/Maintainer · yaojingang/yao-open-prompts README

Prompt Engineering, But Make It a Compiler

The useful way to read yaojingang/yao-open-prompts is not as a dump of reusable text. It behaves like prompt infrastructure. The repository has a strong notion of taxonomy, a bilingual mirror, maintenance scripts, and meta-prompts that generate other prompts. That is not a folder of tricks. That is a workflow.

The best evidence is structural. Prompts live in domains, frontmatter carries metadata, and the repository includes checks and catalog generation. The design says something important: once prompt writing becomes valuable enough, it stops being a loose craft and starts becoming an operations problem.

The Weirdest Part: Prompts Written Like Code

A close-up scene shows a pseudo-LISP prompt on the left turning into a nested logical tree on the right. Brackets, tokens, and role-task-format blocks are pulled into a clean hierarchy, showing how syntax can force structure before the model writes any output.
The repo's LISP-style meta-prompt is not decoration. It is a way of making instruction hierarchy visible and enforceable.

This pipeline is the article's core mechanism: unstructured intent enters on one side, and governed prompt artifacts come out the other.

The pseudo-LISP prompt is the most revealing example in the repo. It asks the model to think in nested structures, not freeform prose. That matters because the syntax itself becomes part of the instruction. The model is not just told what to do. It is boxed into a hierarchy of roles, tasks, and constraints.

(define-meta-prompt-system
  :role "Prompt Expert"
  :goal "Transform vague intent into structured prompts"
  :constraints ("follow RTF" "preserve hierarchy" "output in a fixed format"))

That is the compiler logic in miniature. Raw intent goes in. Structured output comes out. The value is not in the parentheses themselves. The value is in the discipline they impose.

A Repository That Acts Like a Maintained System

Prompt collection behaviorYao Open Prompts behavior
Loose snippets in one folderDomain-based organization across prompts, prompts-en, maintenance, scripts, and docs
No metadataYAML frontmatter with versioning, status, and source fields
Manual browsingCatalog generation and repository checks
Single-language distributionEnglish mirror alongside the Chinese library
One-off prompt writingReusable meta-prompts that generate more prompts

This is where the repo crosses the line from content library to system. The structure says the maintainer expects change, review, and reuse. That is why maintenance files matter as much as the prompts themselves. They imply governance.

The English mirror matters too. It is not just localization. It is distribution strategy. A prompt library that can only be read in one language is a local archive. A mirrored one becomes a portable system.

Why GEO and Humanized Writing Matter Here

SEO-era prompt thinkingGEO-era prompt thinking
Optimize for human clicksOptimize for machine-citable trust signals
Write for readability onlyWrite for machine readability plus human readability
Lean on keywordsLean on evidence blocks and structured claims
Treat distribution as search trafficTreat distribution as answer surfaces across AI systems
One audienceTwo audiences: people and retrieval models

The repo's GEO branch shows where the discipline is headed. Search is no longer only about ranking pages. It is about making content legible to systems that summarize, cite, and synthesize. That changes how prompts are written, because prompts now need to produce outputs that survive machine digestion.

The humanized-writing branch points the other way, toward style and voice. Together, the two branches tell a useful story. One optimizes for machine trust. The other fights generic output. The repo is not confused about that tension. It is organizing around it.

How This Repo Compares

AxisYao Open PromptsPrompt marketplacesLLM frameworks
Primary unitVersioned prompt filesShared prompt examplesCode and chains
StructureHighLow to mediumHigh
DistributionGitHub repo plus mirrorsWeb app or gallerySDK and runtime
Prompt quality controlFrontmatter, taxonomy, scriptsCommunity ratingsProgrammatic composition
Best atPrompt design disciplineDiscoveryApplication orchestration
Weakest atRuntime executionGovernanceEditorial curation

This is why the repository is interesting even without a runtime. It occupies a narrow but valuable middle ground. It is more disciplined than a gallery, less heavy than a framework, and more opinionated than a pastebin. That makes it a good specimen of prompt engineering's maturation.

The Bigger Idea

The deepest implication here is simple. Prompt engineering is drifting away from ad hoc writing and toward systems design. Repositories like this are evidence of that shift. They show a world where prompts are versioned, reviewed, translated, and cataloged like product assets, because that is what they have become.

That does not make prompts boring. It makes them legible. And once prompts are legible, they can be maintained, audited, and improved. That is the compiler mindset hiding inside this repository.