跳到正文
cccskills
免费在 GitHub 公开

lint

Run every lint-class CI gate locally. Codex equivalent of the Claude /lint command.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md3.2 KB

SKILL.md(原文)

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

lint

Codex equivalent of the Claude /lint command. Follow the same project workflow, using any provided user request as the command arguments.

Run every lint-class CI gate locally.

This skill mirrors the CI jobs that block merge for formatting / static-quality reasons. CI failures on these gates are common because the .NET formatter (dotnet format) and the web-side linters live in different toolchains and "my change is small" doesn't excuse skipping any of them — dotnet format catches trailing-newline / whitespace errors that no .NET unit test will surface.

The pre-push hook (eng/ci/ci-local.sh) runs these for you; you can also run them by hand from the repository root. Each command must exit 0; fix and re-run any that don't.

# .NET — formatting + whitespace + final-newline (CI: "Format check")
dotnet format SpringVoyage.slnx --verify-no-changes

# Web — ESLint, Knip dead-code, tsc typecheck (CI: "Lint web", "Dead-code check (knip)", "Typecheck web (tsc)")
npm run lint
npm --workspace=spring-voyage-dashboard run knip
npm --workspace=spring-voyage-dashboard run typecheck

# Python agents — ruff lint + format check (CI: "Lint Python agents")
# Run unconditionally; cheap (~10s) and CI runs it whenever any agents/ file changes.
# If ruff is not installed: pip install ruff   (CI pins no version; takes the latest)
ruff check agents/spring-voyage-agent/
ruff check agents/spring-voyage-agent-sdk/
ruff format --check agents/spring-voyage-agent/
ruff format --check agents/spring-voyage-agent-sdk/

If dotnet format reports issues, fix them with:

dotnet format SpringVoyage.slnx

If ruff format --check reports issues, fix them with:

ruff format agents/spring-voyage-agent/ agents/spring-voyage-agent-sdk/

Re-run the --verify-no-changes / --check variants to confirm. ESLint auto-fix is npm run lint:fix.

Ruff version skew: CI installs ruff via pip install ruff (no pinned version) so the canonical format can drift across CI runs. If ruff format --check passes locally but CI disagrees, install the version CI is using into a temp venv (e.g. python3 -m venv /tmp/ruff && /tmp/ruff/bin/pip install ruff==<ci-version>) and re-run.

Other CI lint jobs that are NOT in this skill because they are narrowly scoped or run only when their files actually change — invoke explicitly when touching the relevant area:

  • Lint agent definitions — script in .github/workflows/ci.yml job lint-agent-definitions (when editing agents/*/agent.yaml)
  • Lint connector web submodules — eslint src/Cvoya.Spring.Connector.*$web (already covered by npm run lint above on most setups)
  • Lint docs (evergreen framing) — script under scripts/lint-docs.sh (when editing docs/)
  • OpenAPI contract drift — see the $openapi-diff skill (when editing API endpoints or DTOs)
  • EF Core model drift — see /ef-drift if it exists, or rebuild the solution and check git status on Migrations/ (when editing entities)

The $build and $test skills are separate; CI and the merge queue enforce them.

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

adr-new

免费

Scaffold a new ADR in `docs/decisions/`. Codex equivalent of the Claude /adr-new command.

中文简介正在准备中。当前显示原文说明。

cvoya-com/spring-voyage72026年10月17日 更新

areas

免费

Enumerate the active Spring Voyage `area:*` taxonomy and the owning umbrella for each. Codex equivalent of the Claude /areas command.

中文简介正在准备中。当前显示原文说明。

cvoya-com/spring-voyage72026年10月17日 更新

format

免费

Format the codebase. If $ARGUMENTS is provided, format only that target. Codex equivalent of the Claude /format command.

中文简介正在准备中。当前显示原文说明。

cvoya-com/spring-voyage72026年10月17日 更新

Run the OpenAPI contract drift check locally — mirrors CI's `openapi-drift` job. Codex equivalent of the Claude /openapi-diff command.

中文简介正在准备中。当前显示原文说明。

cvoya-com/spring-voyage72026年10月17日 更新

Draft or refresh the human-written release notes for a version in `docs/releases/`. Codex equivalent of the Claude /release-notes command.

中文简介正在准备中。当前显示原文说明。

cvoya-com/spring-voyage72026年10月17日 更新

Daily read-only triage of all open cvoya-com/spring-voyage issues: grouping/dedup/consolidation, milestone moves, attention/design/executable split, and prioritized parallel execution waves.

中文简介正在准备中。当前显示原文说明。

cvoya-com/spring-voyage72026年10月17日 更新

查看 cvoya-com 的全部技能

报告此技能的问题