Add skill authoring workflow, CI quality checks, and trigger phrase fixes
Summary
This PR addresses #338 (evaluate bundling Anthropic's skill-creator) and also fixes #330 (missing "Use when" trigger for databricks-ai-functions).
We did a thorough evaluation of Anthropic's skill-creator against ai-dev-kit's existing .test/ framework. The conclusion: ai-dev-kit's evaluation and optimization tools (GEPA, MLflow judges, trace scoring) are already far stronger than what skill-creator offers. The one area where skill-creator genuinely fills a gap is its conversational skill authoring workflow for contributors. We cherry-picked that and adapted it for ai-dev-kit's conventions and formats.
What changed
New: Contributor authoring skill (.skill-authoring/)
- A 6-phase guided workflow (Capture Intent > Interview > Write SKILL.md > Write Tests > Validate & Register > Evaluate & Improve), adapted from Anthropic's skill-creator (Apache 2.0, attributed)
- Reference docs covering skill format specification (frontmatter rules, progressive disclosure, section conventions) and test format specification (ground_truth.yaml, manifest.yaml, routing tests)
- A sync script to install into
.claude/skills/for contributors who clone the repo
New: Quick trigger validation (.test/scripts/quick_trigger.py)
- Lightweight smoke test that runs prompts through
claude -pand checks if a skill triggers correctly - Auto-discovers test cases from
_routing/ground_truth.yamlor accepts custom prompts via--prompts - Registered as a
quick-triggersubcommand in the test framework
Improved: CI quality warnings (.github/scripts/validate_skills.py)
- Four new non-blocking quality checks surfaced as
::warning::annotations in CI:- Description missing "Use when" trigger phrases
- SKILL.md body exceeding 500 lines (should use reference files)
- Code blocks missing language tags (e.g. bare
instead ofpython) - Referenced markdown files that don't exist
- These lay the groundwork for #337 (skill quality CI checks)
Improved: TEMPLATE (databricks-skills/TEMPLATE/)
- Upgraded SKILL.md from a 55-line generic placeholder to a realistic template that follows the conventions seen in the best existing skills
- Upgraded example reference files from dummy code to useful patterns (API reference template, migration guide template)
Improved: Contributor documentation
CONTRIBUTING.mdnow has a full "Adding New Skills" section with the recommended authoring workflow, manual workflow steps, a 13-item quality checklist, and links to the evaluation frameworkdatabricks-skills/README.mdnow has a "Developing Skills" quick-start section for contributors
Fixed: Missing trigger phrases (#330 and databricks-dbsql)
- Added "Use when" clause to
databricks-ai-functionsdescription - Added "Use when" clause to
databricks-dbsqldescription - All 25 skills now pass the trigger phrase check
Why we didn't vendor skill-creator
| Capability | skill-creator | ai-dev-kit | Winner |
|---|---|---|---|
| Frontmatter validation | basic | + install cross-ref, reserved words | ai-dev-kit |
| Grading | single agent | MLflow judges (3 dimensions) + assertions | ai-dev-kit |
| Description optimization | 5 iterations, 60/40 split | GEPA: up to 150 iterations, Pareto-frontier, MLflow tracing | ai-dev-kit |
| Authoring workflow | 486-line interactive guide | 55-line placeholder template | skill-creator |
We took the one thing skill-creator does better and adapted it for our repo.
Stale issues discovered
While dogfooding these changes, we found that #331 (databricks-aibi-dashboards) and #332 (spark-python-data-source) are already resolved. Both skills already have trigger phrases from a prior commit. Comments have been left on those issues.
Test plan
We validated the changes as thoroughly as the local environment allowed:
- [x] File structure: All 14 files (6 new, 8 modified) created at correct paths
- [x] Python syntax: Both
.pyfiles passast.parse()cleanly - [x] Code block regex: Tested against all 25 skills. Correctly detects untagged opening blocks without false positives on closing ``` markers. (We caught and fixed a bug where closing fences were being counted as untagged blocks.)
- [x] "Use when" detection: Scanned all 25 skill descriptions. Correctly flags 4 skills that were missing triggers before fixes (databricks-ai-functions, databricks-dbsql, databricks-jobs, spark-python-data-source). After fixes, all pass.
- [x] Body length check: Correctly flags databricks-python-sdk (620 lines) and databricks-spark-declarative-pipelines (572 lines) as over the 500-line threshold
- [x] Referenced file check: Correctly identifies 4 broken references to
../databricks-app-apx/SKILL.mdacross skills - [x] Frontmatter validation: skill-authoring (name: valid, desc: 313 chars with "Use when") and TEMPLATE both parse correctly
- [x] Description length: databricks-ai-functions (648 chars) and databricks-dbsql (848 chars), both under 1024 limit
- [x] Dogfooding: Used the authoring skill's guidance to fix #330 and databricks-dbsql, validating the workflow end to end
- [ ] Ruff linting: Could not run locally due to network/TLS restrictions (CI will cover this)
- [ ] Full validate_skills.py run: Requires pyyaml which was not available locally (CI will cover this)
- [ ] quick_trigger.py live run: Requires
claudeCLI with a skill installed (manual test by contributor)
This pull request was AI-assisted by Isaac.
@Praneeth16 this looks great! Only question -- could you move your new skill into the .claude for this project? We keep our developer related skills there 👍
@calreynolds moved the skill into .claude
@calreynolds could you please review the changes