Token导航 LogoToken导航

Agent Skill · 研究检索

learn-from-pr(向公关学习)

learn-from-pr 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

learn-from-pr 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 54,843。

总安装 494周安装 21GitHub Stars 23,172下载 173核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:learn-from-pr(向公关学习)
来源仓库:https://github.com/dotnet/maui
仓库路径:skills/learn-from-pr
安装命令:
npx skills add https://github.com/dotnet/maui --skill learn-from-pr
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/dotnet/maui --skill learn-from-pr

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

learn-from-pr 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词快速定位候选结果时使用。适用于研究检索类任务,可结合来源仓库和原始 README 核验具体用法。

通过 npx skills add 命令从 GitHub 安装,需确认权限范围和维护状态。使用前建议检查是否会触发联网、命令执行或文件读写操作。当前维护状态和稳定性需结合仓库活跃度进一步确认。

来源仓库内路径:skills/learn-from-pr

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/dotnet/maui --skill learn-from-pr;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

learn-from-pr 怎么安装?

在终端执行 npx skills add https://github.com/dotnet/maui --skill learn-from-pr。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

learn-from-pr 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

learn-from-pr 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

learn-from-pr 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

learn-from-pr 用的人多吗?

公开数据是累计安装 494 次,近一周安装 21 次,下载 173 次,GitHub 23,172 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

learn-from-pr 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 来源仓库有 23,172 星,维护活跃度相对可查。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
learn-from-pr

向公关学习 · 本页

49423,172只读未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Learn From PR

Extracts lessons learned from a completed PR to improve repository documentation and agent capabilities.

Inputs

InputRequiredSource
PR number or Issue numberYesUser provides (e.g., "PR #33352" or "issue 33352")

Outputs

  1. Learning Analysis - Structured markdown with:

- What happened (problem, attempts, solution) - Fix location analysis (attempted vs actual) - Failure modes identified - Prioritized recommendations

  1. Actionable Recommendations - Each with:

- Category, Priority, Location, Specific Change, Why It Helps

Completion Criteria

The skill is complete when you have:

  • Gathered PR diff and metadata
  • Analyzed fix location (attempted vs actual)
  • Identified failure modes
  • Generated at least one concrete recommendation
  • Presented findings to user

When to Use

  • After agent failed to find the right fix
  • After agent succeeded but took many attempts
  • After agent succeeded quickly (to understand what worked)
  • When asked "what can we learn from PR #XXXXX?"

When NOT to Use

  • Before PR is finalized (use pr-finalize first)
  • For trivial PRs (typo fixes, simple changes)
  • When no agent was involved (nothing to analyze)

Workflow

Step 1: Gather Data

# Required: Get PR info
gh pr view XXXXX --json title,body,files
gh pr diff XXXXX

Analyze the PR to extract learning:

  1. PR discussion - Comments reveal what was tried
  2. Commit history - Multiple commits may show iteration
  3. Code complexity - Non-obvious fixes suggest learning opportunities
  4. Similar past issues - Search for related bugs

Focus on: "What would have helped an agent find this fix faster?"

Step 2: Fix Location Analysis

Critical question: Did agent attempts target the same files as the final fix?

# Where did final fix go?
gh pr view XXXXX --json files --jq '.files[].path' | grep -v test
ScenarioImplication
Same filesAgent found right location
Different filesMajor learning opportunity - document why

If different files: Answer these questions:

  • Why did agent think that was the right file?
  • What search would have found the correct file?

Step 3: Analyze Outcome

Determine which scenario applies and look for the relevant patterns:

Scenario A: Agent Failed
PatternIndicator
Wrong file entirelyAll attempts in File A, fix in File B
Tunnel visionOnly looked at file mentioned in error
Trusted issue titleIssue said "crash in X" so only looked at X
Pattern not generalizedFixed one instance, missed others
Didn't search codebaseNever found similar code patterns
Missing platform knowledgeDidn't know iOS/Android/Windows specifics
Wrong abstraction layerFixed handler when problem was in core
Misread error messageError pointed to symptom, not cause
Incomplete contextDidn't read enough surrounding code
Over-engineeredComplex fix when simple one existed
Scenario B: Agent Succeeded Slowly (many attempts)
PatternIndicator
Correct file, wrong approachFound right file but tried wrong fixes first
Needed multiple iterationsEach attempt got closer but wasn't quite right
Discovery was slowEventually found it but search was inefficient
Missing domain knowledgeHad to learn something that could be documented

Key question: What would have gotten agent to the solution faster?

Scenario C: Agent Succeeded Quickly
PatternIndicator
Good search strategyFound right file immediately
Understood the patternRecognized similar issues from past
Documentation helpedExisting docs pointed to solution
Simple, minimal fixDidn't over-engineer

Key question: What made this work? Should we reinforce this pattern?

Step 4: Find Improvement Locations

# Discover where agent guidance lives
find .github/instructions -name "*.instructions.md" 2>/dev/null
find .github/skills -name "SKILL.md" 2>/dev/null
ls docs/design/ 2>/dev/null
ls .github/copilot-instructions.md 2>/dev/null
LocationWhen to Add Here
.github/instructions/*.instructions.mdDomain-specific AI guidance (testing patterns, platform rules)
.github/skills/*/SKILL.mdSkill needs new step, checklist, or improved workflow
/docs/design/*.mdDetailed architectural documentation
.github/copilot-instructions.mdGeneral AI workflow guidance
Code commentsNon-obvious code behavior

Step 5: Generate Recommendations

For each recommendation, provide:

  1. Category: Instruction file / Skill / Architecture doc / Inline comment / Linting issue
  2. Priority: High (prevents class of bugs) / Medium (helps discovery) / Low (nice to have)
  3. Location: Exact file path
  4. Specific Change: Exact text to add
  5. Why It Helps: Which failure mode it prevents

Prioritization factors:

  • How common is this pattern?
  • Would future agents definitely hit this again?
  • How hard is it to implement?

Pattern-to-Improvement Mapping (Failures/Slow Success):

PatternLikely Improvement
Wrong file entirelyCheck /docs/design/ for component relationships
Tunnel visionInstruction file: "Always search for pattern across codebase"
Missing platform knowledgePlatform-specific instruction file
Wrong abstraction layerReference /docs/design/HandlerResolution.md
Misread error messageCode comment explaining the real cause
Over-engineeredSkill enhancement: "Try simplest fix first"

Pattern-to-Improvement Mapping (Quick Success - reinforce):

PatternImprovement
Good search strategyDocument the search pattern that worked in skills
Documentation helpedNote which docs were valuable, ensure they stay updated
Recognized patternAdd to instruction files as known pattern

Step 6: Present Findings

Present your analysis covering:

  • What happened and what made it hard
  • Where agent looked vs actual fix location
  • Which patterns applied and evidence
  • Prioritized recommendations with full details (category, priority, location, exact change, why it helps)

Error Handling

SituationAction
PR not foundAsk user to verify PR number
No agent involvement evidentAsk user if they still want analysis
Can't determine failure modeState "insufficient data" and what's missing

Constraints

  • Analysis only - Don't apply changes (use learn-from-pr agent for that)
  • Actionable recommendations - Every recommendation must have specific file path and text
  • Don't duplicate - Check existing docs before recommending new ones
  • Focus on high-value learning - Skip trivial observations
  • Respect PR scope - Don't recommend improvements unrelated to the PR's learnings

Examples

Example: Wrong File Entirely

PR #33352 - TraitCollectionDidChange crash on MacCatalyst

What happened:

  • Issue title: "ObjectDisposedException in ShellSectionRootRenderer"
  • Agent made 11 attempts, ALL in ShellSectionRootRenderer.cs
  • Actual fix was in PageViewController.cs

Failure Mode: Trusted issue title instead of searching for pattern.

Recommendation:

  • Category: Instruction File
  • Location: .github/instructions/ios-debugging.instructions.md
  • Change: "When fixing iOS crashes, search for the PATTERN across all files, not just the file named in the error"
  • Why: Prevents tunnel vision on named file

Example: Slow Success

PR #34567 - CollectionView scroll position not preserved

What happened:

  • Agent took 5 attempts to find fix
  • First 3 attempts were in wrong layer (handler vs core)
  • Eventually found it after reading more context
  • Final fix was simple once the right layer was identified

Pattern: Wrong abstraction layer - fixed handler when problem was in core.

Recommendation:

  • Category: Architecture Doc
  • Location: .github/architecture/handler-vs-core.md
  • Change: Document layer responsibilities - handlers map properties, core handles behavior
  • Why: Helps agent identify correct layer faster

Example: Quick Success

PR #35678 - Button disabled state not updating

What happened:

  • Agent found fix in 1 attempt
  • Searched for "IsEnabled" pattern across codebase immediately
  • Found similar past fix in another control and applied same approach
  • Simple, minimal change

Pattern: Good search strategy - recognized pattern from similar code.

Recommendation:

  • Category: Skill Enhancement
  • Location: .github/skills/try-fix/SKILL.md
  • Change: Add to search strategy: "Search for same property pattern in other controls"
  • Why: Reinforces successful discovery technique

Integration

  • pr-finalize → Use first to verify PR is ready
  • learn-from-pr skill → Analysis only (this skill)
  • learn-from-pr agent → Analysis + apply changes

For automated application of recommendations, use the learn-from-pr agent instead.

平台分布

Codex

35.58%
按下载量换算62

Claude

28.67%
按下载量换算50

Cursor

18.74%
按下载量换算32

Gemini CLI

9.82%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills