agentleFS
LangChainKnown publisherlangchain-ai/langchain-azure/.github/skills/code-review/SKILL.md

code-review

Skill147 starsChanged 3 months agoMITView on GitHub

Reviews changes in the langchain-azure monorepo using package-specific knowledge of langchain-azure-ai, langchain-azure-compute, langchain-azure-cosmosdb, langchain-azure-postgresql, langchain-azure-storage, langchain-sqlserver, and langchain-azure-dynamic-sessions, together with the LangChain, LangGraph, Deep Agents, and Azure SDK contracts each package must satisfy. Use this skill whenever reviewing a pull request or diff, checking code for bugs or regressions, or assessing changes under libs/, samples/, or .github/ in this repository, including when the request is only to "review", "check", "look at", or "give feedback on" a change, and even when no package is named explicitly.

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use starter, media-processing and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ww-w-aiSkill

    starter

    Static web development guide for beginners. Covers HTML/CSS/JavaScript and Next.js App Router basics. Project initialization with "init starter". Triggers: static website, portfolio, landing page, HTML CSS, beginner, 정적 웹, 포트폴리오, 초보자, 静的サイト, 初心者, 静态网站, 初学者, sitio web estático, site statique, statische Website, sito web statico Do NOT use for: fullstack apps (use $dynamic), enterprise (use $enterprise).

    Also in 4 projects that use this

  • mrgoonieSkill

    media-processing

    Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration) and ImageMagick (image manipulation, format conversion, batch processing, effects, composition). Use when converting media formats, encoding videos with specific codecs (H.264, H.265, VP9), resizing/cropping images, extracting audio from video, applying filters and effects, optimizing file sizes, creating streaming manifests (HLS/DASH), generating thumbnails, batch processing images, creating composite images, or implementing media processing pipelines. Supports 100+ formats, hardware acceleration (NVENC, QSV), and complex filtergraphs.

    Also in 5 projects that use this

  • loulanyueSkill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 15 projects that use this

  • mrgoonieSkill

    aesthetic

    Create aesthetically beautiful interfaces following proven design principles. Use when building UI/UX, analyzing designs from inspiration sites, generating design images with ai-multimodal, implementing visual hierarchy and color theory, adding micro-interactions, or creating design documentation. Includes workflows for capturing and analyzing inspiration screenshots with chrome-devtools and ai-multimodal, iterative design image generation until aesthetic standards are met, and comprehensive design system guidance covering BEAUTIFUL (aesthetic principles), RIGHT (functionality/accessibility), SATISFYING (micro-interactions), and PEAK (storytelling) stages. Integrates with chrome-devtools, ai-multimodal, media-processing, ui-styling, and web-frameworks skills.

    Also in 4 projects that use this

  • AWSSkill

    ask-matt

    Ask which skill or flow fits your situation. A router over the skills in this repo.

    Also in 32 projects that use this

  • AWSSkill

    resolving-merge-conflicts

    Use when you need to resolve an in-progress git merge/rebase conflict.

    Also in 48 projects that use this

  • +1 more from mrgoonie
  • +2 more from aws

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 174 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every directory under libs/ is a separately versioned, separately released package with its own maintainers, dependency manager, …

    line 19
  2. Distinctive:

    Treat each package as an independent review.

    line 50
  3. Distinctive:

    Never review a hunk in isolation.

    line 56
  4. Distinctive:

    Confirm each finding: before writing it. A finding must satisfy all four: the changed code causes it.

    line 60
  5. Distinctive:

    Read the file for each package that changed.

    line 67
  6. Distinctive:

    If a finding does not clear the Low bar, leave it out.

    line 151
  7. Distinctive:

    Keep each comment to the smallest useful line range and this shape:

    line 155

“Common” is measured: kept by at least 6 in 10 of the 174 edited versions of this file we could read. “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

Reviewing langchain-azure changes

Every directory under libs/ is a separately versioned, separately released package with its own maintainers, dependency manager, conventions, and upstream contracts. A finding is only useful if it is correct for the package it lands in, so the first job in any review is to work out which package changed and load that package's rules before judging anything.

What to report

Report defects the change introduces: incorrect behavior, broken edge cases, regressions in released public API, violations of an upstream contract (LangChain, LangGraph, Deep Agents, Azure SDK), breakage on a supported Python version, and security, credential-leak, data-loss, resource-leak, or concurrency problems.

Stay silent about everything else. In particular, do not comment on formatting, naming, or docstring wording that ruff and mypy already enforce; do not restate what the diff does; do not raise pre-existing issues the change merely touches; and do not suggest refactors that are not required for correctness. Returning no comments on a correct change is a good review — never manufacture findings to look thorough.

Copilot code review never sees **/*.lock, **/*.svg, **/*.log, or **/dist/**, so uv.lock is invisible to you. Excluded files are also stripped from the file list you receive, so you cannot tell a lockfile that was never updated from one that was updated and hidden from you. Never write a finding about lockfile contents or lockfile presence; instead, see the lockfile gotcha below.

Review workflow

  1. Identify the packages touched. Group changed files by libs/<package>/. Treat each package as an independent review.
  2. Load the package's rules from the routing table below, plus any AGENTS.md or .github/copilot-instructions.md along the changed path. The repository root AGENTS.md is already in your context; do not re-derive it.
  3. Read enough surrounding code to know what the changed lines actually do: the function, its callers, its sync or async twin, and the nearest tests. Never review a hunk in isolation.
  4. Check the upstream contract for the base class being implemented, using ecosystem contracts and Azure SDK contracts.
  5. Confirm each finding before writing it. A finding must satisfy all four: the changed code causes it; a realistic supported input or code path reaches it; the consequence is concrete; and you can point at the specific lines. If any of these is missing, drop it.

Package routing

Read the file for each package that changed. Skip the rest.

Changed pathPackageRead
libs/azure-ai/langchain-azure-aiazure-ai.md
libs/azure-compute/langchain-azure-computeazure-compute.md
libs/azure-cosmosdb/langchain-azure-cosmosdbazure-cosmosdb.md
libs/azure-postgresql/langchain-azure-postgresqlazure-postgresql.md
libs/azure-storage/langchain-azure-storageazure-storage.md
libs/sqlserver/langchain-sqlserversqlserver.md
libs/azure-dynamic-sessions/deprecatedazure-dynamic-sessions.md
.github/, samples/, root docsrepo infrastructurerepo-infrastructure.md

Also read ecosystem contracts when the change implements or overrides a LangChain, LangGraph, or Deep Agents base class, and Azure SDK contracts when it constructs an Azure client, handles credentials, or maps service errors.

Repository gotchas

These are the mistakes that pass local review and break later. They are specific to this repository and override any general instinct.

  • Never report a missing or stale uv.lock. CI runs uv lock --check on every touched package and fails the PR if a lockfile is stale or absent, so this is already gated far more reliably than you can infer it. You cannot observe lockfiles: they are excluded from your view and omitted from the file list you receive. A reviewed-file count below the PR's total changed-file count (for example "30/37 files reviewed") means excluded files exist, and on a dependency change those are almost always the very uv.lock updates you would otherwise flag as missing. Absence of evidence here is not evidence of absence — stay silent and let CI decide.
  • Raising the minimum Python version is not a breaking change here. The repository follows a Python support policy, and dropping an end-of-life interpreter changes no API or behavior on any still-supported version. requires-python makes older runtimes resolve to the previous release rather than install an incompatible one, so nothing breaks silently. These ship as patch releases; demanding a **[Breaking change]:** marker on one contradicts the version being shipped. Do not ask for that marker on a support-policy change — see release-notes for the classification rules.
  • CI only runs Python 3.11 and 3.14, but the support range is 3.11–3.14. A construct that breaks only on 3.12–3.13 passes CI. Reason about the whole range rather than trusting a green build.
  • langchain-azure-compute enforces 100% coverage (fail_under = 100). A new uncovered branch there fails CI, so a new if or except without a test is a real finding in that package only.
  • langchain-azure-ai lazy imports must be updated in three places — the TYPE_CHECKING import, __all__, and _module_lookup. Updating fewer makes the symbol import-time-invisible or __all__-inconsistent, and unit tests catch only some of these.
  • Deprecation decorators differ per package. azure-ai and azure-dynamic-sessions use their own _api.base (deprecated, experimental); the other packages use langchain_core._api (beta, deprecated). Do not flag one package for using the other's convention.
  • New Azure client construction must stamp the package user agent. Each package defines its own constant or helper (USER_AGENT, _user_agent, get_user_agent, with_user_agent). A new client path that omits it silently drops partner telemetry attribution.
  • asyncio_mode = "auto" in every package: async tests need no @pytest.mark.asyncio. Do not ask for it.
  • --strict-markers and --strict-config are set: a new pytest.mark.* must be registered in that package's pyproject.toml or collection fails.
  • azure-cosmosdb's local instructions still describe poetry, but its Makefile and CI use uv run --frozen. The Makefile is authoritative; do not flag correct uv usage there.
  • azure-postgresql's local instructions ask for Sphinx-style docstrings while its ruff config sets pydocstyle convention to google. Follow the style already used in the file being changed and raise no docstring-style findings in that package.
  • Unit tests must not touch the network. azure-ai enforces this with pytest-socket; the same expectation applies everywhere. A new unit test that reaches a live service is a finding.

Severity

Copilot code review labels comments High, Medium, or Low. Use that vocabulary.

  • High — data loss, credential or secret exposure, a regression in released public API, or a failure most users of the changed path will hit.
  • Medium — a real correctness, compatibility, or resource-handling defect on a narrower but supported path.
  • Low — a genuine but minor defect worth fixing.

If a finding does not clear the Low bar, leave it out.

Comment format

Keep each comment to the smallest useful line range and this shape:

[Severity] Short imperative title

What breaks, and the specific input or code path that triggers it. Which contract or package rule it violates. One concrete suggested fix, only when it is short and unambiguous.

Cite the contract by name (for example, "VectorStore.get_by_ids must not raise for missing IDs") rather than linking to documentation, and prefer one precise sentence over a paragraph of hedging.

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.