qa-ci-cd-testing

qa-ci-cd-testing is a skill for Claude Code from Kokxi/qa-test-skills. It costs 135 tokens per session (2,370 once invoked), scanned A, original, MIT.

Guidance for adding automated tests to a CI/CD pipeline, the process that checks and delivers software changes.

In plain words
What is it for?
It is for planning separate checks for commits, unit tests, API tests, user-interface tests, regression tests, performance, and security, with quality gates for each stage.
Why use it?
It helps teams get fast, reliable feedback without filling every pipeline stage with slow interface tests.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the qa-test-skills plugin — 49 skills shipped together

Good fit It is for planning separate checks for commits, unit tests, API tests, user-interface tests, regression tests, performance, and security, with quality gates for each stage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kokxi/qa-test-skills/qa-ci-cd-testing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Kokxi/qa-test-skills --skill qa-ci-cd-testing
Clone the repo
git clone --depth 1 https://github.com/Kokxi/qa-test-skills

Made for: Claude Code.

Or install qa-test-skills, the plugin that ships this one along with the rest of its 49 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for qa-ci-cd-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/kokxi/qa-test-skills/qa-ci-cd-testing/github.svg)](https://agentmods.dev/skills/kokxi/qa-test-skills/qa-ci-cd-testing)
Your own site
<a href="https://agentmods.dev/skills/kokxi/qa-test-skills/qa-ci-cd-testing"><img src="https://agentmods.dev/badge/skills/kokxi/qa-test-skills/qa-ci-cd-testing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for qa-ci-cd-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/kokxi/qa-test-skills/qa-ci-cd-testing"><img src="https://agentmods.dev/badge/skills/kokxi/qa-test-skills/qa-ci-cd-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,370 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00135 $0.02370
Opus 5 $0.00068 $0.01185
Sonnet 5 $0.00027 $0.00474
Haiku 4.5 $0.00014 $0.00237

Measured 4d ago against content hash 36f5bdfad08c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

qa-ci-cd-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/qa-ci-cd-testing/SKILL.md · 245 lines

How it starts

The opening of the file, as written. The whole thing — 245 lines — stays where its author put it; the contents beside it link to each section on GitHub.

⚠️ 安全警告:本技能的示例可能涉及 CI/CD 流水线配置、发布操作和部署环境。 实际使用时请勿在未授权的生产环境执行发布或部署,先确认灰度策略和回滚方案。 本技能仅在 workspace/ 输出评估文件,不持久化、不外传、不跨会话复用。

持续测试实践

核心原则

测试左移(提前测试)、测试右移(线上验证)、快速反馈。

深度要求(参考值)

关键指标:根据项目复杂度设计质量门禁策略

复杂度 流水线阶段 质量门禁阈值 说明
简单项目 2-3个阶段 单元测试通过率≥80% 标准CI流程
中等项目 4-5个阶段 单元≥90%+接口通过率≥95% 含集成测试
复杂项目 6-8个阶段 全链路≥95%+性能阈值 含全量自动化+安全扫描

测试左移

左移策略

需求阶段:
├─ 需求评审:测试参与需求评审
├─ 验收标准:明确验收条件
├─ 可测试性:评估可测试性
└─ 测试计划:制定测试计划

开发阶段:
├─ 代码评审:测试视角的CR
├─ 单元测试:开发编写单元测试
├─ 接口测试:测试编写接口测试
└─ 冒烟测试:开发自测通过

集成阶段:
├─ 接口自动化:自动执行接口测试
├─ 集成测试:自动执行集成测试
└─ 冒烟测试:自动执行冒烟测试

左移实践

实践1:需求可测试性评估
├─ 验收条件是否明确?
├─ 是否可自动化验证?
├─ 测试数据是否可准备?
└─ 测试环境是否可搭建?

实践2:代码评审检查点
├─ 业务逻辑是否正确?
├─ 异常处理是否完善?
├─ 日志记录是否完整?
└─ 测试代码是否同步?

实践3:单元测试覆盖
├─ 核心逻辑单元测试
├─ 分支覆盖
├─ 边界覆盖
└─ 异常覆盖

测试右移

右移策略

发布阶段:
├─ 灰度发布:按比例放量
├─ 监控告警:实时监控
├─ 快速回滚:问题时快速回滚
└─ 线上验证:验证发布效果

线上阶段:
├─ 业务监控:业务指标监控
├─ 技术监控:技术指标监控
├─ 用户反馈:用户问题收集
└─ 混沌工程:主动注入故障

右移实践

实践1:灰度发布
├─ 用户灰度:按用户比例
├─ 流量灰度:按流量比例
├─ 地域灰度:按地域
└─ 监控验证:实时监控

实践2:线上监控
├─ 业务监控:订单量、成功率
├─ 技术监控:错误率、响应时间
├─ 资源监控:CPU、内存、磁盘
└─ 告警通知:异常告警

实践3:混沌工程
├─ 故障注入:模拟故障
├─ 韧性验证:验证系统韧性
├─ 恢复测试:验证恢复能力
└─ 改进优化:持续改进

CI/CD 流水线设计

流水线阶段

代码提交 → 代码检查 → 单元测试 → 接口测试 → 集成测试 → 部署 → 冒烟测试 → 灰度发布 → 全量发布

各阶段职责:
├─ 代码提交:提交代码
├─ 代码检查:静态代码分析
├─ 单元测试:执行单元测试
├─ 接口测试:执行接口测试
├─ 集成测试:执行集成测试
├─ 部署:部署到测试环境
├─ 冒烟测试:执行冒烟测试
├─ 灰度发布:按比例发布
└─ 全量发布:全量发布

质量门禁

门禁标准:
├─ 代码检查
│   ├─ 代码规范:无严重违规
│   ├─ 代码重复:< 5%
│   └─ 圈复杂度:< 10
│
├─ 单元测试
│   ├─ 覆盖率:≥ 80%
│   ├─ 通过率:100%
│   └─ 执行时间:< 5分钟
│
├─ 接口测试
│   ├─ 覆盖率:≥ 90%
│   ├─ 通过率:100%
│   └─ 执行时间:< 10分钟
│
├─ 集成测试
│   ├─ 通过率:100%
│   └─ 执行时间:< 30分钟
│
└─ 冒烟测试
    ├─ 通过率:100%
    └─ 核心功能:全部通过

工具选型

├─ 代码管理
│   ├─ Git:版本控制
│   └─ GitLab/GitHub:代码托管
│
├─ CI/CD工具
│   ├─ Jenkins:开源、灵活
│   ├─ GitLab CI:集成度高
│   ├─ GitHub Actions:云端友好
│   └─ CircleCI:云端CI
│
├─ 测试工具
│   ├─ JUnit/TestNG:单元测试
│   ├─ Pytest:Python测试
│   ├─ Postman/Newman:接口测试
│   └─ Selenium/Playwright:UI测试
│
└─ 报告工具
    ├─ Allure:测试报告
    ├─ SonarQube:代码质量
    └─ Grafana:监控可视化

Read the full file on GitHub · 245 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed 36f5bdfad08c
  2. 9d ago First seen · 245 lines · 135 tokens per session scan A 9e790be0a83d

Subscribe to this mod's changes

qa-ci-cd-testing is a skill published in the GitHub repository Kokxi/qa-test-skills (24 stars, last pushed 7d ago), licensed MIT. It adds 135 tokens to every session and 2,370 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

cloudflare-workers-testing

Comprehensive testing guide for Cloudflare Workers using Vitest and @cloudflare/vitest-pool-workers. Use for test setup, binding mocks (D1/KV/R2/DO), integration tests, or encountering test failures, mock errors, coverage issues.

secondsky/claude-skills · 57 tokens

Code Coverage Analysis

Measure and enforce test coverage with Istanbul/nyc, c8, Jest, and Vitest. Covers branch versus line coverage, per-directory thresholds, CI gates, and correctly excluding generated code from reports.

PramodDutta/qaskills · 45 tokens

plugin-test

A testing guide for Zhin.js plugins using Vitest, a JavaScript and TypeScript testing framework. It focuses on checking command and tool behavior, ordinary business logic, and the plugin package’s required structure.

zhinjs/zhin · 51 tokens

code-qualities-assessment

Assess code maintainability through 5 foundational qualities (cohesion, coupling, encapsulation, testability, non-redundancy) with quantifiable scoring rubrics. Works at method/class/module levels across multiple languages. Produces markdown reports with remediation guidance. Use when you ask to "assess…

rjmurillo/ai-agents · 108 tokens

modernize-test-starter

Modernize QUnit unit tests and OPA5 integration tests to the UI5 Test Starter concept. Use this skill when: The linter reports prefer-test-starter for .qunit.html or .qunit.js files Test HTML files use manual sap-ui-core.js bootstrapping instead of Test Starter's runTest.js/createSuite.js Test JS files use…

UI5/plugins-coding-agents · 244 tokens

wordpress-testing-qa

WordPress plugin and theme testing with PHPUnit integration tests, WPMock unit tests, PHPCS coding standards, and CI/CD workflows.

bobmatnyc/claude-mpm-skills · 31 tokens