laffaire
Skill1 starsChanged 9 months agoMITView on GitHub
Use this skill to manage Laffaire calendar projects and entries via its JSON API. Invoke when the user wants to list, create, update, or delete Laffaire events or calendar entries, or asks about their Laffaire instance.
- Sends data out
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Before making any API call, check whether LAFFAIRE_URL and LAFFAIRE_TOKEN are already set in the environment by running a quick test curl.
- Distinctive: line 28
Ask the user what they want to do:
- Very specific: line 40
All routes are under /api/v1/.
- Very specific: line 129
Use curl with $LAFFAIRE_URL and $LAFFAIRE_TOKEN env vars directly — do not hardcode values.
- Distinctive: line 130
Always confirm the action with the user before deleting anything.
- Distinctive: line 131
When creating an entry, if the user does not supply dates/times, ask before defaulting.
- Distinctive: line 132
If the API returns a non-2xx status, show the user the error JSON and suggest next steps.
- Distinctive: line 133
After creating a project, offer to immediately add entries to it.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Laffaire
Manage projects and calendar entries in a Laffaire instance via its JSON API.
In Laffaire, a project is called an Event (a named calendar group), and an individual calendar item within it is called an Entry.
Config
Before making any API call, check whether LAFFAIRE_URL and LAFFAIRE_TOKEN are already
set in the environment by running a quick test curl. If a call fails due to missing variables,
ask the user to provide them:
LAFFAIRE_URL— base URL of the Laffaire instance, e.g.https://example.comLAFFAIRE_TOKEN— a Bearer token created from the/-/tokenspage of the UI
Actions
Ask the user what they want to do:
- List projects — list all their events
- Create a project — create a new named event/calendar group
- List entries — list calendar entries in a project
- Add an entry — add a calendar entry to an existing project
- Delete a project or entry
API Reference
All routes are under /api/v1/. All requests must include:
Authorization: Bearer <token>
Content-Type: application/jsonProjects (Events)
List all projects
GET /api/v1/eventsReturns an array of { id, title, description }.
Create a project
POST /api/v1/events
{ "title": "My Project", "description": "Optional description" }Returns 201 with { id, title, description }. The id is needed to add entries.
Get a project
GET /api/v1/events/{id}Update a project
PUT /api/v1/events/{id}
{ "title": "New Title", "description": "New description" }Delete a project
DELETE /api/v1/events/{id}Returns 204 No Content.
Entries (Calendar Items)
List entries in a project
GET /api/v1/events/{project_id}/entriesReturns an array of entry objects.
Create an entry
POST /api/v1/entries
{
"event_id": "<project id>",
"subject": "Team standup",
"start_date": "2026-03-10",
"start_time": "09:00",
"end_date": "2026-03-10",
"end_time": "09:30",
"all_day_event": false,
"description": "Daily sync",
"location": "Zoom",
"private": false
}event_id and subject are required. Returns 201 with the created entry.
Get an entry
GET /api/v1/entries/{id}Update an entry
PUT /api/v1/entries/{id}
{ "subject": "...", "start_date": "...", ... }subject is required.
Delete an entry
DELETE /api/v1/entries/{id}Returns 204 No Content.
Instructions for Claude
- Use
curlwith$LAFFAIRE_URLand$LAFFAIRE_TOKENenv vars directly — do not hardcode values. - Always confirm the action with the user before deleting anything.
- When creating an entry, if the user does not supply dates/times, ask before defaulting.
- If the API returns a non-2xx status, show the user the error JSON and suggest next steps.
- After creating a project, offer to immediately add entries to it.
Example curl — list projects
curl -s "$LAFFAIRE_URL/api/v1/events" \
-H "Authorization: Bearer $LAFFAIRE_TOKEN"Example curl — create a project
curl -s -X POST "$LAFFAIRE_URL/api/v1/events" \
-H "Authorization: Bearer $LAFFAIRE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"title": "Q2 Roadmap", "description": "Planning items for Q2"}'Example curl — add an entry
curl -s -X POST "$LAFFAIRE_URL/api/v1/entries" \
-H "Authorization: Bearer $LAFFAIRE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"event_id": "<project id from above>",
"subject": "Kickoff meeting",
"start_date": "2026-03-10",
"start_time": "10:00",
"end_date": "2026-03-10",
"end_time": "11:00"
}'Installation
To install this skill as a slash command:
cp skills/laffaire.md ~/.claude/commands/laffaire.mdThen invoke it with /laffaire in any Claude Code session.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

