# @agent-stash/init 中文文档

规范地址：https://npmcn.com/package/%40agent-stash/init/

版本：1\.5\.0
npm 元数据更新时间：2026-11-02T01:21:15.085Z
中文译文更新时间：2026-11-07T08:10:38.464Z
软件包许可：Apache-2\.0

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40agent-stash/init
原文对照：https://npmcn.com/package/%40agent-stash/init/?lang=original
项目主页：https://github.com/Alice39s/agent-stash#readme
源码仓库：https://github.com/Alice39s/agent-stash

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：2.5 MB，80 个文件
- 模块格式：ES Module
- TypeScript 类型：未声明
- Node.js 要求：\>=24
- 运行依赖：4 个
- peer 依赖：@deepseek-ai/dsh \>=0\.2\.1-alpha\.2，@earendil-works/pi-coding-agent \*
- 首次发布：2026-10-26T04:23:50.097Z
- 最新版本发布：2026-11-02T01:21:14.741Z
- 近 30 天下载量：1993（2026-10-05 至 2026-11-03，npm 官方下载统计）
- 已发布版本数：9（近 12 个月 9 个）

## 中文简介

Pi、DeepSeek Harness、Cline、Grok Building、Goose和Aider的个人代理技能和/init插件

## 安装

```sh
npm install @agent-stash/init
```

也可以使用：`pnpm add @agent-stash/init`、`yarn add @agent-stash/init`、`bun add @agent-stash/init`

## README

# Agent-Stash

[![CI](https://img.shields.io/github/actions/workflow/status/Alice39s/agent-stash/ci.yml?branch=main&label=CI&logo=githubactions&logoColor=white)](https://github.com/Alice39s/agent-stash/actions/workflows/ci.yml) [![Agent Stash release](https://img.shields.io/github/v/release/Alice39s/agent-stash?label=Agent%20Skills&color=D97757)](https://github.com/Alice39s/agent-stash/releases/latest) [![skills.sh](https://skills.sh/b/Alice39s/agent-stash)](https://skills.sh/Alice39s/agent-stash) [![License](https://img.shields.io/github/license/Alice39s/agent-stash)](https://npmcn.com/package/%40agent-stash/init/LICENSE)

自用的 Agent Skills，以及给 [Pi](https://pi.dev/)、[DSH (DeepSeek Harness)](https://github.com/deepseek-ai/deepseek-harness)、Cline、Grok Build、goose 与 Aider 用的插件。

**[文档站](https://alice39s.github.io/agent-stash/zh/)** · [English](https://alice39s.github.io/agent-stash/en/)

## 收录内容

| 名称 | 说明 |
| --- | --- |
| [/init](https://alice39s.github.io/agent-stash/zh/plugins/init/) | 插件，用其他 Coding Agent 的 `/init` 预设分析项目，写出 `AGENTS.md` |
| [消息编辑](https://alice39s.github.io/agent-stash/zh/plugins/dsh-message-edit/) | DSH 插件，编辑消息、重新生成回复或重试回合，改动另存为可切换的版本 |
| [经验提炼器](https://alice39s.github.io/agent-stash/zh/plugins/dsh-skill-scout/) | DSH 插件，从已结束的会话里提炼可复用的流程，审核后存为 Skill |
| [Prompt 回溯](https://alice39s.github.io/agent-stash/zh/plugins/dsh-recall/) | DSH 插件，按 ↑↓ 翻看当前会话发过的 Prompt |
| [Prompt 自动补全](https://alice39s.github.io/agent-stash/zh/plugins/dsh-autosuggest/) | DSH 插件，用所有会话的历史 Prompt 补全输入内容 |
| [提示词增强器](https://alice39s.github.io/agent-stash/zh/plugins/dsh-enhance/) | DSH 插件，一键润色、结构化、提炼 Prompt 草稿的核心内容 |
| [`code-styleguide`](https://alice39s.github.io/agent-stash/zh/skills/#code-styleguide) | 技能，Google、Angular 与 Android Kotlin 风格指南，每天从上游同步 |
| [`self-use-<model>-subagent`](https://alice39s.github.io/agent-stash/zh/skills/#self-use-model-subagent) | 技能，在 DSH 里把任务委托给指定模型的子代理 |

## 安装

技能用 [skills.sh](https://skills.sh/Alice39s/agent-stash) 的命令行安装：

```bash
npx -y skills add Alice39s/agent-stash
```

DSH 插件推荐导入 Agent Stash 插件市场后按需安装，步骤和其他 Agent 的接入方法见文档站的[安装](https://alice39s.github.io/agent-stash/zh/install/)页。

## 开发

本地开发、CI 命令行与发布流程见文档站的[参与开发](https://alice39s.github.io/agent-stash/zh/development/)页。

## 许可证

本仓库使用 [Apache License 2.0](https://npmcn.com/package/%40agent-stash/init/LICENSE)。

## 常见问题

### @agent-stash/init 是什么？

Pi、DeepSeek Harness、Cline、Grok Building、Goose和Aider的个人代理技能和/init插件

### 如何安装 @agent-stash/init？

在项目目录运行 npm install @agent-stash/init，或使用 pnpm add / yarn add / bun add。它还提供命令行工具 agent-stash，可以用 npx agent-stash 直接运行。

### @agent-stash/init 支持 TypeScript 吗？

该包的 package\.json 没有声明类型入口。需要类型提示时，可以在 npm 上查找社区维护的 @types/agent-stash\_\_init 是否存在。

### @agent-stash/init 支持 ESM 还是 CommonJS？

以 ES Module 形式发布，推荐使用 import 引入。在 CommonJS 项目中，Node\.js 20\.19\+ / 22\.12\+ 可以直接 require\(\) 不含顶层 await 的 ES Module，更早的版本需要改用动态 import\(\)。

### @agent-stash/init 需要什么版本的 Node\.js？

package\.json 的 engines 字段要求 Node\.js \>=24。版本不符时 npm 默认只给出警告，开启 engine-strict 后会拒绝安装。

### @agent-stash/init 可以商用吗？

@agent-stash/init 使用 Apache-2\.0 许可。宽松许可：允许商业使用、修改和再分发，并附带明确的专利授权；分发时需保留许可与 NOTICE 文件，修改过的文件要注明改动。以上为概括，不构成法律意见，请以许可原文为准。

### @agent-stash/init 的下载量有多少？

根据 npm 官方下载统计，@agent-stash/init 在 2026/10/05 – 2026/11/03 这 30 天内被下载 1,993 次，日均约 66 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### @agent-stash/init 还在维护吗？

最新版本 1\.5\.0 发布于 2026/11/02（5 天前）；至今共发布 9 个版本，其中过去 12 个月发布了 9 个；首次发布于 2026/10/26。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

