agentleFS
siemenssiemens/element/.agents/skills/review/SKILL.md

review

Skill83 starsChanged 18 days agoMITView on GitHub

Use when reviewing pull requests or code changes.

192 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use close-spec, design-with-images 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.
  • dzhngSkill

    close-spec

    When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).

    Also in 5 projects that use this

  • dzhngSkill

    design-with-images

    Explore UI and visual design with image generation, then iterate the real implementation against the user-selected concept. Use when brainstorming visual directions, offering mockup variants, or implementing an approved generated design; do not stop at the mockups or the first code approximation.

    Also in 5 projects that use this

  • LambenthanSkill

    daily-arxiv

    每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新

    Also in 5 projects that use this

  • LambenthanSkill

    exp-eval

    实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges

    Also in 5 projects that use this

  • +3 more from dzhng
  • +5 more from Lambenthan

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 12 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 157 edited versions we read keep these.

  • 12

    Distinctive

    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 the PR description and diff to understand the intended goal.

    line 13
  2. Distinctive:

    If that context is unavailable, state the limitation rather than guessing.

    line 16
  3. Distinctive:

    All PRs are checked by the CI pipeline.

    line 25
  4. Distinctive:

    Verify that every change serves that goal.

    line 33
  5. Distinctive:

    Test observable behavior rather than implementation details.

    line 44
  6. Distinctive:

    Avoid tests that merely check whether a single attribute is set.

    line 46
  7. Very specific:

    Prefer automatic cleanup of mocks and spies with using (for example, using spy = vi.spyOn(service, 'save')) so they are restored when the …

    line 61
  8. Very specific:

    Never use fixture.detectChanges() in unit tests.

    line 65
  9. Distinctive:

    Do not assert on styles in unit tests, except when testing positioning behavior.

    line 67
  10. Distinctive:

    Ensure that snapshots cover every distinct visual state affected by the change.

    line 77
  11. Distinctive:

    Avoid repeating detailed functional scenarios that belong in unit tests.

    line 78
  12. Very specific:

    After interactions such as clicking or typing, use an appropriate web-first assertion (await expect(...).to...()) to verify that the page …

    line 79
  13. Distinctive:

    All public symbols must have TSDoc comments.

    line 87
  14. Distinctive:

    Check grammar, spelling, clarity, and consistency in user-facing text, documentation, comments, and the PR title and description.

    line 88
  15. Distinctive:

    Use comments sparingly. Do not comment on obvious functionality.

    line 93

“Common” is measured: kept by at least 6 in 10 of the 157 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

Pull request review

Review changes for correctness, maintainability, and alignment with the pull request's goal. Apply the following checklist and report actionable findings.

Review workflow

  1. Read the PR description and diff to understand the intended goal.
  2. Consult related issues and discussions to understand requirements, constraints, and previous decisions. Search for relevant context when it is not linked. If that context is unavailable, state the limitation rather than guessing.
  3. Inspect the surrounding implementation, tests, examples, and documentation as needed to evaluate the changes.
  4. Apply the checklist below. Explain each finding's impact and suggest a concrete improvement, referencing the relevant file and line where possible. Distinguish required changes from optional suggestions.

CI and local validation

All PRs are checked by the CI pipeline. Do not rerun builds, tests, linting, or other pipeline checks locally during a review. Inspect the code, tests, and available CI results instead. Do not claim that checks passed unless their results are available.

Scope and implementation

  • A PR should have one clear goal and should preferably be small.
  • Verify that every change serves that goal.
  • Report unrelated changes. Suggest extracting refactorings and similar work into separate PRs when they also make sense independently.
  • Evaluate alternative approaches to the overall goal, not just individual lines of code. Check whether a simpler, more maintainable, or otherwise better solution exists, using issues and discussions to inform the assessment.

Unit tests

  • Bug fixes and features must have corresponding tests. Verify that the tests meaningfully exercise the changed behavior and would catch regressions.
  • Test observable behavior rather than implementation details. Generally, do not test getters and setters directly.
  • Avoid tests that merely check whether a single attribute is set. Instead, use the attribute as part of an interaction or a meaningful behavioral assertion. For example:

    // Avoid: checking only that the attribute exists.
    expect(element.querySelector('button')).toHaveAttribute('aria-label', 'Save');
    
    // Prefer: finding the button by its accessible name and using it.
    await userEvent.click(page.getByRole('button', { name: 'Save', exact: true }));
    await expect.element(page.getByRole('status')).toHaveTextContent('Saved');
  • In Vitest browser tests, prefer page and userEvent for queries and interactions.
  • Prefer automatic cleanup of mocks and spies with using (for example, using spy = vi.spyOn(service, 'save')) so they are restored when the block exits, even if the test fails. See Vitest's auto-cleanup with using.
  • Never use fixture.detectChanges() in unit tests. Always use await fixture.whenStable() to wait for Angular updates.
  • Do not assert on styles in unit tests, except when testing positioning behavior. Visual styling is covered by E2E snapshots.
  • Cover meaningful scenarios and boundaries without testing every possible combination. For example, if Space and Enter perform the same action, verify that both work, but do not repeat every scenario with both keys.

E2E tests and visual regression

  • Playwright E2E tests are relatively slow. Their primary purpose should be visual regression testing through snapshots, not exhaustive functional coverage.
  • Ensure that snapshots cover every distinct visual state affected by the change. Avoid repeating detailed functional scenarios that belong in unit tests.
  • After interactions such as clicking or typing, use an appropriate web-first assertion (await expect(...).to...()) to verify that the page has reached the expected state before taking a snapshot. Otherwise, the snapshot may be flaky.

Documentation and language

  • Features must be documented. For small additions, demonstrating them in examples may be sufficient.
  • All public symbols must have TSDoc comments.
  • Check grammar, spelling, clarity, and consistency in user-facing text, documentation, comments, and the PR title and description.

Code comments

  • Use comments sparingly. Do not comment on obvious functionality.
  • Explain surprising approaches, unusual behavior, and workarounds. Describe why they are necessary and, where possible, link to relevant sources, issues, or discussions.

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.