aic-skills
AGENTS.md0 starsChanged 16 days agoMITView on GitHub
Notes for AI agents and contributors working in this repository. The user-facing overview is README.md (Chinese) / README.en.md (English). The official AIC skill content repository. A skill package is the plugin unit: SKILL.md (required, the AI manual) plus optional orthogonal parts — a root manifest.json, ui/, api/, tables/ for the cloud, and src/ for execution ends (aic-pod). The Go package embeds the package content and ships it inside the platform (aic); aic-pod depends on this module only to distribute the…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository11 other files it gives its agents.
- blenderSkill
- browserSkill
- createSkill
- cuaSkill
- drawioSkill
- helloSkill
- office_studioSkill
- play_with_aiSkill
- ppt_studioSkill
- vhtmlSkill
- video_studioSkill
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 58
Never put build artifacts in a skill directory (binaries, *.zip, *.sqlite): builtin_test.go fails on them, and the contract forbids them.
- Very specific: line 60
Do not put a nested go.mod inside a skill: go:embed skips nested module directories, so the published package would ship without its source.
- Very specific: line 87
When the device tool surface changes (e.g.
- Very specific: line 106
If proxy.golang.org is unreachable (this network), use GOPROXY=https://goproxy.cn,direct.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Repository Guidelines
Notes for AI agents and contributors working in this repository. The user-facing overview is README.md (Chinese) / README.en.md (English).
What this repo is
The official AIC skill content repository. A skill package is the plugin unit:
SKILL.md (required, the AI manual) plus optional orthogonal parts — a root
manifest.json, ui/, api/, tables/ for the cloud, and src/ for execution ends (aic-pod).
The Go package embeds the package content and ships it inside the platform (aic); aic-pod
depends on this module only to distribute the official preinstalled packages (browser/cua),
versioning them onto the device at startup. Other packages are fetched by the device with
commands install <id> and built from src/ when they ship their own program.
Boundary (contract truth: aic docs/reference/skill.md):
- Explanations, UI and cloud APIs are published and served by the platform; a skill has no installed/enabled/process/service state of its own.
- The root
manifest.jsonuses schema 1:ui.pagesmaps page IDs (package-relative paths without.html) to{desc}, andhostmaps service aliases to{run, url, protocol, idle_timeout}with optional nestedstreams({address_env}only). The device installs the package (commands install <skill_id>; browser/cua are preinstalled by the pod) and, when present, builds the program fromsrc/, and registers the command; a stream is an opaque bidirectional TCP byte relay — the platform never parses the payload, the package owns its protocol. Only source is committed — no binaries, no build outputs.
Layout
- Documentation follows the unified ivec layout: only
README.md/README.en.md/CHANGELOG.md/AGENTS.mdat the root, plus docs/index.md as the map. Skill manuals stay inside their package (<skill>/SKILL.md,<skill>/references/) — they are published content, not repo docs, and are never moved intodocs/. <skill>/SKILL.md— the only required file; frontmatter + body.<skill>/manifest.json— optional schema-1 package declaration (ui.pagesand/orhost).<skill>/ui/— optional cloud UI (index.html+ modules), loaded at/skills/cloud/{id}.<skill>/api/,<skill>/tables/— optional cloud API and tables.<skill>/src/— optional device program source; the rootmanifest.jsonpoints at the built program (bin/<name>). Built on the device from this source; never executed on the cloud.builtin.go—List/Open/Version/Zip/Frontmatterhelpers over the embed.builtin_embed.go— the publication switch (//go:embed all:<dir> …): a directory that is not listed is never published.builtin_test.go— contract tests (list/metadata/version/zip, and "no runtime artifacts").
Publication & versioning rules
- Adding a skill = create
<name>/SKILL.mdwithname: <name>equal to the directory name and a numericversion:, add<name>to the//go:embedlist, and update the expected list/versions inbuiltin_test.go. version:is the content version and part of aic'sskills.builtinmaintenance-event fingerprint (package name + embedded version). A changed fingerprint triggers seeding; a forced rerun is also available. Once the event runs, every embedded package is replaced and its row metadata fully refreshed without comparing version ordering. This repository keeps numeric dotted versions; bump the affected skill on every content change so automatic seeding sees the change.- The module version (
VERSION+CHANGELOG.md, tagvX.Y.Z) is the Go dependency surface used by the platform consumer (aic). Release = commit → tag → push → consumer bumpsrequire. - Never put build artifacts in a skill directory (binaries,
*.zip,*.sqlite):builtin_test.gofails on them, and the contract forbids them. - Do not put a nested
go.modinside a skill:go:embedskips nested module directories, so the published package would ship without its source. Keep the source in the repository root module and shipsrc/go.mod.exampleso the device can build it standalone (cp go.mod.example go.mod && go mod tidy && go build -o ../bin/<name> .).
Writing skill content
- Frontmatter fields:
name(required, == dir),version(required for published skills),nickname,description,keywords,icon— nothing else. Page/component/opener declarations live in rootmanifest.json(schema 1):ui.pages(page id →ui/<id>.html),ui.components,ui.openers; device commands inhost. There is no launcher section:ui.pagesautomatically become launcher subpages. The authoritative parser ismanifest/(shared by aic and aic-pod);manifest_contract_test.goruns it over every builtin package and create template. - Chinese is the authoring language for user-facing skill content;
vhtml/is the exception (framework guide, English). - Page/resource addressing: the page entry and the HTTP package service share one
segment —
/skills/cloud/{id}(mirrors/fs/cloud): the bare entry loadsui/index.html, subpages are/skills/cloud/{id}/{page}; detail and management live at/skills/detail/cloud/{id}(role-dispatched; members/members, data/data). Use theurl_prefixreturned by theskillstool'ssearch/loadactions for API/static resources,$mod.scopedfor HTTP package paths,$router/$mod.router_prefixfor in-page navigation. The fs-tool package path stays/skills/{id}/...(a different segment from the URL). Never hardcode platform hosts or ports in skill content or UI. - Shared page services (
$auth,$ai,$hosts,$skills,$account,$catalog,$fs,$pageExec) are documented bycreate; keepcreatealigned whenever a contract changes — it is what other authors copy. - When the device tool surface changes (e.g. upstream MCP pins), update
browser//cua/prose and their skillversion:in the same change.
Build, test, verify
gofmt -l . # must be empty
go vet ./...
go test ./... # embed list / metadata / versions / zip round-trip
cd browser/ui && npm test # zero-dependency: node --test (+ register hook)
cd cua/ui && npm test
cd play_with_ai/ui && npm test
# The root Go suite also covers both real MCP examples (initialize + tools/call).
GOWORK=off go test ./...- Go 1.27 (see
go.mod). Node 22+ for the UI tests; they need nonpm install. - If
proxy.golang.orgis unreachable (this network), useGOPROXY=https://goproxy.cn,direct. - CI (
.github/workflows/ci.yml) runs gofmt/vet/test (including both MCP example contract suites) and every*/uinpm test.
Docs & language
README.mdis Chinese and is the repo's main, human-facing entry point;README.en.mdis the English mirror. Both open with a language switcher line and must be updated together.CHANGELOG.md: one section per module version, breaking changes first; note the per-skill version bumps in the same entry.
Commits & releases
Short imperative subjects scoped to one change (e.g. feat(cua): …, docs: …). To release:
update VERSION, add the CHANGELOG.md section, commit, tag vX.Y.Z, push, then bump the
require in the consumer (aic) — local development there uses the root go.work instead of
replace directives.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

