Skip to content

rename documented cws commands#30

Merged
innomentats merged 1 commit intomainfrom
docs/rename-cws-docs-to-chaitin-cli
Apr 22, 2026
Merged

rename documented cws commands#30
innomentats merged 1 commit intomainfrom
docs/rename-cws-docs-to-chaitin-cli

Conversation

@zTrix
Copy link
Copy Markdown
Member

@zTrix zTrix commented Apr 22, 2026

Summary

  • update documentation examples to use chaitin-cli instead of cws
  • rename the bundled skill directory from chaitin-cli-usage to chaitin-cli
  • update the skill metadata and examples to match the new command name

Verification

  • task test
  • task build

Copilot AI review requested due to automatic review settings April 22, 2026 08:10
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates user-facing documentation and the bundled AI-agent skill to refer to chaitin-cli instead of cws, aiming to standardize the documented command name across the repo.

Changes:

  • Added a new bundled skill at skills/chaitin-cli/SKILL.md and removed the old skills/chaitin-cli-usage/SKILL.md.
  • Updated root README(s) to use chaitin-cli in examples.
  • Updated product READMEs (X-Ray, T-Answer) to use chaitin-cli in command examples.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
skills/chaitin-cli/SKILL.md New skill metadata + usage guide using chaitin-cli examples.
skills/chaitin-cli-usage/SKILL.md Removed old skill doc that referenced cws.
products/xray/README.md Switched X-Ray command examples from cws to chaitin-cli.
products/tanswer/README.md Switched T-Answer command examples from cws to chaitin-cli.
README.md Updated examples/symlink guidance to use chaitin-cli.
README.en.md Updated examples/symlink guidance to use chaitin-cli.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.en.md
Comment on lines 125 to 135
```bash
task build
ln -s ./bin/cws ./chaitin
ln -s ./bin/chaitin-cli ./chaitin
./chaitin
```

This is equivalent to:

```bash
./bin/cws chaitin
./bin/chaitin-cli chaitin
```
Comment thread products/xray/README.md
Comment on lines 7 to +16
| 命令 | 说明 |
|------|------|
| `cws xray asset_property` | 资产管理 |
| `cws xray audit_log` | 审计日志管理 |
| `cws xray baseline` | 基线检查管理 |
| `cws xray custom_poc` | 自定义POC管理 |
| `cws xray domain_asset` | 域名资产管理 |
| `cws xray insight` | 数据洞察 |
| `cws xray ip_asset` | 主机资产管理 |
| `cws xray plan` | 任务计划管理 |
| `cws xray project` | 工作区管理 |
| `cws xray report` | 报表管理 |
| `cws xray result` | 任务结果管理 |
| `cws xray role` | 角色管理 |
| `cws xray service_asset` | 服务资产管理 |
| `cws xray system_info` | 系统信息管理 |
| `cws xray system_service` | 系统服务管理 |
| `cws xray task_config` | 任务配置管理 |
| `cws xray template` | 策略模板管理 |
| `cws xray user` | 用户管理 |
| `cws xray vulnerability` | 漏洞资产管理 |
| `cws xray web_asset` | Web资产管理 |
| `cws xray xprocess` | XProcess任务实例管理 |
| `cws xray xprocess_lite` | XProcess精简版管理 |
| `chaitin-cli xray asset_property` | 资产管理 |
| `chaitin-cli xray audit_log` | 审计日志管理 |
| `chaitin-cli xray baseline` | 基线检查管理 |
| `chaitin-cli xray custom_poc` | 自定义POC管理 |
| `chaitin-cli xray domain_asset` | 域名资产管理 |
| `chaitin-cli xray insight` | 数据洞察 |
| `chaitin-cli xray ip_asset` | 主机资产管理 |
| `chaitin-cli xray plan` | 任务计划管理 |
Comment on lines +19 to +26
| chaitin-cli tanswer firewall check-ip-is-white | CheckIpIsWhite 检查 IP 是否在白名单中 |
| chaitin-cli tanswer firewall delete-white-list | DeleteWhiteList 响应处置 / 响应白名单:删除响应白名单 |
| chaitin-cli tanswer firewall search-white-list | SearchWhiteList 响应处置 / 响应白名单:搜索响应白名单 |
| chaitin-cli tanswer firewall update-white-list-status | UpdateWhiteListStatus 响应处置 / 响应白名单:启用或禁用响应白名单 |
| chaitin-cli tanswer rules create-block-rules | CreateBlockRules 响应处置 / 旁路阻断策略:创建旁路阻断策略 |
| chaitin-cli tanswer rules search-block-rules | SearchBlockRules 响应处置 / 旁路阻断策略:搜索旁路阻断策略 |
| chaitin-cli tanswer rules update-block-rules | UpdateBlockRules 响应处置 / 旁路阻断策略:编辑旁路阻断策略 |
| chaitin-cli tanswer rules update-block-rules-status | UpdateBlockRulesStatus 响应处置 / 旁路阻断策略:启用或禁用旁路阻断策略 |
Comment on lines +15 to +26
```bash
# Download pre-built binary from GitHub Releases
# https://github.com/chaitin/chaitin-cli/releases

# Or build from source
git clone https://github.com/chaitin/chaitin-cli.git
cd chaitin-cli
go build -o chaitin-cli .

# Run
chaitin-cli <product> <command> [flags]
```
Comment thread README.md
Comment on lines 126 to 136
```bash
task build
ln -s ./bin/cws ./chaitin
ln -s ./bin/chaitin-cli ./chaitin
./chaitin
```

等价于:

```bash
./bin/cws chaitin
./bin/chaitin-cli chaitin
```
@innomentats innomentats merged commit 2d1a907 into main Apr 22, 2026
7 checks passed
@innomentats innomentats deleted the docs/rename-cws-docs-to-chaitin-cli branch April 23, 2026 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants