Skip to content
cccskills
FreePublished on GitHub

ls-localsetup-framework-audit

Run doc, link, skill matrix, and version/facts checks before release. Single entrypoint script; output to user-specified path only; no in-repo default. Use when user says 'run audit', 'run framework audit', or before release.

The English summary is being prepared. Showing the original description.

See how to install

Files included (5)

  • SKILL.md6.1 KB
  • scripts/audit_links.py7.3 KB
  • scripts/audit_skill_matrix.py5.6 KB
  • scripts/run_framework_audit.py17.4 KB
  • scripts/tests/test_framework_audit_hardening.py21.8 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Framework audit

Purpose: One atomic skill and entrypoint to run a release-ready audit: doc checks, link checks, skill matrix smoke checks, version/facts, and optional maintainer-ref flagging. Output is written only to a user-provided path (CLI or env); no default in-repo. Exit 0 only when there are zero errors.

When to use

  • User says "run audit", "run framework audit", or "before release".
  • Pre-release: lock in for release; zero errors and zero unexplained warnings.

Workflow

  1. Run the entrypoint from repo root: python ls/skills/ls-localsetup-framework-audit/scripts/run_framework_audit.py [--output /path/to/report] or set LOCALSETUP_AUDIT_OUTPUT to a writable path. If no output path is given, the script prints a short summary to stdout only; no file is written in the repo. For installed packages, run the package script from the target repo or pass --repo-root /path/to/repo; pass --framework-root /path/to/source/ls only when auto-detection cannot find the framework source.
  2. Phases: Root prerequisites; doc checks; local Markdown target and supported ATX-heading anchor checks; plain-text refs to docs/ or ls/ as conversion warnings; skill matrix; version/facts with invalid existing facts treated as errors; and private release refs. Markdown checks skip external URLs, fenced examples, generated/dependency trees, LocalSetup project virtual environments (.venv/ and .venv-*/), and private runtime state.
  3. Report: Contains every maintainer-reference finding and a requires_review / human_decision section for items that need user resolution. The script is non-interactive; the agent presents the report and asks the user.
  4. Doc-only skills: The smoke list marks them as N/A. The script does not run tooling for those. The agent (not the script) produces an enumerated one-sentence/paragraph per logical step and flags logic gaps for user resolution, per SKILL.md of each doc-only skill.

Markdown source ownership

Link and maintainer-reference scans exclude root build/ and dist/ outputs. Nested authored paths such as docs/build/ remain in scope. Retained SDK Markdown is exempt only when the SDK manifest verifier establishes its exact unchanged upstream ownership; there is no blanket vendor/ exemption. New wrapper documents, locally patched Markdown and authored links into retained files remain checked. Failed SDK ownership verification is an audit error and grants no exemptions. Use the SDK payload validator separately for complete vendored-content integrity.

Smoke list (skill matrix)

  • Path: ls/tests/skill_smoke_commands.yaml
  • Schema: YAML map: skill_id (directory name under ls/skills/) -> command string, "N/A", or a mapping shaped like {cwd: skill-sandbox|repo-root, command: "..."}. String commands and cwd: skill-sandbox mappings run with cwd = sandbox copy of the skill. cwd: repo-root mappings run directly from the repository root for tool-backed skills whose executable lives outside the skill directory. N/A = doc-only; no runnable smoke; audit uses agent step summary only.
  • One entry per skill in ls/skills/*. The audit script reads this file as single source of truth for which skills have tooling to smoke.

Dependencies (framework invariant)

  • PyYAML: The entrypoint calls the shared lib.deps.require_deps(["yaml"]) helper at startup, so a missing dependency exits with an actionable install message instead of a bare import failure. Sync framework dependencies with uv sync --locked --no-dev or rerun install with --sync-env.
  • Sandbox tooling: The audit may call ls/skills/ls-skill-sandbox-tester/scripts/create_sandbox.py and run_smoke.py to run skill smoke commands in an isolated copy. Both the audit skill and the sandbox-tester skill ship with the framework; no external dependency.

Tooling

ItemPurpose
scripts/run_framework_audit.pySingle entrypoint: doc, link, skill matrix, version/facts; output path from CLI or env; exit 0 only if no errors.

Quick start:

# Output to file
python ls/skills/ls-localsetup-framework-audit/scripts/run_framework_audit.py --output /path/to/audit_report.md

# Or env
export LOCALSETUP_AUDIT_OUTPUT=/path/to/audit_report.md
python ls/skills/ls-localsetup-framework-audit/scripts/run_framework_audit.py

# Summary only (no file written)
python ls/skills/ls-localsetup-framework-audit/scripts/run_framework_audit.py

# Installed package, run from the repo being audited
python ~/.local/share/localsetup/packages/ls-localsetup-framework-audit/scripts/run_framework_audit.py --output /path/to/audit_report.md

# Explicit target repo and framework source
python ~/.local/share/localsetup/packages/ls-localsetup-framework-audit/scripts/run_framework_audit.py \
  --repo-root /path/to/repo \
  --framework-root ~/.local/share/localsetup/source/ls \
  --output /path/to/audit_report.md

Errors vs warnings

  • Error: Invalid repository/framework prerequisites, smoke non-zero/crash, syntax/lint failure, missing required doc, missing local Markdown target or supported anchor, or an existing invalid/versionless facts file. Exit non-zero.
  • Warning: Missing optional facts, plain-link conversion candidate, N/A, maintainer reference, or another item to fix or explicitly accept; every logical warning is counted and logged in the report. Zero errors and zero unexplained warnings before release.

References

  • ls/docs/TOOLING_POLICY.md (lint/quality; audit uses for tooling expectations)
  • ls/docs/INPUT_HARDENING_STANDARD.md (script follows for all external input)
  • ls/tests/skill_smoke_commands.yaml (smoke list path and schema)

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Guide accessibility reviews for UI, documents, and workflows. Use for WCAG-oriented audits, keyboard review, semantics, contrast, and remediation planning.

The English summary is being prepared. Showing the original description.

CruxExperts/LocalSetup6Updated Oct 22, 2026

Use when choosing a LocalSetup Agent-* lane for exploration, research, bounded implementation, or review. Consult the static capability matrix; do not probe account or network availability.

The English summary is being prepared. Showing the original description.

CruxExperts/LocalSetup6Updated Oct 22, 2026

Guide agent email inbox workflows with prompt-injection defenses. Use for inbound email processing, webhooks, routing, and safety review.

The English summary is being prepared. Showing the original description.

CruxExperts/LocalSetup6Updated Oct 22, 2026

Navigate and understand codebases using agentlens hierarchical documentation. Use when exploring new projects, finding modules, locating symbols in large files, finding TODOs/warnings, or understanding code structure.

The English summary is being prepared. Showing the original description.

CruxExperts/LocalSetup6Updated Oct 22, 2026

Use for Agent Q signed encrypted file-drop or mail ship and ingest, private registry v2 setup, queue status, and transport maintenance.

The English summary is being prepared. Showing the original description.

CruxExperts/LocalSetup6Updated Oct 22, 2026

Inventory wrapper for the alirezarezvani Claude skills bundle. Use when triaging its broad skill catalog and large script surface before any targeted import.

The English summary is being prepared. Showing the original description.

CruxExperts/LocalSetup6Updated Oct 22, 2026

See all skills by CruxExperts

Report a problem with this skill