Agent Skillslangchain-ai/open-swe › continual-learning

continual-learning

GitHub

基于代码审查结果持续优化仓库的 Review Prompt。通过读取已确认和已驳回的发现,提升提示词对真实缺陷的召回率并降低误报,实现自动化迭代改进。

agent/skills/continual-learning/SKILL.md langchain-ai/open-swe

触发场景

需要优化现有代码审查规则时 收集到足够的历史审查反馈数据后

安装

npx skills add langchain-ai/open-swe --skill continual-learning -g -y
更多选项

非标准路径

npx skills add https://github.com/langchain-ai/open-swe/tree/main/agent/skills/continual-learning -g -y

不安装直接使用

npx skills use langchain-ai/open-swe@continual-learning

指定 Agent (Claude Code)

npx skills add langchain-ai/open-swe --skill continual-learning -a claude-code -g -y

安装 repo 全部 skill

npx skills add langchain-ai/open-swe --all -g -y

预览 repo 内 skill

npx skills add langchain-ai/open-swe --list

SKILL.md

Frontmatter
{
    "name": "continual-learning",
    "description": "Nightly refinement of an existing per-repo review-style prompt using this reviewer's own finding outcomes. Read confirmed (resolved-by-commit \/ thumbs-up) and dismissed (thumbs-down) findings, promote the bug patterns the team actually fixes, demote the false-positive patterns, reconcile against the current prompt, and save the refined version. Use this once outcomes exist; use bootstrap-repo-analysis for a cold-start repo."
}

Continual learning

You are refining the existing review-style prompt for the repository named in the system prompt, using outcomes the reviewer has accrued since the last run. The goal is to raise recall (catch more real bugs) without hurting precision (stop repeating dismissed ones).

1. Read outcomes first

Call read_finding_outcomes once. It returns this repo's past findings split into:

  • confirmed — resolved by a follow-up commit or 👍'd. These are real bug patterns this team fixes. Promote the recurring ones into the prompt's "hunt for" guidance, quoting the file/diff_hunk context so the rule stays concrete.
  • dismissed — dismissed or 👎'd. These are false-positive patterns. Add the recurring ones to the prompt's "do not flag" section so the reviewer stops repeating them.

Look for repetition, not one-offs. A single dismissed finding is noise; the same class dismissed several times is a rule.

2. Reconcile against the current prompt

The current custom_prompt is the starting point — you are editing it, not rewriting from scratch. Read it (it is summarized for you / available via the dashboard record). Keep what still holds, strengthen rules the outcomes confirm, and remove or soften rules the outcomes contradict. Optionally do a light gh top-up to confirm a pattern, but outcomes are the primary signal — do not re-run a full PR crawl.

Stay aligned with the reviewer-agent themes in the system prompt.

3. Save

Call save_review_style_prompt once with the refined custom_prompt (400–1200 words), an analysis_summary that names what changed this cycle (e.g. "promoted N-pattern after 3 confirmed fixes; dropped M-pattern after repeated dismissals"), and the top_reviewers / counts you have. If outcomes were empty and nothing changed, say so in analysis_summary and re-save the existing prompt unchanged rather than degrading it.

版本历史

  • 6b94413 当前 2026-08-20 03:59

    移除对 gh 命令前缀的硬编码依赖,改为通过环境变量注入 token,简化命令执行方式。

  • ed12bb8 2026-07-25 09:47

同 Skill 集合

.agents/skills/write-oep/SKILL.md
agent/bundled_skills/baby-sit/SKILL.md
agent/bundled_skills/html-artifacts/SKILL.md
agent/skills/bootstrap-repo-analysis/SKILL.md

元信息

文件数
0
版本
0ff86e2
Hash
6197ca39
收录时间
2026-07-25 09:47

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-22 09:26
浙ICP备14020137号-1