Skip to content
Agentmart
Submit a tool

AGENTS.md · arktypeio/arktype

AGENTS.md from arktypeio/arktype: 48 lines covering Using ArkType, Commands, Monorepo Structure, Key Patterns and more.

Template by arktypeio

IndexedMIT★ 7,878
Write a review

Chalk Labs

Need help deploying AGENTS.md · arktypeio/arktype?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.

curl -fsSL https://raw.githubusercontent.com/arktypeio/arktype/main/AGENTS.md -o AGENTS.md

Read it and adapt it to your project before use.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

The AGENTS.md file that arktypeio/arktype (7,878 stars) keeps for coding agents. It has 48 lines in 5 sections: Using ArkType; Commands; Monorepo Structure; Key Patterns; Code Style. Use it as a model for your own project's instructions.

Use cases: prompt-engineering

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

What's in it

An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.

For
Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
Length
48 lines
File
AGENTS.md

Sections

  1. Using ArkType
  2. Commands
  3. Monorepo Structure
  4. Key Patterns
  5. Code Style

First lines (shown under the repo's MIT license)

# ArkType

ArkType is TypeScript's 1:1 validator, optimized from editor to runtime. It parses TypeScript-like string syntax at runtime.

## Using ArkType

- [arktype.io/llms.txt](https://arktype.io/llms.txt) is the full documentation as Markdown, generated from `ark/docs/content/docs/(arktype)` by `ark/docs/lib/writeMarkdown.ts`. Attest's is at [arktype.io/docs/attest/llms.txt](https://arktype.io/docs/attest/llms.txt). Any single page is at its URL plus `.md`.
- [`ark/type/skills/arktype/SKILL.md`](ark/type/skills/arktype/SKILL.md) is the Agent Skill users install with `npx skills add arktypeio/arktype`. Keep its examples type-checking against the current API.
- The [cheat sheet](https://arktype.io/docs/cheat-sheet) (`ark/docs/content/docs/(arktype)/cheat-sheet.mdx`) is an abbreviated version of it covering the most common syntax and gotchas.

## Commands

```bash
pnpm i && pnpm build # install and build all packages
pnpm test # run tests without type checking
pnpm testFiles ark/type/__tests__/brand.test.ts # run and type check only the named test files
pnpm typecheckRepo # incremental typecheck of the whole repo
pnpm prChecks # lint, build, typecheck and test (run before PRs)
```

Tests and typechecking read each package's source through the `ark-ts` condition, so neither needs `pnpm build`. Pass test files to `pnpm testFiles` before any flags, e.g. `pnpm testFiles a.test.ts --skipTypes`. `pnpm testTyped a.test.ts` runs every test, because mocha adds named files to the configured spec.

## Monorepo Structure

- `ark/type` — main validation library (`arktype` on npm)
- `ark/schema` — schema layer (constraint nodes, refinements, scopes)
- `ark/util` — shared utilities
- `ark/docs` — documentation site (Fumadocs/Next.js)
- `ark/json-schema` — JSON Schema conversion
- `ark/regex` — ArkRegex type-safe regex
- `ark/attest` — assertion/test library
- `ark/fast-check` — property testing integration

## Key Patterns

Keywords follow `typescriptType.constraint.subconstraint`, e.g. `string.email`, `number.integer`, `string.json.parse`.

To add a regex string validator, create it with `regexStringNode(/^pattern$/, "description")` (patterns must be anchored), register it in the `Scope.module()` in `ark/type/keywords/string.ts` and add it to the namespace `$` type.

To add a number keyword, use `rootSchema()` with `domain`, `min`/`max`, `divisor` or `predicate` constraints. See `ark/type/keywords/number.ts`.

## Code Style

- Tabs, no semicolons, no trailing commas (`prettier` enforced)
- `experimentalTernaries: true` — `?` at end of line, `:` on next line
- `arrowParens: "avoid"` — `x => x` not `(x) => x`
- Tests use `attest` with `.snap()` for snapshots

Signals

Stars
7,878
Forks
177
Open issues
220
Last commit (this folder)
Oct 9, 2026 (22 days ago)
Last release
Oct 22, 2026 (8 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get AGENTS.md · arktypeio/arktype running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying AGENTS.md · arktypeio/arktype?

CallGet help
Cite this page

AGENTS.md · arktypeio/arktype. Agent Mart. https://agentmart.dev/templates/arktypeio-arktype-agents-md (last updated 2026-10-24)