AGENT SKILL

构建测试 Lint 自动化流程

build-test-lint-autopilot

开箱即用的工作流,用于运行测试、lint 和质量自动化

适用职业测试工程师
License 许可
MIT
最近更新
2026-11-14
Stars
★ 6
Forks
0

01 前言 Front Matter

name
build-test-lint-autopilot
type
usage
scope
project
description
Turnkey workflow for running tests, lint, and quality automation

03 SKILL.md 正文

Build, Test & Lint Autopilot

Purpose

Provide Claude with a turnkey workflow for orchestrating the project's automated quality checks, including when to run full suites and how to interpret failures.

Activation cues

  • Requests to run tests, lint, or end-to-end quality checks.
  • Follow-up questions after CI failures.
  • Planning sessions that need a recommended verification order.

Primary commands

Scenario Command
Standard unit tests ./run_tests.sh
Integration focus ./run_tests.sh --integration
Coverage report ./run_tests_with_coverage.sh
UI/browser suite ./run_ui_tests.sh
Lint & format ./run_lint.sh or pre-commit run -a

Automation helper

Use the bundled script to run tests followed by linting in one step:

skills/build-test-lint-autopilot/scripts/run_quality_suite.sh [<run_tests.sh flags>]

The script executes from repo root, forwards any run_tests.sh options (e.g., --integration, --full), and stops on the first failure.

Decision guide

  1. Small backend change → ./run_tests.sh
  2. Firestore or external APIs → add --integration
  3. Pre-merge confidence → ./run_tests_with_coverage.sh
  4. Frontend tweaks → ./run_ui_tests.sh
  5. Any code touch → ./run_lint.sh (or bundled script)

Failure triage tips

  • Unit failures: Inspect stack traces in latest_ci_logs.txt or re-run specific modules via ./run_tests.sh path/to/test.py -k name.
  • Integration issues: Confirm TEST_MODE environment and check service credentials in .env.
  • Lint errors: Run pre-commit run -a for auto-fixes; review Ruff output for rule IDs.
  • UI flakes: Re-run with ./run_ui_tests.sh --headed when available to capture screenshots.

Reporting expectations

  • Summarize command(s) executed and whether they passed.
  • Highlight failing modules and recommend next steps (e.g., enable verbose logging, update fixtures).
  • Suggest follow-up commands such as pytest -k filters or rerunning coverage after fixes.

04 同仓库更多 Skills

jleechanorg
jleechanorg/jleechan-skills

disk-reclaim-playbook

Use Disk Magician to diagnose disk growth or qualify cleanup on macOS or Linux.

★ 6
jleechanorg
jleechanorg/jleechan-skills

claudea-bench

Compare `claudea` and normal `claude` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.

★ 6
jleechanorg
jleechanorg/jleechan-skills

pr

Alias for the canonical pr-lifecycle PR workflow skill (/pr-workflow, /prw).

★ 6
jleechanorg
jleechanorg/jleechan-skills

whisper

OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.

★ 6
jleechanorg
jleechanorg/jleechan-skills

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

★ 6
jleechanorg
jleechanorg/jleechan-skills

pr-report

This skill should be used when the user asks for a PR report, PR audit, PR delta analysis, /pr-report, or wants per-PR summary with delta files/lines. Generates a structured report for one or more open PRs covering purpose, files changed, +/− line counts, /code-standards + /thermo review findings, /ponytail simplification opportunities, file-overlap combination candidates, and /green status per pr-green-definition. Output: machine-readable JSONL + human-readable markdown. Read-only by default; can apply simplifications if user opts in.

★ 6