skills

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 6 Imported by: 0

README

Skills

Companion Agent Skills for chrome-cdp, maintained alongside the CLI so they never drift from the commands they document.

  • drive-chrome-cdp — the core usage reference for an agent driving the CLI: the list → use → snap → act → verify loop, --by addressing (accessible name, ref, cell, label, in-row), the select verb for prompt/combobox/cascade widgets, session batching, the JSON envelope + exit-code contract, and the passkey/consent rules. SKILL.md is a thin stub; the body lives in drive-chrome-cdp/references/: core, widgets, debugging, batch-and-recipes, and examples. Golden tasks for this skill live in drive-chrome-cdp/evals/evals.json.
  • check-logged-in — confirm a Chrome tab is signed in to a web app by page content, not URL; a three-state verdict (signed-in / login-page / unknown) other skills branch on before they drive the app. Builds on drive-chrome-cdp.
  • fill-grid-and-confirm — fill several cells of a grid-style form with --by cell inside one session, read every cell back, and confirm the save actually persisted before reporting success. Builds on drive-chrome-cdp.

Using a skill

Each skill is a directory with a SKILL.md (YAML frontmatter + instructions). Point your agent harness at this skills/ directory, or copy an individual skill into your own skill collection.

chrome-cdp skill --full prints the drive-chrome-cdp core doc plus every reference, straight from the installed binary — run it whenever you want it without leaving the shell, or to confirm a vendored copy hasn't drifted. chrome-cdp skill list names every embedded skill and drive-chrome-cdp reference; chrome-cdp skill get <name> prints any one of them, addressed by reference name, skill name, or <skill>/<reference>.

This repository is the canonical source for these skills — downstream collections should vendor from here rather than forking, so updates to the CLI and its skills land together.

Documentation

Overview

Package skills embeds the agent skills so `chrome-cdp skill` serves docs that match the installed binary.

Index

Constants

This section is empty.

Variables

Functions

func Core

func Core() ([]byte, error)

Core returns the stub SKILL.md joined with references/core.md — the core loop an agent needs before it reaches for anything else.

func Full

func Full() ([]byte, error)

Full returns Core plus every other reference, in name order, each preceded by a `---` separator.

func Reference

func Reference(name string) ([]byte, error)

Reference returns one reference file's content by name (without ".md").

func References

func References() ([]string, error)

References returns every reference name, sorted.

func Skill

func Skill(name string) ([]byte, error)

Skill returns one skill's SKILL.md content by directory name.

func Skills

func Skills() ([]string, error)

Skills returns the name of every embedded skill directory (one that carries a SKILL.md), sorted.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL