AgentSkillsCN

Commit Process

提交工作流与代码风格检查要求

SKILL.md
--- frontmatter
description: Commit workflow and lint requirements
category: Process
boundary: Monorepo (root)
version: 1.0

Commit Process

Standard steps and checks to follow before creating a commit, aligned with CI.

Before Commit

  1. Run lint for all workspaces (mirrors CI lint checks):
bash
task lint
  1. Review changes (diff) and stage only intended files.

Commit Message (CI: commitlint)

CI runs commitlint on the latest commit. Use Conventional Commits:

code
type(scope): short summary

Examples (valid):

  • fix(be): handle missing container lots
  • chore(fe): update lint config
  • docs(ci): document commitlint step

Examples (invalid):

  • update logging (missing type/scope)
  • fix: something (missing scope)

CI Reference

  • Lint commit messages: .github/workflows/ci.ymllint-commits
  • Lint FE/BE: .github/workflows/ci.ymllint-check-fe, lint-check-be

Notes

  • Avoid committing generated or secret files.
  • If lint applies auto-fixes, include those changes in the commit.