← 返回 Skills 市场
mvogt99

Hallucinated Paths

作者 mvogt99 · GitHub ↗ · v1.0.0 · MIT-0
macoslinuxwindows ✓ 安全检测通过
52
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install hallucinated-paths
功能描述
Reply cites file paths, directories, or module locations that do not exist in the current project.
使用说明 (SKILL.md)

hallucinated-paths

The reply references files or directories that aren't on disk. The agent invented a plausible-sounding location (e.g., src/utils/helpers.ts) because similar paths usually exist in projects like this one.

Symptoms

  • A quoted path doesn't exist when you check the filesystem.
  • The reply uses a path structure that matches convention but the specific file is absent (e.g., src/components/Button.tsx in a project that actually puts components elsewhere).
  • Imports reference modules that cannot be resolved.
  • "Edit X file at path Y" instructions fail because Y is not there.

What to do

  • Before quoting a path, verify it with a real file-existence check (ls, stat, a glob search). Do not rely on memory or convention.
  • When unsure where something lives, search first: grep for the symbol, glob for the filename, read the repo layout.
  • If the answer requires a path that doesn't exist, say so explicitly — don't fabricate. "I couldn't find a file for X" is correct; inventing one is not.
  • When proposing to create a new file, state clearly that it is new, and justify why it belongs at that path given the repo's actual conventions.
  • After editing, verify the edited file is the one that exists, not a hallucinated sibling.
安全使用建议
This skill is instruction-only and appears safe: it asks the agent to verify paths before using them and requests no secrets or installs. Before installing, confirm you trust the agent framework to follow the guidance (the skill contains no executable code), and be aware that autonomous invocation is the platform default — if you want tighter control, only enable the skill for manual invocation. If you need absolute assurance, review agent logs to confirm it performs the recommended filesystem checks rather than fabricating paths.
功能分析
Type: OpenClaw Skill Name: hallucinated-paths Version: 1.0.0 The skill bundle 'hallucinated-paths' is a purely instructional set of guidelines designed to improve the accuracy of the AI agent by preventing it from fabricating non-existent file paths. It encourages the use of standard filesystem verification tools like 'ls', 'stat', and 'grep' to ensure paths are valid before referencing them, and contains no malicious code or suspicious behaviors.
能力评估
Purpose & Capability
The name and description describe detecting/avoiding hallucinated paths; the SKILL.md contains only guidance on checking filesystem layout and how to behave when paths are missing. There are no unrelated requirements (no env vars, binaries, or config paths).
Instruction Scope
Runtime instructions are narrowly scoped: they advise verifying file existence, searching the repo, and explicitly declaring when a file is new. They do not instruct reading unrelated secrets, making external network calls, or modifying other skills.
Install Mechanism
No install spec and no code files — instruction-only. Nothing will be written to disk or downloaded during install, which is lowest-risk.
Credentials
The skill requires no environment variables, credentials, or config paths. The guidance references only local filesystem checks that are appropriate for the purpose.
Persistence & Privilege
always is false and model invocation is allowed (the platform default). The skill does not request permanent presence or any elevated privileges and does not modify other skills or global settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install hallucinated-paths
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /hallucinated-paths 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the "hallucinated-paths" skill. - Detects and describes cases where replies reference non-existent file paths, directories, or module locations. - Lists common symptoms of hallucinated paths, such as instructions referencing missing files or unresolvable imports. - Provides guidance for verifying file existence and proper path usage. - Recommends strategies to avoid inventing plausible-sounding but incorrect paths.
元数据
Slug hallucinated-paths
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Hallucinated Paths 是什么?

Reply cites file paths, directories, or module locations that do not exist in the current project. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 52 次。

如何安装 Hallucinated Paths?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install hallucinated-paths」即可一键安装,无需额外配置。

Hallucinated Paths 是免费的吗?

是的,Hallucinated Paths 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Hallucinated Paths 支持哪些平台?

Hallucinated Paths 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(macos, linux, windows)。

谁开发了 Hallucinated Paths?

由 mvogt99(@mvogt99)开发并维护,当前版本 v1.0.0。

💬 留言讨论