Skip to main content

/document-skills

Generate or update documentation for all Claude skills across sandbox-answers, CLD, and Spines in the tq-api-docs repo.

Usage

/document-skills [skill-name]

The argument is optional. Omit it to document all skills at once. Pass a skill name (e.g. add-network) to update just that one page.

What It Does

Before writing any files, the skill prepares the tq-api-docs repo:

  1. Checks for uncommitted changes — stops if any are found.
  2. Fetches, checks out, and pulls main — ensures you're branching from the latest upstream state.
  3. Creates a new branchdocs/sandbox-skills/<skill-name> for a single skill, or docs/sandbox-skills/update-all when documenting all.

Then it scans four skill source directories:

SourcePath
sandbox-answers.claude/skills/
CLD top-levelairflow_dags/dags/data_science/cld/.claude/skills/
CLD sub-DAGairflow_dags/dags/data_science/cld/core_licensable_data_sub_dag/.claude/skills/
Spinesairflow_dags/dags/data_science/spines/.claude/skills/

For each skill found:

  1. Extracts the skill name, description, and argument hint from SKILL.md frontmatter.
  2. Reads reference.md if present.
  3. Classifies the skill as Question Answering or DAG Editing.
  4. Writes a user-facing doc page to the appropriate subdirectory under sandbox/docs/misc/claude/sandbox_skills/.
  5. Adds the doc's sidebar path to sidebars.ts if not already present.

Skips document-skills and duplicate trino-query skills in CLD/Spines.

Files Modified

  • tq-api-docs/sandbox/docs/misc/claude/sandbox_skills/question_answering/<skill>.md — Q&A skill doc pages
  • tq-api-docs/sandbox/docs/misc/claude/sandbox_skills/dag_editing/<skill>.md — editing skill doc pages
  • tq-api-docs/sandbox/docs/misc/claude/sandbox_skills/index.md — overview page
  • tq-api-docs/sandbox/sidebars.ts — sidebar entries

When to Run This

Run /document-skills after:

  • Adding a new skill to any of the four source directories
  • Editing an existing skill's SKILL.md or reference.md

Pass a skill name as an argument to update just one page without touching the others.