---
name: Create Smart App
slug: create-smart-app
category: DevOps
description: Create Smart App builds, tests, validates, and packages a Wework Smart app as an external DeepSeek Harness plugin bundle. Use it when you need to compose plugins, verify the app in the built-in browser, and hand off a ZIP for local installation.
github: "https://github.com/wecode-ai/Wegent/tree/main/wework/src-tauri/bundled-plugins/wework-personal/plugins/smart-app-builder/skills/create-smart-app"
language: TypeScript
stars: 712
forks: 125
install: "npx degit https://github.com/wecode-ai/Wegent/tree/main/wework/src-tauri/bundled-plugins/wework-personal/plugins/smart-app-builder/skills/create-smart-app ~/.claude/skills/create-smart-app"
installs_to: ~/.claude/skills/create-smart-app
source_path: wework/src-tauri/bundled-plugins/wework-personal/plugins/smart-app-builder/skills/create-smart-app/SKILL.md
collection_size: 18
category_size: 798
collection_url: "https://dirskills.com/collections/wecode-ai/Wegent"
added: 2026-08-23T05:20:34.351Z
last_synced: 2026-08-23T05:20:34.351Z
canonical_url: "https://dirskills.com/skills/create-smart-app"
---

# Create Smart App

Create Smart App builds, tests, validates, and packages a Wework Smart app as an external DeepSeek Harness plugin bundle. Use it when you need to compose plugins, verify the app in the built-in browser, and hand off a ZIP for local installation.

**Install:**

```bash
npx degit https://github.com/wecode-ai/Wegent/tree/main/wework/src-tauri/bundled-plugins/wework-personal/plugins/smart-app-builder/skills/create-smart-app ~/.claude/skills/create-smart-app
```

## README

# Create a Wework Smart app

Use this workflow when the user wants to build, modify, test, or package a Wework
Smart app. A Smart app is an external DeepSeek Harness plugin bundle; never modify
the DeepSeek Harness source tree to add the app.

## Contract

- Keep the Smart app in the user's workspace or a directory they explicitly chose.
- Pin the DSH version in `plugin-manifest.json` and package dependencies.
- Treat Wework's selected model as the runtime model. Do not bake model credentials
  into the package.
- A distributable ZIP must contain `plugin-manifest.json`, `PLUGIN.md`,
  `INSTALL.zh-CN.md`, the profile bundle `cordis.patch.yml`, source, and built output.
- Installation into Wework always ends with the native preview and model-selection
  confirmation. Do not bypass that confirmation by editing Wework data files.

## Workflow

1. Establish the app purpose, input/output, workspace directory, and target DSH
   version. Default to the DSH version bundled by the current Wework build.
2. Run the bundled helper's `doctor` command. Fix missing Node 22+ or Corepack/pnpm
   before creating files.
3. Search the DSH ecosystem with the helper's `search` command and, when visual
   inspection helps, use the Wework built-in browser to inspect the `dsh-plugin`
   GitHub topic and candidate repositories. Record chosen package names and exact
   versions.
4. Create the external package workspace. Reuse compatible DSH plugins where
   possible; write only the capability-specific Host/Web plugin and a small profile
   bundle that composes them through `cordis.patch.yml`.
5. Build and test the package. Use the DSH CLI to install the local profile bundle,
   inspect `--dump-config`, and launch the profile on an available loopback port.
6. Open that loopback URL in the Wework built-in browser. Verify the primary flow,
   one invalid-input path, and recovery. Save screenshots when the user requests
   evidence.
7. Run the helper's `validate` and `pack` commands. Never package `node_modules`,
   credentials, `.env`, test output, or VCS metadata.
8. Open Wework **应用 → 智能工作台 → 已安装 → 导入安装包**, select the generated
   ZIP, review its manifest and compatibility result, choose a Wework model, and ask
   the user to confirm the native install action. Refresh the installed list and
   verify the new app appears before reporting completion.

## Commands

Resolve this plugin root from the selected skill path, then run:

```bash
node <plugin-root>/scripts/smart-app-tool.mjs doctor
node <plugin-root>/scripts/smart-app-tool.mjs search "<keywords>"
node <plugin-root>/scripts/smart-app-tool.mjs validate <smart-app-directory>
node <plugin-root>/scripts/smart-app-tool.mjs pack <smart-app-directory> [output.zip]
```

For a local bundle:

```bash
corepack pnpm dlx @deepseek-ai/dsh@<version> plugin --profile <profile> add file:<bundle-directory>
corepack pnpm dlx @deepseek-ai/dsh@<version> --profile <profile> --dump-config
corepack pnpm dlx @deepseek-ai/dsh@<version> --profile <profile> --port <port>
```

If the DSH package or a selected plugin changed its compatibility contract, stop and
show the exact version conflict. Do not silently widen version ranges or copy code
from the DSH source tree.
