Contract alias audit

From Community-Tech-UK/ai-orchestrator · View interactive version

Contract alias audit is an AI agent skill from the GitHub repository Community-Tech-UK/ai-orchestrator. Verify @contracts subpaths stay in sync across the three alias sites the packaged DMG depends on.

How to use this skill

Skill file

Contract Alias Sync Audit Loop

A guard loop for a packaging trap that has silently broken the DMG twice: tsc

path aliases are type-check-only and do not rewrite emitted JS, so a

@contracts/... subpath can typecheck and lint cleanly yet crash the packaged

app at runtime with Cannot find module.

Loop contract

1. tsconfig.json (renderer + test type-checking)

2. tsconfig.electron.json (main-process type-checking)

3. the exactAliases map in src/main/register-aliases.ts (Node runtime resolver)

4. vitest.config.ts — only if the subpath is imported from tests

Report any subpath missing from one or more sites.

Behavior

  1. Enumerate every @contracts/schemas/* and @contracts/types/* import used across the codebase.
  2. For each, check presence in the three (or four) sites above.
  3. Flag any site where the subpath is absent — that is the runtime-crash risk.

Output

A concise summary of subpaths checked, any out-of-sync sites, the exact entries

needed to fix each, and any blockers.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.