跳到正文
cccskills
免费在 GitHub 公开

audit-carla-docs

Checks a local CARLA checkout for missing API documentation, outdated references, broken links, and pages absent from navigation. Produces a grouped Markdown report without building the project or running the simulator.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Finds undocumented and rotting documentation in a CARLA checkout — unreleased features, Python bindings missing from the API reference, documented API that no longer exists, sensors and catalogue actors missing from their reference pages, broken links, and pages unreachable from the nav. Static only, no build or server. Use when the user asks to "audit the docs", "find undocumented features", "what needs documenting", or is preparing a release or a new default branch.

查看安装方法

适用场景

  • Reviewing documentation before a release
  • Finding missing or outdated API references
  • Checking broken links and navigation gaps
  • Listing unreleased features for manual review

包含的文件(5)

  • SKILL.md5.8 KB
  • references/signals.md12.5 KB
  • scripts/audit_docs.py35.1 KB
  • scripts/check_env.sh1.4 KB
  • scripts/env.sh1.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Audit CARLA documentation (static)

Reports what the repository documents badly or not at all, as a markdown list a human triages. It only reads files — so it is fast, repeatable and safe, and it is blind to anything that exists only at runtime. The companion runtime audit covers that; this skill will not let you forget it.

Paths. scripts/… and references/… are relative to the directory holding this SKILL.md, not to the user's working directory. Prefix them with its absolute path.

The deliverable is a report, never an edit. Deciding what to document, and writing it, are separate jobs — see document-carla-feature.

Instructions

Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear FAILs
- [ ] Step 2: Run the audit, writing the report to a file
- [ ] Step 3: Read the summary table and triage by signal, not top to bottom
- [ ] Step 4: Tell the user a runtime (Tier B) audit is still owed

Step 1: Check prerequisites

bash scripts/check_env.sh

Only two things are hard blockers: no CARLA checkout, and no python3. A missing input file downgrades its signal to skipped rather than failing the run.

Step 2: Run the audit

python3 scripts/audit_docs.py --root "${CARLA_ROOT:?}" --out

Writes Docs/audit_carla_docs.md. Drop --out entirely to print to stdout instead; pass --out <path> to write somewhere else.

--signal <name> narrows the run, repeatable: changelog, binding, stale, catalogue-stale, sensor, catalogue, link, orphan. Narrow when iterating on one area; run them all before a release.

Step 3: Triage

The report opens with a count per signal. Work by signal, not in file order — the five differ enormously in effort per finding, and mixing them wastes time:

signalwhat it meanstypical effort
changelogevery unreleased feature, as a checklisthigh — you check each one by hand
bindingclass or member exposed to Python, absent from the ymlsmedium — edit the .yml, regenerate
staledocumented API that no longer exists in the bindingsmedium — usually a rename or a typo, not a deletion
catalogue-stalea catalogue page names an actor nothing knows aboutsmall — delete the entry and its image
sensorsensor id absent from ref_sensors.mdmedium
cataloguevehicle/walker/prop absent from its catalogue pagemedium
linktarget page or anchor missinglow — usually a one-line fix
orphanpage not in the mkdocs.yml navlow — nav entry, or delete the page

Two cautions the report cannot resolve for you, both in references/signals.md:

  • The changelog section makes no claim about whether anything is documented. It lists every unreleased feature as an unticked checkbox; you decide. Judging coverage automatically was tried and was too generous to trust — see the reference.
  • Docs/python_api.md is generated from PythonAPI/docs/*.yml by PythonAPI/docs/doc_gen.py. Fix a binding finding in the .yml and regenerate. Editing the .md is silently reverted by the next run.

Step 4: Say what this audit could not see

Always close by telling the user a runtime audit is still owed, and why. The script prints this too, but say it in your own summary — it is the single easiest thing to forget, and the gap it leaves is invisible.

A static pass cannot see the blueprint library, the available maps, or per-blueprint attributes: new vehicles, walkers and props are content, so they appear in no source diff.

Examples

Example 1: preparing a branch for release

User says: "audit the docs before we make ue58-dev the default"

bash scripts/check_env.sh
python3 scripts/audit_docs.py --root "${CARLA_ROOT:?}" --out

Result: Docs/audit_carla_docs.md with a count per signal. Report the totals, name the two or three heaviest items, and state that a runtime audit is still owed.

Example 2: checking one area while fixing it

User says: "are there still broken links in the docs?"

python3 scripts/audit_docs.py --root "${CARLA_ROOT:?}" --signal link

Result: the link findings on stdout. No file is written; nothing is changed.

Troubleshooting

Error: not a carla checkout (no CHANGELOG.md): <path> Cause: --root or CARLA_ROOT points somewhere else. Solution: pass --root /path/to/carla, or export CARLA_ROOT= before sourcing.

A signal reports 0 findings and you expected some Cause: its input is missing, so it was skipped — check_env.sh prints a WARN per missing input. Solution: re-read the check_env.sh output; a skipped signal is not a clean one.

link findings inside fenced code or HTML comments Cause: none — the audit strips both before scanning. A link reported as broken is in live prose.

Outputs

  • Docs/audit_carla_docs.md (or stdout) — findings grouped by signal, with a count table and the runtime-audit warning. The audit excludes this file from its own link and orphan signals.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Add a message type to CARLA's native ROS 2 interface. Create its C++ data structure, serialization code for transmission, type identity hash, registration, and tests, with Docker-based hash calculation and build checks.

中文简介正在准备中。当前显示英语简介。

  • Adding a standard ROS 2 message type missing from CARLA
  • Defining a custom carla_msgs message
  • Investigating type-hash warnings
carla-simulator/carla1.5万2026年10月18日 更新

Extend CARLA’s native ROS 2 interface to publish sensor data or receive vehicle commands. Covers topic implementation, registration, data connections, and verification, plus adding middleware, the communication layer used to exchange messages.

中文简介正在准备中。当前显示英语简介。

  • Publish obstacle sensor data to ROS 2
  • Add a topic for vehicle speed commands
  • Integrate another communication middleware
carla-simulator/carla1.5万2026年10月18日 更新

Summarize ScenarioRunner results to see which scenarios passed and which checks failed. Compare runs before and after changes, or analyze recorded driving to produce measurements and plots of vehicle distance and deviation from the lane center.

中文简介正在准备中。当前显示英语简介。

  • Checking scenario pass and fail results
  • Comparing results before and after controller changes
  • Plotting vehicle distances from a recorded run
carla-simulator/carla1.5万2026年10月18日 更新

Read and display CARLA object bounding boxes, then project them onto a camera image as 2D rectangles. Export an annotated PNG and box coordinates in JSON for object detection annotation work.

中文简介正在准备中。当前显示英语简介。

  • Adding vehicle boxes to a camera image
  • Exporting box coordinates for detection annotations
  • Checking vehicle dimensions
carla-simulator/carla1.5万2026年10月18日 更新

Builds CARLA's ue4-dev branch on Linux, producing the Unreal Engine 4.26 editor, server modules, and an installed Python client package. Fetches required content, optionally compiles native ROS 2 support, and verifies the build against a source-built server.

中文简介正在准备中。当前显示英语简介。

  • Building CARLA ue4-dev from source
  • Compiling CARLA with native ROS 2 support
  • Building the Python client for an existing environment
carla-simulator/carla1.5万2026年10月18日 更新

Build CARLA for Unreal Engine 5.8 using CMake, the tool that configures its build process. The skill guides engine setup, optional ROS 2 support, Python API rebuilding, editor builds, and checks that the expected files were actually produced.

中文简介正在准备中。当前显示英语简介。

  • Building CARLA for Unreal Engine 5.8
  • Building and verifying native ROS 2 support
  • Rebuilding the Python API after client changes
carla-simulator/carla1.5万2026年10月18日 更新

查看 carla-simulator 的全部技能

报告此技能的问题