agentleFS
veypiveypi/aic-skills/create/SKILL.md

create

Skill0 starsChanged 16 days agoMITView on GitHub

AIC 扩展作者手册——把一句人话需求拆成云端/界面/设备三端的实际改动:技能包与数据、界面与页面指令、桌面档案规则、设备命令与常驻服务;含判定流程、字段契约、红线与验收。

19 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use compare, publish and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • n24q02mSkill

    compare

    Structured comparison of 2+ alternatives with consistent criteria and decision matrix

    Also in 3 projects that use this

  • VercelSkill

    publish

    Publish a single demo to v0 and optionally create Typefully drafts. Use when the user says "publish", "publish to v0", or "create typefully draft" for a demo.

    Also in 4 projects that use this

  • genomewalkerSkill

    tasks

    Browse and resume tasks, threads, and background jobs across sessions

    Also in 3 projects that use this

  • AnthropicSkill

    analyze

    Answer data questions -- from quick lookups to full analyses. Use when looking up a single metric, investigating what's driving a trend or drop, comparing segments over time, or preparing a formal data report for stakeholders.

    Also in 3 projects that use this

  • AnthropicSkill

    status

    Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.

    Also in 3 projects that use this

The file

Files
SKILL.md

create 技能包

把一句人话需求(「我想做一个能记录读书笔记的应用」)变成具体要写的文件。 AIC 的扩展落在三个端上,每端有自己的持久化机制和交互协议——按端选内容物,别自造形态。

0. 三端速查

端负责持久化交互协议能加的东西分篇
☁️ 云端存储与服务UFS 文件 + 每个包自己的数据表HTTP 接口(同源,cookie 身份)技能包(说明书/接口/表)、用户空间文件references/cloud-package.md references/cloud-data.md
🖥️ 界面交互与呈现云端固化(技能包文件、用户文件、桌面档案)+ 页面缓存与临时(本地存储、页面本地文件)页面指令(AI 可直接操作页面)+ 页面内事件界面(.html 页面或组件)、typed Profilereferences/ui-component.md references/ui-profile.md
⌨️ 设备执行设备本机配置与状态(~/.aic、服务配置),内容从云端取命令行(vsh)与服务命令(MCP/TCP 等,复杂参数走 stdin)脚本、原生命令、常驻服务references/device-cli.md

多数需求横跨多端("带数据的应用" = 云端包 + 界面页 + 可选设备命令)。别只做一端就交。

1. 六步流程

① 拆需求 → 三端各要什么

先写一行清单并在回复里写出来:云端:… / 界面:… / 设备:…。 写不出来的那端 = 不做(最小交付)。判断归属:

  • 关掉浏览器还在的 → 云端
  • 用户看得见、点得到的 → 界面
  • 要动用户自己电脑/手机的 → 设备
  • 定时/周期执行 → 云端(平台的任务调度)

② 选内容物与落位

需求长什么样内容物放哪生效读
一个界面.html技能包 ui/ / 用户云空间 / 页面本地装载references/ui-component.md
能查数据表 + api/*.sqlx技能包装载references/cloud-data.md
一个能发布的能力包SKILL.md(+ 上面两种)技能包装载 → 审核发布references/cloud-package.md references/publishing.md
换桌面(换组件/填插槽/排窗口)typed Profile 文档用户云空间 .profile/<name>.jsonaliases/slots→reload,layout→livereferences/ui-profile.md
设备上多一条命令程序源码 / 脚本 / 服务声明设备本地用户安装references/device-cli.md

③ 动手前读对应分篇

只读你要动的那几端。字段名、约束、寻址方式都在分篇里,照抄比猜准。 需要向用户解释方案、或判断归属拿不准时,读 references/model.md。

④ 建容器(需要包时才做)

私有包目录默认只读。建行、授权、写文件是三件事,顺序不能反:

  1. 建行:exec _host=page → curl /api/skills -X POST -H 'Content-Type: application/json' -d '{"name":"example"}' → 返回 skill_id 与 url_prefix,并落一份 SKILL.md 骨架
  2. 授权:grant fs /skills/{skill_id}
  3. 写文件:fs 工具写 /skills/{skill_id}/...(fs 路径,与页面 URL 不同段)
  4. 写包根 manifest.json(schema 1):页面清单进 ui.pages(页面 id → 包内 ui/<id>.html);组件贡献进 ui.components,打开规则进 ui.openers;设备命令进 host。可复制 templates/skill/manifest.json。没有 ui.pages 的包不出 UI 徽标、 不进 launcher 子页面树;frontmatter 不承担这些声明。

⑤ 按该端的协议实现

  • 云端:包内 API 一律相对地址(api/xxx,前缀自动补);不写死 id。
  • 界面:完整 HTML 文档(片段会静默不挂载);页面清单同步写进包根 manifest.json 的 ui.pages;颜色字号一律用平台 token; 窗口宽度用 @container(不是 @media);要让 AI 操作页面就声明 pageDesc.commands。
  • 设备:参数走 stdin;只入库源码,构建产物与二进制不进包。

⑥ 验收

按 §4 的清单逐条验。没验证不算做完——尤其档案规则要看 profile inspect 的生效表与被拒清单。

2. 红线(违反会被平台拒绝或静默失效)

  1. 档案规则的目标只能指向平台自带目录(/ai/ /os/ /page/ /layout/ /shared/ /widgets/ /assets/); 档内禁 .. 段(不静默改写,直接报错)。
  2. 外壳与管理页不可被替换(/os/ /layout/ /vb /page/admin——键和目标都算)。
  3. 插槽片段必须纯结构:禁脚本、禁数据绑定、禁 iframe/内联 on*,且只放本人空间。
  4. 只入库源码:二进制、构建产物、zip、密钥、用户数据一律不进容器。
  5. 不硬编码平台地址:用相对路径与运行时前缀($mod.scoped、url_prefix)。
  6. 接口按用户隔离:每张表带 user_id,查询必须 user_id = :user_id。
  7. 最小交付:不需要的界面/接口/数据/服务一律不加;只要一个界面就别建包。
  8. 五个动作分开:建行、写文件、发布、装软件、授权,不能用一个代替另一个。

3. 平台动作速查

动作怎么调
调平台同源接口exec _host=page → curl /api/...(cookie 身份自动带;云端执行器打不到平台接口)
建包 / 授权 / 写包见 §1 ④;写文件用 fs 工具,路径 /skills/{id}/...
读写用户文件fs 工具,路径 /u/{uid}/...
操作桌面档案exec _host=page → profile list / save <name> / apply <name> / revert / inspect
开窗口exec _host=page → open <url> / list / close <win_id> / reload
调设备命令exec _host=<设备ID> → <alias> 列工具 / <alias> <tool> --help 看参数 / <alias> <tool> --input '{...}' --json 调用(mcp ... 仅调试直通)
页面调设备$hosts.openTools(hostId) → execCall(script, {stdin}) → 用完 close()

4. 验收清单

  • 界面:能打开;资源无 404;亮/暗主题都正常;声明的页面命令能被 AI 调通。
  • 数据:接口通;换账号看不到别人的数据;包内无真实用户数据。
  • 档案:profile inspect 里 aliases/slots 在生效表;被拒项在 rejected 里可查;改 aliases/slots 后 reload 生效。
  • 包:SKILL.md 可执行、引用完整;包内无二进制/密钥/用户数据;发布前自查过。
  • 设备:源码在包内、产物不在;正文写全安装/依赖/路径/调用;设备上跑得通。

5. 分篇索引

分篇讲什么什么时候读
references/model.md三端模型、需求→组合对照表、跨层说明判断不清归属时;需要向用户解释方案时
references/cloud-package.md技能包结构、frontmatter、建行写包、寻址要建包或往包里加文件
references/cloud-data.md表声明、sqlx 接口、用户隔离、SQL 规范、owner 调试直连要存数据或查/修数据
references/ui-component.md完整 HTML 文档、vhtml 语法、样式 token、页面指令要写界面
references/ui-profile.mdtyped registry + layout、硬约束、生效语义、档案命令面要改桌面
references/device-cli.md命令与服务形态、manifest 字段、真实 MCP/Streamer 契约、源码与产物边界要动设备
references/materials.md共享服务、页面/设备通道、身份边界要调平台能力或设备
references/publishing.md发布流程、审核要点、fork、下架用户说"发布出去"

模板在 templates/(技能包骨架、组件页、档案、服务声明),可复制参考的成品在 examples/。

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.