Skip to content
Report library
Purpose / Development

Dbs Agent Migration Skill Security Audit

What the author says it does (original text)

审计项目规则文件、识别真源、统一命名并生成桥接,把项目迁移成多端一致的 Agent 工作台。用户要求迁移 Claude Code、Codex、Grok、通用 Agents 或整理 AGENTS.md 时使用。

Independent security check

Do not install or run it yet

Files checked
2
Risks found
3
Could it run dangerous commands?Looks for programs run straight after downloading, remote control of your computer, and hidden commands.No risks found
Could it expose your files or keys?Looks for uploads of files containing passwords or keys, and keys written directly in the code.No risks found
Could it delete files or keep running?Looks for broad file deletion, disk overwrites, and programs set to start automatically.Risks found: 1
Medium risk

Rule migration deletes content judged obsolete, duplicated, or too host-specific

Source references: 2
What we found

The workflow explicitly splits rules from `CLAUDE.md` and deletes content judged obsolete, duplicated, or overly tied to a host. Although it requires describing deletions before writing, it does not require a backup, a complete diff, or tests showing that the rules are no longer needed.

Why this matters

A mistaken judgment could permanently remove necessary project constraints, security restrictions, or Claude-specific operating instructions, causing later Agent behavior to diverge from project requirements.

The risk is supported. The workflow actively calls for deleting rules the model judges obsolete, duplicated, or too host-specific; a mistaken judgment could remove safeguards, project conventions, or required host settings. It must disclose proposed deletions before writing, which adds visibility, but the source does not require a backup, item-by-item approval, a retained diff, or post-deletion behavioral tests. Users can require a full diff, approve each deletion, and keep a recoverable copy.

SKILL.md:162In the instructionsOpen original file
如果有 `CLAUDE.md`:- 拆出平台无关规则 → 写入 `AGENTS.md`- 保留 Claude 专属规则在 `CLAUDE.md`- 删除过时、重复、宿主绑定太强的内容
Show 1 other places
SKILL.md:183In the instructionsOpen original file
#### Phase 2 写入前确认写入前必须明确告诉用户:- 这次要新建还是改写哪个文件- 会保留什么- 会删除什么- 为什么这样分层
Could it bypass safety checks?Looks for skipped website security checks, excessive file access, or actions that skip your approval.Risks found: 1
Medium risk

Retargeting a shared Skill symlink changes what several Agent hosts load

Source references: 4
What we found

The Skill prefers a symlink at `~/.agents/skills/<name>` and permits an existing same-name symlink to be retargeted to the new project source. Doubao, Trae Solo, and Codex are said to read this directory, so one change can replace a previously trusted implementation across hosts, not just within the current project.

Why this matters

The behavior of a named Skill can change across several applications. A trusted prior implementation may be replaced by project content that applies different rules or performs unexpected actions on later invocation.

The risk is supported, though the operation requires explicit permission. The workflow may repoint an existing same-name symlink, and the global directory is read by Doubao, Trae Solo, and Codex; once authorized, several hosts may therefore load a different Skill. It requires permission before writing and verification with readlink, but does not require listing every affected application or preserving the old target. Users can authorize only project-local bridges and request a record of the prior target and affected hosts.

SKILL.md:301In the instructionsOpen original file
#### 通用 Agents 目录策略`~/.agents/skills/<name>` 优先使用软链指向真源目录。这个目录已知会被豆包 Mac App、Trae Solo 和 Codex 读取。如果目标位置已有同名真实目录或文件:- 不覆盖;- 报告目标路径和当前类型;- 让用户确认是否迁出旧目录。如果目标位置已有同名软链:- 可以更新到新的真源;- 更新后必须检查 `readlink` 是否指回预期路径。
Show 3 other places
SKILL.md:321In the instructionsOpen original file
3. Grok bridge 必须当场验证 `user_invocable: true`。4. 通用 Agents 目录优先写软链,不复制真源内容。5. 只有在用户明确允许写入目标宿主目录时,你才可以直接把 bridge 写到目标位置;否则先提供预览。
SKILL.md:311In the instructionsOpen original file
如果目标位置已有同名软链:- 可以更新到新的真源;- 更新后必须检查 `readlink` 是否指回预期路径。
SKILL.md:318In the instructionsOpen original file
1. 告诉用户你准备为哪些宿主生成 bridge。2. 得到明确确认后,直接帮用户生成文件内容,或先给出完整预览内容。3. Grok bridge 必须当场验证 `user_invocable: true`。4. 通用 Agents 目录优先写软链,不复制真源内容。5. 只有在用户明确允许写入目标宿主目录时,你才可以直接把 bridge 写到目标位置;否则先提供预览。
Could it mislead the AI or hide text?Checks the skill instructions for requests to ignore you, influence the report, or hide text in invisible characters.Risks found: 1
High risk

Project instructions can propagate into multiple Agent hosts through bridges

Source references: 4
What we found

The Skill designates project Skills as sources of truth and tells Claude, Codex, Grok, and other hosts to read and follow their workflows, constraints, and examples. Candidate filtering only excludes articles, backups, tests, and exports; it does not require a security review. Prompt injection, data-upload instructions, or destructive actions in an untrusted or modified Skill could therefore be inherited by multiple hosts.

Why this matters

One migration can broaden the reach of malicious or unauthorized instructions, leaving them callable under the same Skill name across hosts and able to use each host's accessible files, credentials, or tools.

The risk is plausible, but this does not show an attack occurred. The workflow selects project Skills as sources and creates bridges that tell hosts to read and follow them. Its filtering only excludes articles, backups, tests, and exports; it does not require checks for credential uploads, destructive file actions, or external instructions. User confirmation reduces accidental changes but does not detect a malicious source. Users can ask for a per-source security review and restrict bridges to reviewed files.

SKILL.md:203In the instructionsOpen original file
1. 扫描类似 `SKILL.md`、`*skill*.md`、带明确触发方式和执行步骤的文件2. 排除文章、备份、测试案例、导出稿3. 生成“候选真源清单”4. 告诉用户哪些建议收编、哪些不建议5. 用户确认后,再新建项目级 `skills/`
Show 3 other places
SKILL.md:242In the instructionsOpen original file
### Phase 5:生成多端 bridge(Claude / Codex / Grok / 通用 Agents)bridge 的核心要求:- 只做入口,不维护长逻辑- 指向项目真源- 多端使用同一套规范名- Grok bridge 必须带 `user_invocable: true`- 通用 Agents bridge 或软链写入 `~/.agents/skills/<name>`,豆包 Mac App / Trae Solo / Codex 会从这里发现 skill
SKILL.md:267In the instructionsOpen original file
- Source of truth: /绝对路径/到/项目/skills/技能规范名/SKILL.md- Read the source-of-truth file before executing this skill.- Follow the source file's workflow, constraints, examples, and output format.- Treat this file as a thin Grok bridge only; do not maintain long-form logic here.
SKILL.md:318In the instructionsOpen original file
1. 告诉用户你准备为哪些宿主生成 bridge。2. 得到明确确认后,直接帮用户生成文件内容,或先给出完整预览内容。3. Grok bridge 必须当场验证 `user_invocable: true`。4. 通用 Agents 目录优先写软链,不复制真源内容。5. 只有在用户明确允许写入目标宿主目录时,你才可以直接把 bridge 写到目标位置;否则先提供预览。
Could it change links or payment recipients without asking?Looks for forced referral or payment changes combined with instructions to hide the change.No risks found

Inside this skill

7 instruction sections

The Skill audits project rules, in-project Skill candidates, and Skill entry points under the user's home directories for Claude, Codex, Grok, and generic Agents. It can modify these locations after confirmation, not merely provide recommendations.

View source
SKILL.md:121In the instructionsOpen original file
先检查:- `CLAUDE.md`- `AGENTS.md`- `SOURCE_OF_TRUTH.md`- 项目中是否存在 `skills/`- 项目中是否存在散落的 skill 候选- 是否已有 `~/.claude/skills` / `~/.codex/skills` / `~/.grok/skills` / `~/.agents/skills` bridge- 当前主工作台更偏 Claude、Codex、Grok 还是通用 Agents
SKILL.md:318In the instructionsOpen original file
1. 告诉用户你准备为哪些宿主生成 bridge。2. 得到明确确认后,直接帮用户生成文件内容,或先给出完整预览内容。3. Grok bridge 必须当场验证 `user_invocable: true`。4. 通用 Agents 目录优先写软链,不复制真源内容。5. 只有在用户明确允许写入目标宿主目录时,你才可以直接把 bridge 写到目标位置;否则先提供预览。

It treats the project's `skills/` directory as the preferred source of truth and creates thin bridges to it for multiple Agent hosts. Those hosts are then instructed to read and follow the source workflow and constraints.

View source
SKILL.md:67In the instructionsOpen original file
### 原则 2:真源优先,bridge 从真源生成- `skills/` 是理想真源目录- `~/.claude/skills/`、`~/.codex/skills/`、`~/.grok/skills/`、`~/.agents/skills/` 都只是 bridge 或宿主安装入口- `~/.agents/skills/` 是豆包 Mac App、Trae Solo、Codex 等通用 Agent 会读取的 skill 根目录- 不要把长期逻辑维护在 bridge 里
SKILL.md:267In the instructionsOpen original file
- Source of truth: /绝对路径/到/项目/skills/技能规范名/SKILL.md- Read the source-of-truth file before executing this skill.- Follow the source file's workflow, constraints, examples, and output format.- Treat this file as a thin Grok bridge only; do not maintain long-form logic here.

The workflow includes staged confirmation: before changing rule files it must describe creations, rewrites, and deletions, and it requires explicit permission before writing into host directories.

View source
SKILL.md:183In the instructionsOpen original file
#### Phase 2 写入前确认写入前必须明确告诉用户:- 这次要新建还是改写哪个文件- 会保留什么- 会删除什么- 为什么这样分层
SKILL.md:318In the instructionsOpen original file
1. 告诉用户你准备为哪些宿主生成 bridge。2. 得到明确确认后,直接帮用户生成文件内容,或先给出完整预览内容。3. Grok bridge 必须当场验证 `user_invocable: true`。4. 通用 Agents 目录优先写软链,不复制真源内容。5. 只有在用户明确允许写入目标宿主目录时,你才可以直接把 bridge 写到目标位置;否则先提供预览。
Start here · InstructionsSKILL.md
dbs-agent-migration
Lines connect the instruction file to its sections, not an observed execution order. Select a section to read the source.
Files and check records2 files

Coverage and gaps

Content covered in each file

These are the source ranges included in this check, not a guarantee that every issue has been resolved.

  • SKILL.mdFull text included
  • agents/openai.yamlFull text included

This report is for the version above. We read the available code and instructions without running the skill or checking extra packages it installs. This is not a promise of safety: a different version or setup may behave differently.

  • SKILL.mdInstructions
  • agents/openai.yamlSupporting file
Lines read
391
File checksum (to compare versions)
6ae8750f625f7435292a948d4b9716ef02d19ca37a24959d5ca46701cc374d34