Skip to content

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

jobbank-search

Verified

Make sure to use this skill whenever the user mentions anything related to job searching on Akademikernes Jobbank, jobbank.dk, or looking for academic or highly educated positions in Denmark — even if they don't mention jobbank.dk explicitly. Also invoke this skill for questions about Danish job listings, graduate trainee positions, Ph.d. jobs, or finding work in specific industries or regions in Denmark. Trigger phrases include: jobbank, akademikernes jobbank, jobs denmark, academic jobs denmark, find job denmark, highly educated jobs, graduate job denmark, trainee position denmark, ph.d. position denmark, postdoc denmark, studiejob, fuldtidsjob, deltidsjob, vikariat, freelance job, praktikplads, job søgning, jobsøgning, søg job, ledige stillinger, nye jobs, it jobs denmark, engineering jobs denmark, marketing jobs denmark, finance jobs denmark, healthcare jobs denmark, remote job denmark, fjernarbejde, job københavn, job aarhus, job odense, nyuddannede job, job til nyuddannede, international job denmark, jobbank søgning, find stilling, data scientist job, software developer job, projektleder stilling, konsulent job, data analyse job.

cli/tests/rss-parsing.test.ts

View on GitHub
import { afterEach, describe, expect, test } from "bun:test";
import {
  extractJobIdFromUrl,
  parseRssDescription,
  rssFetch,
  USER_AGENT,
} from "../src/helpers";

const originalFetch = globalThis.fetch;

afterEach(() => {
  globalThis.fetch = originalFetch;
});

describe("rssFetch", () => {
  test("serializes repeated filters and parses CDATA and plain RSS fields", async () => {
    let requestedUrl = "";
    let requestedUserAgent = "";
    globalThis.fetch = (async (input, init) => {
      requestedUrl = String(input);
      requestedUserAgent = new Headers(init?.headers).get("User-Agent") ?? "";
      return new Response(`<?xml version="1.0"?>
        <rss><channel><item>
          <title><![CDATA[Data Scientist]]></title>
          <description><![CDATA[Fuldtidsjob hos Acme A/S, København (Ansøgningsfrist: 31.07.2026)]]></description>
          <link>https://jobbank.dk/job/12345/acme/data-scientist</link>
          <pubDate>Mon, 13 Jul 2026 08:00:00 GMT</pubDate>
        </item></channel></rss>`);
    }) as typeof fetch;

    const items = await rssFetch({ key: "data science", cvtype: ["3", "6"] });
    const url = new URL(requestedUrl);

    expect(url.pathname).toBe("/job/rss");
    expect(url.searchParams.get("key")).toBe("data science");
    expect(url.searchParams.getAll("cvtype")).toEqual(["3", "6"]);
    expect(requestedUserAgent).toBe(USER_AGENT);
    expect(items).toEqual([
      {
        title: "Data Scientist",
        description: "Fuldtidsjob hos Acme A/S, København (Ansøgningsfrist: 31.07.2026)",
        link: "https://jobbank.dk/job/12345/acme/data-scientist",
        pubDate: "Mon, 13 Jul 2026 08:00:00 GMT",
      },
    ]);
  });
});

describe("parseRssDescription", () => {
  test("separates multiple job types, company, location, and deadline", () => {
    expect(
      parseRssDescription(
        "Fuldtidsjob, Graduate/trainee hos Acme A/S, København (Ansøgningsfrist: 31.07.2026)",
      ),
    ).toEqual({
      jobType: "Fuldtidsjob, Graduate/trainee",
      company: "Acme A/S",
      location: "København",
      deadline: "2026-07-31",
    });
  });

  test("passes an unrecognized deadline shape through for downstream defensive parsing", () => {
    const parsed = parseRssDescription(
      "Fuldtidsjob hos Acme A/S, Odense (Ansøgningsfrist: snarest muligt)",
    );
    expect(parsed.deadline).toBe("snarest muligt");
  });

  test("normalizes a rolling deadline to null", () => {
    expect(
      parseRssDescription("Deltidsjob hos Example ApS, Aarhus (Ansøgningsfrist: løbende)"),
    ).toEqual({
      jobType: "Deltidsjob",
      company: "Example ApS",
      location: "Aarhus",
      deadline: null,
    });
  });

  test("keeps an unstructured description as the company fallback", () => {
    expect(parseRssDescription("Unstructured feed value")).toEqual({
      jobType: "",
      company: "Unstructured feed value",
      location: "",
      deadline: null,
    });
  });
});

describe("extractJobIdFromUrl", () => {
  test("extracts numeric IDs and rejects unsupported URL shapes", () => {
    expect(extractJobIdFromUrl("https://jobbank.dk/job/12345/acme/role")).toBe("12345");
    expect(extractJobIdFromUrl("https://jobbank.dk/job/not-a-number/acme/role")).toBe("");
  });
});
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