搜索

PythonReactSEOPDF
GitHub Skill

ci-workflow

Run comprehensive CI checks before committing changes. Use when the user asks to run CI, run quality checks, validate code quality, or before finishing any task that involves code changes.

VilnaCRM-Org☆ 16 仓库 Stars2 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

CI Workflow Skill

Context (Input)

  • Code changes exist in the working directory
  • Ready to validate code quality before commit/PR
  • Need to ensure all quality standards are met

Task (Function)

Execute make ci and ensure ALL quality checks pass with success message.

Success Criteria: Output ends with "✅ CI checks successfully passed!"

Execution Steps

Step 1: Run CI
make ci
Step 2: Check Result
  • ✅ Success: "✅ CI checks successfully passed!" → Task complete
  • ❌ Failure: "❌ CI checks failed:" → Go to Step 3
Step 3: Fix Failures

Identify failing check from output and apply fix:

Check Command Fix
Code style make phpcsfixer Apply auto-fixes
Static analysis make psalm Fix type errors
Quality metrics make phpinsights Reduce complexity, fix architecture
Tests make unit-tests Debug failing tests
Mutations make infection Add missing test cases
Step 4: Re-run
make ci

Repeat Steps 2-4 until success message appears.

Constraints (Parameters)

NEVER decrease these thresholds:

  • min-quality: 100%
  • min-complexity: 93%
  • min-architecture: 100%
  • min-style: 100%
  • mutation MSI: 100%
  • test coverage: 100%

DO NOT:

  • Lower quality thresholds
  • Skip failing checks
  • Commit without "✅ CI checks successfully passed!" message
  • Run commands outside Docker container (use make or docker compose exec php)

Format (Output)

Required final output:

✅ CI checks successfully passed!

Verification Checklist

  • make ci executed
  • All checks passed (composer, security, style, psalm, tests, mutations)
  • Output shows "✅ CI checks successfully passed!"
  • Zero test failures
  • Zero escaped mutants
  • No quality threshold decreased

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!