Skip to content

Add concise read-only OCaml review skill - #53

Merged
RCmerci merged 2 commits into
mainfrom
codex/ocaml-review-skill
Oct 8, 2026
Merged

RCmerci merged 2 commits into
mainfrom
codex/ocaml-review-skill

Conversation

@RCmerci

@RCmerci RCmerci commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Add a concise OCaml review skill and move the existing List performance guidance from AGENTS.md into that skill.

The skill applies when reviewing OCaml and reports evidence-backed findings without modifying files. Its three checks cover read/write amplification, List use only for collections explicitly below 1,000 items (unknown or potentially larger collections should use rrbvec), and stronger type constraints in spec/ .mli interfaces. The List check includes frequent linear APIs, quadratic repeated concatenation, and using Rrbvec vectors when the package is already a dependency.

Findings should include severity, location, trigger and impact in one sentence, distinguish observed facts from inference, and explicitly say when no issues were found.

Validation: YAML frontmatter, naming and scaffold checks passed with Ruby; the three checks, read-only reporting constraints and migration of the matching AGENTS.md rule were verified; git diff --check passed. The bundled skill validator could not run because its Python environment lacks PyYAML. Only .agents/skills/ocaml-review/SKILL.md and the corresponding List guidance in AGENTS.md change.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T14:59:00.007892Z 9470a96 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9470a961f9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .agents/skills/ocaml-review/SKILL.md Outdated
只读审查请求范围内的代码,只报告问题,不修改代码或其他文件。

1. 检查读写放大:单次操作是否重复全量读取、遍历或重写,结合数据量与调用频率判断影响。
2. `List` 仅用于明确小于 1000 项的数据;数量未知或可能 >= 1000 时指出应替换为 `rrbvec`,尤其检查高频 `List.length`、`List.nth`、`List.append` 等低性能调用。

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restrict rrbvec findings to harmful List access patterns

When a reviewed collection has an unknown or large size but is consumed with a single sequential List.map/List.fold or efficient head operations, this rule still requires reporting it and recommending rrbvec, even though no performance defect has been established and the replacement may add overhead. Base findings on demonstrated costly access patterns such as repeated traversal, indexing, or append rather than a blanket 1,000-item threshold; the repository guidance likewise targets O(n²) List usage, not every large list.

AGENTS.md reference: AGENTS.md:L11-L11

Useful? React with 👍 / 👎.

@RCmerci
RCmerci merged commit a660513 into main Oct 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant