Files
ai-passport/plays
T
Shinku ab8b09c993 docs(plays): locate an application by its full repo tree URL
Describe the application source in the plays archive and the plays-archive
skill by the complete repository URL including the branch (a tree/<branch>
link) plus the entry path, so it can be located precisely.
ab8b09c993 · 2026-08-27 03:51:11 +08:00
History
..

简体中文 · English

Plays

This directory, in the upstream FoloToy/ai-passport repository, is the application archive of the plays built for the AI Passport. It is for querying what each application does and how it works, using an AI-generated functional summary per application. It is linked to the community publishing flow: after publishing a firmware (docs/development/publish-to-community.md), the assistant asks whether to archive the application here, proposing it back to upstream.

Before developing a new play

Before starting a new application, check plays/ for an existing or reference project to build on instead of from scratch:

  • List the archived applications under plays/ and read their functional summaries to see whether one already covers the idea.
  • Reuse applicable design ideas, interaction patterns, or state models from an existing play rather than re-inventing them.
  • When none exists, note that a new plays/<app-name>/ archive will be created later, when the application is published.

Each play subdirectory is an archive of a real, working application; its summary is the starting point for deciding whether to extend or reference it. Alongside the application archive, also check docs/development/experience-notes.md for previously recorded, reusable experience from other developer runs.

Directory convention

Each application gets its own subdirectory, named after the application in lowercase-kebab-case. Add an application archive only when it is published or ready to be recorded; do not pre-create empty scaffolding.

plays/<app-name>/
  README.md / README.zh_CN.md   # AI-generated bilingual functional summary
  <app-name>-cover.<webp|png|jpg>  # cover image, committed (<= 10 MiB)

What the per-application README contains

The per-application README.md (and its Simplified Chinese peer) is an AI-generated functional summary written for later querying, not a publishing artifact. It records:

  • Application name and one-line positioning.
  • What the app does and its feature list.
  • Interaction and gameplay (buttons, screens, flow).
  • Source of the application, given as the complete repository URL including the branch (a tree/<branch> link, for example https://github.com/<repo>/tree/<branch>) plus the entry path, so it can be located precisely.
  • The cover image file name and format.

Write it by summarizing the application's implementation and behavior, in English at the default .md path and Simplified Chinese at the paired .zh_CN.md, aligned in the same change.

Cover image

Place the cover at plays/<app-name>/<app-name>-cover.<webp|png|jpg>, committed to the repository (like docs/assets/brand). Keep it representative and under 10 MiB.

Firmware

Do not store the merged firmware binary here. The .bin is a build/publish artifact produced by the build flow, not an in-repository asset.