Agent Skillspenpot/penpot › local-ci

local-ci

GitHub

在本地运行CI风格检查(lint、测试、格式化),用于代码修改后的验证,支持指定模块及修复Clojure格式错误。

.agents/skills/local-ci/SKILL.md penpot/penpot

Trigger Scenarios

用户要求本地运行CI或检查 完成代码实现后验证变更 需要修复代码格式或Clojure分隔符错误

Install

npx skills add penpot/penpot --skill local-ci -g -y
More Options

Non-standard path

npx skills add https://github.com/penpot/penpot/tree/develop/.agents/skills/local-ci -g -y

Use without installing

npx skills use penpot/penpot@local-ci

指定 Agent (Claude Code)

npx skills add penpot/penpot --skill local-ci -a claude-code -g -y

安装 repo 全部 skill

npx skills add penpot/penpot --all -g -y

预览 repo 内 skill

npx skills add penpot/penpot --list

SKILL.md

Frontmatter
{
    "name": "local-ci",
    "description": "Run local CI-style checks with .\/scripts\/ci (lint, tests, format) per monorepo module. Use when verifying changes before declaring work done, running lint or tests locally, fixing formatting, or repairing Clojure delimiter errors."
}

Local CI

Run the same checks CI runs, locally, for the modules you touched, with scripts/ci. Each task writes a log file; the final summary says what passed and what failed.

Full details: mem:scripts/ci (file: .serena/memories/scripts/ci.md)

When to use

  • After implementing or fixing code — verify every module you touched before declaring the work done.
  • When the user asks to run CI, lint, tests, or format checks locally.
  • When you changed common/ — validate its consumers too.

Skip: while exploring, planning, or reading code.

Command reference

Run from the repo root:

./scripts/ci [OPTIONS] [MODULES...]

Modules: frontend backend common render-wasm exporter mcp plugins library, or --all for every module.

With no task flags it runs three tasks per module, in order: lint, test, fmt (format check; --fix formats files instead).

Flag Effect
--all Run every module
--exclude MOD Skip one module (repeatable)
--lint / --no-lint Run only lint / drop lint
--test / --no-test Run only tests / drop tests
--fmt / --no-fmt Run only format check / drop it
--fix Format files instead of checking (other tasks unaffected)
--paren-repair Fix delimiter errors in Clojure/CLJS files
--fail-fast Stop at the first failure
--quiet Suppress failure output
--dry-run Show what would run, execute nothing
--clean Delete the .ci-logs/ directory

Reading failures

Every task writes its full output to .ci-logs/<module>-<task>.log. On failure the script prints only the last 30 lines. To diagnose a failure, read the log file — never re-run the command piped through filters (repo rule: redirect to a file first, then read it). The exit code is 1 when any task failed; the summary lists each failed module:task and its log path.

Typical workflows

# Verify a module you changed: lint + tests + format check
./scripts/ci frontend

# Fast pass while iterating: lint only
./scripts/ci --lint frontend

# Lint + format check, skip the long test suite
./scripts/ci --no-test frontend

# Format the module without running the test suite
./scripts/ci --fix --no-test frontend

# Broke delimiters in Clojure/CLJS files: repair first, then lint
./scripts/ci --paren-repair frontend
./scripts/ci --lint frontend

# Changed common/ — validate its consumers too
./scripts/ci frontend backend exporter

# Preview what would run, without running it
./scripts/ci --dry-run --all

Gotchas

  • Run from the repo root.
  • Test tasks are long-running (backend runs clojure -M:dev:test); give the bash call a generous timeout (10–20 minutes) instead of letting it time out mid-run.
  • mcp has no lint task — it shows as skipped, not failed.
  • --paren-repair only fixes delimiters; run lint afterwards to catch what remains. See mem:scripts/paren-repair.
  • What to run and how to read test results: mem:testing.

Version History

  • 267134e Current 2026-09-23 10:32

Same Skill Collection

.agents/skills/bat-cat/SKILL.md
.agents/skills/code-review-criteria/SKILL.md
.agents/skills/create-commit/SKILL.md
.agents/skills/create-issue/SKILL.md
.agents/skills/create-pr/SKILL.md
.agents/skills/fd-find/SKILL.md
.agents/skills/jq-json-processor/SKILL.md
.agents/skills/make-a-plan/SKILL.md
.agents/skills/nrepl-eval/SKILL.md
.agents/skills/plan-review-criteria/SKILL.md
.agents/skills/planner/SKILL.md
.agents/skills/refine-prompt/SKILL.md
.agents/skills/resolve-git-conflicts/SKILL.md
.agents/skills/review-code/SKILL.md
.agents/skills/review-plan/SKILL.md
.agents/skills/ripgrep/SKILL.md
.agents/skills/security-and-hardening/SKILL.md
.agents/skills/taiga/SKILL.md
.agents/skills/testing/SKILL.md
.agents/skills/update-changelog/SKILL.md
.opencode/skills/bat-cat/SKILL.md
.opencode/skills/code-review-and-quality/SKILL.md
.opencode/skills/code-review/SKILL.md
.opencode/skills/create-commit/SKILL.md
.opencode/skills/create-issue/SKILL.md
.opencode/skills/create-pr/SKILL.md
.opencode/skills/fd-find/SKILL.md
.opencode/skills/jq-json-processor/SKILL.md
.opencode/skills/nrepl-eval/SKILL.md
.opencode/skills/plan-review/SKILL.md
.opencode/skills/planner/SKILL.md
.opencode/skills/refine-prompt/SKILL.md
.opencode/skills/ripgrep/SKILL.md
.opencode/skills/security-and-hardening/SKILL.md
.opencode/skills/taiga/SKILL.md
.opencode/skills/testing/SKILL.md
.opencode/skills/update-changelog/SKILL.md
.agents/skills/ste/SKILL.md
.opencode/skills/ste/SKILL.md

Metadata

Files
0
Version
267134e
Hash
a7900389
Indexed
2026-09-23 10:32

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-23 15:28
浙ICP备14020137号-1