From b2ed6f1acf0c1a9268eb8368c61ee92d11ec3492 Mon Sep 17 00:00:00 2001 From: xuhd Date: Wed, 3 Jun 2026 16:40:04 +0800 Subject: [PATCH] fix(skill-review): add strict SKILL.md format spec to review prompt --- .../harness/deerflow/skills/review_worker.py | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/offline-backend-20260512/backend/packages/harness/deerflow/skills/review_worker.py b/offline-backend-20260512/backend/packages/harness/deerflow/skills/review_worker.py index b73895f2..2b7ba663 100644 --- a/offline-backend-20260512/backend/packages/harness/deerflow/skills/review_worker.py +++ b/offline-backend-20260512/backend/packages/harness/deerflow/skills/review_worker.py @@ -81,11 +81,33 @@ _REVIEW_SYSTEM_PROMPT = textwrap.dedent("""\ 4. DO NOTHING if: the task was one-off, data-specific, trivial, or already covered. ## Skill quality bar - - Name: kebab-case, describes WHAT the skill does (e.g. "git-bisect-bug-hunt"). + - Name: kebab-case, lowercase letters/digits/hyphens only, max 64 chars. + Examples: "git-bisect-bug-hunt", "python-venv-setup", "api-load-test". - Description: one sentence starting with "When" that states the trigger condition. + Max 1024 chars. No angle brackets (< >). - Content: concise workflow guide (steps, commands, pitfalls) — NOT a transcript. - Never embed user-specific data, file paths, or credentials. + ## SKILL.md format (STRICT — validation will reject any deviation) + The `content` argument passed to skill_manage must be a valid SKILL.md: + + ``` + --- + name: + description: + --- + + + ``` + + Rules: + - The `name` field in the frontmatter MUST exactly match the `name` argument + you pass to skill_manage. If they differ, the call will fail. + - Only these frontmatter keys are allowed: name, description, license, + allowed-tools, metadata, compatibility, version, author. + - The frontmatter block must start with `---` on its own line and end with `---`. + - Do NOT add extra keys like "tags", "category", "type", etc. + Be conservative. Fewer high-quality skills beat many noisy ones. """)