⏳ This skill is pending AI review.
Scores will appear once the review pipeline completes.
codexqa-change-analysis
>
Choose how to use this skill
You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.
1. Native installer
This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.
Do not guess an installer command or replace an existing version without reviewing the diff.
2. Complete package recommended
Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.
No complete ProSkills package is published for this listing yet.3. Prompt-only
Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.
Need only the instruction file?
Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.
No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.
// RATINGS
Not yet listed on ClawHub or SkillsMP
// README
English · 简体中文 · Known Limitations
codexqa-change-analysis
Change-impact analysis with CodexQA's symbol graph and diff indexing. The input is a git baseline (for example origin/main). CodexQA finds and labels the change (index --diff-base → change-groups / symbol-diff). The skill produces two things: an HTML report (affected entries, change list, test plan, coverage verdict, sensitive paths) and new test files in the analyzed repo that cover the gaps (add only; existing test files are not edited).
This file is for people. The agent does not load it at runtime. The runtime contract is SKILL.md.
Former skill name: change-impact-analysis.
What it answers
| Question | Output |
|---|---|
| Which methods changed? Which were added? | A method list grouped as added / changed / deleted, with file:line and what changed |
| Which entries do those changes reach? | Entries: methods with no upstream caller (HTTP route / main / MQ / scheduled task / exported function), plus the hop-by-hop path |
| What should be tested? | A case matrix organized as entry × happy / boundary / error / contract / data |
| Can existing tests be reused? | Named in the test-plan "case file" column (case name + file:line + kind). The coverage-verdict section states the conclusion |
| Who writes what is not covered? | New runnable test files in the repo (API layer, plus an end-to-end file when needed; add only). After they pass, case counts and results are written back into the report |
Install
npx skills add openqa-cn/codexqa --skill codexqa-change-analysis
From a local checkout:
# Common agent skill directories:
# ~/.agents/skills/
# ~/.claude/skills/
cp -R codexqa-change-analysis ~/.agents/skills/
Requires Node.js >= 18 and the codexqa CLI.
npm install -g @openqa-cn/codexqa --registry https://registry.npmjs.org/
codexqa --help
Without CodexQA the skill still runs: SKILL.md has a degraded mode (git + grep). The deliverable shape does not change.
How to trigger it
Tell the agent something like:
- "Analyze this change: which methods were added, and which entries do they hit?"
- "What should this change be tested for? Are there existing cases we can reuse?"
- "Diff against origin/main and write a change-impact report"
- change impact / changed methods / entry points / test plan
Typical commands
codexqa index . --diff-base origin/main --full # --full is required, or change tags go stale
codexqa query --repo . change-groups # change groups ordered by risk
codexqa query --repo . symbols --change add,change --kind function,method
codexqa query --repo . symbol-diff --id <id> # the only authority for "what changed"
codexqa query --repo . reach --id <id> --direction in --depth 10 # walk up to entries
codexqa query --repo . reach --id <id> --direction in --edge-kinds tests # layer-A test recall
Layout
codexqa-change-analysis/
├── SKILL.md # routing, hard rules, index gate, delivery contract
├── assets/
│ └── report-template.html # HTML shell (copy, then fill by id; do not restyle)
├── references/
│ ├── analysis.md # §1–§5 evidence: list / patch / entries / regression / test plan
│ ├── test-recall.md # existing-test recall: layer A tests edges + layer B text
│ ├── report.md # HTML fill contract: what each slot says, and which query it comes from
│ └── generate-cases.md # generated cases: new-file contract, run, and write-back
├── KNOWN_LIMITATIONS.md # measured limits and how to work around them
└── README.md
Artifacts
Two parts:
<repo>/change-impact-<repo-slug>-YYYYMMDD-HHMM.html # self-contained HTML report
<repo>/<test dir>/change-impact-* # new case files: fixed stem, suffix/language
# follow existing tests (JS is .mjs; Python / Rust / Java use the same idea)
The look follows the Claude Code session-report (ivory page, dark terminal, clay accent, JetBrains Mono). Section order is fixed: Key findings → Risks and unknowns → Affected entries → Change list → Test plan → Coverage verdict → Sensitive paths, including one Mermaid entry diagram. The diagram is rendered to an inlined static SVG, so it still shows offline. Fonts still come from Google Fonts and fall back to system fonts; the body does not depend on them.
The report states results only: which methods changed, which APIs or pages can trigger them, what to test, and which existing cases can be reused. Method and process data never enter the report (no process appendix, no confidence statement). They stay in the analysis.
Three rules that matter most
--diff-basemust be paired with--full. An incremental index does not refresh change tags. Changing the base without a full re-index returns the previous conclusion.to_count == 0is not an entry. Cross-file call edges can be missing in dynamic-language repos. Cross-check withgrep/imports.tested_count == 0is not "no tests". Some languages (JS, measured) emit notestsedges. Text-recall the test files.
See KNOWN_LIMITATIONS.md.
// HOW IT'S BUILT
// FILES
2 files shipped with this skill. Inline text is the catalog copy. The upstream link is the source repository.
skills/codexqa-change-analysis/SKILL.md7.9 KBupstream ↗
--- name: codexqa-change-analysis description: > Change-impact analysis for one diff: use CodexQA diff indexing (`index --diff-base` tags nodes and files `add` / `change` / `delete`, then `change-groups` / `symbol-diff` / `file-base`) to write one HTML report (affected entries, changed methods, test plan, coverage verdict, sensitive paths) and add runnable test files in the analyzed repo for uncovered points (add only; do not edit existing test files). Use when the user mentions change impact, change analysis, blast radius, affected entries, added methods, changed methods, test plan, generate or recall tests, link existing tests, entry points, 变更分析, 变更代码分析, 影响面, 影响入口, 测试方案, or 召回测试用例. Requires the codexqa CLI. One change only. Whole-repo analysis with no diff, and general symbol-graph Q&A, are codexqa-code-analyzer, not this skill. Former skill name: change-impact-analysis. license: Apache-2.0 compatibility: > Requires Node.js >= 18 and the `codexqa` CLI (`npm i -g @openqa-cn/codexqa`). Diff indexing and queries need no LLM. Data lives in ~/.codexqa/. Without codexqa, follow Degraded mode. Generating cases requires the analyzed repo to start; the end-to-end layer also needs a browser (L1/L2 in references/generate-cases.md). metadata: author: openqa-cn version: "1.0.0" open-standard: agentskills --- # Change Impact Analysis One sentence: build a **trusted diff index**, then deliver two artifacts — a 7-section HTML report (key findings / risks and unknowns / affected entries / change list / test plan / coverage verdict / sensitive paths) plus **runnable test files** for points that are not covered. `codexqa` has **no** `diff` or `review` subcommand. Change analysis always follows this path: ```text index --diff-base <base> --full → change-groups / files --change → symbol-diff → reach --direction in (entries) → tested_count / reach --edge-kinds tests → test-file text recall ``` ## Deliverables (both required) | ID | Deliverable | Form | |---|---|---| | A | **HTML report**: key findings / risks and unknowns / affected entries / change list / test plan / coverage verdict / sensitive paths | **One self-contained HTML file** at the repo root: `change-impact-<repo-slug>-YYYYMMDD-HHMM.html` | | B | **New test files**: turn every test-plan row whose disposition is "add" into a runnable case | **New files** in the repo's existing test tree (at least one API/integration file; add an end-to-end file when a browser is required). **Add only; do not edit existing test files.** Layer rules, names, and fallbacks: [references/generate-cases.md](references/generate-cases.md) | **Recalled existing cases are not a separate deliverable.** They land in the test-plan table's "case file" column and in the coverage-verdict section. Template: `assets/report-template.html` (shipped with this skill). Fill contract: [references/report.md](references/report.md) — **read it before writing the report**. `cp` the template and edit by id. **Do not read the whole template into context** (the 23 ids and the structure are in report.md). **Default language is English.** The report is not Markdown in the chat; the chat only returns the HTML path. **Copy the template, then Edit the slots. Do not change CSS. Do not invent a new layout.** Delete the trailing mermaid loader as step 5 of "Diagrams must be static" in [references/report.md](references/report.md). Do not touch it otherwise. Section order is fixed: results first, process last. The body answers only the four questions a reviewer cares about (which methods changed / which APIs or pages can trigger them / what to test / which existing cases can be reused). Method and process data **never enter the report** (no process appendix, no "confidence / analysis scope" section). They stay in the analysis. ## Hard rules (a violation means rewrite) 1. **Do not conclude without a trusted diff index.** `--diff-base` must be paired with `--full`. Re-run whenever the base changes (incremental mode does not refresh change tags; see [KNOWN_LIMITATIONS.md](KNOWN_LIMITATIONS.md) item 1). 2. **"An entry is a method with no upstream caller" cannot rest on `to_count == 0` alone.** Cross-file call edges are missing in dynamic-language repos. Cross-check with text search / `imports`, or a function called by `router.get('/api/...')` will be reported as an entry. 3. **Test coverage comes only from a `tests` edge or a real assertion in a test file.** A filename containing `*test*`, or a symbol with the same name, is not coverage. 4. **Every conclusion must be checkable**: command, node id, and `file:line`. Do not replace query results with README, docs, or name guesses. 5. Report only changes introduced by this diff. Pre-existing issues found along the way go in their own note, not in the change list. 6. **Do not enumerate call sites with `codexqa query search`.** It is file-chunk BM25: one hit per file, no call line. Use `edges` / `reach` when the graph has the edge, and `grep` when it does not. See the split below. 7. **The report is a result for a reviewer, not an analysis log.** Process data (true-entry criteria, missing-edge fix counts, stub ratios, query fields, command names) never enters the report (no process appendix, and no confidence paragraph under "Risks and unknowns"). Headline numbers, key findings, and the entry table describe only the change's impact and risk, in business / API language. See "Iron rule" in [references/report.md](references/report.md). 8. **Line numbers in the report are editor lines (1-based).** CodexQA `start_line` / `end_line` / `search` lines are **0-based**. `grep -n` and editors are 1-based. **Add 1 to every CodexQA line** before writing `file:line`, or the reader lands one line off (measured on one JS repo: all 11 method locations were off by 1). See [KNOWN_LIMITATIONS.md](KNOWN_LIMITATIONS.md) item 8. 9. **Generated cases are add-only. Do not edit existing test files** (and do not edit `package.json`). Write the missing assertion as a **new case**; do not edit the old one. "Add only" **does not cap the file count** — if a point needs a browser, **create a new end-to-end file**; do not mark it "cannot cover". Layer rules, file names (follow the repo language and existing test style), and fallbacks are in [references/generate-cases.md](references/generate-cases.md). **You must actually start the service and run the files**, and write pass / fail counts back into the report. A case that was never run was not delivered. See [references/generate-cases.md](references/generate-cases.md). ## Why git / grep are still used Change detection **always belongs to codexqa** (`index --diff-base --full` → `change-groups` / `files --change`). git and grep fill only measured CodexQA gaps. They do not bypass CodexQA: | Tool | Role in this skill | Why CodexQA alone is not enough | |---|---|---| | `codexqa index/query` | Change detection, patches, edge walks, blast radius, tests edges — **primary path** | — | | `git rev-parse` / `git diff --name-only` | Resolve the base and branch; **check whether CodexQA change tags are stale** | Incremental indexes keep the previous diff tags (measured; [KNOWN_LIMITATIONS.md](KNOWN_LIMITATIONS.md) item 1) | | `grep -rn` | Enumerate **call sites missing from the graph**, and locate route registration / `main` and other text entries | When edges are missing, `edges` / `reach` return nothing; `search` is file-level and misses the real call (items 2 and 6) | | `git diff` (degraded mode) | Fallback when CodexQA or the index is unavailable | Only then | Rule: **if the graph can answer it, use the graph** (who is affected, where the entry is, whether a `tests` edge exists). Fall back to text search only when the graph is clearly missing an edge, or there is no CodexQA index. **Whether evidence came from the graph or from text is a criterion; do not write it into the report.** When the whole report is degraded, mark `#meta-line` with one phrase:README.mdupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
Plain-text copy, no login: /skill-bundles/openqa-cn-codexqa-skills-codexqa-change-analysis.md