@teamix-evo/skills 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Teamix Evo Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # @teamix-evo/skills
2
+
3
+ Skills (AI IDE 自动技能) for Teamix Evo. 同源支持 **Qoder** 和 **Claude Code**。
4
+
5
+ ## 包结构
6
+
7
+ ```
8
+ packages/skills/
9
+ ├── manifest.json # 顶层声明:枚举所有 skill
10
+ ├── _data.json # 模板共享数据(可选)
11
+ ├── _template/ # 新建 skill 时的脚手架模板
12
+ │ └── SKILL.md.hbs
13
+ ├── skills/ # 每个 skill 一个子目录
14
+ │ └── teamix-evo-manage/
15
+ │ └── SKILL.md # 入口文件(同源 Qoder + Claude)
16
+ └── scripts/
17
+ ├── validate-skills.ts
18
+ └── scaffold-skill.ts
19
+ ```
20
+
21
+ ## 协议要点
22
+
23
+ - 每个 skill 必须有 `SKILL.md`,frontmatter 至少包含 `name` + `description`。
24
+ - `description` 是 AI 触发依据,请明确写出"何时该激活"。
25
+ - 默认 `updateStrategy: managed`,并使用 managed regions 让升级保留用户自定义部分。
26
+ - 安装后 SKILL.md 同时落到所选 IDE 路径:
27
+ - Qoder:`.qoder/skills/<name>/SKILL.md` 或 `~/.qoder/skills/<name>/SKILL.md`
28
+ - Claude:`.claude/skills/<name>/SKILL.md` 或 `~/.claude/skills/<name>/SKILL.md`
29
+
30
+ ## 研发态命令
31
+
32
+ ```bash
33
+ # 校验 manifest + 资源完整性
34
+ pnpm --filter @teamix-evo/skills validate
35
+
36
+ # 新建 skill(脚手架)
37
+ pnpm --filter @teamix-evo/skills scaffold:skill
38
+ ```
39
+
40
+ ## 消费态命令(CLI)
41
+
42
+ 由 `teamix-evo skills` 子命令族管理:
43
+
44
+ ```bash
45
+ teamix-evo skills add # 全量装入 manifest 内所有 skill
46
+ teamix-evo skills add <name> # 增量:仅装入指定 skill(可多个)
47
+ teamix-evo skills list # 列出全部 skill(默认:已装✓ / 未装○)
48
+ teamix-evo skills ls # 别名
49
+ teamix-evo skills list --installed # 仅看已装
50
+ teamix-evo skills update # 升级到最新版(managed 策略保留你的自定义)
51
+ teamix-evo skills uninstall # 卸载
52
+ ```
package/_data.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "comment": "Shared template data for all skills. Currently empty; reserved for future use."
3
+ }
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: {{name}}
3
+ description: {{description}}
4
+ ---
5
+
6
+ # {{title}}
7
+
8
+ <!-- teamix-evo:managed:start id="core" -->
9
+ <!-- teamix-evo:managed:end id="core" -->
10
+
11
+ > 这部分内容由你(用户)自行编辑,CLI 升级时不会覆盖。
package/manifest.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "$schema": "https://teamix-evo.dev/schema/skills-package/v1.json",
3
+ "schemaVersion": 1,
4
+ "package": "skills",
5
+ "version": "0.1.0",
6
+ "engines": {
7
+ "teamix-evo": ">=0.1.0"
8
+ },
9
+ "skills": [
10
+ {
11
+ "id": "teamix-evo-manage",
12
+ "name": "teamix-evo-manage",
13
+ "description": "Manage the teamix-evo toolkit (init / update / uninstall) inside the current project. Auto-trigger when the user mentions teamix-evo, design system installation, or related lifecycle tasks.",
14
+ "version": "0.1.0",
15
+ "source": "skills/teamix-evo-manage",
16
+ "ides": ["qoder", "claude"],
17
+ "updateStrategy": "managed",
18
+ "managedRegions": ["core"],
19
+ "template": false
20
+ }
21
+ ]
22
+ }
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@teamix-evo/skills",
3
+ "version": "0.2.0",
4
+ "description": "Skills (AI IDE capabilities) for Teamix Evo",
5
+ "type": "module",
6
+ "files": [
7
+ "manifest.json",
8
+ "_data.json",
9
+ "skills",
10
+ "_template"
11
+ ],
12
+ "devDependencies": {
13
+ "@clack/prompts": "^0.8.0",
14
+ "tsx": "^4.0.0",
15
+ "@teamix-evo/registry": "0.2.0"
16
+ },
17
+ "scripts": {
18
+ "validate": "tsx scripts/validate-skills.ts",
19
+ "scaffold:skill": "tsx scripts/scaffold-skill.ts",
20
+ "test": "echo 'validate only' && pnpm validate",
21
+ "typecheck": "echo 'no ts source'",
22
+ "lint": "echo 'no ts source'",
23
+ "build": "echo 'pure resource package, no build needed'"
24
+ }
25
+ }
@@ -0,0 +1,138 @@
1
+ ---
2
+ name: teamix-evo-manage
3
+ description: Use this skill when the user asks to install, initialize, update, list, or uninstall the teamix-evo toolkit (design system, skills, or related packages) inside the current project. Triggers include phrases like "init teamix-evo", "set up the design system", "update teamix-evo", "remove teamix-evo", "list installed teamix-evo packages", or any lifecycle question about teamix-evo packages such as @teamix-evo/design and @teamix-evo/skills.
4
+ ---
5
+
6
+ # teamix-evo-manage
7
+
8
+ This skill helps the user manage the **teamix-evo** toolkit lifecycle inside their project.
9
+
10
+ <!-- teamix-evo:managed:start id="core" -->
11
+
12
+ ## When to use
13
+
14
+ Activate when the user wants to **install / update / inspect / remove** any
15
+ teamix-evo package — typically the design system (`@teamix-evo/design`) or the
16
+ skills package (`@teamix-evo/skills`). Common signals:
17
+
18
+ - "帮我初始化 teamix-evo 设计体系" / "set up @teamix-evo/design"
19
+ - "升级 teamix-evo" / "update teamix-evo skills"
20
+ - "卸载 teamix-evo" / "remove the design system"
21
+ - "看看装了哪些 teamix-evo 资源"
22
+
23
+ ## What you can do for the user
24
+
25
+ The CLI binary is `teamix-evo` (bin name), backed by the npm package also
26
+ called `teamix-evo`. All operations are split into **package families**:
27
+
28
+ ### Design system (`@teamix-evo/design`)
29
+
30
+ | Goal | Command |
31
+ | ---------------- | ---------------------------------------------------------- |
32
+ | Initialize | `npx teamix-evo design init [variant] [--tailwind v3\|v4]` |
33
+ | Update resources | `npx teamix-evo design update` |
34
+ | List installed | `npx teamix-evo design list` |
35
+ | Uninstall | `npx teamix-evo design uninstall [-y] [--keep-files]` |
36
+
37
+ - Default variant: `opentrek`.
38
+ - `--tailwind` controls which token entry is wired in. Default: **v4**.
39
+ - Resources marked `frozen` / `regenerable` are physical files; `managed`
40
+ files use embedded regions (`<!-- teamix-evo:managed:start id="..." -->`)
41
+ so the user's custom edits survive updates.
42
+
43
+ ### Skills (`@teamix-evo/skills`)
44
+
45
+ | Goal | Command |
46
+ | -------------- | ----------------------------------------- |
47
+ | Add (all) | `npx teamix-evo skills add` |
48
+ | Add (one+) | `npx teamix-evo skills add <name...>` |
49
+ | List (all) | `npx teamix-evo skills list` (alias `ls`) |
50
+ | List installed | `npx teamix-evo skills list --installed` |
51
+ | Update | `npx teamix-evo skills update` |
52
+ | Uninstall | `npx teamix-evo skills uninstall [-y]` |
53
+
54
+ `skills add` modes:
55
+
56
+ - **Bulk** (no positional args): installs every skill declared in the
57
+ manifest. On a project that already has a skills package installed, returns
58
+ `already-added`.
59
+ - **Incremental** (one or more skill ids): only installs the listed skills.
60
+ Skills already present are skipped (use `skills update` to refresh). When the
61
+ project already has a skills config, `--ide` / `--scope` may be omitted —
62
+ they default to the previously chosen values.
63
+
64
+ `skills add` is interactive (only when no prior config and no flags):
65
+
66
+ 1. Multi-select target IDE(s): **Qoder** and/or **Claude Code** (default both,
67
+ at least one required). Non-interactive equivalent: `--ide qoder,claude`.
68
+ 2. Scope: **project** (default; `.qoder/.claude` in cwd) or **global**
69
+ (`~/.qoder/~/.claude`). Non-interactive: `--scope project|global`.
70
+
71
+ Skills are installed as `SKILL.md` (Anthropic-compatible frontmatter, also
72
+ recognized by Qoder) under `<base>/skills/<name>/SKILL.md`. Update strategy is
73
+ `managed`, so the user's edits inside SKILL.md outside of the marked regions
74
+ are preserved on `update`.
75
+
76
+ ## Workflow you should follow
77
+
78
+ 1. **Detect intent.** Confirm which package family the user wants to touch
79
+ (design vs skills vs both).
80
+ 2. **Check current state.** Suggest running `npx teamix-evo design list` and
81
+ `npx teamix-evo skills list` to see what's already installed before
82
+ changing anything.
83
+ 3. **Run the smallest correct command.** Prefer the dedicated lifecycle
84
+ subcommand. Avoid hand-crafted file edits inside `.qoder/`, `.claude/`, or
85
+ `.teamix-evo/` — let the CLI write through.
86
+ 4. **Report and verify.** After running, summarize what changed (files
87
+ touched, version, IDE, scope) and re-run `list` if useful.
88
+
89
+ ## Configuration files (informational)
90
+
91
+ - `<projectRoot>/.teamix-evo/config.json` — declares which packages are
92
+ installed, their versions, IDE selection and scope.
93
+ - `<projectRoot>/.teamix-evo/manifest.json` — installed-resource ledger;
94
+ CLI uses it for diffing and uninstalling.
95
+
96
+ Both are **owned by the CLI**. Don't edit by hand unless the user explicitly
97
+ asks; recommend the CLI subcommand instead.
98
+
99
+ ## Common pitfalls
100
+
101
+ - The CLI must be run from the project root (where `.teamix-evo/` lives or
102
+ will be created).
103
+ - For `design uninstall`, `managed` files are kept by default to protect user
104
+ edits. Use `--keep-files` to keep everything (only updates the ledger).
105
+ - A skill's `description` is the AI trigger contract — keep it specific and
106
+ scenario-rich when editing.
107
+
108
+ ## Console preset upgrade (placeholder → real UI)
109
+
110
+ Projects scaffolded by `npm create teamix-evo@latest -- --preset console`
111
+ ship with a set of **placeholder components** under
112
+ `src/components/_placeholder/` (Card / Input / Form / Table). They are marked
113
+ with the literal `@teamix-evo:placeholder` tag at the top of each file and
114
+ are registered in `.teamix-evo/create/pending-ui.json`.
115
+
116
+ **When the user asks to "upgrade UI", "replace placeholders", "接入真组件"**:
117
+
118
+ 1. Read `.teamix-evo/create/pending-ui.json` to know which component IDs are
119
+ pending and where the placeholder files live.
120
+ 2. For each pending component, run `npx teamix-evo ui add <id>` (e.g.
121
+ `card`, `input`, `form`, `table`). This writes the real implementation to
122
+ `src/components/ui/<id>.tsx`.
123
+ 3. Update import sites: replace `@/components/_placeholder/<Name>` with
124
+ `@/components/ui/<id>` and adapt the API surface as needed (the real
125
+ shadcn-style components may have a different signature).
126
+ 4. Delete the placeholder file once all references are migrated.
127
+ 5. Remove the corresponding entry from `.teamix-evo/create/pending-ui.json`
128
+ (or delete the file if `pendingComponents` becomes empty).
129
+
130
+ Grep for `@teamix-evo:placeholder` to discover any remaining placeholders.
131
+ Never leave placeholders in production builds — they are intentionally
132
+ minimal and unstyled.
133
+
134
+ <!-- teamix-evo:managed:end id="core" -->
135
+
136
+ ## Notes for the user
137
+
138
+ > 这部分内容由你自由编辑。CLI 升级时只会替换 `id="core"` 区段,不会动这里的笔记。