从零重写的 tiny agent 项目(规范驱动:AGENTS.md + skills + project_develop_docs + check 引擎)
Critical gaps across all dimensions. Tool descriptions are present but highly technical and non-LLM-optimized (avg ~80 chars, many under 20 chars after stripping jargon). All 15 tools lack proper input schemas, parameters are listed but lack JSON Schema type definitions, constraints, or enums. No output schemas documented. Parameter descriptions are minimal (e.g., 'hwnd' = '窗口句柄' with no format guidance). No error handling guidance. Naming is verb-prefixed (screen_*) but overly technical; LLMs cannot infer intent from 'screen_perceive_region' vs 'screen_icons'. No composition guidance or chaining IDs. Security: tools expose Win32 FFI primitives directly without permission gates or audit trails.
鼠标点击(Win32 FFI 直调)
鼠标双击(Win32 FFI 直调)
获取前台窗口(Win32 FFI 直调,确定性原语)
获取前台输入法(Win32 FFI 直调,plan 56)
获取屏幕尺寸(Win32 FFI 直调)
获取工作区(Win32 FFI 直调)
区域截图 → YOLO 图标检测(本地 onnx,plan 59)→ 像素框 + 置信度
按键输入(Win32 FFI 直调)
枚举窗口(Win32 FFI 直调)
NO INPUT SCHEMAS: All 15 tools lack JSON Schema type definitions. Parameters are listed (hwnd, x, y, w, h, text, key, roi, target_hwnd) but have no 'type' field, constraints, enums, or ranges.
DESCRIPTIONS UNDER 20 CHARS OR HIGHLY TECHNICAL: Most descriptions are either too short (e.g., '窗口句柄' = 4 chars) or use untranslated technical jargon ('Win32 FFI 直调', 'Paddle v6', 'YOLO 图标检测', 'ONNX'). LLMs cannot infer when to call these tools. Baseline: 194 chars avg, 10-1024 range.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 31 | <=2025-11-25 | v2 |
全图/窗口感知:截图 → Paddle v6 + win OCR 并行 → IoU 择优合并 → 消化摘要
区域截图 → Paddle det+批量 rec(中文准)→ 双通道合并
激活窗口(Win32 FFI 直调,确定性原语)
输入文本(Win32 FFI 直调,长文本人类化输入超时放宽至 SCREEN_TYPE_TIMEOUT_MS)
移动窗口(Win32 FFI 直调,内部原语)
获取窗口标题(Win32 FFI 直调,确定性原语)
NO OUTPUT SCHEMAS: No tool documents what it returns. LLMs cannot plan downstream calls or extract required fields. E.g., screen_perceive returns OCR results but structure is undocumented. screen_list_windows returns window list but field names (hwnd, title, rect?) are unknown.
NO ERROR HANDLING GUIDANCE: Tools have no documented error cases, recovery paths, or actionable error messages. E.g., screen_click on invalid coordinates, screen_type with unsupported characters, screen_perceive_region with out-of-bounds ROI.
DESTRUCTIVE TOOLS LACK CONFIRMATION/DRY-RUN: screen_window_move, screen_click, screen_type, screen_key_press are write operations that modify system state. No dry-run, confirmation, or undo mechanism documented.