Agent skill

Generate Cdp Spec

by lynx-family in lynx-family/lynx-website

Generate or check the Lynx DevTool CDP API reference from the authoritative generated manifest using packages/lynx-cdp/generatecdpdocs.py, with mandatory Chinese translation after English generation.

Apache-2.0Auto-check passedWriting & Content

Install Generate Cdp Spec

skills CLI
$ npx skills add lynx-family/lynx-website --skill generate-cdp-spec -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install lynx-family/lynx-website generate-cdp-spec --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/lynx-family/lynx-website.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/generate-cdp-spec .claude/skills/generate-cdp-spec && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
generate-cdp-spec
GitHub stars
130
Token cost
~1.5k tokens
SKILL.md length
682 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
Apache-2.0

At a glance

Generate or check the Lynx DevTool CDP API reference from the authoritative generated manifest using packages/lynx-cdp/generatecdpdocs.py, with mandatory Chinese translation after English generation.

  • Asked to regenerate the CDP spec
  • SKILL.md covers Locate the inputs, Generate or check, Preserve ownership and Translate into Chinese, plus 1 more section
  • Calls python, pnpm and python3
  • Refresh generated CDP documentation

What it does

Generate Cdp Spec is an agent skill from lynx-family/lynx-website. Generate or check the Lynx DevTool CDP API reference from the authoritative generated manifest using packages/lynx-cdp/generatecdpdocs.py, with mandatory Chinese translation after English generation. Use when asked to regenerate the CDP spec or refresh generated CDP documentation.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Writing & Content, covering Translation. The repository describes itself as: Official Website of the Lynx Family. The licence is Apache-2.0.

When your agent uses it

  • Asked to regenerate the CDP spec
  • Refresh generated CDP documentation

Example prompts

  • “/generate-cdp-spec”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit f78e8a9. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python
    • pnpm
    • python3
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pnpm and git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Generate Cdp Spec loads about 1.5k tokens when it runs. Until then it costs about 75 tokens; SKILL.md has 682 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~75
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from lynx-family/lynx-website at commit f78e8a9, republished under its Apache-2.0 licence (© lynx-family). 682 words, ~1,456 tokens.

Download SKILL.mdSave it as .claude/skills/generate-cdp-spec/SKILL.md (or your agent's skills folder).
name
generate-cdp-spec
description
Generate or check the Lynx DevTool CDP API reference from the authoritative generated manifest using packages/lynx-cdp/generate_cdp_docs.py, with mandatory Chinese translation after English generation. Use when asked to regenerate the CDP spec or refresh generated CDP documentation.

Generate the CDP Spec

Use the existing website generator. The Lynx source repository owns protocol metadata and custom method documentation; this repository owns the generated MDX and its presentation.

Locate the inputs

Run commands from the website repository root. Find the open-source Lynx checkout from the user's context or nearby checkouts, and verify these inputs:

  • devtool/lynx_devtool/protocol/cdp_manifest.generated.yaml
  • devtool/lynx_devtool/protocol/custom_cdp_docs/

Use the requested checkout or revision. If the inputs cannot be found, ask for the checkout path. Treat the generated manifest as authoritative for the protocol inventory and metadata, and the accompanying custom docs as the source for method details. Do not override them with assumptions from existing website pages, implementation code, or upstream CDP documentation.

If input validation fails or any suspected defect is found in the inputs, generator, or generated content, stop and prompt the user with the affected file or method, the evidence, and the decision needed. Wait for the user's direction before proceeding. Do not edit or regenerate the input manifest, patch custom docs or the generator, or work around the defect in the output. Ordinary missing or stale generated pages are expected regeneration work; they do not by themselves indicate an input or generator defect.

The default output base is docs/en/api/cdp/api-ref. Respect an explicitly requested alternative. --output-path must have no file extension; it produces <base>.mdx, <base>/<domain>.mdx, and <base>/_meta.json.

For input schemas, rendering details, or validation failures, read the generator guide.

Generate or check

Use Python 3 with PyYAML. Reuse a suitable environment; if needed, create a virtual environment in the website checkout and install the dependency:

bash
python3 -m venv .venv
.venv/bin/python -m pip install PyYAML

Set LYNX_ROOT to the verified checkout path. With that environment, regenerate the English reference using:

bash
LYNX_ROOT="/absolute/path/to/lynx"
.venv/bin/python packages/lynx-cdp/generate_cdp_docs.py \
  --write \
  --manifest "$LYNX_ROOT/devtool/lynx_devtool/protocol/cdp_manifest.generated.yaml" \
  --custom-docs "$LYNX_ROOT/devtool/lynx_devtool/protocol/custom_cdp_docs" \
  --output-path docs/en/api/cdp/api-ref

For a verification-only request, run the same command with --check instead of --write. This computes expected output without writing files and exits nonzero for missing, invalid, or stale output. After regeneration, run --check with the same inputs and output base to confirm the generated files are current.

Preserve ownership

  • Review existing changes in the output paths before writing. The generator replaces the marked MDX blocks, rewrites the domain _meta.json, and removes generator-owned domain pages absent from the manifest.

  • Keep hand-maintained frontmatter, introductions, and website components outside the generated block. Preserve these markers:

    mdx
    {/* BEGIN GENERATED CDP REFERENCE */}
    {/* END GENERATED CDP REFERENCE */}
  • Do not hand-edit generated English content to make a check pass. Follow the stop-and-prompt rule above when a defect is found.

  • Custom methods whose summary begins with Initial documentation entry are counted but omitted from detailed sections by design. Preserve that behavior; do not fill in missing details or edit the source placeholders.

Show full SKILL.md (264 more words)Show less

Translate into Chinese

Chinese translation is mandatory after the English output is ready and passes --check. Regeneration is incomplete until both language versions are current. The generator emits English only; do not run it against Chinese pages.

Translate the English output into docs/zh/api/cdp/api-ref.mdx and docs/zh/api/cdp/api-ref/, and synchronize the domain _meta.json. For an alternative English output location, use its corresponding Chinese location. Carry over added or removed domains and translate the summary, domain pages, notices, and explanatory text. Preserve protocol identifiers, method names, types, code examples, link targets, and generated-block markers. Keep existing hand-maintained content outside the translated blocks.

Check that Chinese pages and navigation cover the same domains and methods as English, and that the translation faithfully preserves the input's meaning. If translation exposes a suspected defect or ambiguity in the source, stop and prompt the user instead of correcting or inventing protocol details.

For a verification-only request, check Chinese coverage and translation currency as well as English --check, and report discrepancies without writing.

Verify and report

Inspect both language diffs, including added or removed domain pages and navigation, and run git diff --check. If generated docs changed, follow the repository's downstream verification requirements: run pnpm run prepare and pnpm run build, then request downstream validation against the updated OSS pin. A verification-only run that changes no files needs no site rebuild.

Report the source checkout/revision used, output paths, English generation/check results, Chinese translation verification, and build results. If a defect blocked completion, state what was found and what user direction is needed; do not claim completion while translation or required verification is pending.

© lynx-family, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/generate-cdp-spec of lynx-family/lynx-website.

Open the folder on GitHubat commit f78e8a9

Compare with similar skills

Generate Cdp Spec next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Generate Cdp Spec compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Generate Cdp Spec this skilllynx-family/lynx-website130—~1.5kAutomated safety check: PassApache-2.0
Translation Diff ExportDevolutions/UniGetUI26k—~1.1kAutomated safety check: PassMIT
Sync Translationssymfony/symfony31k—~1.9kAutomated safety check: PassMIT
Translation Diff ImportDevolutions/UniGetUI26k—~750Automated safety check: PassMIT
Translation Diff TranslateDevolutions/UniGetUI26k—~934Automated safety check: PassMIT
Generate Translationspayloadcms/payload45k—~1.1kAutomated safety check: PassMIT

Similar skills

  • Translation Diff Export

    Devolutions/UniGetUI

    Compares UniGetUI JSON locale files against English, identifies untranslated or source-changed keys, and generates patch, reference, and handoff files for a target language.

    26k GitHub stars~1.1k tokensUpdated yesterday
    Writing & ContentAuto-check passed
  • Sync Translations

    symfony/symfony

    Synchronize translation catalogs across maintained Symfony branches: find messages that newer branches added to the English catalogs but that are still missing from the oldest maintained branch…

    31k GitHub stars~1.9k tokensUpdated today
    Writing & ContentAuto-check passed
  • Translation Diff Import

    Devolutions/UniGetUI

    Merges translated key-value pairs from a UniGetUI JSON localization patch back into the full language file and validates the merged result.

    26k GitHub stars~750 tokensUpdated yesterday
    Writing & ContentAuto-check passed
  • Translation Diff Translate

    Devolutions/UniGetUI

    Translates a sparse UniGetUI JSON language patch, writes completed entries into the working copy, preserves placeholders and terminology, and prepares the patch for merge-back.

    26k GitHub stars~934 tokensUpdated yesterday
    Writing & ContentAuto-check passed
  • Generate Translations

    payloadcms/payload

    A skill your agent uses when new translation keys are added to packages to generate new translations strings

    45k GitHub stars~1.1k tokensUpdated yesterday
    Writing & ContentAuto-check passed
  • Drives long-form fiction, scripts, storyboards, interactive films and long-document translation through InkOS, with every change made by a typed action.

    10k GitHub starsUsed in 1 repo~1.1k tokens
    Writing & ContentAuto-check passed

More from lynx-family/lynx-website

  • Doc Description Governance

    lynx-family/lynx-website

    Audit and optimize frontmatter description fields across documentation pages to keep them concise and token-efficient.

    130 GitHub stars~1.7k tokensUpdated today
    Auto-check passed

Questions about Generate Cdp Spec

What does Generate Cdp Spec do?

Generate or check the Lynx DevTool CDP API reference from the authoritative generated manifest using packages/lynx-cdp/generatecdpdocs.py, with mandatory Chinese translation after English generation. Generate Cdp Spec is an agent skill from lynx-family/lynx-website.py, with mandatory Chinese translation after English generation.

When should I use Generate Cdp Spec?

Generate Cdp Spec fits situations like: asked to regenerate the CDP spec; refresh generated CDP documentation.

How do I install Generate Cdp Spec in Claude Code?

Run `npx skills add lynx-family/lynx-website --skill generate-cdp-spec -a claude-code`. Or copy the skill folder (.agents/skills/generate-cdp-spec in lynx-family/lynx-website) into .claude/skills/generate-cdp-spec in your project. Claude Code loads it when a task matches its description.

How do I install Generate Cdp Spec in Codex?

Run `npx skills add lynx-family/lynx-website --skill generate-cdp-spec -a codex`. Or copy the skill folder (.agents/skills/generate-cdp-spec in lynx-family/lynx-website) into .agents/skills/generate-cdp-spec in your project. Codex loads it when a task matches its description.

Can I use Generate Cdp Spec in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lynx-family/lynx-website --skill generate-cdp-spec -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/generate-cdp-spec, .gemini/skills/generate-cdp-spec, .github/skills/generate-cdp-spec and .opencode/skills/generate-cdp-spec in your project.

What does Generate Cdp Spec need to run?

Going by SKILL.md and its folder, Generate Cdp Spec needs the command-line tools its instructions call (python, pnpm, python3 and git). Our summary lists: Python 3.

Does Generate Cdp Spec access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Generate Cdp Spec safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Generate Cdp Spec use?

Generate Cdp Spec is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Generate Cdp Spec use?

About 1.5k tokens (SKILL.md is roughly 5.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Generate Cdp Spec?

Skills that share tags, products or a category with Generate Cdp Spec: Translation Diff Export (Devolutions/UniGetUI, 26k stars), Sync Translations (symfony/symfony, 31k stars), Translation Diff Import (Devolutions/UniGetUI, 26k stars) and Translation Diff Translate (Devolutions/UniGetUI, 26k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Generate Cdp Spec?

lynx-family (a GitHub organization) maintains it in lynx-family/lynx-website, which has 130 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 10, 2026.

Source: lynx-family/lynx-website on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.