land-ts-mono
БесплатноБез исполняемых скриптовНе проверенLand a PR that requires a coordinated ts-mono submodule change. Use when the check-schema-and-types CI job fails, when a Python model change requires…
от UKGovernmentBEIS★ 3 389 звёзд на GitHubОб этом скилле
Landing coordinated ts-mono changes
A change in this repo sometimes requires a matching change in the ts-mono submodule — most commonly because a Python model feeding the type-generation pipeline changed, which regenerates a file inside the submodule. Landing then requires a cross-repo dance: a ts-mono PR, a gitlink bump here, and a specific merge order. This skill is the sanctioned exception to the AGENTS.md rule against changing the submodule gitlink.
Repo facts
- Submodule:
src/inspect_ai/_view/ts-mono→ https://github.com/meridianlabs-ai/ts-mono (branchmain) - Regeneration command:
python src/inspect_ai/_view/schema.py(from repo root, venv activated; requirespnpm installdone in the submodule) - Generated artifacts:
src/inspect_ai/_view/inspect-openapi.json(this repo)packages/inspect-common/src/types/generated.ts(inside the submodule)
- CI jobs (
.github/workflows/log_viewer.yml):check-schema-and-types— artifacts must match the Python source (docstring-only drift tolerated) and each other (exactly)submodule-on-main— the gitlink SHA must be reachable from ts-monomaindist-validation— the checked-in viewer bundlesrc/inspect_ai/_view/distmust matchpnpm --filter @meridianlabs/log-viewer buildrun at the pinned submodule commit
- Submodule checks before pushing:
pnpm typecheckandpnpm testfrom the ts-mono root (turbo), not per-package tsc - Pipeline internals:
design/type-generation-pipeline.md - Sibling consumer:
inspect_scout(also embeds ts-mono; itsapps/scout/src/types/generated.tsduplicates the shared types). Its regen scriptscripts/export_openapi_schema.pyregenerates itsopenapi.jsonfrom the installed inspect_ai and chains scout'stypes:generate.
Recognize the situation
check-schema-and-typesis red on your PR, or- you changed a Python model that flows into the pipeline (Content, ChatMessage, Event, Citation, ToolChoice, EvalLog, or anything they reference), or
- your change requires editing code in the submodule directly.
Procedure
Your job is to reach the landed state from whatever state you find — you may be starting fresh or resuming mid-flight (possibly in a new session). First assess where things stand, then enter at the matching step:
| Observed state | Enter at |
|---|---|
| No ts-mono branch/PR yet | step 1 |
| Regeneration not done or stale | step 2 |
| ts-mono PR open; this repo's PR not yet gitlink-bumped/pushed | step 3 |
Both PRs open; this repo's PR conflicts with main, or its regeneration predates current main |
update the branch (see step 2 and pitfalls), then step 4 |
| Both PRs in phase-1 state (green / green-except-gate) | step 4 |
| ts-mono PR merged; gate still red | step 4.2 |
Resumption relies on the PR cross-links (step 3) to find the paired PR, and any monitors/watches from a previous session are gone — re-arm them.
Finding the paired ts-mono branch: the submodule sits on a detached HEAD,
so the work branch isn't announced. The authoritative probes work whatever
the branch is named: git -C <submodule> branch -a --contains HEAD lists
every branch containing the gitlink commit, and the PR cross-links (step 3)
name the ts-mono PR's head branch. Branches are usually named the same as
this repo's branch (step 1's convention), which makes a good first guess —
but never a requirement. If nothing but main-ish refs contain HEAD, there's
no branch yet — that's the fresh-start case (step 1). Before committing in
the submodule, git checkout <branch> — a commit made on the detached HEAD
lands on no branch. A local branch may also lag its remote; trust
origin/<branch>, not the local ref.
1. Start submodule work from current main
In the submodule, git fetch origin and branch from origin/main — NOT the
local main ref, which lags arbitrarily far behind (submodules live on
detached HEADs; nothing routinely updates their local branches, and fetch
moves only origin/main). Branching from current ts-mono origin/main
keeps main's gitlink an ancestor of your branch (see Pitfalls). Name the new
branch after this repo's branch — a convention that makes the pairing obvious
at a glance (discovery doesn't depend on it; see "Finding the paired ts-mono
branch" above).
2. Make the change / regenerate
Sync this repo's branch with its origin/main (fetch first) before
regenerating — the schema that
lands is generated from the merged Python, so regenerating against a stale
branch bakes in a schema that drifts the moment you update the branch.
For type changes, run the regeneration command. It rewrites both generated
artifacts — one in this repo, one in the submodule. Docstring-only changes do
NOT require regeneration (CI tolerates description drift); only structural
changes do.
Run the submodule checks (see repo fa
Установить land-ts-mono в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл land-ts-mono?
Land a PR that requires a coordinated ts-mono submodule change. Use when the check-schema-and-types CI job fails, when a Python model change requires regenerating the OpenAPI spec / TypeScript types, or when any change touches the ts-mono submodule and needs to be landed.
Как установить скилл land-ts-mono?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл land-ts-mono запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub