Skip to content

zaheer037/job-search / .agents/skills/jobindex-search

jobindex-search

Verified

Make sure to use this skill whenever the user wants to search for jobs in Denmark, find Danish job listings, look up a specific job posting, or asks anything about the Danish job market — even if they don't mention jobindex.dk explicitly. Invoke this skill for questions about open positions, job vacancies, hiring in Denmark, job opportunities in Danish cities or sectors, or when the user wants to find work in Denmark. Also trigger for phrases like "find me a job", "are there any jobs for X in Copenhagen", or "what jobs are available in Aarhus" when the context is Denmark. Trigger phrases include: jobindex, jobsøgning, job i Danmark, ledige stillinger, job opslag, find job, stillingopslag, jobannonce, job vacancy denmark, danish jobs, jobs in denmark, job search denmark, work in denmark, find work denmark, IT jobs denmark, engineer jobs denmark, developer jobs copenhagen, marketing jobs aarhus, jobs aarhus, jobs copenhagen, jobs odense, jobs aalborg, job openings denmark, hiring denmark, job listings denmark, python jobs denmark, grafisk designer job, data engineer job, softwareudvikler job, full stack developer job danmark.

cli/tests/detail-input.test.ts

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

// buildUrl is the gate between a stored (untrusted) URL and a network fetch.
// It must yield a canonical jobindex fetch target or null (-> BAD_ID) - never
// the raw input. The unguarded version fetched any http(s) URL verbatim and,
// when the path didn't match, used the whole input URL as the id, so a
// non-posting page came back as a well-formed fake posting with exit 0 (#447).

describe("jobindex detail input parsing", () => {
  test("canonical URL with title slug", () => {
    expect(buildUrl("https://www.jobindex.dk/jobannonce/h1647303/senior-data-engineer")).toEqual({
      url: "https://www.jobindex.dk/jobannonce/h1647303",
      id: "h1647303",
    });
  });

  test("trailing slash and query string variants", () => {
    expect(buildUrl("https://www.jobindex.dk/jobannonce/r13677312/")?.id).toBe("r13677312");
    expect(buildUrl("https://www.jobindex.dk/jobannonce/h1647303?utm_source=x")?.id).toBe("h1647303");
  });

  test("jobindex subdomains and bare apex are accepted", () => {
    expect(buildUrl("https://it.jobindex.dk/jobannonce/h1647303")?.id).toBe("h1647303");
    expect(buildUrl("https://jobindex.dk/jobannonce/h1647303")?.id).toBe("h1647303");
  });

  test("a bare id builds the canonical URL (server 404s unknowns loudly)", () => {
    expect(buildUrl("h1647303")).toEqual({
      url: "https://www.jobindex.dk/jobannonce/h1647303",
      id: "h1647303",
    });
  });

  test("an off-host URL is rejected, not fetched", () => {
    expect(buildUrl("https://evil.example/jobannonce/h1647303")).toBeNull();
  });

  test("look-alike and userinfo hosts are rejected", () => {
    expect(buildUrl("https://jobindex.dk.evil.example/jobannonce/h1647303")).toBeNull();
    expect(buildUrl("https://www.jobindex.dk@evil.example/jobannonce/h1647303")).toBeNull();
  });

  test("an own-host URL without a jobannonce id is rejected (the fake-posting repro)", () => {
    expect(buildUrl("https://www.jobindex.dk/")).toBeNull();
  });

  test("garbage bare input is rejected", () => {
    expect(buildUrl("not a slug!")).toBeNull();
    expect(buildUrl("ftp://www.jobindex.dk/jobannonce/h1")).toBeNull();
  });
});
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 323kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall