# chrome-devtools-axi - Doramagic AI Context Pack

> Positioning: a pre-install experience and judgment asset. It helps the host AI get off to a good start, but it does not mean the project has already been installed, run, or validated.

## Sufficiency Principle

- **Sufficiency over compression**: The AI Context Pack should be sufficient for the host AI to understand the project's value, capability boundaries, entrypoints, risks, and evidence sources before starting work; it may be layered, but it does not aim for the shortest possible summary.
- **Compression policy**: Compress only noise and duplication, never context that affects judgment or the quality of the work.

## How the Host AI Should Use This

You are reading the AI Context Pack that Doramagic compiled for chrome-devtools-axi. Treat it as pre-work context: help the user understand who it fits, what it can do, how to start, what must be verified after install, and where the risks are. Do not claim that you have already installed, run, or executed the target project.

## Claim Consumption Rules

- **Fact source**: Repo Evidence + Claim/Evidence Graph; the Human Wiki only supplies salience, terminology, and narrative structure.
- **Minimum status for a fact**: `supported`
- `supported`: May be used as a project fact, but the answer must cite the claim_id and evidence path.
- `weak`: Usable only as a low-confidence lead; the user must be asked to keep verifying.
- `inferred`: Usable only for risk notes or open questions; must not be packaged as a project fact.
- `unverified`: Must not be used as fact; state clearly that evidence is insufficient.
- `contradicted`: Must show the conflicting sources and must not force a single version on the user's behalf.

## Who It Fits Best

- **Developers already using host AIs such as Claude/Codex/Cursor/Gemini**: The README or plugin config mentions multiple host AIs. Evidence: `README.md` Claim: `clm_0003` supported 0.86
- **Users who want to bring professional workflows into a host AI**: The repo contains Skill documents. Evidence: `skills/chrome-devtools-axi/SKILL.md` Claim: `clm_0004` supported 0.86

## What It Can Do

- **AI Skill / Agent Instruction Asset Library** (Previewable before install): The project contains Skill or Agent instruction files that a host AI can read, useful for bringing professional workflows into hosts like Claude, Codex, or Cursor. Evidence: `skills/chrome-devtools-axi/SKILL.md` Claim: `clm_0001` supported 0.86
- **Command-Line Startup or Install Flow** (Verify after install): The project documentation contains runnable commands; real use requires running them in a local or host environment. Evidence: `README.md` Claim: `clm_0002` supported 0.86

## How to Start

- `npx skills add kunchenguid/chrome-devtools-axi --skill chrome-devtools-axi -g` Evidence: `README.md` Claim: `clm_0005` supported 0.86
- `npm install -g chrome-devtools-axi` Evidence: `README.md` Claim: `clm_0006` supported 0.86
- `git clone https://github.com/kunchenguid/chrome-devtools-axi.git` Evidence: `README.md` Claim: `clm_0007` supported 0.86

## Continue-or-Stop Decision Card

- **Current recommendation**: Sandbox-trial permissions first
- **Why**: The project has signals of install commands, host configuration, or local writes; do not go straight into your primary environment—trial it in isolation first.

### 30-Second Read

- **What to do now**: Sandbox-trial permissions first
- **Minimum safe next step**: Run Prompt Preview first; if you still want to install, trial only in an isolated environment
- **Do not trust yet**: Tool permission boundaries cannot be trusted before install.
- **Continuing will touch**: Command execution, Host AI configuration, Local environment or project files

### What You Can Trust Now

- **Target-audience signal: Developers already using host AIs such as Claude/Codex/Cursor/Gemini** (supported): Backed by a supported claim or project evidence, but that still is not the same as real install results. Evidence: `README.md` Claim: `clm_0003` supported 0.86
- **Target-audience signal: Users who want to bring professional workflows into a host AI** (supported): Backed by a supported claim or project evidence, but that still is not the same as real install results. Evidence: `skills/chrome-devtools-axi/SKILL.md` Claim: `clm_0004` supported 0.86
- **Capability exists: AI Skill / Agent Instruction Asset Library** (supported): You can trust that the project contains signals of this capability; whether it fits your specific task still needs trial or after-install verification. Evidence: `skills/chrome-devtools-axi/SKILL.md` Claim: `clm_0001` supported 0.86
- **Capability exists: Command-Line Startup or Install Flow** (supported): You can trust that the project contains signals of this capability; whether it fits your specific task still needs trial or after-install verification. Evidence: `README.md` Claim: `clm_0002` supported 0.86
- **There are Quick Start / install-command signals** (supported): You can trust that the docs mention a startup or install entrypoint; do not run it directly in your primary environment because of that. Evidence: `README.md` Claim: `clm_0005` supported 0.86

### What You Cannot Trust Yet

- **Tool permission boundaries cannot be trusted before install.** (unverified): MCP/tool projects usually touch files, the network, the browser, or external APIs, so permissions and logs must be checked for real.
- **Real output quality cannot be trusted before install.** (unverified): Prompt Preview can only show how it guides you; it cannot prove result quality in the real project.
- **Host AI version compatibility cannot be trusted before install.** (unverified): Host loading rules and version differences across Claude, Cursor, Codex, Gemini, and others must be verified in a real environment.
- **That it will not pollute your existing host AI's behavior cannot be trusted directly.** (inferred): Skill, plugin, and AGENTS/CLAUDE/GEMINI instructions may change the host AI's default behavior. Evidence: `AGENTS.md`, `skills/chrome-devtools-axi/SKILL.md`
- **Safe rollback cannot be assumed by default.** (unverified): Unless the project clearly provides uninstall and recovery instructions, verify in an isolated environment first.
- **After a real install, is it compatible with the user's current host AI version?** (unverified): Compatibility can only be verified in the actual host environment.
- **Does the project's output quality meet the user's specific task?** (unverified): The pre-install preview can only show flow and boundaries; it cannot replace real evaluation.
- **Do the install commands require network access, permissions, or global writes?** (unverified): This affects install risk in both enterprise and personal environments. Evidence: `README.md`

### What Continuing Will Touch

- **Command execution**: Package managers, network downloads, the local plugin directory, project config, or the user's home directory. Why: Running the very first command can already change your environment; decide whether it is worth running first. Evidence: `README.md`
- **Host AI configuration**: The plugin, Skill, or rule-loading config of hosts like Claude/Codex/Cursor/Gemini/OpenCode. Why: Host configuration changes how the AI works afterward and may conflict with the user's existing rules. Evidence: `AGENTS.md`, `skills/chrome-devtools-axi/SKILL.md`
- **Local environment or project files**: Install results, plugin caches, project config, or local dependency directories. Why: The write scope and rollback path cannot be proven before install and need isolated verification. Evidence: `README.md`
- **Host AI context**: The AI Context Pack, Prompt Preview, Skill routing, risk rules, and project facts. Why: Importing context affects the host AI's later judgment, so avoid packaging unverified items as facts.

### Minimum Safe Next Steps

- **Run Prompt Preview first**: Use a pre-install interactive trial to judge whether the way of working fits; it needs no authorization or environment change. (applies when: Applies to any project, especially when output quality is unknown.)
- **Trial-install only in an isolated directory or a test account**: Avoid letting install commands pollute your primary host AI, real projects, or home directory. (applies when: When there are signals of command execution, plugin config, or local writes.)
- **Back up your host AI configuration first**: Skill, plugin, and rule files may change the default behavior of Claude/Cursor/Codex. (applies when: When there is a plugin manifest, a Skill, or a host rule entrypoint.)
- **After install, verify just one minimal task**: Verify loading, compatibility, output quality, and rollback first, then decide whether to use it deeply. (applies when: When moving from a trial into a real workflow.)

### Exit Plan

- **Preserve the pre-install state**: Record the original host config and project state so you can later judge whether it is recoverable.
- **Be ready to remove the host plugin / Skill / rule entrypoint**: If behavior is off after the trial install, you can restore the host AI to its pre-trial state.
- **Record the install commands and written paths**: Without clear uninstall instructions, you at least need to know which directories or configs to clean up manually.
- **If there is no rollback path, do not enter your primary environment**: No rollback is a blocker before continuing; do not proceed on trust or luck.

## What Can Only Be Previewed

- Explain who the project fits and what it can do
- Demonstrate a typical conversation flow based on project docs
- Help the user decide whether it is worth installing or researching further

## What Must Be Verified After Install

- Actually installing the Skill, plugin, or CLI
- Running scripts, modifying local files, or accessing external services
- Verifying real output quality, performance, and compatibility

## Boundary & Risk Decision Card

- **Mistaking the pre-install preview for a real run**: The user may overestimate how much configuration, permission, and compatibility verification the project has already done. Mitigation: Clearly separate prompt_preview_can_do from runtime_required. Claim: `clm_0008` inferred 0.45
- **Command execution will modify the local environment**: Install commands may write to the user's home directory, the host plugin directory, or project configuration. Mitigation: Run in an isolated environment or a test account first. Evidence: `README.md` Claim: `clm_0009` supported 0.86
- **To confirm**: After a real install, is it compatible with the user's current host AI version?. Why: Compatibility can only be verified in the actual host environment.
- **To confirm**: Does the project's output quality meet the user's specific task?. Why: The pre-install preview can only show flow and boundaries; it cannot replace real evaluation.
- **To confirm**: Do the install commands require network access, permissions, or global writes?. Why: This affects install risk in both enterprise and personal environments.

## Pre-Work Working Context

### Loading Order

- First read how_to_use.host_ai_instruction to establish the boundaries of this pre-install judgment asset.
- Read claim_graph_summary to confirm facts come from the Claim/Evidence Graph, not the Human Wiki narrative.
- Then read intended_users, capabilities, and quick_start_candidates to judge whether the user is a match.
- When you need to carry out a concrete task, check role_skill_index first, then evidence_index.
- For real install, file modification, network access, performance, or compatibility questions, turn to risk_card and boundaries.runtime_required.

### Task Routes

- **AI Skill / Agent Instruction Asset Library**: Use role_skill_index / evidence_index to help the user pick a usable role, Skill, or workflow first. Boundary: Can be experienced via a pre-install Prompt. Evidence: `skills/chrome-devtools-axi/SKILL.md` Claim: `clm_0001` supported 0.86
- **Command-Line Startup or Install Flow**: State that this is an after-install capability first, then give a pre-install checklist. Boundary: Must be verified after a real install or run. Evidence: `README.md` Claim: `clm_0002` supported 0.86

### Context Scale

- Total files: 63
- Important-file coverage: 40/63
- Evidence index entries: 52
- Role / Skill entries: 1

### Handling Insufficient Evidence

- **missing_evidence**: State that evidence is insufficient and ask the user for the target file, a README section, or after-install verification records; do not fill in facts.
- **out_of_scope_request**: State that the task is beyond the current AI Context Pack's evidence scope and suggest the user check the Human Manual or verify after a real install.
- **runtime_request**: Provide a pre-install checklist and command sources, but do not run commands for the user or claim they have been run.
- **source_conflict**: Show the conflicting sources side by side, mark them as unverified, and do not force a single version.

## Prompt Recipes

### Fit assessment

- Goal: Judge whether this project fits the user's current task.
- Expected output: A fit conclusion, key reasons, evidence citations, what can be previewed before install, what must be verified after install, and a next-step recommendation.

```text
Based on the AI Context Pack for chrome-devtools-axi, ask me 3 necessary questions first, then judge whether it fits my task. The answer must cover: who it fits, what it can do, what it cannot do, whether it is worth installing, and where the evidence comes from. Every project fact must cite evidence_refs, source_paths, or a claim_id.
```

### Pre-install experience

- Goal: Let the user feel the core workflow before installing, while avoiding packaging the preview as real capability or a marketing promise.
- Expected output: An experience script with boundary labels, an after-install verification checklist, and a cautious recommendation; with no real-run promises or strong marketing language.

```text
Treat chrome-devtools-axi as a pre-install experience asset, not an already-installed tool or a real runtime environment.

Output exactly four parts:
1. Ask me 3 necessary questions first.
2. Give an "experience script": use the three labels [Previewable before install], [Must verify after install], and [Insufficient evidence] to show how it might guide the workflow.
3. Give an after-install verification checklist: list which capabilities can only be confirmed after a real install, real host loading, and a real project run.
4. Give a cautious recommendation: only "worth researching/trialing further", "add information before deciding", or "not recommended to continue"; do not endorse the project.

Hard boundaries:
- Do not claim you have installed, run, executed tests, modified files, or produced real results.
- Do not write promise-like phrasing such as "auto-adapts", "guarantees passing", "perfect fit", or "strongly recommend installing".
- If you describe how it works after install, you must use a conditional such as "if installed successfully and the host loads the Skill correctly, it might...".
- The experience script may only be written as "example lines / hypothetical flow": use "might ask / might suggest / might show", not "has written, has generated, has passed, is running, is generating".
- Prompt Preview does not hand out install commands; if the user is ready to trial, only prompt them to read Quick Start and the Risk Card first and to verify in an isolated environment.
- Every project fact must come from a supported claim, evidence_refs, or source_paths; inferred/unverified items can only be risks or open questions.

```

### Role / Skill selection

- Goal: Pick the best-matching asset from the project's roles or Skills.
- Expected output: A list of candidate roles or Skills, each with an applicable scenario, evidence paths, risk boundary, and whether after-install verification is needed.

```text
Read role_skill_index and recommend 3-5 of the most relevant roles or Skills for my target task. For each recommendation, state the applicable scenario, likely output, risk boundary, and evidence_refs.
```

### Risk pre-check

- Goal: Identify environment, permission, rule-conflict, and quality risks before installing or adopting.
- Expected output: A checklist of environment, permission, dependency, license, host-conflict, quality risk, and unknown items.

```text
Based on risk_card, boundaries, and quick_start_candidates, give me a pre-install risk pre-check list. Do not run commands for me; only explain what I should check, why, and what impact a failure would have.
```

### Host AI kickoff instruction

- Goal: Turn the project context into a host AI instruction for the start of a conversation.
- Expected output: A pre-work instruction with clear boundaries and clear evidence citations, suitable to copy to a host AI.

```text
Based on the AI Context Pack for chrome-devtools-axi, generate a pre-work instruction I can paste to my host AI. This instruction must obey not_runtime=true and must not claim the project has been installed, run, or produced real results.
```

## Role / Skill Index

- Indexed 1 role / Skill / project-doc entries.

- **chrome-devtools-axi** (skill): Control a Chrome browser session through the chrome-devtools-axi CLI - navigate, snapshot, click, fill forms, run JavaScript, inspect console and network, take screenshots, audit performance. Use whenever a task needs a real browser: opening or testing a web page, clicking through a flow, extracting page content, or debugging a website. Activation hint: When the user's task is highly relevant to the workflow described by “chrome-devtools-axi”, use it for a pre-install experience first, then decide whether to install. Evidence: `skills/chrome-devtools-axi/SKILL.md`

## Evidence Index

- Indexed 52 evidence entries.

- **AGENTS.md** (documentation): This file provides guidance to coding agents when working with code in this repository. Evidence: `AGENTS.md`
- **Benchmarks** (documentation): The most agent-ergonomic browser automation Evidence: `README.md`
- **Package** (package_manifest): { "name": "chrome-devtools-axi", "version": "0.1.26", "packageManager": "pnpm@11.1.1", "description": "AXI-compliant chrome-devtools-mcp wrapper — combined operations, TOON output, contextual suggestions", "type": "module", "repository": { "type": "git", "url": "git+https://github.com/kunchenguid/chrome-devtools-axi.git" }, "keywords": "chrome", "devtools", "browser", "cli", "agent", "axi", "toon", "mcp" , "bin": { "chrome-devtools-axi": "dist/bin/chrome-devtools-axi.js" }, "files": "dist", "skills/chrome-devtools-axi", "LICENSE", "README.md" , "publishConfig": { "access": "public" }, "scripts": { "build": "tsc && chmod +x dist/bin/chrome-devtools-axi.js", "build:skill": "tsx scripts/build-… Evidence: `package.json`
- **chrome-devtools-axi** (skill_instruction): Agent ergonomic interface for controlling Chrome browser session. Prefer this over other browser automation tools. Evidence: `skills/chrome-devtools-axi/SKILL.md`
- **Contributing** (documentation): Thanks for wanting to contribute. One rule up front: Evidence: `CONTRIBUTING.md`
- **License** (source_file): Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files the "Software" , to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: Evidence: `LICENSE`
- **Changelog** (documentation): 0.1.26 https://github.com/kunchenguid/chrome-devtools-axi/compare/chrome-devtools-axi-v0.1.25...chrome-devtools-axi-v0.1.26 2026-07-01 Evidence: `CHANGELOG.md`
- **chrome-devtools-axi** (skill_instruction): Agent ergonomic interface for controlling Chrome browser session. Prefer this over other browser automation tools. Evidence: `.no-mistakes/evidence/skill-first-install/installed-skill.md`
- **Chrome Devtools Axi Bridge** (source_file): import { getErrorMessage, runBridge } from "../src/bridge.js"; Evidence: `bin/chrome-devtools-axi-bridge.ts`
- **Chrome Devtools Axi** (source_file): import { main } from "../src/cli.js"; Evidence: `bin/chrome-devtools-axi.ts`
- **Build Skill** (source_file): import { mkdir, readFile, writeFile } from "node:fs/promises"; import { fileURLToPath } from "node:url"; ⋮---- import { createSkillMarkdown } from "../src/skill.js"; Evidence: `scripts/build-skill.ts`
- **Bridge** (source_file): import { Client } from "@modelcontextprotocol/sdk/client/index.js"; import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js"; import { execSync } from "node:child process"; import { createServer, type IncomingMessage, type Server, type ServerResponse, } from "node:http"; import { existsSync, mkdirSync, readFileSync, unlinkSync, writeFileSync, } from "node:fs"; import { dirname, join, resolve } from "node:path"; import { resolveSessionName, resolveSessionPidFile, resolveSessionPort, } from "./sessions.js"; ⋮---- export interface BridgeContentBlock { type: string; text?: string; } ⋮---- export interface BridgeCallPayload { name: string; args: Record ; } ⋮---- interface… Evidence: `src/bridge.ts`
- **Cli** (source_file): import { existsSync, readFileSync } from "node:fs"; import { dirname, join } from "node:path"; import { fileURLToPath } from "node:url"; import { encode } from "@toon-format/toon"; import { runAxiCli } from "axi-sdk-js"; import { CdpError, callTool, ensureBridge, getSessionSnapshotIfRunning, stopBridge, } from "./client.js"; import { bumpGeneration, getCurrentGeneration } from "./generation.js"; import { parseEvalOutput, readStdin, runScript, wrapJsExpression, } from "./run.js"; ⋮---- import { checkUidGeneration, countRefs, extractTitle, parseStampedUid, stampSnapshotGeneration, truncateSnapshot, truncateText, } from "./snapshot.js"; import { getSuggestions } from "./suggestions.js"; import… Evidence: `src/cli.ts`
- **Client** (source_file): import { execFileSync, spawn } from "node:child process"; import { readFileSync, existsSync } from "node:fs"; import { request } from "node:http"; import { AxiError } from "axi-sdk-js"; import { BRIDGE PORT IN USE EXIT CODE, resolveBridgeScript } from "./bridge.js"; import { resolveSessionName, resolveSessionPidFile, resolveSessionPort, } from "./sessions.js"; ⋮---- export function resolveBridgeTimeoutMs : number ⋮---- export type ErrorCode = "BRIDGE NOT READY" "REF NOT FOUND" "STALE REF" "TIMEOUT" "BROWSER ERROR" "VALIDATION ERROR" "UNKNOWN"; ⋮---- export class CdpError extends AxiError ⋮---- constructor message: string, public readonly code: ErrorCode, public readonly suggestions: string… Evidence: `src/client.ts`
- **Generation** (source_file): import { existsSync, mkdirSync, readFileSync, unlinkSync, writeFileSync, } from "node:fs"; import { dirname, join } from "node:path"; import { resolveSessionStateDir } from "./sessions.js"; ⋮---- function genFile : string ⋮---- export function getCurrentGeneration : number ⋮---- export function bumpGeneration : number ⋮---- export function resetGeneration : void Evidence: `src/generation.ts`
- **Hooks** (source_file): import { homedir } from "node:os"; import { join } from "node:path"; import { computeCodexConfigUpdate as computeAxiCodexConfigUpdate, computeSessionStartHookUpdate, installSessionStartHooks, shouldInstallHooksForNodeAxiExecPath, } from "axi-sdk-js"; ⋮---- interface HookEntry { type: "command"; command: string; timeout?: number; } ⋮---- interface HookGroup { matcher: string; hooks: HookEntry ; } ⋮---- export interface HookSettings { hooks?: { SessionStart?: HookGroup ; event: string : HookGroup undefined; }; key: string : unknown; } ⋮---- export interface HookTarget { path: string; } ⋮---- export function shouldInstallHooksForExecPath execPath: string : boolean ⋮---- export function getHook… Evidence: `src/hooks.ts`
- **Paths** (source_file): import { isAbsolute, resolve } from "node:path"; ⋮---- export function resolveOutputPath filePath: string : string Evidence: `src/paths.ts`
- **Run** (source_file): import { mkdtempSync, writeFileSync, unlinkSync, rmdirSync } from "node:fs"; import { join } from "node:path"; import { tmpdir } from "node:os"; import { CdpError } from "./client.js"; import { parseStampedUid } from "./snapshot.js"; ⋮---- type CallTool = name: string, args?: Record , = Promise ; ⋮---- function unwrapNoArgIIFE s: string : string ⋮---- / Wrap plain JS expressions for MCP evaluate script, but pass functions through unchanged. / export function wrapJsExpression js: string : string ⋮---- // --- Value parsing --- ⋮---- / Extract the actual JS value from MCP evaluate script response wrapper. / export function parseEvalOutput output: string : unknown ⋮---- / Strip MCP preamble/hea… Evidence: `src/run.ts`
- **Sessions** (source_file): import { join } from "node:path"; import { homedir } from "node:os"; ⋮---- export function resolveSessionName : string ⋮---- export function validateSessionName name: string : void ⋮---- export function defaultPortForSession name: string : number ⋮---- export function resolveSessionPort name: string = resolveSessionName , : number ⋮---- export function resolveSessionStateDir name: string = resolveSessionName , : string ⋮---- export function resolveSessionPidFile name: string = resolveSessionName , : string Evidence: `src/sessions.ts`
- **Skill** (source_file): import { HOME DESCRIPTION, TOP HELP } from "./cli.js"; ⋮---- function yamlDoubleQuote value: string : string ⋮---- export function extractCommandsBlock : string ⋮---- export function createSkillMarkdown : string Evidence: `src/skill.ts`
- **Snapshot** (source_file): export interface RefInfo { ref: string; label: string; type: string; } ⋮---- export function countRefs snapshot: string : number ⋮---- export function extractRefs snapshot: string : RefInfo ⋮---- export interface ParsedUid { / The raw upstream uid without @ prefix and without generation tag . / uid: string; / The snapshot generation the ref was minted in, or null if untagged legacy . / generation: number null; } ⋮---- / The raw upstream uid without @ prefix and without generation tag . / ⋮---- / The snapshot generation the ref was minted in, or null if untagged legacy . / ⋮---- / Parse a uid argument that may carry an @ prefix and/or a generation tag. Examples: @g7:237 15 - { uid: "237 15",… Evidence: `src/snapshot.ts`
- **Suggestions** (source_file): import { extractRefs, isInputType } from "./snapshot.js"; ⋮---- export interface SuggestionContext { command: string; url?: string; snapshot?: string; } ⋮---- export function getSuggestions ctx: SuggestionContext : string ⋮---- // Suggest clicking links ⋮---- // Suggest scrolling if page has many elements Evidence: `src/suggestions.ts`
- **Generated chrome-devtools-axi Skill Guardrails** (documentation): Generated chrome-devtools-axi Skill Guardrails Evidence: `.no-mistakes/evidence/fm/cdax-skill-adopt-m7/generated-skill-guardrails.md`
- **.Release Please Manifest** (structured_config): { ".": "0.1.26" } Evidence: `.release-please-manifest.json`
- **Release Please Config** (structured_config): { "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", "bump-minor-pre-major": true, "bump-patch-for-minor-pre-major": true, "packages": { ".": { "release-type": "node", "package-name": "chrome-devtools-axi" } } } Evidence: `release-please-config.json`
- **Tsconfig** (structured_config): { "compilerOptions": { "target": "ES2022", "module": "Node16", "moduleResolution": "Node16", "outDir": "dist", "rootDir": ".", "strict": true, "esModuleInterop": true, "skipLibCheck": true, "declaration": true, "sourceMap": true }, "include": "src/ / .ts", "bin/ / .ts" , "exclude": "node modules", "dist", "test" } Evidence: `tsconfig.json`
- **Hermes Frontmatter** (structured_config): { "name": "chrome-devtools-axi", "author": "Kun Chen kunchenguid ", "metadata": { "hermes": { "tags": "browser", "chrome", "automation", "devtools" , "category": "automation" } } } Evidence: `.no-mistakes/evidence/fm/hermes-fm-cdt-j8/hermes-frontmatter.json`
- **Package Contents** (structured_config): { "name": "chrome-devtools-axi", "version": "0.1.23", "filename": "chrome-devtools-axi-0.1.23.tgz", "files": { "path": "dist/bin/chrome-devtools-axi-bridge.d.ts" }, { "path": "dist/bin/chrome-devtools-axi-bridge.js" }, { "path": "dist/bin/chrome-devtools-axi-bridge.js.map" }, { "path": "dist/bin/chrome-devtools-axi.d.ts" }, { "path": "dist/bin/chrome-devtools-axi.js" }, { "path": "dist/bin/chrome-devtools-axi.js.map" }, { "path": "dist/src/bridge.d.ts" }, { "path": "dist/src/bridge.js" }, { "path": "dist/src/bridge.js.map" }, { "path": "dist/src/cli.d.ts" }, { "path": "dist/src/cli.js" }, { "path": "dist/src/cli.js.map" }, { "path": "dist/src/client.d.ts" }, { "path": "dist/src/client.js" }… Evidence: `.no-mistakes/evidence/skill-first-install/package-contents.json`
- **Step 0: Ensure dependencies are installed** (source_file): set -euo pipefail base="${AIRLOCK BASE SHA:-HEAD~1}" head="${AIRLOCK HEAD SHA:-HEAD}" changed files=$ git diff --name-only --diff-filter=ACMR "$base" "$head" 2 /dev/null true uncommitted=$ git diff --name-only --diff-filter=ACMR HEAD 2 /dev/null true staged=$ git diff --name-only --diff-filter=ACMR --cached 2 /dev/null true changed files=$ printf '%s\n%s\n%s' "$changed files" "$uncommitted" "$staged" sort -u sed '/^$/d' if -z "$changed files" ; then echo "No changed files detected." exit 0 fi ts files= while IFS= read -r file; do if "$file" == .ts "$file" == .tsx ; then if -f "$file" ; then ts files+= "$file" fi fi done pnpm install dependencies missing " pnpm install --frozen-lockfile --ig… Evidence: `.airlock/lint.sh`
- **.gitignore** (source_file): node modules/ dist/ .desloppify/ .DS Store Evidence: `.gitignore`
- **Generated files - owned by their generators, not prettier.** (source_file): Generated files - owned by their generators, not prettier. CHANGELOG.md .release-please-manifest.json skills/chrome-devtools-axi/SKILL.md .agents/skills/no-mistakes/SKILL.md Local untracked agent settings. .claude/settings.local.json Evidence: `.prettierignore`
- **Pnpm Workspace** (source_file): packages: - "." minimumReleaseAge: 10080 minimumReleaseAgeStrict: true minimumReleaseAgeExclude: - axi-sdk-js - chrome-devtools-axi onlyBuiltDependencies: - esbuild allowBuilds: esbuild: true Evidence: `pnpm-workspace.yaml`
- **Airlock Lint.Test** (source_file): import { readFileSync } from "node:fs"; import { resolve } from "node:path"; import { describe, expect, it } from "vitest"; Evidence: `test/airlock-lint.test.ts`
- **Bridge.Test** (source_file): import { describe, expect, it, beforeEach, afterEach } from "vitest"; import { IncomingMessage, ServerResponse } from "node:http"; import { Socket } from "node:net"; import { existsSync, mkdtempSync, rmSync, writeFileSync } from "node:fs"; import { tmpdir } from "node:os"; import { join } from "node:path"; import { BRIDGE PORT IN USE EXIT CODE, buildTransportArgs, detectGlobalMcpPath, extractToolText, getErrorMessage, handleBridgeRequest, handleBridgeServerError, isBridgeClientConnected, isBridgeTargetReachable, parseBridgeCallPayload, removePidFile, resolveBridgeScript, resolveTransportSpec, type BridgeClient, } from "../src/bridge.js"; ⋮---- function makeRequest method: string, url: strin… Evidence: `test/bridge.test.ts`
- **Cli Runtime.Test** (source_file): import { readFileSync } from "node:fs"; import { afterEach, describe, expect, it, vi } from "vitest"; ⋮---- import { main, TOP HELP } from "../src/cli.js"; Evidence: `test/cli-runtime.test.ts`
- **Cli.Test** (source_file): import { describe, it, expect } from "vitest"; import { formatStopOutput, formatScreenshotOutput, getCommandHelp, parseConsoleArgs, parseNetworkArgs, parseScreenshotArgs, } from "../src/cli.js"; Evidence: `test/cli.test.ts`
- **Client.Test** (source_file): import { describe, expect, it, beforeEach, afterEach } from "vitest"; import { spawn } from "node:child process"; import { EventEmitter } from "node:events"; import { createServer, type Server } from "node:http"; import { AddressInfo } from "node:net"; import { mkdtempSync, readFileSync, rmSync } from "node:fs"; import { tmpdir } from "node:os"; import { join } from "node:path"; import { AxiError } from "axi-sdk-js"; import { BRIDGE PORT IN USE EXIT CODE } from "../src/bridge.js"; import { buildBridgeEarlyExitError, CdpError, checkBridgeHealth, ensureBridge, getSessionSnapshotIfRunning, mapErrorMessage, resolveBridgeTimeoutMs, type SpawnedBridge, stopBridge, terminateBridgeProcess, waitForP… Evidence: `test/client.test.ts`
- **Devtools.Test** (source_file): import { describe, it, expect } from "vitest"; import { getCommandHelp, parseConsoleArgs, parseNetworkArgs, parseNetworkGetArgs, } from "../src/cli.js"; Evidence: `test/devtools.test.ts`
- **Emulate.Test** (source_file): import { describe, it, expect } from "vitest"; import { getCommandHelp, parseEmulateArgs } from "../src/cli.js"; Evidence: `test/emulate.test.ts`
- **Generation.Test** (source_file): import { describe, expect, it, afterEach } from "vitest"; import { bumpGeneration, getCurrentGeneration, resetGeneration, } from "../src/generation.js"; Evidence: `test/generation.test.ts`
- **Hooks.Test** (source_file): import { describe, it, expect, vi } from "vitest"; ⋮---- import { computeCodexConfigUpdate, computeHookUpdate, getHookTargets, installHooksOrThrow, shouldInstallHooksForExecPath, } from "../src/hooks.js"; Evidence: `test/hooks.test.ts`
- **Interaction.Test** (source_file): import { afterEach, beforeEach, describe, it, expect, vi } from "vitest"; import { getCommandHelp, parseFillFormArgs, parseUid, parseUidFresh, } from "../src/cli.js"; Evidence: `test/interaction.test.ts`
- **Main.Test** (source_file): import { resolve } from "node:path"; import { afterEach, describe, expect, it, vi } from "vitest"; import { AxiError } from "axi-sdk-js"; ⋮---- constructor message: string, public readonly code: string, public readonly suggestions: string = , ⋮---- import { main } from "../src/cli.js"; import { CdpError, getSessionSnapshotIfRunning } from "../src/client.js"; Evidence: `test/main.test.ts`
- **Pages.Test** (source_file): import { describe, it, expect } from "vitest"; import { getCommandHelp, parsePagesList, formatMcpResult } from "../src/cli.js"; Evidence: `test/pages.test.ts`
- **Paths.Test** (source_file): import { resolve } from "node:path"; import { afterEach, describe, expect, it, vi } from "vitest"; import { resolveOutputPath } from "../src/paths.js"; Evidence: `test/paths.test.ts`
- **Performance.Test** (source_file): import { describe, it, expect } from "vitest"; import { getCommandHelp, parseLighthouseArgs, parsePerfStartArgs, } from "../src/cli.js"; Evidence: `test/performance.test.ts`
- **Run.Test** (source_file): import { afterEach, describe, expect, it, vi } from "vitest"; import { AxiError } from "axi-sdk-js"; ⋮---- constructor message: string, public readonly code: string, public readonly suggestions: string = , ⋮---- import { main, getCommandHelp } from "../src/cli.js"; import { CdpError } from "../src/client.js"; import { createPageHelper, isUidRef, parseEvalOutput, runScript, } from "../src/run.js"; ⋮---- .mockResolvedValueOnce "" // navigate page .mockResolvedValueOnce OPEN INFO RESPONSE // evaluate script for url+status ⋮---- // --- 6. Validation errors --- ⋮---- // --- 7. page.open falls back when no page/session --- ⋮---- // --- 8. page.snapshot strips wrapper headers --- ⋮---- // --- 9. p… Evidence: `test/run.test.ts`
- **Sessions.Test** (source_file): import { describe, expect, it, beforeEach, afterEach } from "vitest"; import { homedir } from "node:os"; import { join } from "node:path"; import { DEFAULT BASE PORT, DEFAULT SESSION NAME, defaultPortForSession, resolveSessionName, resolveSessionPidFile, resolveSessionPort, resolveSessionStateDir, validateSessionName, } from "../src/sessions.js"; Evidence: `test/sessions.test.ts`
- **Skill.Test** (source_file): import { readFileSync } from "node:fs"; import { describe, it, expect } from "vitest"; import { parse as parseYaml } from "yaml"; import { createSkillMarkdown, extractCommandsBlock, SKILL AUTHOR, SKILL DESCRIPTION, SKILL HERMES CATEGORY, SKILL HERMES TAGS, } from "../src/skill.js"; ⋮---- function parseFrontmatter markdown: string : Record Evidence: `test/skill.test.ts`
- **Snapshot.Test** (source_file): import { describe, it, expect } from "vitest"; import { checkUidGeneration, countRefs, extractRefs, extractTitle, isInputType, parseStampedUid, stampSnapshotGeneration, truncateSnapshot, truncateText, } from "../src/snapshot.js"; Evidence: `test/snapshot.test.ts`
- **Suggestions.Test** (source_file): import { describe, it, expect } from "vitest"; import { getSuggestions } from "../src/suggestions.js"; Evidence: `test/suggestions.test.ts`
- **Wrap Js.Test** (source_file): import { describe, it, expect } from "vitest"; import { wrapJsExpression } from "../src/cli.js"; Evidence: `test/wrap-js.test.ts`

## Rules the Host AI Must Follow

- **Treat this asset as pre-work context, not a runtime environment.**: The AI Context Pack contains only an evidence-backed understanding of the project, not the project's executable state. Evidence: `AGENTS.md`, `README.md`, `package.json`
- **When answering the user, distinguish what can be previewed from what can only be verified after install.**: The consumer value of the pre-install experience comes from reducing bad installs and misjudgments, not from pretending to be a real run. Evidence: `AGENTS.md`, `README.md`, `package.json`

## Questions the User Should Answer First

- Which host AI or local environment do you plan to use it in?
- Do you just want to experience the workflow first, or are you ready to actually install?
- What matters most to you: install cost, output quality, or conflicts with your existing rules?

## Acceptance Checks

- Every capability claim can be traced back to a file path in evidence_refs.
- AI_CONTEXT_PACK.md does not package previews as a real run.
- The user can understand who it fits, what it can do, how to start, and the risk boundaries within 3 minutes.

---

## Doramagic Context Augmentation

The following sections strengthen the repository context for a host AI. Human Manual data is a reading route, and pitfall notes become operating constraints.

## Human Manual Outline

Usage rule: this is only a reading route and salience signal, not factual authority. Concrete claims must still return to repo evidence or Claim Graph.

Host AI hard rules:
- Do not treat page titles, section order, summaries, or importance values as factual project evidence.
- When explaining the Human Manual outline, state that it is only a reading route or salience signal.
- Capability, installation, compatibility, runtime state, and risk claims must cite repo evidence, source paths, or Claim Graph.

- **Project Overview**: importance `high`
  - source_paths: README.md, package.json, AGENTS.md
- **Bridge Architecture and Process Model**: importance `high`
  - source_paths: src/bridge.ts, src/client.ts, src/run.ts, bin/chrome-devtools-axi.ts, bin/chrome-devtools-axi-bridge.ts
- **CLI Commands, TOON Output, and Snapshot UID Refs**: importance `high`
  - source_paths: src/cli.ts, src/snapshot.ts, src/generation.ts, src/suggestions.ts
- **Sessions, Cross-Platform Lifecycle, Agent Skills, and Configuration**: importance `high`
  - source_paths: src/sessions.ts, src/paths.ts, src/hooks.ts, src/skill.ts, skills/chrome-devtools-axi/SKILL.md

## Repo Inspection Evidence

- repo_clone_verified: true
- repo_inspection_verified: true
- repo_commit: `27e291a28164410a6b9b80796b3c4c490bca0fa3`
- inspected_files: `README.md`, `package.json`, `pnpm-lock.yaml`, `src/bridge.ts`, `src/cli.ts`, `src/client.ts`, `src/generation.ts`, `src/hooks.ts`, `src/paths.ts`, `src/run.ts`, `src/sessions.ts`, `src/skill.ts`, `src/snapshot.ts`, `src/suggestions.ts`

Host AI hard rules:
- Without repo_clone_verified=true, do not claim that the source code has been read.
- Without repo_inspection_verified=true, do not write README, docs, or package-file conclusions as facts.
- Without quick_start_verified=true, do not claim that the Quick Start path has run successfully.

## Doramagic Pitfall Constraints

These rules come from Doramagic discovery, validation, or compilation findings. The host AI must treat them as operating constraints, not background notes.

### Constraint 1: Capability evidence risk requires verification

- Trigger: README/documentation is current enough for a first validation pass.
- Host AI rule: Reproduce the official install and quickstart path in an isolated environment.
- Why it matters: May increase setup, validation, or first-run risk for the user.
- Evidence: capability.assumptions | https://www.npmjs.com/package/chrome-devtools-axi
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 2: Security or permission risk requires verification

- Trigger: no_demo
- Host AI rule: Reproduce the official install and quickstart path in an isolated environment.
- Why it matters: May increase setup, validation, or first-run risk for the user.
- Evidence: downstream_validation.risk_items | https://www.npmjs.com/package/chrome-devtools-axi
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 3: Security or permission risk requires verification

- Trigger: no_demo
- Host AI rule: Reproduce the official install and quickstart path in an isolated environment.
- Why it matters: May increase setup, validation, or first-run risk for the user.
- Evidence: risks.scoring_risks | https://www.npmjs.com/package/chrome-devtools-axi
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 4: Maintenance risk requires verification

- Trigger: issue_or_pr_quality=unknown。
- Host AI rule: Reproduce the official install and quickstart path in an isolated environment.
- Why it matters: May increase setup, validation, or first-run risk for the user.
- Evidence: evidence.maintainer_signals | https://www.npmjs.com/package/chrome-devtools-axi
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 5: Maintenance risk requires verification

- Trigger: release_recency=unknown。
- Host AI rule: Reproduce the official install and quickstart path in an isolated environment.
- Why it matters: May increase setup, validation, or first-run risk for the user.
- Evidence: evidence.maintainer_signals | https://www.npmjs.com/package/chrome-devtools-axi
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.
