用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/vinilana/dotcontext --skill pr-review命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Implement or review bounded MCP inputs and responses. Use for gateway response helpers, MCP Zod schemas, list actions, cursor pagination, maxEvents, JSON serialization, audit logging, response metadata, artifact exports, or payload-size and client-compatibility changes.
Implement or review child-process execution with bounded stdout and stderr memory. Use for Node spawn wrappers, sensors, test runners, acceptance commands, timeout handling, output tails, truncation, or any change that captures subprocess output in the dotcontext harness.
Design, implement, or review bounded cache and persistent-index lifecycle. Use for ContextCache, SemanticContextBuilder, tree-sitter analysis cache, MCP session cache, hook host-session bindings, checkpoints, TTL, LRU, byte budgets, invalidation, cleanup timers, disposal, migration, or runtime retention configuration.
基于 SOC 职业分类
正在显示 SKILL.md
| type | skill |
| name | PR Review |
| description | Review pull requests against team standards and best practices |
| skillSlug | pr-review |
| phases | ["R","V"] |
| generated | "2026-03-18T00:00:00.000Z" |
| status | filled |
| scaffoldVersion | 2.0.0 |
Review pull requests for the @dotcontext/cli project against established patterns and quality standards.
Check which areas are affected:
# View changed files grouped by area
git diff main...HEAD --stat
Map changes to project layers:
src/services/mcp/ -- MCP server and gateway toolssrc/services/<domain>/ -- Service layer business logicsrc/generators/ -- Scaffold generationsrc/workflow/ -- PREVC workflow systemsrc/utils/ -- Shared utilitiessrc/index.ts -- CLI command definitions.context/ -- Documentation and scaffolding contentThis project uses Conventional Commits:
<type>(<scope>): <description>
Check that:
feat, fix, refactor, docs, test, chore)! suffix and BREAKING CHANGE: footersrc/services/index.ts barrel filescontextBuilder in AIContextMCPServer).describe() on every parametercreateJsonResponse/createErrorResponse from response.tsgatewayTools.ts barrelscaffoldVersion: "2.0.0")force flag is respected (skip existing when false)templates/ subdirectoryany types; use unknown + type guardsconsole.log in MCP server code (use process.stderr.write)path.join()/path.resolve(), never string concatenation# Run all tests
npm test
# Build check
npm run build
.test.ts filesjest.mock() for AI providers, fs)fs.mkdtemp) and cleaned up (afterEach)CLIInterface and TranslateFn provided where neededen and pt-BR in src/utils/i18n.tscommands.new.description)t() function, not hardcoded stringsCHANGELOG.md updated if the change is user-facingREADME.md updated if public CLI commands or MCP tools changed.context/docs/ updated if architecture changed significantlyNew types or handlers added in src/services/mcp/gateway/*.ts but not re-exported through gateway/index.ts and gatewayTools.ts.
MCP handlers that throw instead of returning createErrorResponse(). CLI commands that swallow errors silently.
.context/ directory does not exist?Renaming or removing an MCP tool action without a migration path. Always add new actions alongside old ones, then deprecate.
When creating PRs for this project:
## Summary
- What this PR does (1-3 bullet points)
## Changes
- List of key changes by file/area
## Test plan
- [ ] Unit tests pass: `npm test`
- [ ] Build succeeds: `npm run build`
- [ ] Manual verification: `npx tsx src/index.ts <command>`
- [ ] MCP tool tested (if applicable)