一键导入
deepreviews
Reference documentation for DeepWork Reviews — automated code review rules using .deepreview configs and DeepSchema-generated rules
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Reference documentation for DeepWork Reviews — automated code review rules using .deepreview configs and DeepSchema-generated rules
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Welcome new users to DeepWork — introduce features, set up reviews, and optionally record a first workflow
Run DeepWork Reviews on the current branch — review changed files using .deepreview rules
Creates a new LearningAgent with directory structure, core-knowledge.md, and Claude Code agent file. Guides the user through initial configuration.
Runs the learning cycle on all LearningAgent sessions with pending transcripts. Identifies issues, investigates root causes, and incorporates learnings into agent definitions.
Start or continue DeepWork workflows using MCP tools
Record a workflow by doing it — watch and learn approach to creating DeepWork jobs
基于 SOC 职业分类
| name | deepreviews |
| description | Reference documentation for DeepWork Reviews — automated code review rules using .deepreview configs and DeepSchema-generated rules |
This is a reference skill. Read it to understand the DeepWork Reviews system before running or configuring reviews.
DeepWork Reviews lets you define automated code review policies using .deepreview config files placed anywhere in your project. When a review runs, it detects which files changed on your branch, matches them against rules, and dispatches parallel review agents — each with focused instructions and only the files it needs.
Reviews are triggered in two ways:
/review skill — runs all matching rules against your branch's changesfinished_step automatically runs reviews on step outputsA .deepreview file is YAML containing one or more named rules. Each rule has a match section (what files to trigger on) and a review section (how to review them).
.deepreview files work like .gitignore — glob patterns match relative to the file's directory. Place them close to the code they govern:
project/
├── .deepreview # Project-wide rules
├── src/
│ ├── .deepreview # Rules scoped to src/
│ └── auth/
│ └── .deepreview # Rules scoped to src/auth/
rule_name:
description: "Short description" # Required, under 256 chars
match:
include:
- "glob/pattern/**/*.ext" # Required, at least one
exclude:
- "pattern/to/skip/**" # Optional
review:
strategy: individual # Required: individual | matches_together | all_changed_files
instructions: | # Required: inline text or file reference
Review this file for ...
agent: # Optional: platform-specific agent persona
claude: "security-expert"
precomputed_info_for_reviewer_bash_command: .deepwork/review/gather_context.sh # Optional
additional_context: # Optional
all_changed_filenames: true # Include all changed files list
unchanged_matching_files: true # Include unchanged files matching the pattern
reference_files: # Optional: inlined into review prompt
- path: "docs/style_guide.md"
description: "Coding style guide"
reference_files inline small support files (style guides, schemas, templates) into a ## Relevant File Contents section of every generated review instruction file. Paths are resolved relative to the .deepreview file's directory. Inlining is capped at 20 files and 256 KB of total content per review — entries beyond the caps are listed in an omitted-summary line; oversized files are truncated. Missing files produce a graceful marker rather than aborting the review. Use this instead of asking the reviewer to Read each file at runtime.
| Strategy | Behavior | Best for |
|---|---|---|
individual | One review per matched file | Per-file linting, style checks |
matches_together | All matched files in one review | Cross-file consistency, migration safety |
all_changed_files | If any file matches, reviewer sees ALL changed files | Security audits, broad impact analysis |
Instructions tell the reviewer what to check. They can be inline or reference an external file:
# Inline
instructions: "Check for proper error handling."
# File reference (resolved relative to .deepreview location)
instructions:
file: .deepwork/review/python_review.md
Reusable instruction files should live in .deepwork/review/.
.deepreview files in the project.deepwork/tmp/review_instructions/Deleted files are excluded — there's nothing to review.
DeepSchemas automatically generate synthetic review rules. When a file matches a DeepSchema with requirements, the review pipeline creates a rule that checks those requirements during /review and workflow quality gates. No .deepreview file is needed — the DeepSchema's requirements field drives the review.
Generated reviews automatically populate reference_files from the schema's references entries and json_schema_path, so reviewers receive that supporting context inlined. A schema's examples are listed (by path + description) in the review instructions but are not inlined; reviewers can open them on demand if needed. URL-valued references are skipped.
This means requirements defined in a DeepSchema are enforced in two places:
/reviewDuring DeepWork workflows, finished_step triggers reviews on step outputs. These come from three sources:
review blocks defined on step outputs in job.ymlreview blocks on step_arguments in job.yml.deepreview rules and DeepSchema rules — any rules whose patterns match the output filesAll three run automatically. If any review fails, finished_step returns needs_work with feedback.
all_changed_filenames: true — gives the reviewer a list of every changed file, even those outside this rule's scope. Useful for spotting related changes.unchanged_matching_files: true — includes files matching the pattern that weren't changed. Useful for sync checks (e.g., "are all version files still in sync?").The precomputed_info_for_reviewer_bash_command field runs a shell command before the review and injects its stdout into the instruction file as a "Precomputed Context" section. This eliminates the need for the reviewer agent to run many tool calls to gather context.
review:
strategy: all_changed_files
precomputed_info_for_reviewer_bash_command: .deepwork/requirements_traceability_info.sh
instructions: |
Review changed files for requirements traceability...
Behavior:
.deepreview file's directoryThe optional agent field assigns a specialized persona to the reviewer:
agent:
claude: "security-expert"
If omitted, the default agent handles the review.
All detection is local (no remote fetches). Included: committed branch changes, staged changes, unstaged modifications, untracked files. Excluded: deleted files. You can override detection by passing explicit files.
/review — Run reviews on the current branch/configure_reviews — Create or modify .deepreview rules/deepschema — Create DeepSchemas that auto-generate review rules