openqa-cn/codexqa
关于
codexqa:适用于 Cursor、Claude Code、Codex 和 OpenClaw 的 11 项本地优先智能体技能,涵盖变更影响分析、AI 代码审查、缺陷扫描、测试用例生成、浏览器回放和根因分析。
开发工具可以做什么
- 🧭 - codexqa-skill-router - When you are not sure whether you need a defect scan, impact map, cases, or test data — or the worker is not installed yet.You get the matching skill, installed on demand if missing, then a handoff. Verification starts by picking the right tool; you do not memorize ten entry points.
- 🧪 - codexqa-testcase-generator - When you need a test plan and executable cases for Web / server / APP before submit, or extra regression after a change.You get local Markdown plan + cases + aggregated HTML: which scenarios, which priority. Unknowns stay TBD; silent PRD gaps are not invented as fake cases.
- 🗃️ - codexqa-testdata-generator - When cases exist but will not run: missing accounts, catalog rows, orders. A copied fake ID will not pass a real API.You get data constructed against the backend, with returned business IDs written into case preconditions. Success means the backend issued an ID, not that a number appeared in chat.
- 🌐 - codexqa-jev-browser · repo - When you have a UI case, or only a goal, and need to see whether the page actually shows the expected evidence.You get a local HTML report: each step, the control that was used, and a marked screenshot. Replay does not call a decision model. The browser is Playwright Chromium.
实测星标增长
- 24小时
- 0
- 7天
- +2
- 15天
- +74
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
skills/codexqa-defect-analyzer/README.zh-CN.md
原文缺陷检测
codexqa-defect-analyzer 跑两条检测维度——确定性的 SAST / lint / secrets / SCA,再由调用本 skill 的宿主 agent 内嵌大模型做一轮 Agent LLM 检测(默认 --llm-mode agent,无需 API key)——然后去重合并成按 P0→P3 排序的 report_scan.json / .md / .html。代码图与调用链对所有语言统一走公开的 CodexQA CLI(@openqa-cn/codexqa)。
不是 codexqa-code-reviewer(CodexQA 证据包 HTML 评审),不是 codexqa-code-analyzer(符号图影响面 / 测试缺口),也不是 codexqa-rootcause-analyzer(异常根因)。目标是代码风险 / 安全 / 逻辑的扫描报告时用本 skill。
安装要求
- Python 3.10+(强制;系统
python3过旧时入口会自动 re-exec) - 仓库增量/全量扫描需要
git在PATH上 - 实图分析需要
PATH上有@openqa-cn/codexqaCLI(未允许 mock 时仓库扫描硬失败):npm install -g @openqa-cn/codexqa --registry https://registry.npmjs.org/ - 可选扫描器:Semgrep、Bandit、gosec、gitleaks、ruff / eslint / golangci-lint、osv-scanner(
bash scripts/install_sast_tools.sh)
安装 skill(npx)与跑 CLI(python)
| 命令 | 作用 |
|---|---|
npx skills add openqa-cn/codexqa --skill codexqa-defect-analyzer |
把 skill 装进 Coding Agent 的 skills 目录 |
python3 scripts/run_scan.py … |
跑扫描编排器(不是 npx 二进制) |
没有 npx codexqa-defect-analyzer / package bin。安装后把 $SKILL_DIR 指到已安装目录,再跑 python3 "$SKILL_DIR/scripts/run_scan.py"。
快速开始
在本 skill 目录下:
# 从用户话术推断场景
python3 scripts/run_scan.py choose --infer "帮我看看这个 PR 有没有安全问题"
# 增量准备(agent-inline handoff;再按 SKILL.md 做 Agent LLM 检测 Stage1 → Stage2 → finalize 去重合并)
python3 scripts/run_scan.py incremental --repo /abs/path/to/repo --intent "PR review" -o /tmp/aid_report
# 粘贴 / 单文件 adhoc(重扫务必 --fresh)
python3 scripts/run_scan.py adhoc --scan-mode incremental --paste-file /tmp/snip.py --lang python --fresh -o /tmp/aid_report
# 仅 CI / 离线 mock
python3 scripts/run_scan.py incremental --repo . --dry-run -o /tmp/aid_report
默认 agent 模式总会写出 agent_llm/ 供 Agent LLM 检测(Stage1/Stage2)。全量重扫 / adhoc 复测加 --fresh。在读到 AGENT_LLM_HANDOFF / MANIFEST.json 之前不要编造发现项。
Agent 说明
SKILL.md 是 AI agent 入口。主路径:选场景 → 确定性准备 → Agent LLM 检测(stage1.json)→ agent-stage2 → Stage2 JSON → finalize(去重 ∪ 合并)→ 展示 report_scan.*。
运行时不要加载 README / HOW_IT_WORKS / KNOWN_LIMITATIONS。仅在上下文缺规则时再读 references/。
测试
# 使用 Python 3.10+(见 scripts/run_tests.sh)
npm test
# 或:
bash scripts/run_tests.sh # 或: python3 scripts/test_pipeline_fixes.py
#(audit_policy_fixtures 已含在 run_tests.sh)
许可证
Apache License 2.0.
局限
依赖可选的 SAST 二进制,以及闭源的 @openqa-cn/codexqa CLI 做实图分析;Agent LLM 检测质量由模型判断。具体失败面见已知边界。数据流见工作原理。
探索相关项目
加载中…