← 返回 Skills 市场
itscodejac

dgent

作者 Cojac · GitHub ↗ · v0.1.4 · MIT-0
darwinlinux ✓ 安全检测通过
98
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install dgent
功能描述
De-agent your code. Run dgent to check files and commit messages for AI tells before committing — flags naming patterns, catch-rethrow, AI vocabulary, emoji,...
使用说明 (SKILL.md)

dgent — de-agent your code

Clean AI tells from code and commit messages. Runs as git hooks automatically, or on-demand via CLI.

When to use

  • Before committing code written by an AI agent
  • When asked to "clean up" or "de-agent" output
  • To check if code has AI naming patterns, catch-rethrow, section headers, or noise comments
  • To check if a commit message has AI vocabulary, emoji, or trailers

Quick check a file

dgent run --json \x3Cfile>

Returns JSON with clean, fixes[], flags[], and output (cleaned content). Exit codes: 0 = clean or fixes applied, 1 = flags found.

Quick check — exit code only

dgent run --check \x3Cfile>

Silent. Exit 0 if clean or fixes applied, 1 if flags found. Use in pre-commit scripts.

Scan entire directory

dgent scan --json [dir]

Returns JSON with per-file results. Use before committing multi-file changes.

Fix a file in place

dgent run --fix \x3Cfile>

Applies all deterministic fix rules (strip trailers, emoji, section headers) and writes back.

Check a commit message

echo "your message" | dgent run --json --commit-msg -

Stdin with short non-code input auto-detects as commit-msg. Returns fixes (emoji, trailers) and flags (AI vocabulary).

Get the full rule catalog

dgent rules --json

Returns every rule with name, phase, type, enabled status, and complete pattern lists. Use this to know exactly what to avoid.

Patterns to avoid

These trigger flags (from dgent rules --json):

Commit message words: enhance, streamline, comprehensive, utilize, leverage, facilitate, robust, optimize

Commit message phrases: "this commit", "this change", "in order to", "aims to", "is designed to"

Naming suffixes: Manager, Handler, Processor, Service, Factory, Builder, Validator, Controller, Orchestrator, Coordinator

Identifier length: over 40 characters

Catch-rethrow: catch (e) { console.error(e); throw e; } — either handle the error or let it propagate

Suppress a specific flag

// dgent-ignore flag-naming
class DataProcessor { ... }  // not flagged

Supports // dgent-ignore, // dgent-ignore-next-line, // dgent-ignore \x3Crule1> \x3Crule2>.

Workflow for agents

  1. Write code
  2. Run dgent run --json \x3Cfile> on each modified file
  3. Fix any flags (rename identifiers, remove catch-rethrow, etc.)
  4. Run echo "commit message" | dgent run --json --commit-msg - on the message
  5. Fix any message flags (remove AI vocabulary, rephrase)
  6. Commit — dgent hooks will clean trailers and emoji automatically
安全使用建议
This skill is internally consistent with a CLI linter/fixer for removing 'AI tells'. Before installing: 1) Verify the npm package and GitHub repo (@itscojac/dgent) and the maintainer's reputation; 2) prefer installing it as a project devDependency (or inspect the package contents) rather than globally if you want limited scope; 3) review the rule catalog locally with dgent rules --json to see exactly what it will flag/fix; 4) be aware it may install or modify git hooks in your repository when set up—review any changes to .git/hooks or install scripts; 5) check lockfiles / package integrity (sha/lock) if you require supply-chain assurance. No environment variables or secrets are requested by the skill metadata.
功能分析
Type: OpenClaw Skill Name: dgent Version: 0.1.4 The 'dgent' skill is a utility designed to identify and remove 'AI tells' (common linguistic and structural patterns produced by LLMs) from source code and commit messages. It operates as a linter and formatter via a Node.js package (@itscojac/dgent) and provides commands for scanning and automatically fixing files. While the tool facilitates the evasion of AI-detection patterns, it does not exhibit signs of technical malice such as data exfiltration, unauthorized execution, or harmful prompt injection; its behavior is consistent with its stated purpose of cleaning up agent-generated output.
能力评估
Purpose & Capability
Name/description, required binary (dgent), and declared npm install (@itscojac/dgent) align with the stated function of scanning/fixing files and commit messages for AI artifacts. No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
SKILL.md only instructs the agent to run the dgent CLI (run, scan, rules) against files or commit messages and describes suppressions and workflow. It does not instruct reading unrelated system files, exfiltrating data, or accessing credentials. One note: the doc says dgent can run as git hooks, which implies repository-level modification of hooks when the package is installed or initialized—this is consistent with the tool's purpose but operators should be aware hooks may be added/modified.
Install Mechanism
Install is a single npm package (@itscojac/dgent) that provides the dgent binary. Using an npm package for a CLI is expected. No network downloads from arbitrary URLs or extract-from-URL steps are present in the skill metadata.
Credentials
No environment variables, credentials, or config paths are requested. The lack of broad permissions is proportionate to a lint/fix CLI tool.
Persistence & Privilege
Skill is not forced-always nor requesting elevated privileges. The possible repository-level persistence is that dgent may install git hooks (as advertised) when you install or enable it—this is reasonable for a pre-commit/commit-msg-style tool but is the main persistence-related effect to be mindful of.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install dgent
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /dgent 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.4
- Updated documentation with detailed usage instructions, example commands, and rule catalog. - Clarified patterns and flags detected (e.g., AI vocabulary, naming suffixes, identifier length, catch-rethrow). - Added examples for running checks on files, directories, and commit messages. - Documented suppression of specific flags via comments. - Included recommended workflow for checking and cleaning agent-generated code and messages.
元数据
Slug dgent
版本 0.1.4
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

dgent 是什么?

De-agent your code. Run dgent to check files and commit messages for AI tells before committing — flags naming patterns, catch-rethrow, AI vocabulary, emoji,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 98 次。

如何安装 dgent?

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

dgent 是免费的吗?

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

dgent 支持哪些平台?

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

谁开发了 dgent?

由 Cojac(@itscodejac)开发并维护,当前版本 v0.1.4。

💬 留言讨论