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で見る