agentleFS
openqa-cnopenqa-cn/codexqa/skills/codexqa-code-analyzer/SKILL.md

codexqa-code-analyzer

Skill137 starsChanged 3 months agoApache-2.0View on GitHub

Queries a local CodexQA symbol graph for change review, regression scope, test gaps, error location, and entry risk. Use when the user mentions codexqa-code-analyzer, code-analyzer, codexqa, 符号图, 代码知识图谱, 建索引, 查调用, 影响面, --diff-base, 变更审查, 回归范围, 测试缺口, or asks to install / run the codexqa CLI (index, query). Former skill name: code-analyzer. Not CodexQA evidence-pack HTML review (that is codexqa-code-reviewer), not SAST + Agent LLM Detection code-risk scan reports (that is codexqa-defect-analyzer), and not architecture wiki reports (that is codexqa-code-wiki), and not full exception RCA reports (that is codexqa-rootcause-analyzer).

  • Installs packages

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read this file first. Read another file only when the row below applies.

    line 36
  2. Distinctive:

    Read references/diagrams.md before drawing.

    line 66
  3. Distinctive:

    Must-read groups (by risk)

    line 70
  4. Very specific:

    Must-test callers / entries (must come from edges / reach / path / tagged)

    line 72
  5. Very specific:

    Test gaps (a tests directory is not a tests edge)

    line 73
  6. Very specific:

    Only names large files or high fan-in.

    line 81

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Code Analyzer

Local symbol graph for quality work: index first, then answer what changed, who is hit, what is untested, and where an error comes from.

There is no codexqa diff or codexqa review. Review a change with:

index --diff-base <ref>  →  change-groups  →  symbol-diff  →  callers / tests / entries

Pick the scenario before acting. Do not query or review a diff until an index exists. Do not run full-text search unless the user asked. README.md / README.zh-CN.md are human-facing. Do not load them at runtime.

Documents (load on demand)

Read this file first. Read another file only when the row below applies. Do not preload the whole tree.

FileLoad when
SKILL.md (this file)always: routing, report contract, reject conditions
references/playbook.mdentering a scenario (index health / change / defect / implementation / architecture)
references/diagrams.mdbefore drawing; copy init and classDef verbatim
references/cli.mdCLI missing, PATH, LLM, or maintenance
references/mcp.jsongraph-query tool schema is needed
README.md, README.zh-CN.mdhuman-facing; not needed by the agent

Scenario routing

Open references/playbook.md and jump to the named section.

User is asking…Playbook section
Review a PR / what changed / vs mainReview one change (index health first)
Who is hit / what to regression-testRegression scope under that change section
Any unit tests / coverage gapsTest gaps under that change section
Which HTTP / RPC / MQ path reaches thisEntry risk under that change section
Auth, payments, password, tokenSensitive paths under that change section
Logs, stack, error text, commentsLocate a defect
How does this function work / who calls itUnderstand an implementation
Module ownership / wrong layerArchitecture drift
Results are empty / every change is defaultIndex health / Analysis blockers

Report contract

Deliver a Mermaid evidence report (graph conclusions + diagrams). Not a product review, and not Archify / interactive HTML. Read references/diagrams.md before drawing. A diagram that misses the quality bar fails the report.

Report body is only these blocks:

  • Must-read groups (by risk)
  • What changed (trust only symbol-diff / file-source vs file-base)
  • Must-test callers / entries (must come from edges / reach / path / tagged)
  • Test gaps (a tests directory is not a tests edge)
  • Sensitive paths (write "none" if there are none)
  • Diagrams: at least one, and it must pass the quality bar

Reject the whole report and rewrite if any of these hold:

  • Written as a generic project review (product intro, use cases, scored pros/cons)
  • Evidence comes from README / a website / guesswork, not this run of summary / imports / source / edges / reach / change-groups / symbol-diff
  • Only names large files or high fan-in; never uses edges / reach to say who is hit
  • Infers "covered" from a tests directory name; never checked tested_count or reach --direction in --edge-kinds tests
  • Mermaid is missing the Claude paper init, the three classDef lines, or a core module that should be risk has no class ... risk
  • Architecture subgraph titles are package names (Renderer / Compiler / Shared) instead of Entry → Application → Domain → Storage
  • Interactive HTML / Archify canvas was generated (this skill does not ask for that)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.