# Oneworks Cli Print Mode

> 说明 One Works CLI 的 print 模式、stdin 控制、权限确认和恢复会话方式。

- **Type:** Skill
- **Install:** `agentstack add skill-oneworks-ai-app-oneworks-cli-print-mode`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [oneworks-ai](https://agentstack.voostack.com/s/oneworks-ai)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [oneworks-ai](https://github.com/oneworks-ai)
- **Source:** https://github.com/oneworks-ai/app/tree/main/packages/plugins/cli-skills/skills/oneworks-cli-print-mode
- **Website:** https://oneworks.cloud/

## Install

```sh
agentstack add skill-oneworks-ai-app-oneworks-cli-print-mode
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

在需要解释 `oneworks --print`、`--input-format`、权限确认或继续会话时使用这个 skill。

## Print 模式

- `oneworks --print "任务描述"`：把事件和最终输出直接打印到终端。
- `--output-format text`：默认文本模式，适合直接阅读。
- `--output-format stream-json`：逐条输出结构化事件，适合脚本消费。
- `--output-format json`：任务结束时输出 JSON。

## stdin 控制

- `--input-format text`：从 stdin 读取一行纯文本作为输入。
- `--input-format json`：从 stdin 读取一个 JSON 对象。
- `--input-format stream-json`：按行读取 JSON 事件，适合长连接控制。

## 权限与继续会话

- 当 print 模式遇到 `interaction_request` 且没有可用 stdin 控制时，CLI 会打印请求并终止任务。
- 恢复时可用：`oneworks --resume  --print --input-format stream-json`
- 如果只是想改下一次恢复的权限模式，可用：`oneworks --resume  --permission-mode bypassPermissions`
- 等价短写：`oneworks --resume  --yolo`
- 对权限请求提交输入的示例：

```json
{ "type": "submit_input", "data": "allow_once" }
```

- 常见 decision：
  - `allow_once`
  - `allow_session`
  - `allow_project`
  - `deny_once`
  - `deny_session`
  - `deny_project`

## 排查顺序

1. 先执行 `oneworks list --view full` 找到 session id。
2. 再用 `oneworks --resume ` 或 `oneworks --resume  --print --input-format stream-json` 继续。
3. 如果只是想停掉卡住的会话，用 `oneworks stop ` 或 `oneworks kill `。

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [oneworks-ai](https://github.com/oneworks-ai)
- **Source:** [oneworks-ai/app](https://github.com/oneworks-ai/app)
- **License:** MIT
- **Homepage:** https://oneworks.cloud/

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-oneworks-ai-app-oneworks-cli-print-mode
- Seller: https://agentstack.voostack.com/s/oneworks-ai
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
