Skip to content

The only tool you need to know what is happening and how to fix it.

16.8 KB
Raw Blame
import Link from "next/link";
import type { Metadata } from "next";
import { Bot, Plug, ArrowRight } from "lucide-react";

import { Chip } from "@/components/chip";
import { SectionHead } from "@/components/section-head";
import { FeatureRow } from "@/components/feature-row";
import { FaqList } from "@/components/faq-list";
import { FinalCTA } from "@/components/final-cta";
import { AuroraBackground } from "@/components/aurora-background";
import { Eyebrow } from "@/components/eyebrow";
import { Terminal } from "@/components/terminal";
import { SkillInstallCommand } from "@/components/skill-install-command";
import { AgentDebugTerminal } from "@/components/agent-debug-terminal";
import { VideoPlayer } from "@/components/video-player";
import { GITHUB_URL } from "@/lib/links";

export const metadata: Metadata = {
  title: "Agent Skills · Traceway",
  description:
    "Install the Traceway agent skills and your coding agent can instrument your app, query production telemetry through the agent-first traceway CLI, and debug issues end to end.",
};

const SKILLS = [
  {
    label: "01 · Setup",
    name: "/traceway-setup",
    description:
      "Reads your repo and wires it up: OpenTelemetry for the backend, Traceway SDKs for web and mobile. Verifies data arrives clean and grouped.",
    tags: ["OTel backends", "Web + mobile SDKs", "Source maps", "Verification"],
  },
  {
    label: "02 · Debug",
    name: "/traceway",
    description:
      "Installs the traceway CLI, then uses it: exceptions, logs, endpoints, and metrics, from bug report to root cause.",
    tags: ["CLI install", "Telemetry queries", "Debugging", "Issue triage"],
  },
  {
    label: "03 · Learn",
    name: "/traceway-learn",
    description:
      "The full guide to Traceway: issues, endpoints, traces, logs, monitors, status pages, alerts and on-call. Ask how anything works and get the answer.",
    tags: ["Product guide", "On-call", "Status pages", "Alert rules"],
  },
  {
    label: "04 · Operate",
    name: "/traceway-write",
    description:
      "Lets your agent act, not just read: archive issues, acknowledge pages, snooze rules, run monitors and draft post-mortems. Needs the write CLI and an admin opt-in.",
    tags: ["Write CLI", "On-call actions", "Post-mortems", "Admin opt-in"],
  },
];

const AGENTS = [
  "Claude Code",
  "Cursor",
  "Codex",
  "OpenCode",
  "Gemini CLI",
  "Copilot",
];

export default function AgentSkillsPage() {
  return (
    <main className="relative">
      <section className="hero hero-product relative">
        <AuroraBackground variant="hero" />
        <div className="wrap relative z-10">
          <div className="flex flex-col items-center text-center">
            <Chip>
              <Bot className="h-3 w-3 inline mr-1" />
              Agent Skills
            </Chip>
            <h1 className="mt-6 max-w-[30ch]">
              AI-first observability. <em>Your agent does the debugging.</em>
            </h1>
            <p className="hero-sub text-pretty">
              Your agent sets up Traceway, queries production telemetry, and
              finds the root cause.
            </p>
            <div className="mt-8 w-full max-w-[640px]">
              <SkillInstallCommand size="lg" className="w-full" />
            </div>
            <p className="dim mt-5 font-mono text-[0.75rem]">
              Works with Claude Code, Cursor, Codex, and any agent that reads
              SKILL.md.
            </p>
            <p className="mt-3 flex flex-wrap justify-center gap-x-6 gap-y-2 font-mono text-[0.6875rem] uppercase tracking-[0.08em]">
              <Link
                href={GITHUB_URL}
                target="_blank"
                rel="noopener noreferrer"
                className="text-fg-2 hover:text-blue-bright transition-colors"
              >
                View on GitHub →
              </Link>
              <Link
                href="/benchmarks"
                className="text-fg-2 hover:text-blue-bright transition-colors"
              >
                Explore AI SRE BENCH →
              </Link>
            </p>
          </div>
        </div>
      </section>

      <div className="band-light">
        <section className="wrap pt-15 pb-6">
          <div className="mx-auto flex max-w-3xl flex-col items-center gap-4 text-center">
            <h2>
              See it <em>in action</em>
            </h2>
            <p className="muted max-w-[560px] text-pretty">
              Watch an agent set up Traceway, pull production telemetry through
              the CLI, and walk a bug all the way to its root cause.
            </p>
          </div>
          <div className="mx-auto mt-12 max-w-4xl">
            <VideoPlayer
              src="/videos/agent-skills-demo.mp4"
              poster="/videos/agent-skills-demo.jpg"
            />
          </div>
        </section>
      </div>
      <div className="band-light">
        <section className="wrap">
          <div className="feature-row">
            <div className="feat-copy">
              <Eyebrow>Debug</Eyebrow>
              <h2>
                From bug report <em>to root cause</em>
              </h2>
              <p>
                Paste the bug report as written. The agent pulls the matching
                exceptions, the logs around the failure, and endpoint stats,
                then opens the failing code.
              </p>
              <ul className="feat-bullets">
                <li>Grouped exceptions with full stack traces</li>
                <li>Logs correlated by trace id</li>
                <li>First-seen times point at the breaking deploy</li>
                <li>Ends with a proposed fix in your code</li>
              </ul>
            </div>
            <AgentDebugTerminal />
          </div>
        </section>

        <section className="wrap">
          <div className="feature-row reverse">
            <div className="feat-copy">
              <Eyebrow>The CLI</Eyebrow>
              <h2>
                A command line <em>designed for agents first</em>
              </h2>
              <p>
                Built for non-interactive use: JSON output, stable errors, and
                nothing that hangs waiting for input. Humans on a TTY still get
                tables.
              </p>
              <ul className="feat-bullets">
                <li>JSON when piped, tables on a TTY</li>
                <li>--fields trims responses to what was asked</li>
                <li>Stable error identifiers and exit codes</li>
                <li>Mutations require --yes, nothing hangs</li>
              </ul>
            </div>
            <Terminal
              title="bash · traceway-cli"
              lines={[
                {
                  ln: "1",
                  type: "tx",
                  content: (
                    <>
                      <span className="cmd">$</span> traceway exceptions list
                      --since 24h | head -1
                    </>
                  ),
                },
                {
                  ln: "2",
                  type: "mute",
                  content: '{"hash":"82b58892","type":"TypeError","count":412}',
                },
                {
                  ln: "3",
                  type: "tx",
                  content: (
                    <>
                      <span className="cmd">$</span> traceway exceptions show
                      82b58892 --fields type,stacktrace
                    </>
                  ),
                },
                {
                  ln: "4",
                  type: "mute",
                  content:
                    '{"type":"TypeError","stacktrace":"src/checkout/session.ts:42 …"}',
                },
                {
                  ln: "5",
                  type: "tx",
                  content: (
                    <>
                      <span className="cmd">$</span> traceway exceptions archive
                      82b58892
                    </>
                  ),
                },
                {
                  ln: "6",
                  type: "mute",
                  content:
                    '{"error":"confirmation_required","hint":"re-run with --yes","exit_code":2}',
                },
                {
                  ln: "7",
                  type: "ok",
                  content: "# ✓ predictable for agents, readable for humans",
                },
              ]}
            />
          </div>
        </section>

        <section className="wrap">
          <FeatureRow
            eyebrow="Setup"
            title={
              <>
                Set up by the agent, <em>not by the docs</em>
              </>
            }
            description="/traceway-setup picks the right path for each part of the stack: OTel for backends, Traceway SDKs for browser and mobile. Then it verifies data is actually arriving."
            bullets={[
              "Detects frameworks and services from the repo",
              "OTel for backends, SDKs for web and mobile",
              "Covers background tasks, AI traces, and source maps",
              "Verifies grouped endpoints in the dashboard",
            ]}
            image={{
              src: "/images/performance-percentiles-overview.png",
              alt: "Traceway endpoints grouped by route pattern with percentiles",
            }}
          />
        </section>

        <section className="wrap py-8">
          <Eyebrow>The skills</Eyebrow>
          <h2 className="mt-4 max-w-[24ch]">
            Four skills, <em>one install.</em>
          </h2>
          <p className="muted mt-4 max-w-[640px] text-pretty">
            Plain Markdown playbooks your agent loads on demand. One sets up
            your project, one queries and debugs it, one explains how every
            part of Traceway works, and one lets your agent take action.
          </p>

          <dl className="mt-14 grid gap-6 md:grid-cols-2">
            {SKILLS.map((skill) => (
              <div
                key={skill.name}
                className="rounded-2xl p-8"
                style={{
                  background: "var(--ink-0)",
                  border: "1px solid var(--hair-2)",
                  boxShadow:
                    "0 1px 2px rgba(10,14,24,0.04), 0 12px 30px -18px rgba(10,14,24,0.14)",
                }}
              >
                <dt>
                  <p className="font-mono text-[0.6875rem] uppercase tracking-[0.14em] text-fg-3">
                    {skill.label}
                  </p>
                  <p className="mt-3 font-mono text-xl font-semibold text-fg-0 md:text-[1.375rem]">
                    {skill.name}
                  </p>
                </dt>
                <dd className="m-0">
                  <p className="muted mt-3 max-w-[440px] text-pretty">
                    {skill.description}
                  </p>
                  <div className="mt-5 flex flex-wrap gap-2">
                    {skill.tags.map((tag) => (
                      <span key={tag} className="tag">
                        {tag}
                      </span>
                    ))}
                  </div>
                </dd>
              </div>
            ))}
          </dl>
        </section>

        <section className="wrap py-16 text-center">
          <div className="max-w-3xl mx-auto flex flex-col items-center gap-5">
            <Eyebrow>Compatibility</Eyebrow>
            <h2>One format, every agent</h2>
            <p style={{ color: "var(--fg-1)", fontSize: 17 }}>
              Skills are plain Markdown in the open SKILL.md format. No
              marketplace, no lock-in. They live in the same MIT-licensed repo
              as Traceway itself.
            </p>
            <div className="flex flex-wrap items-center justify-center gap-2.5 pt-2">
              {AGENTS.map((agent) => (
                <span key={agent} className="tag">
                  {agent}
                </span>
              ))}
            </div>
          </div>
        </section>

        <section className="wrap pb-16">
          <Link
            href="/product/mcp"
            className="group mx-auto flex max-w-3xl flex-col items-start gap-4 rounded-2xl p-8 transition-colors sm:flex-row sm:items-center sm:justify-between"
            style={{
              background: "var(--ink-0)",
              border: "1px solid var(--hair-2)",
              boxShadow:
                "0 1px 2px rgba(10,14,24,0.04), 0 12px 30px -18px rgba(10,14,24,0.14)",
            }}
          >
            <div className="flex flex-col gap-2">
              <div className="flex items-center gap-2">
                <Plug className="h-4 w-4 text-a2" />
                <span className="font-mono text-[0.6875rem] uppercase tracking-[0.14em] text-fg-3">
                  Also available
                </span>
              </div>
              <p className="text-lg font-semibold text-fg-0">
                Prefer live tools? Traceway speaks MCP.
              </p>
              <p className="muted max-w-[48ch] text-pretty">
                Connect Claude Code, Cursor, or any MCP client straight to your
                instance over OAuth. The same telemetry, exposed as MCP tools,
                prompts, and resources.
              </p>
            </div>
            <span className="inline-flex shrink-0 items-center gap-1.5 font-mono text-[0.8125rem] text-blue-bright transition-transform group-hover:translate-x-0.5">
              Explore the MCP server
              <ArrowRight className="h-4 w-4" />
            </span>
          </Link>
        </section>
      </div>

      <FinalCTA
        title={
          <>
            Give your agent <em>production context.</em>
          </>
        }
        description="Install the skills and let your agent take the next bug."
        primary={{
          label: "Star on GitHub",
          href: GITHUB_URL,
          external: true,
        }}
        secondary={{
          label: "Start for free",
          href: "https://cloud.tracewayapp.com/register",
        }}
      />

      <section className="wrap pt-10 pb-24">
        <div className="max-w-3xl mx-auto">
          <SectionHead
            align="center"
            eyebrow="FAQ"
            title="Questions about agent skills"
          />
          <div className="mt-4">
            <FaqList
              items={[
                {
                  q: "What exactly is an agent skill?",
                  a: "A SKILL.md file: Markdown instructions your agent loads when a task matches. Traceway ships four: one sets up a project, one queries and debugs it, one explains how every part of Traceway works, and one makes changes once an admin allows it. All four live in the open-source repo.",
                },
                {
                  q: "Which agents are supported?",
                  a: (
                    <>
                      <p>
                        Anything that reads SKILL.md: Claude Code, Cursor,
                        Codex, OpenCode, Gemini CLI, Copilot, and more.
                      </p>
                      <p>
                        <code>npx skills add tracewayapp/traceway --all</code>{" "}
                        installs the skills for every agent it finds on your
                        machine.
                      </p>
                    </>
                  ),
                },
                {
                  q: "Can an agent damage my production data?",
                  a: "No. The traceway CLI only reads. The install also adds the traceway-write skill, but it changes nothing on its own: writes need the separate traceway-write CLI or a write token, and an organization admin who turned on Agent Access.",
                },
                {
                  q: "Does this work with self-hosted Traceway?",
                  a: "Yes. traceway login --url works against any instance, and profiles let one machine use several.",
                },
                {
                  q: "Do I need the CLI installed first?",
                  a: "No. The /traceway skill installs and authenticates it before running its first query.",
                },
                {
                  q: "Is there an MCP server too?",
                  a: (
                    <>
                      <p>
                        Yes. Traceway also ships a Model Context Protocol server:
                        remote over OAuth at{" "}
                        <code>https://your-instance/mcp</code>, or local on stdio
                        via <code>traceway mcp</code>. Skills drive the CLI; MCP
                        gives the agent live tools.
                      </p>
                      <p>
                        <Link href="/product/mcp" className="text-blue-bright hover:underline">
                          See the MCP server →
                        </Link>
                      </p>
                    </>
                  ),
                },
              ]}
            />
          </div>
        </div>
      </section>
    </main>
  );
}