Agent skills
The Timefold agent skills explain, in plain language, a dataset that a Timefold model has optimized. The Timefold agent skills run in your own AI agent.
Use the Timefold agent skills in your own AI agent
Explain a dataset
The explain-dataset skills explain a dataset that a Timefold model has optimized. There are four explain-dataset skills:
-
explain-dataset-essfor the Employee Shift Scheduling model -
explain-dataset-fsrfor the Field Service Routing model -
explain-dataset-pdrfor the Pick-up and Delivery Routing model -
explain-dataset-customfor a model that you built and deployed to Timefold Platform
To add the skills to your agent, see Install the skills.
An explain-dataset skill answers questions such as:
-
Why is this work item unassigned?
-
Why did the model assign this resource to this work item?
-
Where are the coverage gaps and the bottlenecks?
-
What does this score mean?
-
What can I change to get a better plan?
The skill works in two steps:
-
Explain: the skill finds the bottlenecks in the dataset and ranks them by impact.
-
Propose: for each bottleneck, the skill proposes changes to the input or to the constraint weights, ranked by confidence.
Custom models
The explain-dataset-custom skill explains a dataset of a model that has no model-specific skill.
When the skill starts, it learns the model from the model’s constraints, default weights, configuration parameters, and KPIs, from the model’s OpenAPI spec, and from the dataset.
To find the decisions that the model made, the skill compares the dataset’s input and output.
Before the analysis, the skill shows a short profile of the model: the work, the resources, the decisions, how the model shows unassigned work, and the constraint groups. The explanation uses the model’s own terms.
Give the skill the dataset’s URL in Timefold Platform, or the model’s API URL and the dataset ID.
For the Employee Shift Scheduling, Field Service Routing, and Pick-up and Delivery Routing models, use the model-specific skill. The model-specific skills know more about the model and link to the model’s docs.
Questions before the analysis
Before the analysis starts, explain-dataset-ess, explain-dataset-fsr, and explain-dataset-pdr ask three questions to fit the explanation to its reader.
Each skill skips a question that your request already answers, for example "explain this dataset for a planner, in Dutch".
- Who will read the explanation?
-
-
A scheduler or planner gets plain language and concrete changes to make in the plan.
-
A support or implementation consultant also gets the name of each constraint involved, the input setting to change, and a link to the matching docs page.
-
A developer or integrator also gets the exact fields and values, the score breakdown, and a log of every API call that the analysis made.
-
- How much detail do you want?
-
A full report saved as a file, or a short summary in the chat. After a short summary, you can ask for the full report or for a deeper look at one problem.
- Which language should the explanation be in?
-
English, Dutch, German, French, or another language that you name. Constraint names, IDs, and links stay in English.
Each skill keeps your answers for the rest of the conversation.
Output and data access
The skills don’t produce a fixed format such as a PDF. Ask your agent to turn the analysis into the format that you need, such as a slide deck or an email.
The skills reach your dataset through the Timefold API and only read the dataset. To test an alternative, such as another assignment, a skill asks the model what that alternative would cost. That request doesn’t change the dataset.
Example prompts
Ask your agent in your own words, and give it the dataset ID or the dataset’s URL in Timefold Platform. The agent selects the skill for your model. For example:
-
"Explain schedule
<dataset-url>for a planner. Why does Ann have no shift on Monday?" -
"Why are 12 visits in route plan
<dataset-url>unassigned?" -
"Why did the model assign this pick-up to Carl’s vehicle?"
-
"What can I change to cover more shifts in this schedule?"
-
"Summarize the three biggest bottlenecks of dataset
<dataset-id>in Dutch."
Install the skills
The Timefold skills are in the TimefoldAI/skills repository on GitHub. The skills follow the open Agent Skills standard. The skills work in any agent that supports the standard, such as Claude Code, Cursor, Codex, and GitHub Copilot. Install the skills in one of the following ways.
Any agent: give it this prompt
Copy this prompt into your agent:
Run 'npx skills add TimefoldAI/skills' and install all the skills locally in this project folder. Install them for the agent harness this prompt was run in.
The agent runs the command and installs the skills in the folder that its own harness reads. Use this option if you don’t know which of the commands below applies to your agent.
Claude Code
claude plugin marketplace add TimefoldAI/skills
claude plugin install timefold-skills@timefold
Other agents
npx skills add TimefoldAI/skills
The skills CLI finds the agents that you have installed and asks which skills to add.
Add -g to install the skills for all your projects.
Prerequisites
Export the API key as TIMEFOLD_API_KEY in the shell that you start your agent from:
export TIMEFOLD_API_KEY=<your-api-key>
The skills only accept the API key from the environment.
That way, the key stays out of the agent’s conversation.
To skip the tenant ID question, export your tenant ID as TIMEFOLD_TENANT.
If you use a Timefold Platform installation other than https://app.timefold.ai, such as https://app-us1.timefold.ai, export the installation’s URL as TIMEFOLD_PLATFORM_URL.
The skills don’t require Python. With uv or Python 3.9 or later installed, the skills analyze a large dataset faster and in more detail. We recommend uv: uv is one binary, needs no administrator rights, and provides a Python if your machine has none.
Define requirements in your own AI agent
To define the requirements of a new optimization model in your own AI agent, use the Timefold PRD plugin for Claude Code or the PRD Assistant MCP connector. See Use in AI tools.