skillcheck icon indicating copy to clipboard operation
skillcheck copied to clipboard

description.quality-score falsely suggests “Start the description with an action verb” for verb-led descriptions like “Investigate …”

Open chris-jackson-actionqa opened this issue 7 months ago • 2 comments

skillcheck appears to produce a false-positive suggestion in description.quality-score.

Repro

Skill frontmatter:

---
name: gitlab-test-failure-triage
description: Investigate failing GitLab CI test jobs by fetching traces, mapping failures to local files, and isolating the smallest rerun only when needed before proposing a fix. Use when given a failing GitLab job URL or job ID, especially for dashboard-api-automation test failures.
---
skillcheck /path/to/SKILL.md

Description quality score: 85/100. Suggestions: Start the description with an action verb (e.g., 'Generates...', 'Validates...').

Why this looks wrong

The description already starts with an action verb: Investigate.

Looking at the implementation in src/skillcheck/rules/description.py, _score_action_verbs() checks the first word against a fixed _ACTION_VERBS allowlist. That list includes verbs like generate, validate, and analyze, but not common verbs such as:

  • investigate / investigates
  • diagnose / diagnoses
  • triage
  • troubleshoot

Because of that, valid verb-led descriptions can still trigger the “Start the description with an action verb” suggestion.

Expected

No action-verb suggestion for descriptions that already begin with a valid action verb.

Actual

The suggestion is still emitted.

Suggested fix

Either:

  • Expand _ACTION_VERBS to include more common verbs used in skill descriptions, or
  • Use stemming, lemmatization, or POS tagging instead of a strict static verb list.

At minimum, adding investigate / investigates and diagnose / diagnoses would fix the repro above.

chris-jackson-actionqa avatar Apr 23 '26 19:04 chris-jackson-actionqa

Fix is on fix/issue-2-action-verbs and will ship as 1.0.2.

Expanded _ACTION_VERBS from ~90 to ~170 entries. The investigation/diagnosis cluster you flagged (investigate, diagnose, triage, troubleshoot) plus adjacent gaps (audit, inspect, examine, search, retrieve, refactor, render, visualize, compare, log, capture, normalize, benchmark, and others) so the next person doesn't open the same issue with Audit failing builds....

Skipped stemming/POS: pulling in nltk or spacy breaks the single-runtime-dep ceiling, and the failure mode is "list incomplete," not "list is the wrong abstraction." If gaps keep surfacing that's the right time to reconsider.

Two deliberate omissions worth flagging: handles is already in _VAGUE_WORDS on purpose, and trigger/triggers would double-count against the trigger-phrase scorer.

Tests: parametrized over every new verb plus a regression case using your exact repro description.

Thanks for the precise repro and the source-code reference.

moonrunnerkc avatar Apr 28 '26 15:04 moonrunnerkc