Mahmoud-Qandeel/GetJobIQ / 01-FRAMEWORK/.agents/skills/jobnet-search
jobnet-search
VerifiedMake sure to use this skill whenever the user mentions anything related to Danish job searching, job listings, job vacancies, employment opportunities in Denmark, or the Danish government job portal — even if they don't mention jobnet.dk explicitly. Also invoke this skill for questions about specific job titles, occupations, employers, or regions in a Danish employment context. This skill covers the official Danish public job portal operated by STAR (Styrelsen for Arbejdsmarked og Rekruttering). Trigger phrases include: danish jobs, danish job search, jobnet, jobnet.dk, find job denmark, danish employment, job i danmark, job på jobnet, offentlige job, stillinger i det offentlige, public sector jobs denmark, government jobs denmark, STAR jobs, job ledige stillinger, ledig stilling, søg job, job opslag, job vacancy denmark, stillingopslag, jobopslag, sygepleje job, ingeniør job, lærer job, pædagog job, it-job denmark, jobs in copenhagen, jobs in aarhus, jobs in odense, deltidsjob, fuldtidsjob, fastansættelse, tidsbegrænset ansættelse, fleksjob, sygeplejerske job, social worker job denmark, occupation search denmark, esco occupation, job deadline, ansøgningsfrist, søg efter job, full time job denmark, part time job denmark.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 8.0 KB |
| cli/README.md | markdown | 11.8 KB |
| cli/package.json | manifest | 524 B |
| cli/src/cli.ts | script | 1.7 KB |
| cli/src/commands/detail.ts | script | 4.6 KB |
| cli/src/commands/occupations.ts | script | 2.4 KB |
| cli/src/commands/search.ts | script | 7.7 KB |
| cli/src/commands/suggestions.ts | script | 1.7 KB |
| cli/src/helpers.ts | script | 1.7 KB |
| cli/tests/cli-contract.test.ts | script | 1.6 KB |
| cli/tests/cli-flag-validation.test.ts | script | 4.1 KB |
| cli/tests/detail-formatting.test.ts | script | 3.9 KB |
| cli/tests/helpers.ts | script | 959 B |
| cli/tests/request-timeout.test.ts | script | 868 B |
| cli/tests/retry-backoff.test.ts | script | 1.9 KB |
| cli/tests/search-normalization.test.ts | script | 5.1 KB |
| cli/tests/user-agent.test.ts | script | 1.1 KB |
| cli/tsconfig.json | config | 489 B |
cli/src/commands/detail.ts
View on GitHubimport { defineCommand, option } from "@bunli/core"
import { z } from "zod"
import { apiFetch, writeError, stripHtml } from "../helpers.js"
export interface DetailApiResponse {
id: string
title: string
body: string
publicationDateTime: string
unpublicationDateTime: string | null
approvalStatus: string
views: number
createdDateTime: string
updatedDateTime: string
isAnonymousEmployer: boolean
hasLogo: boolean
logoUrl: string | null
employer: {
cvrNumber: string | null
pNumber: string | null
name: string
hasCompanyLogo: boolean
}
job: {
type: string
address: {
streetName: string | null
city: string | null
postalCode: string | null
municipality: string | null
countryCode: string
countryName: string
}
noFixedWorkplace: boolean
isLimitedPeriod: boolean
isDisabilityFriendly: boolean
isPartTime: boolean
employmentDate: string | null
conceptUriDa: string | null
preferredLabelDa: string | null
driversLicenses: unknown[]
classifications: unknown[]
shifts: unknown[]
isFavorite: boolean
}
application: {
deadlineDate: string | null
availablePositions: number
contactPersons: Array<{
firstNames: string | null
lastName: string | null
phoneNumber: string | null
}>
url: string | null
urlText: string | null
isApplicationDeadlineASAP: boolean
}
organisationTypeId: number | null
user: string | null
}
/**
* Normalize a raw detail response before any output format sees it.
*
* The API's "deadline not disclosed" sentinel is 1900-01-01 (it arrives with
* isApplicationDeadlineASAP / an applicationDeadlineStatus of NotDisclosed).
* The search command already maps that sentinel to null; detail must agree,
* or an undisclosed deadline reads as 126 years expired and /rank's expiry
* sweep retires the job the moment it is stored.
*/
export function prepareDetail(data: DetailApiResponse): DetailApiResponse {
const deadline = data.application.deadlineDate
if (deadline && deadline.startsWith("1900-01-01")) {
data.application.deadlineDate = null
}
return data
}
export const detail = defineCommand({
name: "detail",
description: "Full detail for a single job ad",
options: {
format: option(z.enum(["json", "table", "plain"]).default("json"), {
description: "Output format: json, table, plain",
}),
},
handler: async ({ positional, flags, signal }) => {
if (signal.aborted) return
const id = positional[0] as string | undefined
if (!id) {
writeError("Job ad ID is required", "MISSING_REQUIRED")
process.exit(1)
}
try {
const data = prepareDetail(
await apiFetch<DetailApiResponse>(`/FindJob/JobAdDetails/${id}`, {
incrementViews: "false",
}),
)
if (signal.aborted) return
if (flags.format === "json") {
console.log(JSON.stringify(data, null, 2))
} else if (flags.format === "table") {
outputTable(data)
} else {
outputPlain(data)
}
} catch (err) {
const message = err instanceof Error ? err.message : String(err)
if (message.includes("404") || message.includes("Not Found")) {
writeError("Job ad not found", "NOT_FOUND")
} else {
writeError(message, "API_ERROR")
}
process.exit(1)
}
},
})
function outputTable(data: DetailApiResponse): void {
console.log(`ID: ${data.id}`)
console.log(`Title: ${data.title}`)
console.log(`Employer: ${data.employer.name}`)
console.log(`Type: ${data.job.type}`)
console.log(`City: ${data.job.address.city ?? "-"}`)
console.log(`Postal: ${data.job.address.postalCode ?? "-"}`)
console.log(`Country: ${data.job.address.countryName}`)
console.log(`Published: ${data.publicationDateTime}`)
console.log(`Deadline: ${data.application.deadlineDate ?? "-"}`)
console.log(`Positions: ${data.application.availablePositions}`)
console.log(`Apply URL: ${data.application.url ?? "-"}`)
}
function outputPlain(data: DetailApiResponse): void {
console.log(formatDetailPlain(data))
}
export function formatDetailPlain(data: DetailApiResponse): string {
const lines = [
`Title: ${data.title}`,
`Employer: ${data.employer.name}`,
`Location: ${data.job.address.city ?? "-"}, ${data.job.address.countryName}`,
`Published: ${data.publicationDateTime}`,
`Deadline: ${data.application.deadlineDate ?? "-"}`,
`Positions: ${data.application.availablePositions}`,
]
if (data.application.url) {
lines.push(`Apply: ${data.application.url}`)
}
lines.push("", stripHtml(data.body))
return lines.join("\n")
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |