基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill regjit-code-review命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
| name | regjit-code-review |
| description | Use when reviewing RegJIT code changes for quality, correctness, and PCRE/RE2 compatibility |
| metadata | {"author":"acekingke"} |
Systematically review code changes in RegJIT for quality, correctness, and adherence to regex engine compatibility standards (PCRE, std::regex, RE2).
Key checks for RegJIT:
^ and $ match at correct positions only^, $, \b, \B behave as zero-widthRegJIT specific:
## Code Review: anchor quantifier search loop
### Files
✅ src/regjit.cpp - Core matcher with search loop
✅ tests/test_anchor_quant_edge.cpp - Comprehensive test coverage
✅ AGENTS.md - Documentation updated
✅ Makefile - Test target added
### Functionality
✅ Search loop attempts match at every offset
✅ Zero-width anchor semantics preserved
✅ PCRE/RE2 compatible for ^*, $+, \b*, etc
✅ Edge cases handled (empty string, end of string)
### Code Quality
✅ Variable names descriptive (LoopCheckBB, TrySuccess)
✅ Comments explain search loop purpose
✅ IR structure clean and correct
✅ No compiler warnings
### Architecture
✅ Follows existing patterns
✅ LLVM integration proper
✅ No regressions in other features
### Testing
✅ 15 edge case tests added
✅ All existing tests pass
✅ Verified against PCRE behavior
### Result
✅ APPROVED - High quality implementation with excellent compatibility
| Flag | Severity | Action |
|---|---|---|
| Search loop removed/modified | 🔴 Critical | Ask why, verify PCRE compat |
| Anchor behavior changed | 🔴 Critical | Must verify with PCRE/RE2 |
| New zero-width code | 🟡 High | Check isZeroWidth() logic |
| LLVM IR dead code | 🟡 High | Remove or explain |
| Quantifier modification | 🟡 High | Verify greedy/non-greedy |
| Missing test for feature | 🟠 Medium | Request tests added |
| AGENTS.md not updated | 🟠 Medium | Minor, can update later |
| Code comments unclear | 🟢 Low | Ask for clarification |
# Build and test
make clean && make test_all
# Check specific tests
./test_anchor_quant_edge
./test_anchor
./test_charclass
# View changes
git diff src/regjit.cpp
# Check for warnings
make 2>&1 | grep -i warning
Converted and distributed by TomeVault — claim your Tome and manage your conversions.