zaheer037/job-search / .agents/skills/linkedin-search
linkedin-search
VerifiedUse this skill whenever the user wants to search for jobs in any location or market, find job listings, or look up a specific job posting — in any country, city, or remotely. Invoke for open positions, vacancies, and hiring across any sector or role (software, data, design, marketing, finance, legal, operations, etc.). The location is always supplied explicitly by the user. Trigger phrases: find a job, job search, search for jobs, job openings, vacancies, hiring, positions open, remote jobs, "are there any X jobs in <place>", look up this job posting.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.6 KB |
| cli/README.md | markdown | 2.3 KB |
| cli/package.json | manifest | 577 B |
| cli/src/cli.ts | script | 7.5 KB |
| cli/src/commands/detail.ts | script | 1.8 KB |
| cli/src/commands/search.ts | script | 2.5 KB |
| cli/src/helpers.ts | script | 9.9 KB |
| cli/tests/cli-flag-validation.test.ts | script | 6.3 KB |
| cli/tests/helpers.ts | script | 959 B |
| cli/tests/parsing.test.ts | script | 11.1 KB |
| cli/tests/request-timeout.test.ts | script | 922 B |
| cli/tests/retry-backoff.test.ts | script | 2.0 KB |
| cli/tests/search.test.ts | script | 1.7 KB |
| cli/tsconfig.json | config | 305 B |
| url-reference.md | markdown | 1.5 KB |
cli/tests/retry-backoff.test.ts
View on GitHubimport { afterEach, describe, expect, test } from "bun:test";
import { htmlFetch } from "../src/helpers";
// The portal contract requires backoff on 429/5xx. These tests pin the retry
// loop offline: a stubbed fetch counts attempts, and a stubbed setTimeout
// fires immediately so the exhaustion case does not sleep through the real
// 500ms -> 8s backoff schedule.
const originalFetch = globalThis.fetch;
const originalSetTimeout = globalThis.setTimeout;
afterEach(() => {
globalThis.fetch = originalFetch;
globalThis.setTimeout = originalSetTimeout;
});
function instantTimers() {
globalThis.setTimeout = ((fn: () => void) =>
originalSetTimeout(fn, 0)) as unknown as typeof setTimeout;
}
function stubFetch(responses: Array<() => Response>): { calls: number } {
const state = { calls: 0 };
globalThis.fetch = (async () => {
const i = Math.min(state.calls, responses.length - 1);
state.calls++;
return responses[i]();
}) as unknown as typeof fetch;
return state;
}
describe("htmlFetch retry/backoff", () => {
test("retries a 429 and succeeds on the next attempt", async () => {
instantTimers();
const state = stubFetch([
() => new Response("", { status: 429 }),
() => new Response("<html>ok</html>", { status: 200 }),
]);
const html = await htmlFetch("https://www.linkedin.com/x");
expect(html).toContain("ok");
expect(state.calls).toBe(2);
});
test("returns the documented empty string on 404 without retrying", async () => {
const state = stubFetch([() => new Response("", { status: 404 })]);
const html = await htmlFetch("https://www.linkedin.com/x");
expect(html).toBe("");
expect(state.calls).toBe(1);
});
test("gives up after the initial attempt plus six retries on persistent 5xx", async () => {
instantTimers();
const state = stubFetch([() => new Response("", { status: 500 })]);
await expect(htmlFetch("https://www.linkedin.com/x")).rejects.toThrow(/500/);
expect(state.calls).toBe(7);
});
});
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 322k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |