ai-dev-kit icon indicating copy to clipboard operation
ai-dev-kit copied to clipboard

Evaluate bundling Anthropic's skill-creator skill for contributors

Open calreynolds opened this issue 8 months ago • 2 comments

Problem

Contributors building new Databricks skills don't have an interactive workflow for drafting, testing, and iterating on skill quality inside Claude Code. Our .test/ framework handles evaluation but isn't packaged as something a contributor can use conversationally.

Proposal

Evaluate integrating Anthropic's official skill-creator skill into the dev/contributor version of ai-dev-kit. This skill provides a structured loop: draft → test → evaluate → improve → repeat, with an eval viewer, grading scripts, and reference docs.

What to figure out

  • [ ] How does it overlap with our existing .test/ framework? Can they complement each other or do we need to reconcile?
  • [ ] Does our TEMPLATE/ structure align with its opinions on skill format, or do we need an adapter?
  • [ ] Should this ship only in a dev/contributor install, not the end-user install?
  • [ ] Licensing — the repo includes a LICENSE.txt that needs review
  • [ ] Does it make sense to vendor it or point to it as a dependency?

Context

  • Anthropic's skill-creator: https://github.com/anthropics/skills/blob/main/skills/skill-creator/SKILL.md
  • Our existing test framework: .test/
  • Related: #337 (skill quality CI), #329 (CONTRIBUTING.md checklist)

calreynolds avatar Mar 18 '26 14:03 calreynolds

@jacksandom

calreynolds avatar Mar 18 '26 16:03 calreynolds

Evaluation Complete: Recommendations and Implementation

After a deep dive into Anthropic's skill-creator and ai-dev-kit's existing .test/ framework, here's what we found and what we built.

Key Finding: Don't vendor the whole thing. Cherry-pick the authoring workflow.

ai-dev-kit's evaluation infrastructure is already far more advanced than skill-creator's. The GEPA optimization framework (stratified train/val splits, Pareto-frontier multi-objective optimization, up to 150 iterations with MLflow tracing) is multiple generations ahead of skill-creator's simple 5-iteration description loop. Same story for grading: ai-dev-kit has MLflow judges across correctness, completeness, and guideline adherence, while skill-creator has a single grader agent.

The one genuine gap skill-creator fills is a structured, conversational authoring workflow for contributors. ai-dev-kit had a 55-line placeholder template and 4 bullet points in CONTRIBUTING.md. That was the bottleneck.

Capability-by-Capability Overlap

Capability skill-creator ai-dev-kit Winner
Frontmatter validation quick_validate.py (basic) validate_skills.py (+ install cross-ref, reserved words) ai-dev-kit
Grading/scoring Single grader agent MLflow judges (correctness, completeness, guidelines) + binary assertions ai-dev-kit
Description optimization 60/40 train/test, 5 iterations GEPA: stratified splits, 15/50/150 iterations, Pareto-frontier, MLflow tracing ai-dev-kit
Eval viewer Self-contained HTML (~61K) MLflow UI ai-dev-kit
Conversational authoring 486-line guided workflow with interview, draft, progressive disclosure 55-line static template skill-creator
Quick trigger test run_eval.py via claude -p Routing eval (heavier weight) Complementary

Format Alignment

  • Frontmatter: Fully compatible. Both use name (kebab-case, <=64 chars) + description (<=1024 chars). No conflicts.
  • SKILL.md structure: skill-creator's progressive disclosure model (metadata, body <500 lines, reference files) aligns with what ai-dev-kit already does implicitly but never documented.
  • Test format: Incompatible. skill-creator uses evals.json, ai-dev-kit uses ground_truth.yaml + manifest.yaml. We bridged this in the authoring workflow by having it output ai-dev-kit's native format.

Licensing

Apache 2.0 (skill-creator) is compatible with DB License (ai-dev-kit). We're adapting the workflow, not vendoring verbatim. Attribution is included in the authoring skill.

What We Built

Phase 1: Contributor Authoring Skill

  • .claude/skills/skill-authoring/SKILL.md (414 lines) with a 6-phase guided workflow adapted from skill-creator
  • Reference files for skill format spec and test format spec
  • Upgraded TEMPLATE/SKILL.md from a 55-line placeholder to a realistic, convention-following template

Phase 2: Quick Trigger Validation

  • .test/scripts/quick_trigger.py for lightweight smoke testing via claude -p
  • Added as a subcommand in the test framework

Phase 3: Documentation Overhaul

  • CONTRIBUTING.md expanded with a comprehensive "Creating New Skills" section and a 13-item quality checklist
  • databricks-skills/README.md now has a "Developing Skills" quick-start for contributors

Phase 4: CI Quality Foundations (bridge to #337)

  • Extended validate_skills.py with 4 non-blocking quality warnings:
    • Description missing "Use when" trigger phrases
    • SKILL.md body exceeding 500 lines
    • Code blocks missing language tags
    • Referenced markdown files not found

Bonus: Dogfooding

  • Used the authoring skill's guidance to fix #330 (databricks-ai-functions) and databricks-dbsql
  • Discovered #331 and #332 are stale (already fixed by prior commits)

How This Feeds Into #337

The quality warnings we added to CI are the foundation for #337. The next step would be to decide which warnings should become errors (blocking) vs. stay as warnings, and potentially add more checks based on what the authoring skill recommends.

Checklist from the Issue

  • [x] How does it overlap with .test/? Eval/optimization are redundant. Authoring workflow is the value.
  • [x] Does TEMPLATE align with its opinions? Yes, after our upgrade. Progressive disclosure model matches.
  • [x] Should this ship only in dev/contributor install? Yes. Lives in .claude/skills/ at repo level, not in install_skills.sh.
  • [x] Licensing? Apache 2.0, fully compatible. Attribution included.
  • [x] Vendor or dependency? Neither. Cherry-picked and adapted the authoring workflow only.

Praneeth16 avatar Mar 24 '26 14:03 Praneeth16