skill-digester – skill Agent & Tự động hóa cho agent AI
Xem xét và cải thiện trường mô tả SKILL.md của kỹ năng DeepCode khác, và hướng dẫn cài đặt Agent Skill vào thư mục .agents/skills ở phạm vi người dùng hoặc dự án. Dùng khi người dùng yêu cầu tiêu hóa kỹ năng, cài đặt Agent Skill, cài kỹ năng vào phạm vi người dùng/dự án, hoặc nói "消化技能" hoặc "安装 agent skill".
Cài skill skill-digester bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/skill-digester-2724a.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /skill-digester – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/skill-digester-2724a.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $skill-digester – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/skill-digester-2724a.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /skill-digester – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/skill-digester-2724a.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /skill-digester – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Skill Digester
Use this skill for two related tasks:
- Review and optionally rewrite the
descriptionfield of another DeepCode skill. - Guide installation of an Agent Skill into an interoperable
.agents/skillsroot.
Interaction Rule
Whenever user input is needed, call the AskUserQuestion tool. Do not ask follow-up questions as plain assistant text. This includes missing skill names or paths, install scope, language preference, duplicate matches, malformed frontmatter decisions, and whether to apply a recommended rewrite.
Workflow
First classify the request:
- If the user asks to install, add, copy, or place an Agent Skill, use the [Install Agent Skill Workflow](#install-agent-skill-workflow).
- Otherwise, use the [Digest Description Workflow](#digest-description-workflow).
Digest Description Workflow
1. Identify the target skill from the user's request.
- If the user did not provide a skill name, use
AskUserQuestionto ask for one. - Locate the skill by running the bundled Node script from this skill directory:
node ~/.deepcode/skills/skill-digester/scripts/find-skill.cjs "<skill-name-or-path>" "<project-root>"
If this skill is loaded from a project-level or different user-level path, use the scripts/find-skill.cjs file next to this SKILL.md instead.
- The script searches the same roots Deep Code CLI scans, in priority order:
1. Project native skills: ./.deepcode/skills/<folder>/SKILL.md
2. Project interoperable skills: ./.agents/skills/<folder>/SKILL.md
3. User native skills: ~/.deepcode/skills/<folder>/SKILL.md
4. User interoperable skills: ~/.agents/skills/<folder>/SKILL.md
- Treat
./as the current Deep Code project root only; do not scan parent directories unless the running project root is changed. - The script resolves each candidate's skill name the way Deep Code does: use the trimmed frontmatter
namewhen present, otherwise use the folder name with underscores converted to hyphens. - Match the user's input against the resolved skill name first. If needed, also consider the folder name or an explicit path the user provided.
- Treat the matched skill's
pathas the sourceSKILL.mdto review. - Treat the matched skill's
digestTarget.pathas the only outputSKILL.mdpath to create or edit. digestTarget.pathalways points to the same scope's native Deep Code root:- Project sources from
./.deepcode/skillsor./.agents/skillsdigest to./.deepcode/skills/<folder>/SKILL.md. - User sources from
~/.deepcode/skillsor~/.agents/skillsdigest to~/.deepcode/skills/<folder>/SKILL.md. - If the script returns one active match, use its
pathfor reading anddigestTarget.pathfor writing. - If the script returns active and shadowed matches, present each source path and digest target path, then use
AskUserQuestionbefore using a shadowed source. - If the script returns no match, state that the skill was not found in Deep Code's scanned skill roots and use
AskUserQuestionto ask whether the user wants to try another name.
2. Infer the user's preferred language before reviewing.
- Infer a likely language from the user's wording. For example, if the user says
消化pdf技能, infer Chinese. - Confirm the language with
AskUserQuestionin the inferred language. For Chinese, ask:请选择您偏好的语言。 - Offer the inferred language first and include
Englishas a fallback. The UI provides anOtheroption, so the user can type a different language. - Use the confirmed preferred language for every later question, recommendation, and rewritten
descriptionfield.
3. Read the source SKILL.md.
- Parse the YAML frontmatter and Markdown body from the matched source path.
- Preserve all frontmatter fields and body content except for the
descriptionfield if the user approves a rewrite. - If frontmatter is missing or malformed, explain the issue and use
AskUserQuestionbefore making structural repairs.
4. Review the current description field against the Agent Skills specification.
- Required constraints:
- It must be non-empty.
- It must be 1-1024 characters.
- It should describe what the skill does.
- It should describe when to use the skill.
- It should include specific keywords that help agents identify relevant tasks.
- Compare the description with the actual
SKILL.mdbody. Flag mismatches, missing capabilities, overbroad activation language, vague wording, or important trigger keywords that are absent. - Do not rewrite for style alone if the existing description is accurate, specific, and useful.
5. Present the review and recommendation.
- If the description is already good, say so and do not change the file unless the user asks.
- If improvements are useful, show:
- The current description.
- Concise review findings.
- A recommended replacement written in the preferred language.
- The source path being reviewed.
- The digest output path that would be created or edited.
- Use
AskUserQuestionto ask the user to choose one of three actions in the preferred language: - Apply the recommended change.
- Abandon the change.
- Continue discussing the wording.
6. Apply the change only after explicit approval.
- Write only to
digestTarget.path; never write the digested result to.agents/skills. - If
digestTarget.sameAsSourceis true, update only thedescriptionfield in that existing nativeSKILL.md. - If
digestTarget.sameAsSourceis false anddigestTarget.existsis false, create the native target skill directory by copying the source skill directory first, then update only the targetSKILL.mddescription. This preserves bundled scripts, references, and assets. - If
digestTarget.sameAsSourceis false anddigestTarget.existsis true, update only thedescriptionfield in the existing native targetSKILL.md; do not overwrite its body or bundled files unless the user explicitly asks. - Keep the original
nameand any other frontmatter fields unchanged in the file being written. - Preserve body content exactly unless the user separately asks to edit it.
- After editing, report the source path, updated digest output path, and final description.
Install Agent Skill Workflow
Use this workflow when the user asks to install an Agent Skill. Installation always writes to .agents/skills, not .deepcode/skills.
1. Identify the source skill directory.
- If the user provided an explicit file or directory path, resolve it:
~/...relative to the user's home directory../...relative to the current project root.- Absolute paths as written.
- A
SKILL.mdpath means its parent directory is the source skill directory. - If the user provided a skill name instead of a path, locate it with
scripts/find-skill.cjsusing the same command and match rules as the digest workflow. - If the user did not provide a skill name or path, use
AskUserQuestionto ask for the source skill name or path. - The source directory must contain
SKILL.md. If it does not, report that the path is not an Agent Skill and ask for another source only if the user still wants to install.
2. Determine the installed skill folder name.
- Parse the source
SKILL.mdfrontmatter. - Use the trimmed frontmatter
namewhen present. - Otherwise use the source folder name with underscores converted to hyphens.
- Use that resolved name as the target folder name.
3. Ask exactly one installation scope question.
- Use
AskUserQuestionto ask whether to install the skill at user level or project level. - Offer only these scope choices:
- User-level install:
~/.agents/skills/<skill-name>/ - Project-level install:
./.agents/skills/<skill-name>/ - Do not ask any other installation preference before copying.
4. Copy the complete skill directory.
- User-level destination:
~/.agents/skills/<skill-name>/. - Project-level destination:
./.agents/skills/<skill-name>/. - Copy the whole source skill directory, including
SKILL.md,references/,scripts/,templates/, examples, assets, and other support files. - Preserve file contents and relative paths exactly.
- Create the
.agents/skillsparent directory if needed. - If the destination directory already exists, stop and report the conflict. Do not overwrite or merge files unless the user explicitly asks in a later message.
5. Report the result.
- Report the source directory and installation destination.
- Mention that the agent client may need to reload or restart before the installed skill appears.
- Do not digest, rewrite, or normalize the installed skill unless the user separately asks for that.
AskUserQuestion Patterns
Use one question at a time unless two decisions are tightly coupled. Each question must include `option
… (nội dung đầy đủ có trong gói tải về)
Skill liên quan
- activecampaign-automation – Tự động hóa các tác vụ ActiveCampaign qua Rube MCP (Composio): quản lý liên hệ, thẻ…
- agent-harness – Biến bất kỳ thư mục skill nào của một lĩnh vực thành vòng lặp agent có giới hạn: biên…
- agent-launcher-orchestrator – Dùng khi người dùng muốn xây dựng, khởi chạy, chấm điểm hoặc lên lịch một Claude Managed…
- agent-memory – Dùng khi file CLAUDE.md của dự án đã dài đến mức không ai đọc hết và bạn muốn agent tự…
- bb-methodology – Dùng ở ĐẦU mỗi phiên săn bug bounty, khi chuyển mục tiêu, hoặc khi không biết nên làm gì…
- agent-creator – Tạo subagent AI tùy chỉnh với cấu trúc plugin đúng chuẩn, sinh persona và skill định…
- agent-evals – Xây dựng bộ đánh giá tự động cho AI agent dựa trên golden dataset, rubric và cổng hồi…
- agent-evaluation – Đánh giá hành vi agent bằng các ca kiểm thử có phiên bản và bộ xác minh rõ ràng. Dùng…