A local-first multi-agent app development platform, built on PenguinHarness
refactor(skills,web,docs): rename agent-creation to agent-initialization (#400)
Yaowei Zhengb6323e54e4b4
diff --git a/README.md b/README.mdindex 78abe648..2807b3d7 100644--- a/README.md+++ b/README.md@@ -84,7 +84,7 @@ Four Skill groups ship in the box ([docs](https://penguin.ooo/docs/skills)); age| Office Productivity | `data-analysis`, `firecrawl` || Software Development | `web-design`, `software-engineering` || AI App Development | `penguin-sdk`, `penguin-cli`, `agenthub-models`, `vllm`, `ollama`, `llamafactory` |-| Agent Tuning | `agent-creation`, `benchmark-design`, `agent-evaluation`, `agent-optimization` |+| Agent Tuning | `agent-initialization`, `benchmark-design`, `agent-evaluation`, `agent-optimization` |## Supported Modelsdiff --git a/README.zh.md b/README.zh.mdindex c6622951..c0eac1d0 100644--- a/README.zh.md+++ b/README.zh.md@@ -84,7 +84,7 @@ https://github.com/user-attachments/assets/aec49ae9-b743-467b-b247-37bedfeaa36e| 办公效率 | `data-analysis`、`firecrawl` || 软件开发 | `web-design`、`software-engineering` || AI 应用开发 | `penguin-sdk`、`penguin-cli`、`agenthub-models`、`vllm`、`ollama`、`llamafactory` |-| Agent 调优 | `agent-creation`、`benchmark-design`、`agent-evaluation`、`agent-optimization` |+| Agent 调优 | `agent-initialization`、`benchmark-design`、`agent-evaluation`、`agent-optimization` |## 支持的模型diff --git a/changelog/unreleased/2026-08-21-agent-initialization-skill.md b/changelog/unreleased/2026-08-21-agent-initialization-skill.mdnew file mode 100644index 00000000..0d967b06--- /dev/null+++ b/changelog/unreleased/2026-08-21-agent-initialization-skill.md@@ -0,0 +1,34 @@+# `agent-creation` renamed to `agent-initialization`++- **Date:** 2026-08-21+- **Type:** change+- **Scope:** `skills`, `web`, `docs`+- **PR:** [#400](https://github.com/Prism-Shadow/penguin-harness/pull/400)+- **Breaking:** the library Skill `agent-creation` no longer exists under that name++[中文版](2026-08-21-agent-initialization-skill.zh.md)++The Agent Tuning group's `agent-creation` Skill is now **`agent-initialization`**. The name says what it+does: it initializes an Agent's settings — AGENTS.md, identity metadata, and the Skills that Agent needs —+rather than creating an Agent, which the product does elsewhere.++The Skill's own copy follows the name (`# Agent Initialization`, a rewritten description and both short+descriptions), and its `version` moves to 8. Behaviour is unchanged: same steps, same output, same files+written.++Every live reference moves with it — the group registry, the Skills library table in the docs, the draft+screen's example task that pins it, the SDK Skill's cross-reference, the READMEs and the SDK example.+Published blog posts and the frozen changelog entries of released versions keep the old name: they record+what was true when they were written.++## 兼容性++An Agent that already installed `agent-creation` keeps its copy at `agent_state/skills/agent-creation/`.+That copy still works — it is a self-contained directory — but it no longer corresponds to any library+Skill, so it will never be updated again, and the library will offer `agent-initialization` alongside it as+uninstalled. **Installing the new one leaves both on disk, doing the same job under two names.**++There is no automatic migration, by decision. To move over: install `agent-initialization` from the Skill+library, then delete `agent-creation` from the Agent's Skills tab. Anything that pins the Skill by name —+a prompt saying "use the agent-creation skill", a saved shortcut, an `AGENTS.md` that names it — needs the+new name; a stale pin resolves to nothing rather than failing loudly.diff --git a/changelog/unreleased/2026-08-21-agent-initialization-skill.zh.md b/changelog/unreleased/2026-08-21-agent-initialization-skill.zh.mdnew file mode 100644index 00000000..1edbb426--- /dev/null+++ b/changelog/unreleased/2026-08-21-agent-initialization-skill.zh.md@@ -0,0 +1,28 @@+# `agent-creation` 更名为 `agent-initialization`++- **Date:** 2026-08-21+- **Type:** change+- **Scope:** `skills`, `web`, `docs`+- **PR:** [#400](https://github.com/Prism-Shadow/penguin-harness/pull/400)+- **Breaking:** 技能库中不再有名为 `agent-creation` 的 Skill++[English](2026-08-21-agent-initialization-skill.md)++Agent 调优分组下的 `agent-creation` 现更名为 **`agent-initialization`**。新名字说的是它实际做的事:初始化一个+Agent 的设置——AGENTS.md、身份信息,以及这个 Agent 需要的 Skill——而不是「创建 Agent」,后者由产品的其他入口负责。++Skill 正文随名字一并调整(`# Agent Initialization`、重写的 description 与两条 short description),`version`+升到 8。行为没有变化:步骤、产出、写入的文件都与之前一致。++所有仍在生效的引用同步更新——分组注册表、文档里的 Skill 库表格、首页示例中声明该 Skill 的那一条、SDK Skill 的交叉引用、+各 README 与 SDK 示例。已发布的博客文章与已发布版本的 changelog 条目保留旧名:它们记录的是写下时的事实。++## 兼容性++已经安装过 `agent-creation` 的 Agent,磁盘上 `agent_state/skills/agent-creation/` 那份副本会原样保留。它仍然可用+(本身就是一个自包含目录),但不再对应技能库里的任何 Skill,因此永远不会再收到更新;技能库会把+`agent-initialization` 作为「未安装」另行列出。**装上新的之后,磁盘上会同时存在两份、做同一件事、名字不同。**++这里有意不做自动迁移。要迁移:在技能库安装 `agent-initialization`,再到该 Agent 的技能标签页删除 `agent-creation`。+任何按名字声明该 Skill 的地方——提示词里写的「使用 agent-creation skill」、保存的快捷指令、点名它的 AGENTS.md——都需要改成+新名字;旧名字不会报错,只会静默地什么都匹配不到。diff --git a/examples/build-agent-with-agent/README.md b/examples/build-agent-with-agent/README.mdindex 975d09e8..e4090572 100644--- a/examples/build-agent-with-agent/README.md+++ b/examples/build-agent-with-agent/README.md@@ -6,7 +6,7 @@ This example is the **"Harness for Building Agents"** pillar in runnable code. UPenguinHarness SDK, it:1. **builds** a brand-new agent (`commit-helper`) by driving `default_agent` with the- `agent-creation` skill from a plain-language requirement, then+ `agent-initialization` skill from a plain-language requirement, then2. **runs** that freshly-created agent to prove the generated `AGENTS.md` actually shapes itsbehavior (it writes a Conventional Commits message).diff --git a/examples/build-agent-with-agent/README.zh.md b/examples/build-agent-with-agent/README.zh.mdindex 55124732..a4976c46 100644--- a/examples/build-agent-with-agent/README.zh.md+++ b/examples/build-agent-with-agent/README.zh.md@@ -4,7 +4,7 @@这个示例是 **“构建 Agent 的 Harness”** 支柱的可运行版本。仅用 PenguinHarness SDK,它会:-1. **构建**一个全新的 Agent(`commit-helper`)——用 `agent-creation` skill 驱动 `default_agent`,+1. **构建**一个全新的 Agent(`commit-helper`)——用 `agent-initialization` skill 驱动 `default_agent`,根据一句大白话需求把它搭建出来;然后2. **运行**这个刚创建的 Agent,证明生成的 `AGENTS.md` 确实塑造了它的行为(它会写出一条Conventional Commits 提交信息)。diff --git a/examples/build-agent-with-agent/build-agent.ts b/examples/build-agent-with-agent/build-agent.tsindex 32569e36..58c4819b 100644--- a/examples/build-agent-with-agent/build-agent.ts+++ b/examples/build-agent-with-agent/build-agent.ts@@ -5,7 +5,7 @@* open-weight model (Ollama serving qwen3.6:35b) — see README.md for the one-time setup.** Two phases, both driven purely through the SDK:- * 1. BUILD — drive `default_agent` with the `agent-creation` skill to scaffold a brand-new+ * 1. BUILD — drive `default_agent` with the `agent-initialization` skill to scaffold a brand-new* agent (`commit-helper`) from a plain-language requirement.* 2. RUN — load the freshly-created agent and have it do its job (write a commit message),* proving the generated AGENTS.md actually shapes its behavior.@@ -32,14 +32,14 @@ async function runToStdout(run: AsyncGenerator<OmniMessage>): Promise<string> {return finalText;}-const BUILD_REQUEST = `Use the agent-creation skill to create a brand-new agent in this project.+const BUILD_REQUEST = `Use the agent-initialization skill to create a brand-new agent in this project.Requirement: an agent called "commit-helper" that writes high-quality git commit messages.Given a diff or a description of changes, it must produce a Conventional Commits message: a\`type(scope): subject\` header (type one of feat/fix/docs/refactor/test/chore), subject inimperative mood and under 50 characters, then a blank line and a short body explaining the "why".-Do everything the agent-creation skill specifies: create the agent directory layout, copy the+Do everything the agent-initialization skill specifies: create the agent directory layout, copy thebase system_config.yaml, write a concise AGENTS.md capturing this requirement, and set the newagent's name and description in system_config.yaml. Report the files you created when done.`;@@ -50,7 +50,7 @@ Touched packages/core/src/payment/client.ts.`;async function main(): Promise<void> {// --- Phase 1: an Agent builds an Agent ------------------------------------------------console.log(- "=== Phase 1: default_agent is building a new agent via the agent-creation skill ===\n",+ "=== Phase 1: default_agent is building a new agent via the agent-initialization skill ===\n",);const builder = await createAgent({ agentId: "default_agent" });const buildSession = await builder.createSession({ workspaceDir: process.cwd() });diff --git a/packages/docs/content/self-improvement.en.md b/packages/docs/content/self-improvement.en.mdindex d0a7abe7..468583b5 100644--- a/packages/docs/content/self-improvement.en.md+++ b/packages/docs/content/self-improvement.en.md@@ -9,7 +9,7 @@ Self-improvement in PenguinHarness uses Skills to orchestrate the ordinary Agent| Role | Responsibility || --- | --- |-| Builder | Top-level Agent that directly follows `agent-creation` and then `benchmark-design` |+| Builder | Top-level Agent that directly follows `agent-initialization` and then `benchmark-design` || Target Agent | The Agent being improved; runs evaluation tasks only inside its own Workspace || Evaluator | Leaf worker created through `run_subagent`; runs and scores one Benchmark Case run || Optimizer | New top-level Agent that directly follows `agent-optimization` |@@ -18,7 +18,7 @@ The Builder and Optimizer directly follow their Skills in their own top-level Se## Two independent steps-The first top-level Session creates the Agent and its capability evaluation. The Builder first uses `agent-creation`, then uses `benchmark-design` to build a multi-Case Benchmark. It may build the complete initial Case set before Pilot 1 and may refine multiple Cases or difficulty dimensions in a later iteration. The evaluation contract and private standard must be clear and fixed, while the public Statement need not uniquely determine the Gold. A Benchmark may use incomplete public information, conflicting signals, and a fixed private decision standard when that standard expresses a reusable policy, priority, or inference boundary and is not rewritten after seeing the run's answer.+The first top-level Session creates the Agent and its capability evaluation. The Builder first uses `agent-initialization`, then uses `benchmark-design` to build a multi-Case Benchmark. It may build the complete initial Case set before Pilot 1 and may refine multiple Cases or difficulty dimensions in a later iteration. The evaluation contract and private standard must be clear and fixed, while the public Statement need not uniquely determine the Gold. A Benchmark may use incomplete public information, conflicting signals, and a fixed private decision standard when that standard expresses a reusable policy, priority, or inference boundary and is not rewritten after seeing the run's answer.Before the first dispatch of every new or changed Case, the Builder checks that the Statement is internally coherent, the Rubric agrees with the current Statement and fixed private standard, and every scoring item relies only on defined, provided, or explicitly private premises; this does not require the public materials to reproduce the private standard. It repeats the full review across all Cases before Freeze. Most points should rest on decisions or concise artifacts for which the intended behavior and a plausible shortcut produce different results, rather than giving a high floor for format, evidence enumeration, or analysis completeness.@@ -80,7 +80,7 @@ Scores are not black-box output: every number can be traced back to the run that| Skill | Purpose || --- | --- |-| `agent-creation` | Turn a requirement into a working Agent: write its `AGENTS.md`, install the Skills it needs |+| `agent-initialization` | Turn a requirement into a working Agent: write its `AGENTS.md`, install the Skills it needs || `benchmark-design` | Design and calibrate a multi-Case capability Benchmark || `agent-evaluation` | Run and score one isolated Benchmark Case run || `agent-optimization` | Improve an Agent from Benchmark results |diff --git a/packages/docs/content/self-improvement.zh.md b/packages/docs/content/self-improvement.zh.mdindex afc0ffb1..284f6fd5 100644--- a/packages/docs/content/self-improvement.zh.md+++ b/packages/docs/content/self-improvement.zh.md@@ -9,7 +9,7 @@ PenguinHarness 中的自我进化由 Skill 编排普通的 Agent 机制完成:| 角色 | 职责 || --- | --- |-| Builder | 顶层 Agent,依次直接执行 `agent-creation` 和 `benchmark-design` |+| Builder | 顶层 Agent,依次直接执行 `agent-initialization` 和 `benchmark-design` || Target Agent | 被改进的 Agent,只在自己的 Workspace 里执行评测任务 || Evaluator | `run_subagent` 创建的叶子 Worker,执行并评分一次 Benchmark Case 运行 || Optimizer | 新顶层 Agent,直接执行 `agent-optimization` |@@ -18,7 +18,7 @@ Builder 和 Optimizer 在各自的顶层 Session 中直接遵循对应 Skill。E## 两个独立步骤-第一个顶层 Session 创建 Agent 和能力评测。Builder 先使用 `agent-creation`,再使用 `benchmark-design` 构建多 Case Benchmark。初版 Cases 可以一次建好并形成完整 Pilot 1;后续每轮可以同时调整多个 Case 或难度维度。评测契约和私有标准必须明确、固定,公开 Statement 则不必唯一决定 Gold。Benchmark 可以通过公开信息不足、冲突信号和固定的私有决策标准形成信息差,只要该标准表达可复用的策略、优先级或推断边界,而且不会根据本次答案改写。+第一个顶层 Session 创建 Agent 和能力评测。Builder 先使用 `agent-initialization`,再使用 `benchmark-design` 构建多 Case Benchmark。初版 Cases 可以一次建好并形成完整 Pilot 1;后续每轮可以同时调整多个 Case 或难度维度。评测契约和私有标准必须明确、固定,公开 Statement 则不必唯一决定 Gold。Benchmark 可以通过公开信息不足、冲突信号和固定的私有决策标准形成信息差,只要该标准表达可复用的策略、优先级或推断边界,而且不会根据本次答案改写。每个新增或修改后的 Case 在首次派发前都要检查 Statement 自洽、Rubric 与当前 Statement 和固定私有标准一致,并确认评分项只依赖已定义、已提供或明确属于私有标准的前提;这不要求公开材料足以复现私有标准。Freeze 前再对所有 Case 完整检查一次。大部分分数应落在目标行为与合理捷径会产生不同结果的决定或简洁产物上,避免格式、证据罗列和分析完整度形成过高的保底分。@@ -80,7 +80,7 @@ benchmarks/<id>/| Skill | 用途 || --- | --- |-| `agent-creation` | 把需求变成可用的 Agent:撰写其 `AGENTS.md`、安装所需 Skill |+| `agent-initialization` | 把需求变成可用的 Agent:撰写其 `AGENTS.md`、安装所需 Skill || `benchmark-design` | 设计并校准多 Case 的能力 Benchmark || `agent-evaluation` | 隔离执行并评分一次 Benchmark Case 运行 || `agent-optimization` | 根据 Benchmark 结果改进 Agent |diff --git a/packages/docs/content/skills.en.md b/packages/docs/content/skills.en.mdindex 909ddee1..23434ea6 100644--- a/packages/docs/content/skills.en.md+++ b/packages/docs/content/skills.en.md@@ -73,7 +73,7 @@ The built-in Skills, by group (the group manifest is `SKILL_GROUPS` in `packages| | `ollama` | Deploy and serve local models with Ollama: pull and run them, then expose the OpenAI-compatible endpoint to apps and agents || | `llamafactory` | Fine-tune LLMs with LlamaFactory: register datasets, train via YAML configs, merge LoRA adapters and serve the result || | `skill-porting` | Port skills from external sources — plugin marketplaces, skills.sh registries, GitHub repos or local folders — into the agent after review and normalization |-| Agent Tuning | `agent-creation` | Create or configure an Agent State from a user requirement by writing AGENTS.md, setting identity metadata and installing needed Skills |+| Agent Tuning | `agent-initialization` | Initialize an Agent's settings from a user requirement by writing AGENTS.md, setting identity metadata and installing needed Skills || | `benchmark-design` | Design and calibrate a multi-Case capability Benchmark for a specified Agent and establish a traceable Formal Baseline || | `agent-evaluation` | Internal leaf worker that executes and privately scores exactly one Case run from a complete evaluation protocol || | `agent-optimization` | Improve a specified Agent from a complete current baseline on a frozen Benchmark |diff --git a/packages/docs/content/skills.zh.md b/packages/docs/content/skills.zh.mdindex 51317483..8b1b7217 100644--- a/packages/docs/content/skills.zh.md+++ b/packages/docs/content/skills.zh.md@@ -73,7 +73,7 @@ Skill 库以 npm 包 `@prismshadow/penguin-skills` 发布,tarball 直接携带| | `ollama` | 用 Ollama 部署与运行本地模型,把 OpenAI 兼容端点接入应用与 Agent || | `llamafactory` | 用 LlamaFactory 微调 LLM:注册数据集、以 YAML 配置训练、合并 LoRA 适配器并部署产物 || | `skill-porting` | 把外部来源(插件市场、skills.sh、GitHub 仓库或本地目录)的 Skill 经审查与规范化后安装进 Agent |-| Agent 调优 | `agent-creation` | 根据需求创建或配置 Agent State,编写 AGENTS.md、设置身份信息并安装所需 Skill |+| Agent 调优 | `agent-initialization` | 依据需求初始化 Agent 的设置,编写 AGENTS.md、设置身份信息并安装所需 Skill || | `benchmark-design` | 为指定 Agent 设计并校准多 Case Benchmark,建立可追溯的 Formal Baseline || | `agent-evaluation` | 内部叶子执行器:根据完整评测协议隔离执行并私密评分一个 Case Run || | `agent-optimization` | 基于冻结 Benchmark 的完整当前基线改进指定 Agent |diff --git a/packages/landing/src/lib/strings-en.ts b/packages/landing/src/lib/strings-en.tsindex 53de34d7..7b2951ab 100644--- a/packages/landing/src/lib/strings-en.ts+++ b/packages/landing/src/lib/strings-en.ts@@ -445,7 +445,12 @@ export const en: Strings = {},{title: "Agent Tuning",- skills: ["agent-creation", "benchmark-design", "agent-evaluation", "agent-optimization"],+ skills: [+ "agent-initialization",+ "benchmark-design",+ "agent-evaluation",+ "agent-optimization",+ ],},],},diff --git a/packages/landing/src/lib/strings.ts b/packages/landing/src/lib/strings.tsindex 786adb9e..94b26abe 100644--- a/packages/landing/src/lib/strings.ts+++ b/packages/landing/src/lib/strings.ts@@ -434,7 +434,12 @@ export const zh = {},{title: "Agent 调优",- skills: ["agent-creation", "benchmark-design", "agent-evaluation", "agent-optimization"],+ skills: [+ "agent-initialization",+ "benchmark-design",+ "agent-evaluation",+ "agent-optimization",+ ],},],},diff --git a/packages/server/test/skills.test.ts b/packages/server/test/skills.test.tsindex e42c37b3..7788b577 100644--- a/packages/server/test/skills.test.ts+++ b/packages/server/test/skills.test.ts@@ -95,7 +95,7 @@ describe("skills api", () => {"skill-porting",]);expect(body.groups[3]!.skills.map((s) => s.name)).toEqual([- "agent-creation",+ "agent-initialization","benchmark-design","agent-evaluation","agent-optimization",@@ -122,10 +122,10 @@ describe("skills api", () => {const url = base("bare_agent");// Member installs two Skills: 201 returns the updated list (sorted by name).- const res = await member.post(url, { names: ["penguin-sdk", "agent-creation"] });+ const res = await member.post(url, { names: ["penguin-sdk", "agent-initialization"] });expect(res.status).toBe(201);const body = (await res.json()) as AgentSkillsResponse;- expect(body.skills.map((s) => s.name)).toEqual(["agent-creation", "penguin-sdk"]);+ expect(body.skills.map((s) => s.name)).toEqual(["agent-initialization", "penguin-sdk"]);// The installed list likewise passes through the short description and icon// (icon.svg is copied on install, identical to the library's original).const installed = body.skills.find((s) => s.name === "penguin-sdk")!;@@ -150,7 +150,7 @@ describe("skills api", () => {expect((await member.delete(`${url}/penguin-sdk`)).status).toBe(204);await expect(fs.access(path.dirname(skillFile("penguin-sdk")))).rejects.toThrow();const after = (await (await member.get(url)).json()) as AgentSkillsResponse;- expect(after.skills.map((s) => s.name)).toEqual(["agent-creation"]);+ expect(after.skills.map((s) => s.name)).toEqual(["agent-initialization"]);// Deleting a Skill that isn't installed (or was already uninstalled) → 404.expect((await member.delete(`${url}/penguin-sdk`)).status).toBe(404);diff --git a/packages/skills/README.md b/packages/skills/README.mdindex c8a877fa..4d4f3c49 100644--- a/packages/skills/README.md+++ b/packages/skills/README.md@@ -11,7 +11,7 @@ Included skills, in the order of the `SKILL_GROUPS` manifest in `src/index.ts` (| Office Productivity | `data-analysis`, `firecrawl` || Software Development | `web-design`, `software-engineering` || AI App Development | `penguin-sdk`, `penguin-cli`, `agenthub-models`, `vllm`, `ollama`, `llamafactory` |-| Agent Tuning | `agent-creation`, `benchmark-design`, `agent-evaluation`, `agent-optimization` |+| Agent Tuning | `agent-initialization`, `benchmark-design`, `agent-evaluation`, `agent-optimization` |Agent Tuning powers the self-improvement loop: create the Target Agent, design a Benchmark, evaluate it, optimize it to version N+1 with a snapshot before every round.diff --git a/packages/skills/skills/agent-creation/SKILL.md b/packages/skills/skills/agent-initialization/SKILL.mdsimilarity index 88%rename from packages/skills/skills/agent-creation/SKILL.mdrename to packages/skills/skills/agent-initialization/SKILL.mdindex d911eb81..c0a244cf 100644--- a/packages/skills/skills/agent-creation/SKILL.md+++ b/packages/skills/skills/agent-initialization/SKILL.md@@ -1,19 +1,19 @@----name: agent-creation-description: Create or configure an Agent State from a user requirement by writing AGENTS.md, setting identity metadata, and installing only needed Skills.-short_description: Turn a requirement into a working agent.-short_description_zh: 把需求变成可用的 Agent。-version: 7-updated: 2026-08-03T04:03:59Z+name: agent-initialization+description: Initialize an Agent's settings from a user requirement by writing AGENTS.md, setting identity metadata, and installing only needed Skills.+short_description: Initialize an agent from a requirement.+short_description_zh: 依据需求初始化一个 Agent 的设置。+version: 8+updated: 2026-08-21T00:00:00Z----# Agent Creation+# Agent Initialization-This skill turns a user requirement into a working agent configuration — plain files in the target agent's directory.+This skill initializes an agent's settings from a user requirement — plain files in the target agent's directory.## Before you start-If the user's message only invokes this skill (e.g. "use agent-creation skill") without a concrete requirement, ask the user what agent they want and what it should do. But when the requirement is already concrete — even a single sentence like "an expert that answers questions about X" — do **not** ask follow-up questions: derive the role and rules from that sentence, apply the defaults below, and list your assumptions in the final reply.+If the user's message only invokes this skill (e.g. "use agent-initialization skill") without a concrete requirement, ask the user what agent they want and what it should do. But when the requirement is already concrete — even a single sentence like "an expert that answers questions about X" — do **not** ask follow-up questions: derive the role and rules from that sentence, apply the defaults below, and list your assumptions in the final reply.## Resolve the inherited runtimediff --git a/packages/skills/skills/agent-creation/icon.svg b/packages/skills/skills/agent-initialization/icon.svgsimilarity index 100%rename from packages/skills/skills/agent-creation/icon.svgrename to packages/skills/skills/agent-initialization/icon.svgdiff --git a/packages/skills/skills/penguin-sdk/SKILL.md b/packages/skills/skills/penguin-sdk/SKILL.mdindex 48e62b32..1941c6ae 100644--- a/packages/skills/skills/penguin-sdk/SKILL.md+++ b/packages/skills/skills/penguin-sdk/SKILL.md@@ -133,7 +133,7 @@ The default recipe when the user wants an app that answers questions over a docu```my-app/package.json # "type": "module"; scripts: ingest / start- persona.md # the embedded agent's role — write it per the agent-creation skill+ persona.md # the embedded agent's role — write it per the agent-initialization skillingest.ts # corpus/ → data/index.json; initializes penguin_data/, installs personarag.ts # BM25 retrieval over the chunk indexserver.ts # POST /api/ask streams SSE; serves public/@@ -346,7 +346,7 @@ http.createServer(async (req, res) => {- **No Markdown pipeline — set the output format instead**: instruct the embedded agent (in `persona.md` and the per-request prompt) to answer in plain text — short paragraphs separated by blank lines, citations as bare `[n]`, no Markdown syntax. The UI then only escapes the text, splits paragraphs and styles the `[n]` markers; there is no renderer to build. When richer structure genuinely matters, have the model emit a small whitelisted HTML subset (`<p> <ul> <li> <strong> <code>`) and sanitize to exactly that whitelist before inserting — never inject unsanitized model output.- **Cross-language retrieval**: the corpus and the user often speak different languages (English docs, Chinese questions), and BM25 is purely lexical — a Chinese question scores zero against English chunks. At ingest time derive a small bilingual keyword map for the corpus's core vocabulary (10–20 domain terms, e.g. `权限 → permissions / allow / deny`, `钩子 → hooks`) and expand query tokens through it in `search()` before scoring; keep the per-character CJK tokenizer. The persona already pins the answer language to the question's language.-**Persona** (`persona.md`) — the embedded agent's role, written per the agent-creation skill. Shape: one role sentence ("You are an expert on X; you answer strictly from the provided context blocks"), citation and refusal rules, plain-text output (no Markdown — the output contract above), answer language follows the question.+**Persona** (`persona.md`) — the embedded agent's role, written per the agent-initialization skill. Shape: one role sentence ("You are an expert on X; you answer strictly from the provided context blocks"), citation and refusal rules, plain-text output (no Markdown — the output contract above), answer language follows the question.## Verify before you hand overdiff --git a/packages/skills/src/index.ts b/packages/skills/src/index.tsindex d578882b..2075bfe5 100644--- a/packages/skills/src/index.ts+++ b/packages/skills/src/index.ts@@ -223,7 +223,7 @@ export const SKILL_GROUPS: SkillGroupInfo[] = [id: "agent-tuning",title: "Agent Tuning",titleZh: "Agent 调优",- skills: ["agent-creation", "benchmark-design", "agent-evaluation", "agent-optimization"],+ skills: ["agent-initialization", "benchmark-design", "agent-evaluation", "agent-optimization"],},];diff --git a/packages/skills/test/skills.test.ts b/packages/skills/test/skills.test.tsindex b21bea2d..7f6e5697 100644--- a/packages/skills/test/skills.test.ts+++ b/packages/skills/test/skills.test.ts@@ -161,7 +161,7 @@ describe("loadSkillGroups / groupSkills", () => {expect(groups[2]!.title).toBe("AI App Development");expect(groups[2]!.titleZh).toBe("AI 应用开发");expect(groups[3]!.skills.map((s) => s.name)).toEqual([- "agent-creation",+ "agent-initialization","benchmark-design","agent-evaluation","agent-optimization",@@ -178,7 +178,7 @@ describe("loadSkillGroups / groupSkills", () => {it("groupSkills: appends an Other group for unlisted skills (Chinese and English titles)", () => {const stray = fakeSkill("stray-skill");- const groups = groupSkills([fakeSkill("agent-creation"), stray]);+ const groups = groupSkills([fakeSkill("agent-initialization"), stray]);expect(groups.map((g) => g.id)).toEqual(["office-productivity","software-development",@@ -230,7 +230,12 @@ describe("loadSkillGroups / groupSkills", () => {},{id: "agent-tuning",- skills: ["agent-creation", "benchmark-design", "agent-evaluation", "agent-optimization"],+ skills: [+ "agent-initialization",+ "benchmark-design",+ "agent-evaluation",+ "agent-optimization",+ ],},]);});diff --git a/packages/web/e2e/draft.spec.mjs b/packages/web/e2e/draft.spec.mjsindex 61c8606b..529f0a3c 100644--- a/packages/web/e2e/draft.spec.mjs+++ b/packages/web/e2e/draft.spec.mjs@@ -80,7 +80,7 @@ test("draft: pick model/approval -> reload restores them -> send creates the ses// the same prefix, matching the installed `/agent-*` skills — which is what makes the absent// command row a real assertion rather than a menu that simply never appeared.await ta.fill("/agent");- await expect(page.getByRole("button", { name: /^\/agent-creation/ })).toBeVisible();+ await expect(page.getByRole("button", { name: /^\/agent-initialization/ })).toBeVisible();await expect(page.getByRole("button", { name: "/agent 交给其他 Agent,发送时开启新会话" }),).toHaveCount(0);diff --git a/packages/web/e2e/project-switch.spec.mjs b/packages/web/e2e/project-switch.spec.mjsindex d0b901c2..c9957621 100644--- a/packages/web/e2e/project-switch.spec.mjs+++ b/packages/web/e2e/project-switch.spec.mjs@@ -85,14 +85,14 @@ test("clicking the current Project in the dropdown: Agent and Session lists must// —— Regression (#74 comment): switching Project on the skill library page must not leave// installation state from the previous Project —— both Projects' default_agent share the same- // name (agentId is the page state table's key): first uninstall agent-creation from the current+ // name (agentId is the page state table's key): first uninstall agent-initialization from the current// (target) Project via the API, then switch over from the initial Project's skill library page// — before the fix, the old Project's snapshot would overwrite the freshly fetched data, so// "Manage installation" would always show "Installed."const del = await page.request.delete(- `${BASE}/api/projects/${projectId}/agents/default_agent/skills/agent-creation`,+ `${BASE}/api/projects/${projectId}/agents/default_agent/skills/agent-initialization`,);- expect(del.ok(), "uninstall agent-creation on target project").toBeTruthy();+ expect(del.ok(), "uninstall agent-initialization on target project").toBeTruthy();// Switch back to the initial Project, populating the skill library page's snapshot (default_agent has everything preinstalled -> Installed).await byName.first().click();@@ -100,14 +100,14 @@ test("clicking the current Project in the dropdown: Agent and Session lists mustawait expect(generalAgent).toBeVisible();await page.getByRole("link", { name: "技能库" }).click();await expect(page).toHaveURL(/\/skills$/);- await page.getByRole("button", { name: "管理安装 agent-creation" }).click();+ await page.getByRole("button", { name: "管理安装 agent-initialization" }).click();await expect(page.getByRole("button", { name: "卸载 default_agent" })).toBeVisible();await page.keyboard.press("Escape");// Staying on the skill library page while switching to target: the same-named default_agent's state must flip to "Install" (not installed).await page.getByRole("button", { name: U }).first().click();await byName.first().click();- await page.getByRole("button", { name: "管理安装 agent-creation" }).click();+ await page.getByRole("button", { name: "管理安装 agent-initialization" }).click();await expect(page.getByRole("button", { name: "安装 default_agent" })).toBeVisible();await page.keyboard.press("Escape");});diff --git a/packages/web/e2e/skills.spec.mjs b/packages/web/e2e/skills.spec.mjsindex 5b0f1222..c8b3ef10 100644--- a/packages/web/e2e/skills.spec.mjs+++ b/packages/web/e2e/skills.spec.mjs@@ -44,7 +44,7 @@ const GROUPS = [/Agent Tuning|Agent 调优/,];const SKILLS = [- "agent-creation",+ "agent-initialization","benchmark-design","agent-evaluation","agent-optimization",@@ -113,9 +113,9 @@ test("skills: library groups and cards -> manage-install Modal -> quick-invoke p// Quick invoke opens a draft on the currently selected Agent (default_agent here), so it's// gated on that Agent having the skill: default_agent ships every preinstalled skill- // (agent-creation is enabled), while remote-claude-code is preinstall:false and absent from it,+ // (agent-initialization is enabled), while remote-claude-code is preinstall:false and absent from it,// so its button is disabled.- await expect(page.getByRole("button", { name: "快捷调用 agent-creation" })).toBeEnabled();+ await expect(page.getByRole("button", { name: "快捷调用 agent-initialization" })).toBeEnabled();await expect(page.getByRole("button", { name: "快捷调用 remote-claude-code" })).toBeDisabled();// Card icon: the DTO icon (icon.svg in the skill's directory) is sanitized and rendered@@ -124,7 +124,7 @@ test("skills: library groups and cards -> manage-install Modal -> quick-invoke p// layout has the icon spanning two rows on the left, with the name and short description as// separate text columns, so it can no longer be located by "the innermost div containing the name").const creationCard = page- .getByText("agent-creation", { exact: true })+ .getByText("agent-initialization", { exact: true }).locator("xpath=ancestor::div[contains(@class,'rounded-md')][1]");await expect(creationCard.locator("span[aria-hidden] > svg")).toHaveCount(1);await expect(creationCard.locator(`svg path[d^="${BOOK_PATH_PREFIX}"]`)).toHaveCount(0);@@ -143,8 +143,8 @@ test("skills: library groups and cards -> manage-install Modal -> quick-invoke pawait expect(firstGroup.locator("[inert]")).toHaveCount(0);// —— Manage installation Modal: an Agent row + Install/Installed (clicking Installed uninstalls) ——- await page.getByRole("button", { name: "管理安装 agent-creation" }).click();- const dialog = page.locator("div").filter({ hasText: "管理安装:agent-creation" }).last();+ await page.getByRole("button", { name: "管理安装 agent-initialization" }).click();+ const dialog = page.locator("div").filter({ hasText: "管理安装:agent-initialization" }).last();// default_agent (display name General Agent) has everything preinstalled -> "已安装"// ("Installed", whose accessible name is the uninstall action); agent_helper has nothing// installed -> "安装" ("Install").@@ -158,7 +158,7 @@ test("skills: library groups and cards -> manage-install Modal -> quick-invoke pconst uninstallHelper = page.getByRole("button", { name: "卸载 agent_helper" });await expect(uninstallHelper).toBeVisible();await expect(uninstallHelper).toContainText("已安装");- // Server-side truth converges: agent-creation really does appear in helper's installed list.+ // Server-side truth converges: agent-initialization really does appear in helper's installed list.await expect.poll(async () => {const res = await (@@ -166,7 +166,7 @@ test("skills: library groups and cards -> manage-install Modal -> quick-invoke p).json();return res.skills.map((s) => s.name);})- .toContain("agent-creation");+ .toContain("agent-initialization");// Clicking "已安装" ("Installed") uninstalls: flips back to "安装" ("Install").await uninstallHelper.click();await expect(page.getByRole("button", { name: "安装 agent_helper" })).toBeVisible();@@ -175,11 +175,11 @@ test("skills: library groups and cards -> manage-install Modal -> quick-invoke pawait expect(dialog).toHaveCount(0);// —— Quick invoke: navigates to /chat/new (default_agent), prefilling the invoke text + preselecting that skill ——- await page.getByRole("button", { name: "快捷调用 agent-creation" }).click();+ await page.getByRole("button", { name: "快捷调用 agent-initialization" }).click();await page.waitForURL(/\/chat\/new$/);const ta = page.getByPlaceholder(/输入消息/);// Prefilled per the UI language (zh): 使用 X 技能 ("use the X skill").- await expect(ta).toHaveValue("使用 agent-creation 技能");+ await expect(ta).toHaveValue("使用 agent-initialization 技能");// The draft belongs to default_agent (display name General Agent).await expect(page.getByLabel("选择 Agent")).toContainText("General Agent");@@ -188,18 +188,18 @@ test("skills: library groups and cards -> manage-install Modal -> quick-invoke pawait expect(skillsBtn).toBeVisible();await expect(skillsBtn).toContainText("1");- // Open the menu: all listed skills each occupy a row (default_agent has everything preinstalled), with agent-creation shown as selected.+ // Open the menu: all listed skills each occupy a row (default_agent has everything preinstalled), with agent-initialization shown as selected.const row = (name) => page.getByRole("button", { name: new RegExp(`^${name}`) });await skillsBtn.click();for (const s of SKILLS) {await expect(row(s)).toBeVisible();}- await expect(row("agent-creation")).toHaveAttribute("aria-pressed", "true");+ await expect(row("agent-initialization")).toHaveAttribute("aria-pressed", "true");// Search filter: typing "sdk" leaves only penguin-sdk.await page.getByPlaceholder("搜索技能").fill("sdk");await expect(row("penguin-sdk")).toBeVisible();- await expect(row("agent-creation")).toHaveCount(0);+ await expect(row("agent-initialization")).toHaveCount(0);await page.getByPlaceholder("搜索技能").fill("");// Clicking a row toggles its selection **without closing the menu**: select penguin-sdk, then deselect it.@@ -209,7 +209,7 @@ test("skills: library groups and cards -> manage-install Modal -> quick-invoke p// —— Survives a reload (#74 comment): checking the dropdown writes into the draft immediately, so both the body and the selection persist after a reload ——await page.reload();- await expect(ta).toHaveValue("使用 agent-creation 技能");+ await expect(ta).toHaveValue("使用 agent-initialization 技能");await expect(skillsBtn).toContainText("2");await skillsBtn.click();await expect(row("penguin-sdk")).toHaveAttribute("aria-pressed", "true");@@ -219,7 +219,7 @@ test("skills: library groups and cards -> manage-install Modal -> quick-invoke pawait expect(skillsBtn).toContainText("1");// Escape closes the menu (built into the Dropdown).await page.keyboard.press("Escape");- await expect(row("agent-creation")).toHaveCount(0);+ await expect(row("agent-initialization")).toHaveCount(0);// —— Sending the prefilled body directly -> "使用技能" ("Use skills") banner + invoke text lands in the message ——await page.getByRole("button", { name: "发送" }).click();@@ -227,10 +227,10 @@ test("skills: library groups and cards -> manage-install Modal -> quick-invoke pconst sessionId = page.url().split("/chat/")[1];// Message stream: the block collapses into a "使用技能" ("Use skills") banner, and the- // prefilled body "使用 agent-creation 技能" still renders normally; the selection clears once+ // prefilled body "使用 agent-initialization 技能" still renders normally; the selection clears once// sending succeeds (the dropdown button's badge disappears).- await expect(page.getByText(/使用技能.*agent-creation/)).toBeVisible();- await expect(page.getByText("使用 agent-creation 技能", { exact: true })).toBeVisible();+ await expect(page.getByText(/使用技能.*agent-initialization/)).toBeVisible();+ await expect(page.getByText("使用 agent-initialization 技能", { exact: true })).toBeVisible();await expect(skillsBtn).not.toContainText("1");// The mock LLM's fallback reply completes a full round (allow-all auto-approves exec_command).@@ -261,6 +261,6 @@ test("skills: library groups and cards -> manage-install Modal -> quick-invoke p).json();const flat = JSON.stringify(messages);expect(flat, "stored message keeps the [use_skills] block").toContain("[use_skills]");- expect(flat, "block lists the selected skill").toContain("skills: agent-creation");- expect(flat, "prefilled body follows the block").toContain("使用 agent-creation 技能");+ expect(flat, "block lists the selected skill").toContain("skills: agent-initialization");+ expect(flat, "prefilled body follows the block").toContain("使用 agent-initialization 技能");});diff --git a/packages/web/src/lib/strings-en.ts b/packages/web/src/lib/strings-en.tsindex 44903f2d..27fea25b 100644--- a/packages/web/src/lib/strings-en.ts+++ b/packages/web/src/lib/strings-en.ts@@ -1229,7 +1229,7 @@ When done, open index.html in a browser and self-test once.`,agentBenchmarkBuild: {label: "Build a general-purpose decision agent and its benchmark",desc: "Create a general decision Agent and test it on football, after-sales, and investment tasks",- prompt: `Use \`agent-creation\` followed by \`benchmark-design\` to create a decision Agent and produce a frozen Benchmark with a Formal Baseline.+ prompt: `Use \`agent-initialization\` followed by \`benchmark-design\` to create a decision Agent and produce a frozen Benchmark with a Formal Baseline.Agent:- id: \`finite_choice_agent\`diff --git a/packages/web/src/lib/strings.ts b/packages/web/src/lib/strings.tsindex 0754c3b0..8f6f17d6 100644--- a/packages/web/src/lib/strings.ts+++ b/packages/web/src/lib/strings.ts@@ -1186,7 +1186,7 @@ Penguin 视觉风格(见 web-design 技能),默认深色。手机端侧边agentBenchmarkBuild: {label: "构建通用决策智能体和评测基准",desc: "创建一个通用决策 Agent,并用足球、售后和投资任务检验它",- prompt: `请依次使用 \`agent-creation\` 和 \`benchmark-design\`,创建决策 Agent,并产出 Frozen Benchmark 与 Formal Baseline。+ prompt: `请依次使用 \`agent-initialization\` 和 \`benchmark-design\`,创建决策 Agent,并产出 Frozen Benchmark 与 Formal Baseline。Agent:- id:\`finite_choice_agent\`diff --git a/packages/web/test/draft-cache.test.ts b/packages/web/test/draft-cache.test.tsindex df61c530..221202c3 100644--- a/packages/web/test/draft-cache.test.ts+++ b/packages/web/test/draft-cache.test.ts@@ -52,7 +52,7 @@ describe("parseDraft (field-by-field validation)", () => {modelRef: { provider: "anthropic", modelId: "claude-opus-4-8" },handoffAgentId: "agent_helper",switchModelRef: { provider: "openai", modelId: "gpt-5" },- skills: ["agent-creation", "penguin-sdk"],+ skills: ["agent-initialization", "penguin-sdk"],});expect(parseDraft(raw)).toEqual({text: "Write me a script",@@ -62,7 +62,7 @@ describe("parseDraft (field-by-field validation)", () => {modelRef: { provider: "anthropic", modelId: "claude-opus-4-8" },handoffAgentId: "agent_helper",switchModelRef: { provider: "openai", modelId: "gpt-5" },- skills: ["agent-creation", "penguin-sdk"],+ skills: ["agent-initialization", "penguin-sdk"],});});@@ -121,7 +121,7 @@ describe("parseDraft (field-by-field validation)", () => {it("skills: non-arrays dropped, non-string elements filtered out, the whole field dropped when empty after filtering", () => {// Non-arrays are always discarded- expect(parseDraft(JSON.stringify({ skills: "agent-creation" }))).toEqual({});+ expect(parseDraft(JSON.stringify({ skills: "agent-initialization" }))).toEqual({});expect(parseDraft(JSON.stringify({ skills: { 0: "x" } }))).toEqual({});expect(parseDraft(JSON.stringify({ skills: 42 }))).toEqual({});// Validate each element individually: strings are kept, everything else is filtered out@@ -142,7 +142,7 @@ describe("load / save / clear (key isolation, errors silenced)", () => {{text: "Draft A",modelRef: { provider: "deepseek", modelId: "deepseek-v4-pro" },- skills: ["agent-creation"],+ skills: ["agent-initialization"],},s,);@@ -150,7 +150,7 @@ describe("load / save / clear (key isolation, errors silenced)", () => {expect(loadDraft(draftKey("user-a1", "project-a"), s)).toEqual({text: "Draft A",modelRef: { provider: "deepseek", modelId: "deepseek-v4-pro" },- skills: ["agent-creation"],+ skills: ["agent-initialization"],});expect(loadDraft(sessionDraftKey("user-a1", "session-1"), s)).toEqual({text: "session draft",@@ -195,7 +195,7 @@ describe("load / save / clear (key isolation, errors silenced)", () => {text: "keep me",agentId: "default_agent",modelRef: { provider: "deepseek", modelId: "deepseek-v4-pro" },- skills: ["agent-creation"],+ skills: ["agent-initialization"],},s,);@@ -203,7 +203,7 @@ describe("load / save / clear (key isolation, errors silenced)", () => {expect(loadDraft(draftKey("user-a1", "project-a"), s)).toEqual({text: "keep me",agentId: "default_agent",- skills: ["agent-creation"],+ skills: ["agent-initialization"],});// No cached pick (or no draft at all): a no-op, never an errant write.clearDraftModelRef("user-a1", "project-a", s);@@ -238,7 +238,7 @@ describe("load / save / clear (key isolation, errors silenced)", () => {modelRef: { provider: "deepseek", modelId: "deepseek-v4-pro" },handoffAgentId: "agent_helper",switchModelRef: { provider: "openai", modelId: "gpt-5" },- skills: ["agent-creation"],+ skills: ["agent-initialization"],},s,);@@ -248,7 +248,7 @@ describe("load / save / clear (key isolation, errors silenced)", () => {modelRef: { provider: "deepseek", modelId: "deepseek-v4-pro" },handoffAgentId: "agent_helper",switchModelRef: { provider: "openai", modelId: "gpt-5" },- skills: ["agent-creation"],+ skills: ["agent-initialization"],});});diff --git a/packages/web/test/example-tasks.test.ts b/packages/web/test/example-tasks.test.tsindex 4a17268a..5f394a01 100644--- a/packages/web/test/example-tasks.test.ts+++ b/packages/web/test/example-tasks.test.ts@@ -82,8 +82,8 @@ describe("draft example tasks", () => {// The build draft names both skills, in the order it runs them; the scenario copy each// one is described with is free to change.- expect(normalizedBuild).toContain("`agent-creation`");- expect(normalizedBuild.indexOf("`agent-creation`")).toBeLessThan(+ expect(normalizedBuild).toContain("`agent-initialization`");+ expect(normalizedBuild.indexOf("`agent-initialization`")).toBeLessThan(normalizedBuild.indexOf("`benchmark-design`"),);expect(normalizedOptimization).toContain("`agent-optimization`");diff --git a/packages/web/test/skill-slash.test.ts b/packages/web/test/skill-slash.test.tsindex f93aff7a..d2803f1c 100644--- a/packages/web/test/skill-slash.test.ts+++ b/packages/web/test/skill-slash.test.ts@@ -74,7 +74,7 @@ describe("localizedShortText (short description first, falling back to the fulldescribe("skillSlashItems (slash skill command item assembly)", () => {const skills: SkillMetadataItem[] = [{- name: "agent-creation",+ name: "agent-initialization",description: "Create agents from requirements",version: 1,updated: "2026-07-01",@@ -84,11 +84,19 @@ describe("skillSlashItems (slash skill command item assembly)", () => {it("one item per skill: cmd is /<skill_name>, desc follows the UI language (falling back to English without a Chinese short description)", () => {expect(skillSlashItems(skills, "zh")).toEqual([- { name: "agent-creation", cmd: "/agent-creation", desc: "Create agents from requirements" },+ {+ name: "agent-initialization",+ cmd: "/agent-initialization",+ desc: "Create agents from requirements",+ },{ name: "penguin-sdk", cmd: "/penguin-sdk", desc: "Develop with the Penguin SDK" },]);expect(skillSlashItems(skills, "en")).toEqual([- { name: "agent-creation", cmd: "/agent-creation", desc: "Create agents from requirements" },+ {+ name: "agent-initialization",+ cmd: "/agent-initialization",+ desc: "Create agents from requirements",+ },{ name: "penguin-sdk", cmd: "/penguin-sdk", desc: "Develop with the Penguin SDK" },]);});@@ -108,7 +116,7 @@ describe("skillSlashItems (slash skill command item assembly)", () => {it("desc prefers the short description (falling back to the full one when missing)", () => {const withShort: SkillMetadataItem[] = [{- name: "agent-creation",+ name: "agent-initialization",description: "Create agents from requirements",shortDescription: "Create agents",shortDescriptionZh: "创建 Agent",@@ -127,8 +135,8 @@ describe("quickInvokeText (prefill text for skill-library quick invoke, zh/en di["zh", zh],["en", en],] as const) {- expect(dict.skills.quickInvokeText("agent-creation"), locale).toBe(- dict.chat.skillsAutoMessage(["agent-creation"]),+ expect(dict.skills.quickInvokeText("agent-initialization"), locale).toBe(+ dict.chat.skillsAutoMessage(["agent-initialization"]),);}});@@ -137,7 +145,7 @@ describe("quickInvokeText (prefill text for skill-library quick invoke, zh/en didescribe("filterSkills (search filter for the skill dropdown)", () => {const skills: SkillMetadataItem[] = [{- name: "agent-creation",+ name: "agent-initialization",description: "Create agents from requirements",version: 1,updated: "2026-07-01",@@ -157,10 +165,10 @@ describe("filterSkills (search filter for the skill dropdown)", () => {it("filters by display copy: zh matches the Chinese short description, en always uses English", () => {const withZh = [{ ...skills[0]!, shortDescriptionZh: "把需求变成 Agent" }, skills[1]!];- expect(filterSkills(withZh, "zh", "需求").map((s) => s.name)).toEqual(["agent-creation"]);+ expect(filterSkills(withZh, "zh", "需求").map((s) => s.name)).toEqual(["agent-initialization"]);expect(filterSkills(withZh, "en", "需求")).toEqual([]);expect(filterSkills(skills, "en", "requirements").map((s) => s.name)).toEqual([- "agent-creation",+ "agent-initialization",]);});@@ -171,12 +179,16 @@ describe("filterSkills (search filter for the skill dropdown)", () => {describe("skillsAutoMessage (auto-invoke text for empty-body sends, zh/en dictionaries)", () => {it("zh: skill names joined with 、, same wording for singular and plural", () => {- expect(zh.chat.skillsAutoMessage(["agent-creation"])).toBe("使用 agent-creation 技能");+ expect(zh.chat.skillsAutoMessage(["agent-initialization"])).toBe(+ "使用 agent-initialization 技能",+ );expect(zh.chat.skillsAutoMessage(["a", "b"])).toBe("使用 a、b 技能");});it("en: singular use the <name> skill, plural comma-joined + skills", () => {- expect(en.chat.skillsAutoMessage(["agent-creation"])).toBe("use the agent-creation skill");+ expect(en.chat.skillsAutoMessage(["agent-initialization"])).toBe(+ "use the agent-initialization skill",+ );expect(en.chat.skillsAutoMessage(["a", "b"])).toBe("use the a, b skills");});});diff --git a/packages/web/test/skill-use.test.ts b/packages/web/test/skill-use.test.tsindex 67f6b920..fc813014 100644--- a/packages/web/test/skill-use.test.ts+++ b/packages/web/test/skill-use.test.ts@@ -9,10 +9,10 @@ import { buildSkillsMessage, parseSkillsMessage } from "../src/features/chat/skidescribe("skill-use re-exports the core [use_skills] marker helpers", () => {it("builds the square-bracket block and parses it back (round-trip through the feature module)", () => {- const text = buildSkillsMessage(["agent-creation", "penguin-cli"], "use them\nline2");+ const text = buildSkillsMessage(["agent-initialization", "penguin-cli"], "use them\nline2");expect(text.startsWith("[use_skills]\n")).toBe(true);expect(parseSkillsMessage(text)).toEqual({- skills: ["agent-creation", "penguin-cli"],+ skills: ["agent-initialization", "penguin-cli"],rest: "use them\nline2",});});