Skip to content
Skillv1.0.0

__tests__

This directory holds TypeScript-side ingest tests.

by phulin(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from phulin/fastlaw (packages/ingest/src/__tests__/AGENTS.md). Install upstream with npx skills add phulin/fastlaw --skill __tests__. Copyright stays with the author.

Ingest Tests Guide

This directory holds TypeScript-side ingest tests.

  • Add focused tests here for ingest Worker and adapter behavior.
  • Prefer fixture-backed tests for parser and hierarchy regressions.
  • Keep tests close to real source behavior rather than synthetic abstractions.
  • Read ../../../../docs/agents/ingest-jurisdiction.md when adding jurisdiction behavior.

Files

  • cga.test.ts: TypeScript-side tests for CGA ingest behavior.
  • cross-references.test.ts: tests for cross-reference extraction or normalization.
  • mgl.test.ts: TypeScript-side tests for MGL ingest behavior.
  • usc-packfile-flush.test.ts: tests for USC-related packfile flushing behavior.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/phulin-fastlaw-tests/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

phulin-fastlaw-tests.ocm.jsonjson
{
  "ocm": "1",
  "id": "phulin-fastlaw-tests",
  "kind": "skill",
  "name": "__tests__",
  "description": "This directory holds TypeScript-side ingest tests.",
  "publisher": "phulin",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "github-agents"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "This directory holds TypeScript-side ingest tests."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github-agents",
      "repository": "https://github.com/phulin/fastlaw",
      "path": "packages/ingest/src/__tests__/AGENTS.md",
      "ref": "d7465a8aeba1b44589277b37997522408508ee9e",
      "url": "https://github.com/phulin/fastlaw/blob/d7465a8aeba1b44589277b37997522408508ee9e/packages/ingest/src/__tests__/AGENTS.md",
      "key": "phulin/fastlaw/packages/ingest/src/__tests__/AGENTS.md"
    }
  },
  "instructions": "# Ingest Tests Guide\n\nThis directory holds TypeScript-side ingest tests.\n\n- Add focused tests here for ingest Worker and adapter behavior.\n- Prefer fixture-backed tests for parser and hierarchy regressions.\n- Keep tests close to real source behavior rather than synthetic abstractions.\n- Read `../../../../docs/agents/ingest-jurisdiction.md` when adding jurisdiction behavior.\n\n## Files\n\n- `cga.test.ts`: TypeScript-side tests for CGA ingest behavior.\n- `cross-references.test.ts`: tests for cross-reference extraction or normalization.\n- `mgl.test.ts`: TypeScript-side tests for MGL ingest behavior.",
  "cost": {
    "context_tokens": 170
  }
}

Fetch it by URL: GET /api/v1/registry/phulin-fastlaw-tests/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.