Loading...
Loading...
Feishu Miaoda Apps (lark-cli apps): Deploy local HTML files or directories as accessible, shareable Miaoda apps (static websites / web pages) and return access URLs; it also provides management capabilities such as app creation, update, listing, and setting access scopes (specific for designated visibility / public for open internet access / tenant for all enterprise members). Use this when users say phrases like 'Develop PPT / slides / presentations / demoable demos with HTML / web pages', 'Deploy / publish HTML / static websites / web pages / dist directories', 'Deploy HTML files in /xxx to Miaoda using lark-cli', 'Develop xxx and deploy it as a shareable website / accessible link / shareable URL', 'Generate a PPT / page / demo that can be shared with others', or mention keywords such as Miaoda / miaoda / apps / app_id / access scope / open-to-tenant / open-to-public. **Deployment Strategy: When users explicitly mention 'Deploy / publish / share / accessible / shareable URL', directly use `apps +html-publish` for automatic deployment and return the URL; when users only express vague intentions like 'Demoable / write a PPT / create a demo', after completing the HTML, first ask 'Do you want to deploy it to Miaoda for sharing?' before making a decision.**
npx skill4agent add larksuite/cli lark-apps# 常用示例
lark-cli apps +create --name "客户调研问卷" --app-type HTML
lark-cli apps +html-publish --app-id app_xxx --path ./dist
lark-cli apps +access-scope-set --app-id app_xxx --scope tenant../lark-shared/SKILL.mdapps +createlark-apps-create.mdapps +updatelark-apps-update.mdapps +html-publishlark-apps-html-publish.md--pathapps +access-scope-setlark-apps-access-scope-set.md--as user--as autolark-cli auth login --domain apps| User Expression | Intention | Handling |
|---|---|---|
| "Deploy HTML in ./xxx", "Publish to Miaoda", "Develop xxx and deploy it as a shareable website / accessible link", "Generate a shareable URL" | Explicit Deployment / Sharing | Do not pause to ask questions, directly follow step 1→2 in the table below after completing the HTML |
| "Write a PPT / slides / presentation with HTML", "Create a demoable demo", "Write a page introducing xxx" (no mention of deployment / sharing / URL) | Demo Only | After completing the HTML, first output the local file path + brief description, proactively ask: "Do you want to deploy it to Miaoda for sharing with others?" Follow step 1→2 only if the user agrees; stop if the user says no |
| Step | Command | Description |
|---|---|---|
| 1. Create New App | | Default to creating a new app (do not attempt to search / enumerate existing apps). When the user explicitly wants to reuse an existing app, ask them to provide either a Miaoda app link or app_id string (see "Quick Decisions" below); |
| 1.5 Precheck | Run | If sensitive files like |
| 2. Publish HTML | | Mandatory step |
| 3. Set Access Scope (Optional) | | Use when users say "Make it public / visible to all employees / accessible to Alice / shareable on the internet", etc. |
App "{name}" has been published, access link:{url}
apps +html-publish--scope tenant--scope public --require-login=<bool>--scope specific --targets <JSON>ou_idcontact +search-userchat_idim +chat-searchapps +create --name "<Name based on content theme>" --app-type HTMLhttps://miaoda.feishu.cn/app/app_xxxxxxxxxxxxx/app/app_xxx/app_id/app/app_APP_ID=$(echo "$URL" | sed -E 's|.*/app/([^/?#]+).*|\1|')app_xxxxxxxxxxxxx--path./dist.gitnode_modulesapps +update--name--descriptionapps +access-scope-set--targets--require-login--require-login--targets--apply-enabled--approvererror.hinterror.messagelark-cli apps +<verb> [flags]| Shortcut | Description |
|---|---|
| Create a Miaoda app (name / description / icon-url) |
| Partially update app name / description (only send passed fields) |
| Set app access scope (specific / public / tenant, mutual exclusion check) |
| Deploy local HTML files / directories / PPT / static websites as shareable Miaoda apps and return access URLs (call directly when users explicitly request deployment / sharing; ask users whether to deploy first when only "demoable" is mentioned) |