ソース情報
- リポジトリ
- zhuxixi/zima-blue-cli
- ソースの最終更新活動
- 2026年4月3日 15:54
- 検出された SKILL.md の言語
- 英語
- スター
- 1
- フォーク
- 0
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
メニュー
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/zhuxixi/zima-blue-cli --skill gen-testコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
Use when starting work on a GitHub issue — scanning or claiming an open issue, or when the path from issue to merged PR isn't clear. Use BEFORE diving into implementation of an issue.
Use when monitoring a PR under Zima Blue code review — after creating a PR and adding zima:needs-review, when polling or babysitting CR results, parsing cc-cr-meta/pi-cr-meta review bodies, or deciding if a PR has converged and is mergeable.
对 GitHub Pull Request 进行批量/调度式代码审查(一次性短会话,非监听模式), pi-coding-agent 端。多 Agent 并行检查 CLAUDE.md / AGENTS.md 合规性、bug 和逻辑安全问题, 通过 issue 验证机制过滤误报。状态通过 PR 评论的 metadata 持久化, 供 PJob 调度器(zima daemon 或 webhook-server)触发 CR 审查流程。 Use when: 用户要求对指定 PR 进行一次性批量审查或调度式审查, 且不希望启动后台监听进程。 触发词: "batch review pr", "review pr batch", "scheduled review pr"
SOC 職業分類に基づく
SKILL.md を表示中
| name | gen-test |
| description | Generate pytest unit tests for a given source module or function |
Generate pytest unit tests for a target Python module or function.
/gen-test zima/models/agent.py — generate tests for the agent model/gen-test zima/config/manager.py::ConfigManager.save_config — generate tests for a specific methodRead the target source file to understand its public API, classes, and functions.
Determine the test file path using the project convention:
zima/foo/bar.py -> Test: tests/unit/test_foo_bar.py (flattened with underscores)zima/models/agent.py -> tests/unit/test_models_agent.pyGenerate tests following these conventions:
TestIsolator (from tests/base.py) when filesystem/config isolation is neededmonkeypatch for ZIMA_HOME isolation (handled by TestIsolator)tests/conftest.py (config_manager, cli_runner, unique_code, isolated_zima_home)pytest.raises for expected exceptionstmp_path or TestIsolator.get_test_path() for temp filesExample test structure:
"""Tests for <module description>."""
import pytest
from zima.<module> import <TargetClass>
from tests.base import TestIsolator
class Test<TargetClass>(TestIsolator):
"""Tests for <TargetClass>."""
def test_<behavior>_success(self):
"""Test <behavior> with valid input."""
# arrange
...
# act
result = ...
# assert
assert result == expected
def test_<behavior>_invalid_input(self):
"""Test <behavior> raises on invalid input."""
with pytest.raises(ValueError):
...
After generating, run the test to verify it passes:
pytest <test_file> -v
Report the test file path, number of tests generated, and pass/fail status.