Skip to content

Mahmoud-Qandeel/GetJobIQ / 01-FRAMEWORK/.agents/skills/jobnet-search

jobnet-search

Verified

Make 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.

cli/tests/detail-formatting.test.ts

View on GitHub
import { describe, expect, test } from "bun:test";
import { formatDetailPlain, prepareDetail, type DetailApiResponse } from "../src/commands/detail";

function detail(overrides: Partial<DetailApiResponse> = {}): DetailApiResponse {
  return {
    id: "job-1",
    title: "Data Engineer",
    body: "<p>Build ETL &amp; analytics flows.</p><p>Use SQL&nbsp;daily.</p>",
    publicationDateTime: "2026-07-01T09:00:00+02:00",
    unpublicationDateTime: "2026-08-01T23:59:00+02:00",
    approvalStatus: "Godkendt",
    views: 10,
    createdDateTime: "2026-07-01T08:00:00+02:00",
    updatedDateTime: "2026-07-01T08:30:00+02:00",
    isAnonymousEmployer: false,
    hasLogo: true,
    logoUrl: "/logo/job-1",
    employer: {
      cvrNumber: "12345678",
      pNumber: "87654321",
      name: "Acme",
      hasCompanyLogo: true,
    },
    job: {
      type: "FullTime",
      address: {
        streetName: "Examplevej 1",
        city: "København",
        postalCode: "2100",
        municipality: "København",
        countryCode: "DK",
        countryName: "Danmark",
      },
      noFixedWorkplace: false,
      isLimitedPeriod: false,
      isDisabilityFriendly: false,
      isPartTime: false,
      employmentDate: null,
      conceptUriDa: null,
      preferredLabelDa: null,
      driversLicenses: [],
      classifications: [],
      shifts: [],
      isFavorite: false,
    },
    application: {
      deadlineDate: "2026-08-01T23:59:00+02:00",
      availablePositions: 2,
      contactPersons: [],
      url: "https://example.test/apply",
      urlText: "Apply",
      isApplicationDeadlineASAP: false,
    },
    organisationTypeId: null,
    user: null,
    ...overrides,
  };
}

describe("formatDetailPlain", () => {
  test("renders the plain view with cleaned body text and apply URL", () => {
    const formatted = formatDetailPlain(detail());

    expect(formatted).toContain("Title: Data Engineer");
    expect(formatted).toContain("Employer: Acme");
    expect(formatted).toContain("Location: København, Danmark");
    expect(formatted).toContain("Apply: https://example.test/apply");
    expect(formatted).toContain("Build ETL & analytics flows. Use SQL daily.");
    expect(formatted).not.toContain("<p>");
    expect(formatted).not.toContain("&amp;");
  });

  test("uses placeholders when optional city, deadline, and apply URL are absent", () => {
    const formatted = formatDetailPlain(
      detail({
        job: {
          ...detail().job,
          address: {
            ...detail().job.address,
            city: null,
          },
        },
        application: {
          ...detail().application,
          deadlineDate: null,
          url: null,
        },
      }),
    );

    expect(formatted).toContain("Location: -, Danmark");
    expect(formatted).toContain("Deadline: -");
    expect(formatted).not.toContain("Apply:");
  });
});


describe("prepareDetail deadline sentinel", () => {
  // The API's "deadline not disclosed" sentinel is 1900-01-01 (paired with
  // isApplicationDeadlineASAP / applicationDeadlineStatus). search maps it to
  // null and has a test pinning that; detail dumped the raw response, so an
  // undisclosed deadline read as 126 years expired and /rank's sweep would
  // retire the job instantly (review finding F33, 2026-08-19).
  test("maps the 1900-01-01 undisclosed sentinel to null", () => {
    const data = detail();
    data.application.deadlineDate = "1900-01-01T00:00:00+01:00";
    expect(prepareDetail(data).application.deadlineDate).toBeNull();
  });

  test("keeps a real deadline unchanged", () => {
    const data = detail();
    data.application.deadlineDate = "2026-09-01T00:00:00+02:00";
    expect(prepareDetail(data).application.deadlineDate).toBe("2026-09-01T00:00:00+02:00");
  });

  test("keeps a null deadline null", () => {
    const data = detail();
    data.application.deadlineDate = null;
    expect(prepareDetail(data).application.deadlineDate).toBeNull();
  });
});
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: 472kUpdated Claude CodeCodexVerifiedInstall
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: 323kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 323kUpdated Claude CodeCodexVerifiedInstall
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 availableStars: 323kUpdated Claude CodeCodexVerifiedInstall