跳到主要内容
知仓学习社ZHICANG

pr-submission

PR title format, commit conventions, and pre-PR checklist for SkillHub. Use when preparing or reviewing pull requests.

不碰外部(只输出文字)无严重或高危命中iflytek/skillhub

它会碰到什么

扫了多少1 个文本文件,3 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

PR Submission Skill

Workflow

  1. Identify the scope of your change (feature, bug fix, docs, test, refactor, chore)
  2. Format PR title and commits using the conventions below
  3. Run the pre-PR checklist commands
  4. Open the PR with a descriptive body

PR Title Format

Use conventional commit style:

<type>(<scope>): <description>

Types:

| Type | When to Use |

|------|-------------|

| feat | New feature or capability |

| fix | Bug fix |

| docs | Documentation changes only |

| test | Adding or updating tests |

| refactor | Code restructuring with no behavior change |

| chore | Build, CI, tooling, or maintenance tasks |

Scopes: Use module or domain names: auth, search, publish, review, namespace, governance, deploy, ci, frontend, scanner

Examples:

feat(auth): add local account login with password reset
fix(publish): resolve null pointer when skill metadata is missing name
docs(deploy): clarify runtime image usage
test(namespace): add membership service edge case tests
refactor(review): extract query repository for governance list
chore(ci): add parallel workflow scripts for multi-agent development

Commit Message Format

Same convention as PR titles. One logical change per commit.

Types:

  • feat: A new feature for the user
  • fix: A bug fix for the user
  • docs: Documentation changes only
  • test: Adding or updating tests
  • refactor: Code change that neither fixes a bug nor adds a feature
  • chore: Changes to build process, CI, or maintenance tasks

Examples:

fix(auth): resolve session cookie conflict in device flow
feat(publish): support security scan before review submission
docs(skill-protocol): add nested SKILL.md discovery rules
test(search): verify jieba analysis with Chinese skill descriptions
refactor(storage): simplify LocalFile path normalization

Pre-PR Checklist

  • [ ] Backend tests pass: make test-backend-app
  • [ ] Frontend typecheck passes: make typecheck-web
  • [ ] If API changed: make generate-api was run and web/src/api/generated/schema.d.ts is committed
  • [ ] Smoke test passes: make staging
  • [ ] Follow existing module boundaries and dependency direction
  • [ ] Add/update tests for new behavior
  • [ ] Update design docs when APIs, auth flows, deployment, or operator workflows change

PR Body Structure

When creating a PR, include:

  1. What — Summary of the change
  2. Why — Motivation (link to issue if applicable)
  3. How — Key implementation details (especially for non-obvious decisions)
  4. Testing — How to verify the change works
  5. Impact — Breaking changes, migration notes, or rollout considerations

Review Conventions

  • When reviewing, cite the specific AGENTS.md rule that applies if suggesting a convention change
  • For backend code, check dependency direction does not violate clean architecture rules
  • For frontend code, check OpenAPI types are regenerated if API changed

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。