Skip to content
Back to skills

Project Datamodel

ASecurity

"Load, validate, persist, inspect, export, and package Kiln .kiln

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
toolspythonbashapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill project-datamodel --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Project Datamodel?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Project Datamodel
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-project-datamodel/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-project-datamodel)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: project-datamodel
description: "Load, validate, persist, inspect, export, and package Kiln .kiln
  project data models."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# Project datamodel

Use this sub-skill when the task is about Kiln project files and core data-model objects: `Project`, `Task`, `TaskRun`, `TaskOutput`, `Prompt`, `DatasetSplit`, `Skill`, data guides, JSON schemas, input transforms, and safe CLI export of `.kiln` projects.

Do not use this sub-skill to invoke model providers or run a saved task. Route provider/task execution, tools, MCP runtime, and adapter selection to `task-execution-providers-tools`. Route evals, fine-tunes, prompt optimization, and synthetic-data generation workflows to `evals-optimization-finetuning`. Route documents, extraction, vector stores, and RAG to `rag-documents-data`.

## Load these references

1. Read [data-model-and-files.md](references/data-model-and-files.md) for the Python datamodel APIs, parent-child file layout, `load_from_file` / `save_to_file` / `delete`, readonly behavior, task-run leaf filtering, prompts, skills, dataset splits, and data guides.
2. Read [schema-and-input-transforms.md](references/schema-and-input-transforms.md) before creating tasks or task runs with structured JSON input/output, or when diagnosing schema and Jinja input-transform validation errors.
3. Read [cli-package-project.md](references/cli-package-project.md) for `kiln_ai projects list`, `kiln_ai tasks list`, and `kiln_ai package_project` workflows.
4. Read [troubleshooting.md](references/troubleshooting.md) when imports, file loading, schema validation, task-run enumeration, or packaging fail.

## Safe helper

Use [inspect_kiln_project.py](scripts/inspect_kiln_project.py) for read-only inspection of a project file and optional task:

```bash
python scripts/inspect_kiln_project.py --project-file /path/to/project.kiln
python scripts/inspect_kiln_project.py --project-file /path/to/project.kiln --task-id TASK_ID
```

The helper prints project/task metadata and counts without writing files or invoking providers.

## Operating rules

- Prefer `kiln_ai.datamodel` APIs over direct JSON edits; they preserve model types, validation, parent relationships, and on-disk folder conventions.
- When creating child records, pass `parent=` or an explicit stable `path`; then call `save_to_file()`.
- For bulk inspection, use `readonly=True`; for mutation, reload with `readonly=False` or use `mutable_copy()`.
- Remember `Task.runs()` returns leaf runs only by default. Pass `include_intermediate_runs=True` when a full multiturn run chain or exact on-disk inventory is required.
- Treat `delete()` as destructive: for a model file it removes the containing model directory, not just the `.kiln` file.

Files in this skill

  • SKILL.md2.7 KB
  • references/cli-package-project.md7.5 KB
  • references/data-model-and-files.md9.6 KB
  • references/schema-and-input-transforms.md8.3 KB
  • references/troubleshooting.md10.4 KB
  • scripts/inspect_kiln_project.py8.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.