Skip to main content

create-employee

This skill should be used when the task asks to "create an employee", "opprett ein tilsett", "opprett en ansatt", "créer un employé", "criar um funcionário", "Mitarbeiter erstellen", "crear un empleado", or involves creating an employee and optionally assigning roles or contact information in Tripletex.

跳到安装

来源信息

仓库
JardarIversen/ainm-2026
最近来源活动
2026年3月21日 11:30
检测到的 SKILL.md 语言
英语
星标
18
分支
14

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
create_employee
tier
1
task
T01
description
This skill should be used when the task asks to "create an employee", "opprett ein tilsett", "opprett en ansatt", "créer un employé", "criar um funcionário", "Mitarbeiter erstellen", "crear un empleado", or involves creating an employee and optionally assigning roles or contact information in Tripletex.
# Create Employee Exactly 2 API calls. ## Call 1: Get Department + Division (ONE call) ``` GET /employee?fields=id,department(id),employments(id,division(id))&count=1 ``` From the admin employee response, extract: - `department.id` — needed for the new employee - `employments[0].division.id` — needed for inline employment Both come from this single call. Do NOT make a separate GET for employment/division. ## Call 2: Create Employee WITH Inline Employment ```json POST /employee { "firstName": "<first name>", "lastName": "<last name>", "email": "<email>", "dateOfBirth": "<YYYY-MM-DD>", "userType": "NO_ACCESS", "department": {"id": <department_id>}, "employments": [ { "startDate": "<start date from prompt>", "division": {"id": <division_id>}, "isMainEmployer": true, "taxDeductionCode": "loennFraHovedarbeidsgiver" } ] } ``` **Total: 2 calls, 0 errors.** ## userType Selection - `"NO_ACCESS"` — default for most tasks - `"EXTENDED"` — use when prompt mentions "administrator" / "kontoadministrator" / "admin" ## Gotchas - `department` is required — creation fails without it - `startDate` goes on employment, NOT on the employee object - `dateOfBirth` format is "YYYY-MM-DD" - GET /employee with `fields=id,department(id),employments(id,division(id))` returns BOTH department and division in ONE call — do NOT make a second GET
在 GitHub 查看