diff --git a/dify-agent/src/dify_agent/layers/drive/layer.py b/dify-agent/src/dify_agent/layers/drive/layer.py index 91e9208685b..9e5f9c3091e 100644 --- a/dify-agent/src/dify_agent/layers/drive/layer.py +++ b/dify-agent/src/dify_agent/layers/drive/layer.py @@ -157,8 +157,8 @@ class DifyDriveLayer(PlainLayer[DifyDriveDeps, DifyDriveLayerConfig, EmptyRuntim sections.append( "Other available skills:\n" + "\n".join(other_skills) - + "\n\nIf you want to use one, pull it with `dify-agent drive pull /`, " - "then read the pulled skill content before using it." + + "\n\nTo use one, pull it and read its SKILL.md in one command: " + '`cat "$(dify-agent drive pull --to /tmp/drive)/SKILL.md"`.' ) sections.append(_AGENT_STUB_CLI_USAGE_PROMPT) return "\n\n".join(sections) diff --git a/dify-agent/tests/local/dify_agent/layers/drive/test_layer.py b/dify-agent/tests/local/dify_agent/layers/drive/test_layer.py index 928967f061f..fe9cff05967 100644 --- a/dify-agent/tests/local/dify_agent/layers/drive/test_layer.py +++ b/dify-agent/tests/local/dify_agent/layers/drive/test_layer.py @@ -102,8 +102,7 @@ def test_drive_layer_exposes_agent_stub_cli_usage_suffix_prompt(tmp_path: Path) assert "Other available skills" in prompt assert "other-skill: Other Skill — Fallback catalog entry." in prompt assert "`dify-agent drive pull other-skill/`" not in prompt - assert "pull it with `dify-agent drive pull /`" in prompt - assert "read the pulled skill content before using it" in prompt + assert '`cat "$(dify-agent drive pull --to /tmp/drive)/SKILL.md"`' in prompt assert "dify-agent drive list [REMOTE_PREFIX]" in prompt assert "dify-agent drive pull [REMOTE ...] [--to LOCAL_DIR]" in prompt assert "--to ." in prompt