# AI Agent Skills

Industry: Core

Every `@northguild/*` package ships [TanStack Intent](https://intent.tanstack.com)
skill files (`SKILL.md`) inside the npm tarball. Each skill is a self-contained,
versioned bundle of guidance — API surface, naming conventions, and Temporal
patterns — routed to a specific task. Rather than hand-holding an agent through
manual `node_modules` traversal, the Intent CLI loads the relevant skill on
demand so the agent works with the right GMT methods for the job.

## Install (one time)

`intent install` writes a managed skill-loading block into `AGENTS.md` (or
`CLAUDE.md` / `.cursorrules`) at the root of your project. The block is tagged
`<!-- intent-skills:start -->` so future `intent` runs can update it in place:

```bash
npx @tanstack/intent@latest install
```

Intent auto-detects your package manager and generates the correct runner
(`npx` / `pnpm dlx` / `yarn dlx` / `bunx`) in the block it writes.

## Discover skills

When a task arises, list every available skill across installed `@northguild/*`
packages:

```bash
npx @tanstack/intent@latest list
```

Sample output:

```
@northguild/gmt
  - gmt-basics
  - gmt-arithmetic
  - gmt-timezone
  - gmt-integration
  - gmt-gnss
  - gmt-finance
  - gmt-aviation
  - gmt-rail
  - gmt-iot
  - gmt-transport
  - gmt-intermodal
  - gmt-workforce
  - gmt-healthcare

@northguild/gmt-eslint
  - first-time-setup
  - migration-refactor
  - ci-enforcement
```

## Load a skill

Load the skill that matches the task into the agent's context:

```bash
npx @tanstack/intent@latest load @northguild/gmt#gmt-basics
```

The lint packages use the same `load <package>#<skill>` form:

```bash
npx @tanstack/intent@latest load @northguild/gmt-eslint#first-time-setup
npx @tanstack/intent@latest load @northguild/gmt-oxlint#migration-refactor
npx @tanstack/intent@latest load @northguild/gmt-biome#ci-enforcement
```

## Map tasks to skills

For projects that want explicit routing, pass `--map` to bind a task keyword to a
skill so `intent list` highlights the right match automatically:

```bash
npx @tanstack/intent@latest install --map "basics=gmt-basics" --map "arithmetic=gmt-arithmetic" --map "timezone=gmt-timezone" --map "gnss=gmt-gnss" --map "finance=gmt-finance" --map "transport=gmt-transport" --map "intermodal=gmt-intermodal" --map "workforce=gmt-workforce" --map "healthcare=gmt-healthcare" --map "aviation=gmt-aviation" --map "rail=gmt-rail" --map "iot=gmt-iot" --map "lint=first-time-setup"
```

## Allowlist skills

To restrict which skills an agent may load, add an `intent.skills` allowlist to
your `package.json`:

```json
{
  "intent": {
    "skills": ["@northguild/gmt#gmt-basics", "@northguild/gmt#gmt-timezone"]
  }
}
```

## Stale check (optional)

Verify that loaded skills reference non-outdated source docs and regenerate the
managed block:

```bash
npx @tanstack/intent@latest stale
```

## Consumer-facing skills

These are the skills a consumer reaches for day to day. Each is a short routing
pointer (about 30 to 60 lines). It carries the core rules and the common pitfalls,
then points the agent to the documentation site and to the JSDoc in the installed
package for signatures, locale matrices and code examples. It is not an API dump:

### `@northguild/gmt`

| Slug | Task area | Source folders it points to |
| --- | --- | --- |
| `gmt-basics` | Current values, parse, format, relative time, compare, validate | `src/plain/`, `src/zoned/` |
| `gmt-arithmetic` | Add/subtract, diff, durations, interval range math | `src/plain/`, `src/duration/`, `src/plain/interval/` |
| `gmt-timezone` | Zoned get/format/convert, DST disambiguation | `src/zoned/`, `src/unix/`, `src/utc/` |
| `gmt-integration` | Cache keys, router/query params, foreign epoch bridges, TAI and leap seconds, lint package selection | `src/timescale/`, the lint package READMEs |

Each industry layer on top of those four has a skill of its own. Load one only when
the task is in that industry. Maritime has no namespace of its own, so it has no skill:
its tasks use `gmt-gnss`.

| Industry | Slug | Task area | Source folders it points to |
| --- | --- | --- | --- |
|  Workforce | `gmt-workforce` | Hours-of-work rules over a duty log, with the caller's own limits | `src/workforce/` |
|  Healthcare | `gmt-healthcare` | HL7 v2 date-times, with the sender's local time kept apart from UTC | `src/healthcare/` |
|  Transport | `gmt-transport` | Transit legs, connections, cut-offs, punctuality, departures | `src/transport/` |
|  Intermodal | `gmt-intermodal` | Free time, demurrage, billing deadlines, bill of lading dates, EDI and EPCIS timestamps | `src/intermodal/` |
|  GNSS | `gmt-gnss` | GNSS time scales, broadcast and RINEX week numbers, rollover eras | `src/gnss/` |
|  Finance | `gmt-finance` | FIX `UTCTimestamp` values: precision from the digit count, picoseconds, leap seconds | `src/finance/` |
|  Aviation | `gmt-aviation` | IATA SSIM schedule dates (`DDMMMYY`): fixed English month letters, a stated century | `src/aviation/` |
|  Rail | `gmt-rail` | GTFS stop times past midnight (`25:35:00`): the days past the service day kept apart from the time of day | `src/rail/` |
|  IoT | `gmt-iot` | Precision Time Protocol timestamps: TAI on the wire, the UTC offset the grandmaster announces | `src/iot/` |

> **Skills are routing pointers, not API documentation.** The skill files carry the
> core rules and common pitfalls. For a signature, a locale matrix or an example,
> the agent should read this site (`https://northguild.dev/gmt/llms.txt`
> links the guides and one file per reference namespace, and each page has a
> `.md` twin) and the JSDoc of the specific
> function it intends to call in the installed package.

### `@northguild/gmt-eslint` / `gmt-oxlint` / `gmt-biome`

| Slug | Guide | Description |
| --- | --- | --- |
| `first-time-setup` | [Lint Package Selection](/gmt/guides/integration/linting/) | Install and wire the lint package; verify Date-ban rules active |
| `migration-refactor` | — | Migrate existing code off `Date` APIs |
| `ci-enforcement` | — | Set up CI enforcement of lint rules |

## Contributor skills

Skills intended for library maintainers — **not** shipped in the npm tarball
(excluded via `.npmignore`). These are for contributing to `@northguild/gmt`
itself:

| Slug | Description |
| --- | --- |
| `issue-creation` | Create feature requests with proper details for maintainers |
| `pr-contribution` | Contribute improvements via pull requests |
| `new-method-implementation` | Implement or extend a gmt API in `packages/gmt/src` |
| `unit-test-generation` | Write or update gmt unit tests |
| `api-expansion-workflow` | Handle feature requests for missing gmt functionality |

Load a contributor skill only when the user is contributing to `@northguild/gmt`
itself:

```bash
npx @tanstack/intent@latest load @northguild/gmt#issue-creation
```

## See also

- [Lint Package Selection](/gmt/guides/integration/linting/) — choose the right `@northguild` lint package
- [Application Integration](/gmt/guides/integration/app-integration/) — cache keys, routers, tables
- [Core Rules](/gmt/core-rules/) — the contract the skills enforce
- [Page Tools for Browser Agents](/gmt/guides/integration/browser-agents/) — the read-only tool each tool page offers an agent in the browser
