executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
ontologies-and-model-interfacesGuides custom Autodistill ontologies, base/target model interfaces, composed detection, and embedding workflows.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a task asks how to design an ontology, implement a custom base or target model, check interface conformance, compose detection and classification models, or reason about embedding/text-classification surfaces.
Autodistill core classes define contracts; concrete model behavior normally lives in plugin packages. If the task is only to label a folder using an existing plugin, start with dataset labeling. If the task is to pick a CLI alias or inspect installed plugins, start with CLI and model registry.
A base model maps user data plus an ontology to predictions or labeled datasets:
from autodistill.detection import CaptionOntology, DetectionBaseModel
class MyDetector(DetectionBaseModel):
def __init__(self, ontology: CaptionOntology):
self.ontology = ontology
def predict(self, input):
# return supervision.Detections
...
The inherited DetectionBaseModel.label() method will call predict() for every selected image and write the detection dataset. Use dataset labeling to validate the output layout.
CaptionOntology rejects empty mappings and raises lookup errors for missing prompts/classes.CustomDetectionModel or CombinedDetectionModel in some composition examples. In this source snapshot, the available class is autodistill.core.composed_detection_model.ComposedDetectionModel.TextClassificationBaseModel.label(...) is a stub (pass) in this snapshot; do not claim it writes a dataset without a plugin override.