docs.page AGENTS.md

Project instructions for docs.page, a service that turns Markdown documentation from public GitHub repositories into websites for people and AI agents. The project is organized as a monorepo, meaning several related packages live in one repository.

In plain words
What is it for?
Use them to install dependencies, run the Next.js development site, check formatting and types, and work on the command-line tool or Markdown bundler.
Why use it?
They explain the repository layout, development commands, and conventions so agents can change the correct app or shared package.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/invertase/docs.page/agents-md
Clone the repo
git clone --depth 1 https://github.com/invertase/docs.page

Made for: Codex, OpenCode.

Per session 666 This file is loaded in full into every session.
When invoked 666 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00666 $0.00666
Opus 5 $0.00333 $0.00333
Sonnet 5 $0.00133 $0.00133
Haiku 4.5 $0.00067 $0.00067

Measured 2d ago against content hash e6224bfc9c48, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

docs.page AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 66 lines

How it starts

The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.

docs.page — agent guidance

This file orients coding agents working in the docs.page monorepo. For human contributors, see CONTRIBUTING.md.

Project overview

docs.page serves markdown documentation from public GitHub repositories as modern, agent-ready sites (MCP, llms.txt, optional Ask AI). The active codebase is a Bun workspace centered on a Next.js app and shared packages.

Monorepo layout

app/                    Next.js app — rendering, API routes, MCP, agent panel
packages/cli/           @docs.page/cli — init, check, preview
packages/mdx-bundler/   Shared markdown → doc IR pipeline
docs/                   Product documentation (MDX)
docs.json               Site navigation for this repo's docs
skills/                 Agent skills (SKILL.md per skill)

Commands

Task Command
Install bun install (repo root)
Dev server bun dev or cd app && bun dev
Format + lint bun run check (Biome, repo root)
CLI dev cd packages/cli && bun run dev
CLI typecheck cd packages/cli && bun run typecheck

Conventions

  • Runtime — Bun for installs and scripts; Next.js App Router in app/.
  • Lint/format — Biome (biome.json). Run bun run check before finishing.
  • UI — shadcn/ui components live in app/src/components/ui/. Use existing primitives before adding dependencies.
  • Next.js — Read app/AGENTS.md and node_modules/next/dist/docs/ for Next.js 16 APIs (breaking vs training data).
  • Shared markdown pipeline — Changes to doc rendering belong in packages/mdx-bundler/ when they affect both app and CLI preview.
  • Scope — Minimal diffs; match existing patterns; update docs/ for user-visible behavior.

Environment

Local app development against live GitHub content requires GITHUB_PAT in app/.env.local. GitHub App credentials are only needed for webhook work. See CONTRIBUTING.md for setup.

Do not commit secrets, .env, or generated artifacts (.next/, dist/).

Read the full file on GitHub · 66 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 66 lines · 666 tokens per session scan A e6224bfc9c48

Subscribe to this mod's changes

docs.page AGENTS.md is an instructions file published in the GitHub repository invertase/docs.page (671 stars, last pushed 4d ago), licensed Apache-2.0. It adds 666 tokens to every session, about $0.0033 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.