diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs
index 67f2f9f3..14ee2c02 100644
--- a/docs/astro.config.mjs
+++ b/docs/astro.config.mjs
@@ -79,10 +79,24 @@ export default defineConfig({
href: "https://github.com/archgate/cli",
},
],
+ components: {
+ Head: "./src/components/HeadSEO.astro",
+ },
editLink: {
baseUrl: "https://github.com/archgate/cli/edit/main/docs/",
},
+ favicon: "/favicon.svg",
head: [
+ // ── Favicon ───────────────────────────────────────────────
+ {
+ tag: "link",
+ attrs: {
+ rel: "icon",
+ type: "image/svg+xml",
+ href: "/favicon.svg",
+ },
+ },
+ // ── Analytics ─────────────────────────────────────────────
{
tag: "script",
attrs: {
@@ -91,6 +105,91 @@ export default defineConfig({
"data-cf-beacon": '{"token": "cee359c05ecc496aabc4f40f05302a03"}',
},
},
+ // ── Open Graph image ──────────────────────────────────────
+ {
+ tag: "meta",
+ attrs: {
+ property: "og:image",
+ content: "https://cli.archgate.dev/og-image.png",
+ },
+ },
+ {
+ tag: "meta",
+ attrs: { property: "og:image:width", content: "1200" },
+ },
+ {
+ tag: "meta",
+ attrs: { property: "og:image:height", content: "630" },
+ },
+ {
+ tag: "meta",
+ attrs: {
+ property: "og:image:alt",
+ content:
+ "Archgate — Architecture Decision Records as Executable Rules",
+ },
+ },
+ // ── Twitter / X card ──────────────────────────────────────
+ {
+ tag: "meta",
+ attrs: {
+ name: "twitter:image",
+ content: "https://cli.archgate.dev/og-image.png",
+ },
+ },
+ // ── Additional meta ───────────────────────────────────────
+ {
+ tag: "meta",
+ attrs: { name: "author", content: "Archgate" },
+ },
+ {
+ tag: "meta",
+ attrs: { name: "theme-color", content: "#6366f1" },
+ },
+ {
+ tag: "meta",
+ attrs: {
+ name: "keywords",
+ content:
+ "archgate, architecture decision records, ADR, executable rules, code governance, AI governance, TypeScript rules, CLI, compliance automation, MCP server",
+ },
+ },
+ // ── JSON-LD: WebSite ──────────────────────────────────────
+ {
+ tag: "script",
+ attrs: { type: "application/ld+json" },
+ content: JSON.stringify({
+ "@context": "https://schema.org",
+ "@type": "WebSite",
+ name: "Archgate CLI Documentation",
+ url: "https://cli.archgate.dev",
+ description:
+ "Documentation for Archgate — enforce Architecture Decision Records as executable TypeScript rules for automated code governance.",
+ inLanguage: ["en", "pt-BR"],
+ }),
+ },
+ // ── JSON-LD: SoftwareApplication ──────────────────────────
+ {
+ tag: "script",
+ attrs: { type: "application/ld+json" },
+ content: JSON.stringify({
+ "@context": "https://schema.org",
+ "@type": "SoftwareApplication",
+ name: "Archgate CLI",
+ applicationCategory: "DeveloperApplication",
+ operatingSystem: "macOS, Linux, Windows",
+ offers: { "@type": "Offer", price: "0", priceCurrency: "USD" },
+ url: "https://cli.archgate.dev",
+ downloadUrl: "https://www.npmjs.com/package/archgate",
+ description:
+ "CLI tool that enforces Architecture Decision Records (ADRs) as executable TypeScript rules for automated code governance.",
+ author: {
+ "@type": "Organization",
+ name: "Archgate",
+ url: "https://archgate.dev",
+ },
+ }),
+ },
],
sidebar: [
{
diff --git a/docs/public/favicon.svg b/docs/public/favicon.svg
new file mode 100644
index 00000000..69036679
--- /dev/null
+++ b/docs/public/favicon.svg
@@ -0,0 +1,7 @@
+
diff --git a/docs/public/llms.txt b/docs/public/llms.txt
new file mode 100644
index 00000000..7c8c1d0d
--- /dev/null
+++ b/docs/public/llms.txt
@@ -0,0 +1,45 @@
+# Archgate CLI
+
+> Archgate is a CLI tool for AI governance via Architecture Decision Records (ADRs). It combines human-readable documentation with machine-checkable TypeScript rules to enforce architectural decisions across codebases — for both humans and AI agents.
+
+Archgate lets teams write an ADR once and enforce it everywhere. ADRs are Markdown files with YAML frontmatter that describe architectural decisions. Companion `.rules.ts` files contain automated TypeScript checks that run against the codebase and report violations with file paths and line numbers.
+
+## Key capabilities
+
+- **Executable rules**: Write compliance rules in TypeScript. Archgate runs them against your codebase and reports violations with file paths and line numbers.
+- **CI integration**: Wire `archgate check` into any CI/CD pipeline. Exit code 1 blocks merges when rules are violated.
+- **AI-aware governance**: The MCP server gives AI agents (Claude, Cursor, Copilot) live access to ADRs. Agents read decisions before writing code and validate after.
+- **Editor plugins**: Claude Code, VS Code, Cursor, and Copilot CLI plugins give AI agents role-based governance skills.
+- **Self-governance**: Archgate governs its own development using the same tool.
+
+## Installation
+
+Available via npm (`npm install -g archgate`), Homebrew, or standalone binary for macOS, Linux, and Windows.
+
+## Documentation
+
+- [Getting Started — Installation](https://cli.archgate.dev/getting-started/installation/): Install on macOS, Linux, or Windows via npm, Homebrew, or standalone binary.
+- [Getting Started — Quick Start](https://cli.archgate.dev/getting-started/quick-start/): Set up Archgate in under 5 minutes with your first ADR and rule.
+- [Core Concepts — ADRs](https://cli.archgate.dev/concepts/adrs/): How Architecture Decision Records work as both documentation and executable rules.
+- [Core Concepts — Rules](https://cli.archgate.dev/concepts/rules/): The TypeScript rule system that turns ADR decisions into automated compliance checks.
+- [Core Concepts — Domains](https://cli.archgate.dev/concepts/domains/): Organize ADRs by domain for targeted governance.
+- [Guide — Writing ADRs](https://cli.archgate.dev/guides/writing-adrs/): Complete guide to writing effective ADRs with YAML frontmatter and markdown structure.
+- [Guide — Writing Rules](https://cli.archgate.dev/guides/writing-rules/): Write TypeScript rules using the defineRules API with file matching and violation reporting.
+- [Guide — CI Integration](https://cli.archgate.dev/guides/ci-integration/): Add Archgate checks to GitHub Actions, GitLab CI, or any pipeline.
+- [Guide — Claude Code Plugin](https://cli.archgate.dev/guides/claude-code-plugin/): Give AI agents a governance workflow that reads ADRs, validates code, and captures patterns.
+- [Guide — VS Code Plugin](https://cli.archgate.dev/guides/vscode-plugin/): Real-time ADR compliance in VS Code.
+- [Guide — Copilot CLI Plugin](https://cli.archgate.dev/guides/copilot-cli-plugin/): Add architecture governance to GitHub Copilot CLI.
+- [Guide — Cursor Integration](https://cli.archgate.dev/guides/cursor-integration/): Configure Cursor IDE with Archgate agent rules and skills.
+- [Guide — MCP Server](https://cli.archgate.dev/guides/mcp-server/): Give AI agents live access to ADRs via the Model Context Protocol.
+- [Guide — Pre-commit Hooks](https://cli.archgate.dev/guides/pre-commit-hooks/): Automatically check ADR compliance before every commit.
+- [Reference — CLI Commands](https://cli.archgate.dev/reference/cli-commands/): Complete reference for init, check, adr create/list/show, login, and more.
+- [Reference — MCP Tools](https://cli.archgate.dev/reference/mcp-tools/): API reference for adr_list, adr_read, check_compliance, and review_context.
+- [Reference — Rule API](https://cli.archgate.dev/reference/rule-api/): TypeScript API reference for defineRules, RuleContext, and violation reporting.
+- [Reference — ADR Schema](https://cli.archgate.dev/reference/adr-schema/): YAML frontmatter schema and markdown structure reference for ADRs.
+- [Examples — Common Rule Patterns](https://cli.archgate.dev/examples/common-rule-patterns/): Ready-to-use rule patterns for naming conventions, import restrictions, and more.
+
+## Optional
+
+- [GitHub Repository](https://github.com/archgate/cli)
+- [Editor Plugin Beta](https://plugins.archgate.dev)
+- [npm Package](https://www.npmjs.com/package/archgate)
diff --git a/docs/public/og-image.png b/docs/public/og-image.png
new file mode 100644
index 00000000..c794aaad
Binary files /dev/null and b/docs/public/og-image.png differ
diff --git a/docs/public/og-image.svg b/docs/public/og-image.svg
new file mode 100644
index 00000000..b94b33bb
--- /dev/null
+++ b/docs/public/og-image.svg
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ archgate
+
+
+
+
+ Executable Architecture Decision Records
+
+
+
+
+ Write an ADR once. Enforce it everywhere.
+
+
+ Govern AI agents and humans with the same rules.
+
+
+
+
+ archgate.dev
+
+
+
+
+
diff --git a/docs/public/robots.txt b/docs/public/robots.txt
new file mode 100644
index 00000000..ddaa7724
--- /dev/null
+++ b/docs/public/robots.txt
@@ -0,0 +1,8 @@
+# Archgate CLI Documentation — https://cli.archgate.dev
+# Allow all search engines and AI crawlers full access
+
+User-agent: *
+Allow: /
+
+# Sitemap location
+Sitemap: https://cli.archgate.dev/sitemap-index.xml
diff --git a/docs/scripts/generate-og-image.ts b/docs/scripts/generate-og-image.ts
new file mode 100644
index 00000000..80675970
--- /dev/null
+++ b/docs/scripts/generate-og-image.ts
@@ -0,0 +1,21 @@
+/**
+ * Generates the default Open Graph image (1200x630 PNG) for social sharing.
+ * Reads the branded SVG from the website repo and converts it to PNG via sharp.
+ *
+ * Run: bun run docs/scripts/generate-og-image.ts
+ */
+import sharp from "sharp";
+import { join } from "node:path";
+import { readFileSync } from "node:fs";
+
+const svgPath = join(import.meta.dirname, "..", "public", "og-image.svg");
+const outputPath = join(import.meta.dirname, "..", "public", "og-image.png");
+
+const svg = readFileSync(svgPath, "utf-8");
+
+await sharp(Buffer.from(svg))
+ .resize(1200, 630)
+ .png({ quality: 90 })
+ .toFile(outputPath);
+
+console.log(`Generated OG image: ${outputPath}`);
diff --git a/docs/src/components/HeadSEO.astro b/docs/src/components/HeadSEO.astro
new file mode 100644
index 00000000..0096ebc3
--- /dev/null
+++ b/docs/src/components/HeadSEO.astro
@@ -0,0 +1,102 @@
+---
+/**
+ * Custom Starlight Head override that injects structured data (JSON-LD)
+ * into every page:
+ *
+ * 1. BreadcrumbList — auto-generated from the URL path
+ * 2. TechArticle — for all documentation pages (not splash/home)
+ *
+ * Registered via `components: { Head }` in astro.config.mjs.
+ */
+import Default from "@astrojs/starlight/components/Head.astro";
+
+const route = Astro.locals.starlightRoute;
+const siteUrl =
+ Astro.site?.href?.replace(/\/$/, "") ?? "https://cli.archgate.dev";
+const pathname = Astro.url.pathname;
+const pageUrl = `${siteUrl}${pathname}`;
+
+// Guard: 404 and other non-content pages may not have route data.
+const hasRoute = route?.entry?.data !== undefined && route?.entry?.data !== null;
+const title = hasRoute ? route.entry.data.title : undefined;
+const description = hasRoute ? route.entry.data.description : undefined;
+const template = hasRoute ? route.entry.data.template : undefined;
+
+// ── BreadcrumbList ────────────────────────────────────────────────
+// Build breadcrumbs from the URL path segments.
+const segments = pathname
+ .split("/")
+ .filter((s: string) => s.length > 0);
+const breadcrumbItems: Array<{
+ "@type": string;
+ position: number;
+ name: string;
+ item: string;
+}> = [
+ { "@type": "ListItem", position: 1, name: "Home", item: `${siteUrl}/` },
+];
+
+if (hasRoute && segments.length > 0) {
+ let cumulativePath = "";
+ for (let i = 0; i < segments.length; i++) {
+ cumulativePath += `/${segments[i]}`;
+ const name =
+ i === segments.length - 1
+ ? title
+ : segments[i]
+ .replaceAll("-", " ")
+ .replaceAll(/\b\w/g, (c: string) => c.toUpperCase());
+ breadcrumbItems.push({
+ "@type": "ListItem",
+ position: i + 2,
+ name: name ?? segments[i],
+ item: `${siteUrl}${cumulativePath}/`,
+ });
+ }
+}
+
+const breadcrumbLd =
+ breadcrumbItems.length > 1
+ ? {
+ "@context": "https://schema.org",
+ "@type": "BreadcrumbList",
+ itemListElement: breadcrumbItems,
+ }
+ : null;
+
+// ── TechArticle (all doc pages except splash/home) ────────────────
+const isSplash = template === "splash";
+const articleLd =
+ hasRoute && !isSplash
+ ? {
+ "@context": "https://schema.org",
+ "@type": "TechArticle",
+ headline: title,
+ description,
+ url: pageUrl,
+ inLanguage: route.lang ?? "en",
+ isPartOf: {
+ "@type": "WebSite",
+ name: "Archgate CLI Documentation",
+ url: siteUrl,
+ },
+ publisher: {
+ "@type": "Organization",
+ name: "Archgate",
+ url: "https://archgate.dev",
+ },
+ }
+ : null;
+---
+
+
+
+{/* BreadcrumbList — pages with path segments */}
+{breadcrumbLd && (
+
+)}
+
+{/* TechArticle — doc pages only */}
+{articleLd && (
+
+)}
diff --git a/docs/src/content/docs/concepts/adrs.mdx b/docs/src/content/docs/concepts/adrs.mdx
index c07b8153..e66c417b 100644
--- a/docs/src/content/docs/concepts/adrs.mdx
+++ b/docs/src/content/docs/concepts/adrs.mdx
@@ -1,6 +1,6 @@
---
title: Architecture Decision Records
-description: Understand how Archgate uses ADRs as both documents and executable rules.
+description: Learn how Architecture Decision Records (ADRs) work in Archgate as both human-readable documentation and machine-executable compliance rules.
---
An Architecture Decision Record (ADR) is a short document that captures a single architectural decision along with its context and consequences. ADRs answer the question: _why_ was this decision made, and _what_ are its trade-offs?
diff --git a/docs/src/content/docs/concepts/domains.mdx b/docs/src/content/docs/concepts/domains.mdx
index f6d19dbe..a53a01e5 100644
--- a/docs/src/content/docs/concepts/domains.mdx
+++ b/docs/src/content/docs/concepts/domains.mdx
@@ -1,6 +1,6 @@
---
title: Domains
-description: Categorize ADRs by domain for organized governance.
+description: Organize Architecture Decision Records by domain in Archgate. Group ADRs by architecture, testing, security, or any custom category for targeted governance.
---
Domains are categories that group related ADRs together. Every ADR belongs to exactly one domain, and the domain determines the prefix used in the ADR's identifier.
diff --git a/docs/src/content/docs/concepts/rules.mdx b/docs/src/content/docs/concepts/rules.mdx
index d112a1ac..212e756b 100644
--- a/docs/src/content/docs/concepts/rules.mdx
+++ b/docs/src/content/docs/concepts/rules.mdx
@@ -1,6 +1,6 @@
---
title: Rules
-description: How Archgate's rule system turns ADR decisions into automated checks.
+description: Understand Archgate's TypeScript rule system that turns Architecture Decision Records into automated compliance checks with file-level violation reporting.
---
Rules are the executable side of an ADR. They live in companion `.rules.ts` files alongside the ADR document and export automated checks via the `defineRules()` function. When you run `archgate check`, the CLI loads each ADR that has `rules: true`, imports its companion rules file, and executes every check against your codebase.
diff --git a/docs/src/content/docs/examples/common-rule-patterns.mdx b/docs/src/content/docs/examples/common-rule-patterns.mdx
index e1b3cd50..806da03b 100644
--- a/docs/src/content/docs/examples/common-rule-patterns.mdx
+++ b/docs/src/content/docs/examples/common-rule-patterns.mdx
@@ -1,6 +1,6 @@
---
title: Common Rule Patterns
-description: Ready-to-use rule patterns for common governance needs.
+description: "Ready-to-use Archgate rule patterns for common governance needs: naming conventions, import restrictions, file structure, and dependency policies."
---
This page provides complete, copy-pasteable rule examples for common governance scenarios. Each pattern includes the full rule code, an explanation of how it works, and guidance on when to use it.
diff --git a/docs/src/content/docs/getting-started/installation.mdx b/docs/src/content/docs/getting-started/installation.mdx
index bbf13d4c..8f76ea6c 100644
--- a/docs/src/content/docs/getting-started/installation.mdx
+++ b/docs/src/content/docs/getting-started/installation.mdx
@@ -1,6 +1,6 @@
---
title: Installation
-description: Install Archgate CLI on macOS, Linux, or Windows.
+description: Install the Archgate CLI on macOS, Linux, or Windows via npm, Homebrew, or standalone binary. Start enforcing ADRs as executable code rules in minutes.
---
## Install globally
diff --git a/docs/src/content/docs/getting-started/quick-start.mdx b/docs/src/content/docs/getting-started/quick-start.mdx
index 4722f273..22255fa4 100644
--- a/docs/src/content/docs/getting-started/quick-start.mdx
+++ b/docs/src/content/docs/getting-started/quick-start.mdx
@@ -1,6 +1,6 @@
---
title: Quick Start
-description: Get up and running with Archgate in under 5 minutes.
+description: Get started with Archgate in under 5 minutes. Initialize a project, create your first ADR, write compliance rules, and run automated architecture checks.
---
## 1. Install Archgate
diff --git a/docs/src/content/docs/guides/ci-integration.mdx b/docs/src/content/docs/guides/ci-integration.mdx
index fea5183f..cb276ba8 100644
--- a/docs/src/content/docs/guides/ci-integration.mdx
+++ b/docs/src/content/docs/guides/ci-integration.mdx
@@ -1,6 +1,6 @@
---
title: CI Integration
-description: Add Archgate checks to your CI/CD pipeline.
+description: Integrate Archgate compliance checks into GitHub Actions, GitLab CI, or any CI/CD pipeline. Block merges when architecture rules are violated.
---
Archgate checks fit into any CI system that respects exit codes. Add a single step to your pipeline and violations will block merges automatically.
diff --git a/docs/src/content/docs/guides/claude-code-plugin.mdx b/docs/src/content/docs/guides/claude-code-plugin.mdx
index 587515e9..2331c2fc 100644
--- a/docs/src/content/docs/guides/claude-code-plugin.mdx
+++ b/docs/src/content/docs/guides/claude-code-plugin.mdx
@@ -1,6 +1,6 @@
---
title: Claude Code Plugin
-description: Give AI agents a full governance workflow with the Archgate Claude Code plugin.
+description: Set up the Archgate plugin for Claude Code. Give AI agents a governance workflow that reads ADRs, validates code, and captures architectural patterns.
---
The Archgate Claude Code plugin gives AI agents working in [Claude Code](https://claude.ai/code) a structured governance workflow. Instead of relying on prompt instructions that drift over time, agents read your ADRs directly through the MCP server and validate their own code against your rules.
diff --git a/docs/src/content/docs/guides/copilot-cli-plugin.mdx b/docs/src/content/docs/guides/copilot-cli-plugin.mdx
index 70599561..58126e7a 100644
--- a/docs/src/content/docs/guides/copilot-cli-plugin.mdx
+++ b/docs/src/content/docs/guides/copilot-cli-plugin.mdx
@@ -1,6 +1,6 @@
---
title: Copilot CLI Plugin
-description: Install the Archgate plugin for GitHub Copilot CLI with AI governance.
+description: Set up the Archgate plugin for GitHub Copilot CLI. Add architecture governance to Copilot with automated ADR compliance and rule enforcement.
---
The Archgate Copilot CLI plugin gives AI agents working in [GitHub Copilot CLI](https://github.com/features/copilot) a structured governance workflow. Agents read your ADRs before writing code, validate after, and capture new patterns for the team -- the same workflow available in the [Claude Code plugin](/guides/claude-code-plugin/).
diff --git a/docs/src/content/docs/guides/cursor-integration.mdx b/docs/src/content/docs/guides/cursor-integration.mdx
index 1afd62e5..b35658c1 100644
--- a/docs/src/content/docs/guides/cursor-integration.mdx
+++ b/docs/src/content/docs/guides/cursor-integration.mdx
@@ -1,6 +1,6 @@
---
title: Cursor Integration
-description: Use Archgate with Cursor IDE for AI-assisted development with governance.
+description: Integrate Archgate with Cursor IDE for AI-assisted development with architecture governance. Configure agent rules and skills for ADR compliance.
---
Archgate integrates with [Cursor](https://cursor.com) to give AI agents a structured governance workflow. The agent reads your ADRs before writing code, validates after, and captures new patterns for the team -- the same workflow available in the [Claude Code plugin](/guides/claude-code-plugin/).
diff --git a/docs/src/content/docs/guides/mcp-server.mdx b/docs/src/content/docs/guides/mcp-server.mdx
index cc225cf4..0ee7e0a9 100644
--- a/docs/src/content/docs/guides/mcp-server.mdx
+++ b/docs/src/content/docs/guides/mcp-server.mdx
@@ -1,6 +1,6 @@
---
title: MCP Server
-description: Use the Archgate MCP server for AI agent integration.
+description: Use the Archgate MCP server to give AI agents live access to your Architecture Decision Records. Supports Claude, Cursor, and any MCP-compatible client.
---
The Archgate MCP server exposes your project's ADRs and compliance checks to AI agents over the [Model Context Protocol](https://modelcontextprotocol.io/). Any MCP-compatible client -- Claude Code, Cursor, or custom tooling -- can connect to it.
diff --git a/docs/src/content/docs/guides/pre-commit-hooks.mdx b/docs/src/content/docs/guides/pre-commit-hooks.mdx
index 0fbfcbcc..a9e1e7d2 100644
--- a/docs/src/content/docs/guides/pre-commit-hooks.mdx
+++ b/docs/src/content/docs/guides/pre-commit-hooks.mdx
@@ -1,6 +1,6 @@
---
title: Pre-commit Hooks
-description: Run Archgate checks automatically before every commit.
+description: Set up Archgate pre-commit hooks to automatically check ADR compliance before every commit. Catch architecture violations before they reach CI.
---
## Overview
diff --git a/docs/src/content/docs/guides/vscode-plugin.mdx b/docs/src/content/docs/guides/vscode-plugin.mdx
index 197034af..b9c1d182 100644
--- a/docs/src/content/docs/guides/vscode-plugin.mdx
+++ b/docs/src/content/docs/guides/vscode-plugin.mdx
@@ -1,6 +1,6 @@
---
title: VS Code Plugin
-description: Install the Archgate plugin in VS Code for AI-assisted development with governance.
+description: Install the Archgate VS Code extension for AI-assisted development with architecture governance. Real-time ADR compliance checking in your editor.
---
The Archgate VS Code plugin gives AI agents working in [VS Code](https://code.visualstudio.com/) a structured governance workflow. Agents read your ADRs before writing code, validate after, and capture new patterns for the team -- the same workflow available in the [Claude Code plugin](/guides/claude-code-plugin/).
diff --git a/docs/src/content/docs/guides/writing-adrs.mdx b/docs/src/content/docs/guides/writing-adrs.mdx
index 89379558..8178b8fc 100644
--- a/docs/src/content/docs/guides/writing-adrs.mdx
+++ b/docs/src/content/docs/guides/writing-adrs.mdx
@@ -1,6 +1,6 @@
---
title: Writing ADRs
-description: A complete guide to writing effective Architecture Decision Records.
+description: Complete guide to writing effective Architecture Decision Records in Archgate. Learn the YAML frontmatter schema, markdown structure, and best practices.
---
## Creating an ADR
diff --git a/docs/src/content/docs/guides/writing-rules.mdx b/docs/src/content/docs/guides/writing-rules.mdx
index 3990e112..911d924c 100644
--- a/docs/src/content/docs/guides/writing-rules.mdx
+++ b/docs/src/content/docs/guides/writing-rules.mdx
@@ -1,6 +1,6 @@
---
title: Writing Rules
-description: Learn to write automated rules that enforce your ADR decisions.
+description: Write TypeScript rules that automatically enforce your Architecture Decision Records. Learn the Archgate defineRules API, file matching, and violation reporting.
---
Rules are TypeScript functions that check your codebase for ADR compliance. They live in companion `.rules.ts` files next to ADR markdown files and run when you execute `archgate check`.
diff --git a/docs/src/content/docs/index.mdx b/docs/src/content/docs/index.mdx
index 4936b9b7..7a51f223 100644
--- a/docs/src/content/docs/index.mdx
+++ b/docs/src/content/docs/index.mdx
@@ -1,6 +1,6 @@
---
title: Archgate
-description: Enforce Architecture Decision Records as executable rules — for both humans and AI agents.
+description: Archgate CLI enforces Architecture Decision Records (ADRs) as executable TypeScript rules. Automate code governance for humans and AI agents.
template: splash
hero:
tagline: Write an ADR once. Enforce it everywhere. Feed it to AI agents automatically.
diff --git a/docs/src/content/docs/pt-br/concepts/adrs.mdx b/docs/src/content/docs/pt-br/concepts/adrs.mdx
index c9ebb742..e4fc1cbd 100644
--- a/docs/src/content/docs/pt-br/concepts/adrs.mdx
+++ b/docs/src/content/docs/pt-br/concepts/adrs.mdx
@@ -1,6 +1,6 @@
---
title: Registros de Decisão Arquitetural
-description: Entenda como o Archgate usa ADRs como documentos e regras executáveis.
+description: Saiba como os Architecture Decision Records (ADRs) funcionam no Archgate como documentação legível e regras de conformidade executáveis automaticamente.
---
Um Architecture Decision Record (ADR) é um documento curto que captura uma única decisão arquitetural junto com seu contexto e consequências. ADRs respondem à pergunta: _por que_ essa decisão foi tomada, e _quais_ são seus trade-offs?
diff --git a/docs/src/content/docs/pt-br/concepts/domains.mdx b/docs/src/content/docs/pt-br/concepts/domains.mdx
index 95d1ff7c..a9ccd31f 100644
--- a/docs/src/content/docs/pt-br/concepts/domains.mdx
+++ b/docs/src/content/docs/pt-br/concepts/domains.mdx
@@ -1,6 +1,6 @@
---
title: Domínios
-description: Categorize ADRs por domínio para uma governança organizada.
+description: Organize Architecture Decision Records por domínio no Archgate. Agrupe ADRs por arquitetura, testes, segurança ou qualquer categoria para governança direcionada.
---
Domínios são categorias que agrupam ADRs relacionados. Cada ADR pertence a exatamente um domínio, e o domínio determina o prefixo usado no identificador do ADR.
diff --git a/docs/src/content/docs/pt-br/concepts/rules.mdx b/docs/src/content/docs/pt-br/concepts/rules.mdx
index 0abc6c1a..59a37bc9 100644
--- a/docs/src/content/docs/pt-br/concepts/rules.mdx
+++ b/docs/src/content/docs/pt-br/concepts/rules.mdx
@@ -1,6 +1,6 @@
---
title: Regras
-description: Como o sistema de regras do Archgate transforma decisões de ADR em verificações automatizadas.
+description: Entenda o sistema de regras TypeScript do Archgate que transforma Architecture Decision Records em verificações automatizadas com relatórios por arquivo.
---
Regras são o lado executável de um ADR. Elas vivem em arquivos `.rules.ts` complementares ao lado do documento ADR e exportam verificações automatizadas via a função `defineRules()`. Quando você executa `archgate check`, a CLI carrega cada ADR que tem `rules: true`, importa seu arquivo de regras complementar e executa cada verificação contra seu codebase.
diff --git a/docs/src/content/docs/pt-br/examples/common-rule-patterns.mdx b/docs/src/content/docs/pt-br/examples/common-rule-patterns.mdx
index f07aeb93..25eaa2d7 100644
--- a/docs/src/content/docs/pt-br/examples/common-rule-patterns.mdx
+++ b/docs/src/content/docs/pt-br/examples/common-rule-patterns.mdx
@@ -1,6 +1,6 @@
---
title: Padrões Comuns de Regras
-description: Padrões de regras prontos para uso em necessidades comuns de governança.
+description: "Padrões de regras Archgate prontos para uso em necessidades comuns de governança: convenções de nomenclatura, restrições de import, estrutura de arquivos e mais."
---
Esta página fornece exemplos completos de regras, prontos para copiar e colar, para cenários comuns de governança. Cada padrão inclui o código completo da regra, uma explicação de como funciona e orientações sobre quando utilizá-lo.
diff --git a/docs/src/content/docs/pt-br/getting-started/installation.mdx b/docs/src/content/docs/pt-br/getting-started/installation.mdx
index 5ae9f58d..61c46255 100644
--- a/docs/src/content/docs/pt-br/getting-started/installation.mdx
+++ b/docs/src/content/docs/pt-br/getting-started/installation.mdx
@@ -1,6 +1,6 @@
---
title: Instalação
-description: Instale a CLI do Archgate no macOS, Linux ou Windows.
+description: Instale o Archgate CLI no macOS, Linux ou Windows via npm, Homebrew ou binário standalone. Comece a aplicar ADRs como regras de código executáveis em minutos.
---
## Instalar globalmente
diff --git a/docs/src/content/docs/pt-br/getting-started/quick-start.mdx b/docs/src/content/docs/pt-br/getting-started/quick-start.mdx
index e76f3936..a85e6cc9 100644
--- a/docs/src/content/docs/pt-br/getting-started/quick-start.mdx
+++ b/docs/src/content/docs/pt-br/getting-started/quick-start.mdx
@@ -1,6 +1,6 @@
---
title: Início Rápido
-description: Comece a usar o Archgate em menos de 5 minutos.
+description: Comece a usar o Archgate em menos de 5 minutos. Inicialize um projeto, crie seu primeiro ADR, escreva regras de conformidade e execute verificações automatizadas.
---
## 1. Instalar o Archgate
diff --git a/docs/src/content/docs/pt-br/guides/ci-integration.mdx b/docs/src/content/docs/pt-br/guides/ci-integration.mdx
index f2b54d72..67928cbc 100644
--- a/docs/src/content/docs/pt-br/guides/ci-integration.mdx
+++ b/docs/src/content/docs/pt-br/guides/ci-integration.mdx
@@ -1,6 +1,6 @@
---
title: Integração com CI
-description: Adicione verificações do Archgate ao seu pipeline de CI/CD.
+description: Integre verificações de conformidade do Archgate no GitHub Actions, GitLab CI ou qualquer pipeline CI/CD. Bloqueie merges quando regras forem violadas.
---
As verificações do Archgate funcionam em qualquer sistema de CI que respeite códigos de saída. Adicione um único passo ao seu pipeline e as violações bloquearão merges automaticamente.
diff --git a/docs/src/content/docs/pt-br/guides/claude-code-plugin.mdx b/docs/src/content/docs/pt-br/guides/claude-code-plugin.mdx
index 54b2fd5e..15b6255b 100644
--- a/docs/src/content/docs/pt-br/guides/claude-code-plugin.mdx
+++ b/docs/src/content/docs/pt-br/guides/claude-code-plugin.mdx
@@ -1,6 +1,6 @@
---
title: Plugin para Claude Code
-description: Dê aos agentes de IA um fluxo de governança completo com o plugin Archgate para Claude Code.
+description: Configure o plugin Archgate para Claude Code. Dê aos agentes de IA um fluxo de governança que lê ADRs, valida código e captura padrões arquiteturais.
---
O plugin Archgate para Claude Code oferece aos agentes de IA que trabalham no [Claude Code](https://claude.ai/code) um fluxo de governança estruturado. Em vez de depender de instruções em prompts que se deterioram com o tempo, os agentes leem seus ADRs diretamente pelo servidor MCP e validam o próprio código contra suas regras.
diff --git a/docs/src/content/docs/pt-br/guides/copilot-cli-plugin.mdx b/docs/src/content/docs/pt-br/guides/copilot-cli-plugin.mdx
index 4d67cf1b..c72cfb85 100644
--- a/docs/src/content/docs/pt-br/guides/copilot-cli-plugin.mdx
+++ b/docs/src/content/docs/pt-br/guides/copilot-cli-plugin.mdx
@@ -1,6 +1,6 @@
---
title: Plugin para Copilot CLI
-description: Instale o plugin Archgate para GitHub Copilot CLI com governança de IA.
+description: Configure o plugin Archgate para GitHub Copilot CLI. Adicione governança arquitetural ao Copilot com conformidade ADR automatizada e aplicação de regras.
---
O plugin Archgate para Copilot CLI oferece aos agentes de IA que trabalham no [GitHub Copilot CLI](https://github.com/features/copilot) um fluxo de governança estruturado. Os agentes leem seus ADRs antes de escrever código, validam depois e capturam novos padrões para a equipe -- o mesmo fluxo disponível no [plugin para Claude Code](/pt-br/guides/claude-code-plugin/).
diff --git a/docs/src/content/docs/pt-br/guides/cursor-integration.mdx b/docs/src/content/docs/pt-br/guides/cursor-integration.mdx
index 1225a4a9..70d44715 100644
--- a/docs/src/content/docs/pt-br/guides/cursor-integration.mdx
+++ b/docs/src/content/docs/pt-br/guides/cursor-integration.mdx
@@ -1,6 +1,6 @@
---
title: Integração com Cursor
-description: Use o Archgate com o Cursor IDE para desenvolvimento assistido por IA com governança.
+description: Integre o Archgate com o Cursor IDE para desenvolvimento assistido por IA com governança arquitetural. Configure regras e skills de agente para conformidade ADR.
---
O Archgate se integra com o [Cursor](https://cursor.com) para oferecer aos agentes de IA um fluxo de governança estruturado. O agente lê seus ADRs antes de escrever código, valida depois e captura novos padrões para a equipe -- o mesmo fluxo disponível no [plugin para Claude Code](/guides/claude-code-plugin/).
diff --git a/docs/src/content/docs/pt-br/guides/mcp-server.mdx b/docs/src/content/docs/pt-br/guides/mcp-server.mdx
index 98e7f1bf..87216895 100644
--- a/docs/src/content/docs/pt-br/guides/mcp-server.mdx
+++ b/docs/src/content/docs/pt-br/guides/mcp-server.mdx
@@ -1,6 +1,6 @@
---
title: Servidor MCP
-description: Use o servidor MCP do Archgate para integração com agentes de IA.
+description: Use o servidor MCP do Archgate para dar aos agentes de IA acesso aos seus Architecture Decision Records. Compatível com Claude, Cursor e qualquer cliente MCP.
---
O servidor MCP do Archgate expõe os ADRs e verificações de conformidade do seu projeto para agentes de IA por meio do [Model Context Protocol](https://modelcontextprotocol.io/). Qualquer cliente compatível com MCP -- Claude Code, Cursor ou ferramentas customizadas -- pode se conectar a ele.
diff --git a/docs/src/content/docs/pt-br/guides/pre-commit-hooks.mdx b/docs/src/content/docs/pt-br/guides/pre-commit-hooks.mdx
index 6ec969be..84757bff 100644
--- a/docs/src/content/docs/pt-br/guides/pre-commit-hooks.mdx
+++ b/docs/src/content/docs/pt-br/guides/pre-commit-hooks.mdx
@@ -1,6 +1,6 @@
---
title: Hooks de Pre-commit
-description: Execute verificações do Archgate automaticamente antes de cada commit.
+description: Configure hooks de pre-commit do Archgate para verificar conformidade ADR automaticamente antes de cada commit. Detecte violações antes de chegarem ao CI.
---
## Visão geral
diff --git a/docs/src/content/docs/pt-br/guides/vscode-plugin.mdx b/docs/src/content/docs/pt-br/guides/vscode-plugin.mdx
index 0b0eaa92..1d72e4b7 100644
--- a/docs/src/content/docs/pt-br/guides/vscode-plugin.mdx
+++ b/docs/src/content/docs/pt-br/guides/vscode-plugin.mdx
@@ -1,6 +1,6 @@
---
title: Plugin para VS Code
-description: Instale o plugin Archgate no VS Code para desenvolvimento assistido por IA com governança.
+description: Instale a extensão Archgate para VS Code com desenvolvimento assistido por IA e governança arquitetural. Verificação de conformidade ADR em tempo real.
---
O plugin Archgate para VS Code oferece aos agentes de IA que trabalham no [VS Code](https://code.visualstudio.com/) um fluxo de governança estruturado. Os agentes leem seus ADRs antes de escrever código, validam depois e capturam novos padrões para a equipe -- o mesmo fluxo disponível no [plugin para Claude Code](/pt-br/guides/claude-code-plugin/).
diff --git a/docs/src/content/docs/pt-br/guides/writing-adrs.mdx b/docs/src/content/docs/pt-br/guides/writing-adrs.mdx
index bcf561ed..e2f467e6 100644
--- a/docs/src/content/docs/pt-br/guides/writing-adrs.mdx
+++ b/docs/src/content/docs/pt-br/guides/writing-adrs.mdx
@@ -1,6 +1,6 @@
---
title: Escrevendo ADRs
-description: Um guia completo para escrever Registros de Decisão Arquitetural eficazes.
+description: Guia completo para escrever Architecture Decision Records eficazes no Archgate. Aprenda o esquema YAML frontmatter, estrutura markdown e boas práticas.
---
## Criando um ADR
diff --git a/docs/src/content/docs/pt-br/guides/writing-rules.mdx b/docs/src/content/docs/pt-br/guides/writing-rules.mdx
index 1b3bd773..ddee5649 100644
--- a/docs/src/content/docs/pt-br/guides/writing-rules.mdx
+++ b/docs/src/content/docs/pt-br/guides/writing-rules.mdx
@@ -1,6 +1,6 @@
---
title: Escrevendo Regras
-description: Aprenda a escrever regras automatizadas que aplicam suas decisões de ADR.
+description: Escreva regras TypeScript que aplicam automaticamente seus Architecture Decision Records. Aprenda a API defineRules, correspondência de arquivos e relatórios.
---
Regras são funções TypeScript que verificam seu codebase quanto à conformidade com ADRs. Elas ficam em arquivos `.rules.ts` complementares ao lado dos arquivos markdown dos ADRs e são executadas quando você roda `archgate check`.
diff --git a/docs/src/content/docs/pt-br/index.mdx b/docs/src/content/docs/pt-br/index.mdx
index f4f4c01d..15cc909b 100644
--- a/docs/src/content/docs/pt-br/index.mdx
+++ b/docs/src/content/docs/pt-br/index.mdx
@@ -1,6 +1,6 @@
---
title: Archgate
-description: Aplique Architecture Decision Records como regras executáveis — para humanos e agentes de IA.
+description: O Archgate CLI aplica Architecture Decision Records (ADRs) como regras executáveis em TypeScript. Automatize a governança de código para humanos e agentes de IA.
template: splash
hero:
tagline: Escreva um ADR uma vez. Aplique em todo lugar. Alimente agentes de IA automaticamente.
diff --git a/docs/src/content/docs/pt-br/reference/adr-schema.mdx b/docs/src/content/docs/pt-br/reference/adr-schema.mdx
index 19b48c60..4918f66d 100644
--- a/docs/src/content/docs/pt-br/reference/adr-schema.mdx
+++ b/docs/src/content/docs/pt-br/reference/adr-schema.mdx
@@ -1,6 +1,6 @@
---
title: Esquema de ADR
-description: Esquema de frontmatter YAML e estrutura markdown para ADRs do Archgate.
+description: Referência completa do esquema YAML frontmatter e estrutura markdown para Architecture Decision Records do Archgate. Todos os campos e regras de validação.
---
Todo ADR do Archgate é um arquivo Markdown armazenado em `.archgate/adrs/` com frontmatter YAML que define a identidade e o escopo da decisão. Esta página documenta o esquema do frontmatter, a estrutura das seções markdown e o comportamento de validação.
diff --git a/docs/src/content/docs/pt-br/reference/cli-commands.mdx b/docs/src/content/docs/pt-br/reference/cli-commands.mdx
index 0db6b86a..6b763e27 100644
--- a/docs/src/content/docs/pt-br/reference/cli-commands.mdx
+++ b/docs/src/content/docs/pt-br/reference/cli-commands.mdx
@@ -1,6 +1,6 @@
---
title: Comandos da CLI
-description: Referência completa de todos os comandos da CLI do Archgate.
+description: "Referência completa de todos os comandos da CLI do Archgate: init, check, adr create, adr list, adr show, adr update, login, review-context e mais."
---
## Opções globais
diff --git a/docs/src/content/docs/pt-br/reference/mcp-tools.mdx b/docs/src/content/docs/pt-br/reference/mcp-tools.mdx
index 15a4c24d..b02b6099 100644
--- a/docs/src/content/docs/pt-br/reference/mcp-tools.mdx
+++ b/docs/src/content/docs/pt-br/reference/mcp-tools.mdx
@@ -1,6 +1,6 @@
---
title: Ferramentas MCP
-description: Referência de todas as ferramentas e recursos MCP expostos pelo servidor Archgate.
+description: Referência da API de todas as ferramentas MCP expostas pelo servidor Archgate. Inclui adr_list, adr_read, check_compliance e review_context.
---
O servidor MCP do Archgate expõe ferramentas e recursos que agentes de IA utilizam para ler ADRs, validar código contra regras e acessar o contexto de revisão. Inicie o servidor com `archgate mcp`.
diff --git a/docs/src/content/docs/pt-br/reference/rule-api.mdx b/docs/src/content/docs/pt-br/reference/rule-api.mdx
index 18511af9..7c3cfb4a 100644
--- a/docs/src/content/docs/pt-br/reference/rule-api.mdx
+++ b/docs/src/content/docs/pt-br/reference/rule-api.mdx
@@ -1,6 +1,6 @@
---
title: API de Regras
-description: Referência da API TypeScript para escrever regras do Archgate.
+description: Referência da API TypeScript para escrever regras do Archgate. Aprenda defineRules, RuleContext, relatórios de violação, correspondência de arquivos e verificações AST.
---
As regras do Archgate são arquivos TypeScript que exportam verificações automatizadas via `defineRules()`. Cada regra recebe um `RuleContext` com utilitários para buscar arquivos, ler conteúdo e reportar violações.
diff --git a/docs/src/content/docs/reference/adr-schema.mdx b/docs/src/content/docs/reference/adr-schema.mdx
index b107c55b..6b404ed6 100644
--- a/docs/src/content/docs/reference/adr-schema.mdx
+++ b/docs/src/content/docs/reference/adr-schema.mdx
@@ -1,6 +1,6 @@
---
title: ADR Schema
-description: YAML frontmatter schema and markdown structure for Archgate ADRs.
+description: Complete YAML frontmatter schema and markdown structure reference for Archgate Architecture Decision Records. All fields and validation rules explained.
---
Every Archgate ADR is a Markdown file stored in `.archgate/adrs/` with YAML frontmatter that defines the decision's identity and scope. This page documents the frontmatter schema, markdown section structure, and validation behavior.
diff --git a/docs/src/content/docs/reference/cli-commands.mdx b/docs/src/content/docs/reference/cli-commands.mdx
index 05d94467..4392713c 100644
--- a/docs/src/content/docs/reference/cli-commands.mdx
+++ b/docs/src/content/docs/reference/cli-commands.mdx
@@ -1,6 +1,6 @@
---
title: CLI Commands
-description: Complete reference for all Archgate CLI commands.
+description: "Complete reference for all Archgate CLI commands: init, check, adr create, adr list, adr show, adr update, login, review-context, and more."
---
## Global options
diff --git a/docs/src/content/docs/reference/mcp-tools.mdx b/docs/src/content/docs/reference/mcp-tools.mdx
index 3722ed8a..a26dcfc5 100644
--- a/docs/src/content/docs/reference/mcp-tools.mdx
+++ b/docs/src/content/docs/reference/mcp-tools.mdx
@@ -1,6 +1,6 @@
---
title: MCP Tools
-description: Reference for all MCP tools and resources exposed by the Archgate server.
+description: API reference for all MCP tools and resources exposed by the Archgate server. Includes adr_list, adr_read, check_compliance, and review_context.
---
The Archgate MCP server exposes tools and resources that AI coding agents use to read ADRs, validate code against rules, and access review context. Start the server with `archgate mcp`.
diff --git a/docs/src/content/docs/reference/rule-api.mdx b/docs/src/content/docs/reference/rule-api.mdx
index ec282bdd..c5431bd7 100644
--- a/docs/src/content/docs/reference/rule-api.mdx
+++ b/docs/src/content/docs/reference/rule-api.mdx
@@ -1,6 +1,6 @@
---
title: Rule API
-description: TypeScript API reference for writing Archgate rules.
+description: TypeScript API reference for writing Archgate rules. Learn defineRules, RuleContext, violation reporting, file matching, and AST-based compliance checks.
---
Archgate rules are TypeScript files that export automated checks via `defineRules()`. Each rule receives a `RuleContext` with utilities for searching files, reading content, and reporting violations.