在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用add-command
星标1
分支0
更新时间2026年4月26日 05:53
Use when adding or changing a zlp CLI command
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Use when adding or changing a zlp CLI command
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | add-command |
| description | Use when adding or changing a zlp CLI command |
Use this when adding a new zlp subcommand or changing an existing command's behavior.
Before editing, identify:
If the command can work offline, add it to NO_CLIENT_COMMANDS.
Add or update tests under tests/.
Preferred patterns:
TemporaryDirectory for archive and run rootsunittest.mock for Zulip client behaviorsys.argv rather than shelling out unless testing process-level behaviorWatch the relevant test fail before implementation.
In src/zlp/cli.py:
main()cmd_<command_name>()check(), read_body(), narrow_for(), and format/archive functionsAvoid broad refactors while adding a command.
Update:
README.md command table and examples when user-facing behavior changesMakefile only for common ergonomic workflows, not every CLI flag combinationRun:
make check
For packaging, release, or entry-point changes, also run:
make build
Report any failures with the exact command that failed.
| Mistake | Fix |
|---|---|
Command accidentally requires zuliprc | Add client-free commands to NO_CLIENT_COMMANDS |
| Tests use real Zulip credentials | Mock the client and use temp dirs |
| Output is hard to parse | Prefer stable Markdown, JSON, or TSV |
| README omitted | Update the command table and examples |
| Archive paths are hardcoded | Use args.archive_root and helpers |