Tmux
trpc-group/trpc-agent-go
Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
Fix mypy --strict type errors in crawler files. An agent skill from opensanctions/opensanctions.
$ npx skills add opensanctions/opensanctions --skill typechecker-fixes -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install opensanctions/opensanctions typechecker-fixes --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/opensanctions/opensanctions.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/typechecker-fixes .claude/skills/typechecker-fixes && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "typechecker-fixes" agent skill from https://github.com/opensanctions/opensanctions/tree/main/.claude/skills/typechecker-fixes into .claude/skills/typechecker-fixes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typechecker-fixes", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/opensanctions/opensanctions/tree/main/.claude/skills/typechecker-fixesType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add opensanctions/opensanctions --skill typechecker-fixes -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install opensanctions/opensanctions typechecker-fixes --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/opensanctions/opensanctions.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/typechecker-fixes .agents/skills/typechecker-fixes && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "typechecker-fixes" agent skill from https://github.com/opensanctions/opensanctions/tree/main/.claude/skills/typechecker-fixes into .agents/skills/typechecker-fixes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typechecker-fixes", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add opensanctions/opensanctions --skill typechecker-fixes -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install opensanctions/opensanctions typechecker-fixes --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/opensanctions/opensanctions.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/typechecker-fixes .cursor/skills/typechecker-fixes && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "typechecker-fixes" agent skill from https://github.com/opensanctions/opensanctions/tree/main/.claude/skills/typechecker-fixes into .cursor/skills/typechecker-fixes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typechecker-fixes", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/opensanctions/opensanctions.git --path .claude/skills/typechecker-fixes--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add opensanctions/opensanctions --skill typechecker-fixes -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install opensanctions/opensanctions typechecker-fixes --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/opensanctions/opensanctions.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/typechecker-fixes .gemini/skills/typechecker-fixes && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "typechecker-fixes" agent skill from https://github.com/opensanctions/opensanctions/tree/main/.claude/skills/typechecker-fixes into .gemini/skills/typechecker-fixes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typechecker-fixes", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install opensanctions/opensanctions typechecker-fixesInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add opensanctions/opensanctions --skill typechecker-fixes -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/opensanctions/opensanctions.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/typechecker-fixes .github/skills/typechecker-fixes && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "typechecker-fixes" agent skill from https://github.com/opensanctions/opensanctions/tree/main/.claude/skills/typechecker-fixes into .github/skills/typechecker-fixes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typechecker-fixes", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add opensanctions/opensanctions --skill typechecker-fixes -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install opensanctions/opensanctions typechecker-fixes --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/opensanctions/opensanctions.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/typechecker-fixes .opencode/skills/typechecker-fixes && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "typechecker-fixes" agent skill from https://github.com/opensanctions/opensanctions/tree/main/.claude/skills/typechecker-fixes into .opencode/skills/typechecker-fixes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typechecker-fixes", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
typechecker-fixesFix mypy --strict type errors in crawler files. An agent skill from opensanctions/opensanctions.
Typechecker Fixes is an agent skill from opensanctions/opensanctions. Fix mypy --strict type errors in crawler files. Use when the user asks to make the typechecker happy, fix types, or add type annotations to a crawler.
Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Data & Analytics, covering Web scraping and Type safety. The repository describes itself as: An open database of international sanctions data, persons of interest and politically exposed persons. The licence is MIT.
10 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 4499adf. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
mypyFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Typechecker Fixes loads about 2.6k tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 822 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from opensanctions/opensanctions at commit 4499adf, republished under its MIT licence (© opensanctions). 822 words, ~2,566 tokens.
.claude/skills/typechecker-fixes/SKILL.md (or your agent's skills folder).Fix mypy strict-mode errors in opensanctions crawler files. Run mypy --strict --explicit-package-bases on the target directory to find errors, then apply the patterns below.
zavod/zavod/helpers/html.py — typed HTML helpers (xpath_strings, xpath_elements, xpath_element, element_text)zavod/zavod/util.py — Element and ElementOrTree type aliasesmypy --strict <crawler.py> to see current errorsmypy --strict <crawler.py> again to verify errors resolved-> None return type to all functions that don't return a valueThis is the single most common fix. Every crawl(), crawl_row(), crawl_item(), parse_*(), and helper function that doesn't return needs -> None.
# Before
def crawl(context: Context):
def crawl_row(context: Context, row: dict):
def apply_identifier(context: Context, entity: Entity, id_number_line: str):
# After — pick the narrowest value type the row actually contains (see pattern #3)
def crawl(context: Context) -> None:
def crawl_row(context: Context, row: dict[str, str | None]) -> None:
def apply_identifier(context: Context, entity: Entity, id_number_line: str) -> None:# Before
def crawl_item(input_html, context: Context):
def crawl_term(context, link: HtmlElement, ...):
# After
def crawl_item(input_html: Element, context: Context) -> None:
def crawl_term(context: Context, link: HtmlElement, ...) -> None:dict with the narrowest value type the code actually usesPick the value type by looking at every assignment into the dict. Use Any only as a last resort. In order of preference:
dict[str, str] — all values are strings (e.g. h.xpath_strings(...)[0], string literals, city.get("key", "")).dict[str, str | None] — some values can legitimately be None (e.g. element.text, element.get("attr"), record.get(key) with no default). At consumer sites that need str, narrow with a local + assert value is not None or relax the consumer's signature to accept None.dict[str, Any] — only when values are genuinely heterogeneous (mixed types that can't be expressed as a simple union, e.g. str, int, nested list/dict). Prefer a TypedDict if the dict has a fixed schema.# Before
def crawl_item(input_dict: dict, context: Context):
json_data = { ... }
# After — values are all strings
def crawl_item(input_dict: dict[str, str], context: Context) -> None:
json_data: dict[str, str] = { ... }
# After — values include str | None from element.text
record: dict[str, str | None] = {}
record["name"] = row[0].text # str | None
record["url"] = urljoin(base, row[0].get("href")) # str
# After — truly heterogeneous (resort to Any)
from typing import Any
item: dict[str, Any] = {"name": "x", "count": 3, "tags": [...]}When you tighten to dict[str, str | None], expect two or three follow-up errors at call sites that expect strict str (e.g. context.fetch_html). Handle each by either:
url = record["url"]; assert url is not None.None is a semantically valid input (e.g. is_valid(regno: str | None) returning False for None).Use lowercase dict, list, set, tuple — not the deprecated Dict, List, Set, Tuple from typing. While fixing types, also migrate any existing typing.Dict etc. to builtins.
.xpath(), .find() and .findall() calls with typed h.xpath_* helpersThe raw lxml .xpath() returns Any. Use the zavod helpers instead:
# Before — returns Any
links = doc.xpath(".//a/@href")
elements = doc.xpath('.//div[@class="item"]')
text = doc.xpath(".//h1/text()")[0]
# After — properly typed
links = h.xpath_strings(doc, ".//a/@href")
elements = h.xpath_elements(doc, './/div[@class="item"]')
text = h.xpath_string(doc, ".//h1/text()")When iterating over elements only to extract an attribute (e.g. .get("href")), move the attribute into the xpath and use h.xpath_strings instead:
# Before
for anchor in doc.xpath('//a[contains(@class, "name")]'):
url = anchor.get("href")
crawl_page(context, url)
# Also before (already migrated to xpath_elements but still using .get)
for anchor in h.xpath_elements(doc, '//a[contains(@class, "name")]'):
url = anchor.get("href")
crawl_page(context, url)
# After
for url in h.xpath_strings(doc, '//a[contains(@class, "name")]/@href'):
crawl_page(context, url)Use h.xpath_element() (singular) when you expect exactly one match:
# Before
divs = doc.xpath(divs_xpath)
assert len(divs) == 1
content = divs[0]
# After
content = h.xpath_element(doc, divs_xpath).text_content() with h.element_text()h.element_text() calls text_content() internally and applies collapse_spaces + strip. If the original code was calling squash_spaces or collapse_spaces on the result, that's now redundant and should be removed. If the extracted text is used for lookups (check the lookups: section in the crawler's .yml file) or exact comparisons, pass squash=False to preserve the original whitespace.
Watch out for code that splits the text on \n (or otherwise relies on line breaks) — the default squash=True collapses newlines into spaces, which silently breaks the splitting and merges all rows into one. Always pass squash=False in that case.
# Before
name_info = summary.text.strip()
body = body_els[0].text_content().strip()
category = squash_spaces(row.pop("category").text_content())
# After
name_info = h.element_text(summary)
body = h.element_text(body_els[0])
category = h.element_text(row.pop("category"))
# When exact text matters (used in lookups or comparisons):
label = h.element_text(el, squash=False)from zavod.util import Element, ElementOrTree for lxml type annotationsDon't use lxml.etree._Element (private API) or xml.etree.ElementTree. Use the re-exported types:
# Before
from lxml import etree
def parse_record(context: Context, el: etree._Element):
# After
from zavod.util import Element
def parse_record(context: Context, el: Element) -> None:Iterator instead of Generator when only yielding# Before
from typing import Generator
def parse_csv(context: Context, path: str) -> Generator[Item, None, None]:
# After
from typing import Iterator
def parse_csv(context: Context, path: str) -> Iterator[Item]:# Before
def clean_address(text):
def extract_passport_no(text):
# After
def clean_address(text: str | None) -> list[str] | None:
def extract_passport_no(text: str | None) -> list[str] | None:When a function has many parameters, add * to force keyword arguments — this catches argument-order bugs at the call site:
# Before
def emit_linked_org(context, vessel_id, names, role, date):
...
emit_linked_org(context, vessel.id, related_ros, "Related Recognised Organization", start_date)
# After
def emit_linked_org(context: Context, *, vessel_id: str | None, names: str, role: str, date: str | None) -> None:
...
emit_linked_org(context, vessel_id=vessel.id, names=related_ros, role="Related Recognised Organization", date=start_date)If the function returns a tuple, add a docstring comment to briefly describe the contents of the tuple. This is not a typechecker fix, but it helps readability since tuples don't have named fields.
# type: ignore as a last resort# type: ignore[<code>] is only acceptable when the error originates from an external library with incomplete stubs (e.g. requests, operator.concat) and the runtime behaviour is demonstrably correct. Before reaching for it:
# Bad — silences the error without explaining it
context.http.cookies.set(name, value) # type: ignore[no-untyped-call]
# Good — explanatory comment on the line before, type: ignore on the offending line
# requests stubs don't type RequestsCookieJar.set()
context.http.cookies.set(name, value) # type: ignore[no-untyped-call]
# Good — explains the typing gap vs runtime reality
# operator.concat is typed Sequence→Sequence, not list→list; runtime is correct
aliases = reduce(concat, alias_lists, []) # type: ignore[arg-type]Never use # type: ignore to paper over errors in your own code — those should be fixed properly.
dict[str, str] > dict[str, str | None] > dict[str, Any]. Only fall back to Any when the values are genuinely heterogeneous.str | None union syntax, not Optional[str], and lowercase dict/list/set not Dict/List/Set — but only when you're already editing the line for another reason. Do not make cosmetic-only changes to lines that have no type errors.context: Context parameter should always be first in crawler functions.© opensanctions, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/typechecker-fixes of opensanctions/opensanctions.
Open the folder on GitHubat commit 4499adf
Typechecker Fixes next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Typechecker Fixes this skillopensanctions/opensanctions | 831 | — | ~2.6k | Automated safety check: Pass | MIT | |
| Tmuxtrpc-group/trpc-agent-go | 1.8k | 23 repos | ~868 | Automated safety check: Pass | Apache-2.0 | |
| Ketch1broseidon/ketch | 696 | 1 repos | ~3.9k | Automated safety check: Pass | MIT | |
| Crawl4AI Web Scrapingsmallnest/goclaw | 598 | 1 repos | ~2.5k | Automated safety check: Pass | MIT | |
| Boss Zhipin Scrapereatmoreduck/boss-zhipin-scraper | 1.5k | — | ~2.6k | Automated safety check: Pass | MIT | |
| Axyusukebe/ax | 719 | 1 repos | ~918 | Automated safety check: Pass | MIT |
trpc-group/trpc-agent-go
Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
1broseidon/ketch
Research skill for ketch — a fast stateless CLI for web search, OSS code search, curated library docs, page scraping, and site crawling; an optional MCP server exists for operators who want it, but…
smallnest/goclaw
Scrapes sites, handles JavaScript-heavy pages and extracts structured data with Crawl4AI, through its crwl CLI or Python SDK, including schema-based extraction without an LLM.
eatmoreduck/boss-zhipin-scraper
Scrape BOSS直聘 (job listing site) via Chrome CDP. An agent skill from eatmoreduck/boss-zhipin-scraper.
yusukebe/ax
Use the ax CLI instead of curl + throwaway parsing scripts whenever you fetch a URL, explore an unknown web page, or extract structured data from HTML.
Anakin-Inc/anakin
Scrape any website into clean markdown or structured JSON. An agent skill from Anakin-Inc/anakin.
opensanctions/opensanctions
Scaffold a new PEP (Politically Exposed Persons) crawler — members of a parliament, legislature, senate, chamber of deputies, cabinet, judiciary, or an asset-declaration register — from a source URL…
opensanctions/opensanctions
Move hardcoded lookup/config constants (gender maps, header dicts, value translations, column-label maps, date formats) out of a crawler and into the dataset .yml — as datapatch lookups wherever…
opensanctions/opensanctions
Bring a dataset .yml's metadata in line with house conventions (title, summary, description, coverage, publisher, maintainer comments).
opensanctions/opensanctions
Refactor the title, description and coverage frequency of a legislature/parliament PEP dataset .yml into the house style.
opensanctions/opensanctions
Migrate ad-hoc name cleaning in a crawler to h.reviewnames (Step 1 of the name framework migration).
opensanctions/opensanctions
Rewrite messy or AI-generated crawler code into clean, production-ready style that follows the zavod best practices.
Categories
Fix mypy --strict type errors in crawler files. An agent skill from opensanctions/opensanctions. Typechecker Fixes is an agent skill from opensanctions/opensanctions. Fix mypy --strict type errors in crawler files.
Typechecker Fixes fits situations like: the user asks to make the typechecker happy; add type annotations to a crawler.
Run `npx skills add opensanctions/opensanctions --skill typechecker-fixes -a claude-code`. Or copy the skill folder (.claude/skills/typechecker-fixes in opensanctions/opensanctions) into .claude/skills/typechecker-fixes in your project. Claude Code loads it when a task matches its description.
Run `npx skills add opensanctions/opensanctions --skill typechecker-fixes -a codex`. Or copy the skill folder (.claude/skills/typechecker-fixes in opensanctions/opensanctions) into .agents/skills/typechecker-fixes in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add opensanctions/opensanctions --skill typechecker-fixes -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/typechecker-fixes, .gemini/skills/typechecker-fixes, .github/skills/typechecker-fixes and .opencode/skills/typechecker-fixes in your project.
Going by SKILL.md and its folder, Typechecker Fixes needs the command-line tools its instructions call (mypy). Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Typechecker Fixes is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.6k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Typechecker Fixes: Tmux (trpc-group/trpc-agent-go, 1.8k stars), Ketch (1broseidon/ketch, 696 stars), Crawl4AI Web Scraping (smallnest/goclaw, 598 stars) and Boss Zhipin Scraper (eatmoreduck/boss-zhipin-scraper, 1.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
opensanctions (a GitHub organization) maintains it in opensanctions/opensanctions, which has 831 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 7, 2026.
Source: opensanctions/opensanctions on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.