技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
configure-review【数据与研究】Use when configuring or changing a repository's tracked branches, layered review policy, ignored tracked paths, retrieval limits, summary depth, or non-secret task-board metadata.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Always answer the user in Russian. Update only the requested policy values; Never clobber foreign
keys such as categories. This skill is standalone: no reviewer MCP, database, or board connection
is required for the baseline.
Manage summary_cluster_depth, summary_cluster_depth_overrides, summary_topk_threshold,
summary_paths.ignore, paths.ignore, context_limits, and the optional task_board block,
including its generic sync_filter. An empty task_board: disables the board for this repository. Never read, request,
display, or write credential values in either policy target.
Tracked branches are separate from review policy. Manage repository.primary_branch and
repository.index_branches only in the home per-repo target. The committed .review.yml cannot
own repository, because branch selection must be available before a committed ref can be read.
Untracked .venv, node_modules, __pycache__, dist, and build are gitignored and never
enter the index. Do not use a filesystem walk to find them.
Inspect each selected policy or home YAML file with a local boolean-only process.
Run this preflight before any tool call that can return file contents.
Return only safe/blocked, never matching lines, values, or exception text. Do not use Read or Grep
to perform this preflight. The process must reject non-regular or symlinked files, malformed or
non-mapping YAML, and credential-like keys at any depth. Also reject duplicate mapping keys,
including duplicate repository keys and duplicate branch fields. Reject anchors, aliases, and merge keys.
Reject these cases before reading or mutating the file in model context.
Only after a safe result may a content-returning tool read the file for a line-oriented edit.
For a home target, derive the canonical home config root lexically even when it does not exist. Check every existing parent path component through the destination without following symlinks; reject symlinks and non-directories. Missing destinations, including a missing home config root, are allowed only when the nearest existing parent is a real directory and the normalized destination remains inside the canonical home config root. After creating any missing directories, run the path preflight again. Also re-check immediately before writing so a changed path never inherits an earlier safe result.
home:repos/<owner>/<name>.yml, stored at
$XDG_CONFIG_HOME/rag-reviewer/repos/<owner>/<name>.yml (or
~/.config/rag-reviewer/... when XDG_CONFIG_HOME is unset). It needs no commit and is not
visible to the team..review.yml at the selected target ref. It is committed and
visible to the team; read it from that ref, never from an uncommitted worktree file.
For a nested id such as group/service, use home:repos/group/service.yml. A home policy is
owned by the OS account running reviewer: on a shared service account it can affect that
account's workloads, so use committed policy for team-owned settings.git rev-parse --git-dir, run the Safe
YAML preflight, and only then read the selected file, preserving unrelated keys and comments.
Do not inspect or copy credentials.git -C <path> ls-tree -r --name-only <branch> | grep '\.py#x27;
Count directory prefixes at depths 1–3. This is not a filesystem walk.git log --since="6 months ago" --name-only --pretty=format: -- '*.py'.
If history is too short or unavailable, say so and recommend from structure alone.paths.ignore and
never write it silently. Assemble a draft that preserves the selected file's unrelated
keys/comments, then request final confirmation before writing it. Follow the exact rebuild map
below; suggest but do NOT run a follow-up skill. When branch and policy changes share a run,
assemble both drafts first, show both paths and diffs, and request one final confirmation before
either write.Handle branches before policy analysis whenever the user asks to inspect or change tracked branches.
git rev-parse --show-toplevel gives the git root;git remote get-url origin gives the canonical SSH/HTTPS remote candidate;<owner/name> with the same SSH/HTTPS forms accepted by reviewer;<owner/name> explicitly.
Network git commands are forbidden.reviewer config show --repo <owner/name> --json and show the effective primary branch,
ordered index branches, and source. A policy/VCS diagnostic error does not erase the returned
branch section; a malformed home config is a blocking error and must not fall back silently.repository.primary_branch, then ask for the complete ordered unique
repository.index_branches. The primary must be present in the index list. Reject empty names,
duplicates, and a primary outside the list.$XDG_CONFIG_HOME/rag-reviewer/repos/<owner>/<name>.yml (or the equivalent
~/.config/rag-reviewer/... path when XDG is unset).
Never write repository to committed .review.yml, even when committed policy is selected for
other keys. If policy and branches
change together, treat them as two targets in one preview.repository is absent, append the canonical block; if it exists,
replace only primary_branch and index_branches. Preserve all top-level keys and unknown repository subkeys.
Preserve comments, line endings, and surrounding YAML style.
Never serialize the complete file with yaml.safe_dump.reviewer config show --repo <owner/name> --json again and require the
exact primary/index/source expected from the home per-repo layer. Report a mismatch as an error.If newly added index branches are not indexed, suggest rag-reviewer:sync-codebase once per new
branch, but do not run it. A primary change to an already indexed branch needs no rebuild. Removing
a branch stops reviewer from selecting it but does not delete its old base index automatically.
Branch changes never trigger subsystem-summary work.
paths.ignore → suggest rag-reviewer:sync-codebase.summary_cluster_depth → suggest rag-reviewer:summarize-subsystems.summary_cluster_depth_overrides → suggest rag-reviewer:summarize-subsystems.summary_paths.ignore → this key is part of the summary layout_token; suggest
rag-reviewer:summarize-subsystems and warn it forces a full rebuild of every subsystem
summary (same layout_token invalidation as summary_cluster_depth/
summary_cluster_depth_overrides).summary_topk_threshold → no rebuild needed.context_limits → no rebuild needed.task_board.sync_filter → suggest rag-reviewer:sync-tasks for a full unlimited run
(limit=null); do NOT run it automatically.Ask whether to keep, disable, or configure task_board. A configured block uses only this shape:
task_board:
type: <registered board_type>
project: <optional project prefix>
key_pattern: '<optional task-key pattern>'
create_target: <selected target id or null>
done_target: <selected target id or null>
options: {}
sync_filter:
max_age_days: <integer >= 1, or omit for no age limit>
include_archived: <boolean, default true>
project scopes board sync and task retrieval. Explain that an empty task_board.project can mix
all projects, then ask for the intended project prefix.
sync_filter is a generic sibling of provider options. The sync_filter block is optional.
Never put sync_filter under options. Ask two separate questions:
max_age_days: choose an integer greater than or equal to 1, or no age limit.include_archived: choose whether archived tasks are included; the default is true.Age uses task last-modified time and an inclusive cutoff: a task modified exactly at the cutoff is
eligible. Archive is distinct from terminal/done; include_archived: false excludes only tasks
known to be archived. Age filtering runs first. Only while include_archived: false, unknown
archive metadata does not itself exclude the row; an archive warning is emitted only then and only
when age filtering did not already exclude the row.
sync_filter safelyWhen changing only sync_filter, use this deterministic materialization procedure:
task_board defaults,
home:review.yml, committed .review.yml, then home:repos/<owner>/<name>.yml; stop at the
selected target. Never inspect or copy credential env values. For a committed target, do not
read the higher repo-home layer. For the recommended home per-repo target, include all layers.task_board mapping, use that mapping alone as the edit
base. Preserve every sibling and field-attached comment already present, but do not copy or
overlay omitted fields from lower layers: the selected mapping already shadows the complete
lower block.task_board key, resolve only the lower layers with normal
whole-block replacement, then materialize the complete lower effective non-secret task_board
into the selected-layer draft. Copy type, project, key_pattern, url_template,
create_target, done_target, options, every other non-secret sibling, and field-attached
comments. If no lower board exists, ask for a fully configured board; never write a new partial
task_board containing only the filter.sync_filter. Only proceed when the user explicitly chooses to replace it with a fully
configured board assembled from confirmed values; never resurrect lower fields silently.sync_filter in the chosen or materialized block. The selected layer
remains a self-contained whole-block replacement.Because policy layers replace the whole task_board block, preserve every sibling field and
comment when changing sync_filter. Repositories using the same project share one task corpus, so
different retention views require different project scopes. Keep home per-repo as the recommended
target for repository-specific policy. A filter change is evaluated on the next successful full
sync and backfills newly eligible tasks; purge remains explicit and is never enabled by a filter
change.
When a board type is selected, call the read-only discovery tool:
get_board_targets(board_type=<type>, project=<project>, provider_options=<task_board.options or {}>)
Its normalized response is {board_type, project, targets, options, warnings}. Present a
pick-list of targets by label; use purposes to select create_target and done_target.
For every option whose required_for contains sync, create, or finish, present its choices
by label and write the selected id into task_board.options. If discovery is unavailable, empty,
or returns an error, fall back to asking the user for each required generic value. Do not guess
targets or options.
The resulting values are non-secret metadata. Board access is configured outside this file; do not request, display, or write credentials.
Choose one profile from tracked-file structure and write all real context_limits fields:
| Profile | Condition | search_codebase: floor / ceiling / ratio / abs_floor / candidate_pool / ann_distance_max | graph: hops / callers_topk |
|---|---|---|---|
| tiny-util | fewer than 80 tracked Python files and one package | 3 / 8 / 0.60 / 0.35 / 20 / 0.65 | 1 / 20 |
| standard | 80–800 files | 4 / 15 / 0.50 / 0.30 / 30 / 0.65 | 1 / 25 |
| large / monorepo | over 800 files or at least three large packages | 4 / 25 / 0.45 / 0.30 / 40 / 0.60 | 1 / 30 |
Map count_tasks(project) to search_tasks deterministically: < 150 → 3 / 8;
150–800 → 3 / 10; 800+ → 4 / 14. A missing tool, zero count, or unavailable corpus
falls back to asking the user for small/medium/large, then uses the same mapping.
context_limits.code_section is the file budget for the task-context code section
(prepare_task_context): max_files: 20, max_chunks_per_file: 1, chars_per_file: 975,
max_augmented_files: 3. These four defaults are the same across all three profiles above —
there is no measurement backing a per-profile split, so do not invent one. The budget unit here
is the FILE, not the chunk; there is no separate character-cap key, the effective character
ceiling is derived from max_files/max_chunks_per_file/chars_per_file. max_augmented_files
(PRI-257) is a RESERVE of file slots inside max_files for diff paths mixed in from similar
tasks (similar-diffs, the section's only augmentation source) — not a cap applied to whatever
the hybrid search leaves over. Write it alongside the other real context_limits fields:
context_limits:
search_codebase:
floor: <profile value>
ceiling: <profile value>
ratio: <profile value>
abs_floor: <profile value>
candidate_pool: <profile value>
ann_distance_max: <profile value>
search_tasks:
floor: <board-size value>
ceiling: <board-size value>
graph:
hops: <profile value>
callers_topk: <profile value>
code_section:
max_files: 20
max_chunks_per_file: 1
chars_per_file: 975
max_augmented_files: 3
Preserve every other configuration key and ask for confirmation before writing the assembled draft.
Report old/new branches, the selected branch source, changed policy keys, selected generic targets/options, and any recommended follow-up. This skill makes configuration-only recommendations and has no index side effects.