External Search Triage - ground repository decisions with cited sources
Use this skill when repository work depends on facts that may live outside the
checkout: current library behavior, API documentation, standards, advisories,
release notes, issue discussions, or ecosystem conventions. The goal is not to
collect links. The goal is to decide what evidence is needed, gather the
smallest useful set of sources, cite the facts that matter, and convert those
facts into concrete next actions in the repo.
Critical Constraints
- Search because a decision needs evidence, not because the topic is vaguely
interesting.
- Prefer primary sources: official docs, specs, source repositories, release
notes, changelogs, issue threads, security advisories, and package registries.
- Keep repository evidence in charge. External sources explain dependencies and
context; local code, tests, and generated artifacts define what this repo does.
- Capture the source, date, version, and exact claim being used. A bare URL is
not a citation.
- Separate facts, inferences, and proposed actions. Do not let a blog post
become an implementation plan without a repo-specific reason.
When To Search
Use targeted web/search queries when at least one of these is true:
- The answer depends on current external behavior: package versions, API
signatures, platform limits, security guidance, pricing, policies, or release
status.
- The repo references an external tool, service, standard, or dependency and the
local documentation may be stale.
- A failing test, build error, or runtime symptom mentions an external project,
error code, protocol, or dependency version.
- You need a citation for a design decision, review finding, user-facing doc, or
risk assessment.
- Multiple plausible fixes exist and external compatibility facts decide which
fix is least risky.
Skip search when the repository already contains authoritative evidence for the
question, the work is a local refactor with no external contract, or the request
explicitly asks for local-only analysis.
Frame The Search
Before searching, write a one-line frame:
Question: <fact needed>
Decision it affects: <repo action or review conclusion>
Freshness needed: <current / version-specific / historical>
Repo anchors: <file, symbol, command, error, dependency, or version>
Stop condition: <what evidence is enough>
If the decision it affects is unclear, inspect the repo first. Searching before
you know the local decision usually produces generic evidence.
Query Strategy
Start narrow and widen only if needed:
- Query the exact repo anchor: dependency name plus version, error code, API
symbol, command flag, config key, or protocol name.
- Add intent terms: migration, deprecation, breaking change, security advisory,
compatibility, example, or release notes.
- Bias toward primary domains with targeted queries, such as an official docs
domain, a source repository, a package registry, a standards body, or a
vendor advisory page.
- Add date or version terms when freshness matters.
- If results conflict, search for the source of the conflict: release notes,
merged pull requests, issue closure comments, or documentation history.
Avoid broad queries like "best way to fix build" or "how does this library
work". They bury the fact you need under unrelated examples.
Source Triage
For each candidate source, decide whether it is usable before reading deeply:
- Authority: Is it primary, maintained by the project, or directly tied to the
service or standard?
- Match: Does it cover the version, platform, language, and workflow used by the
repo?
- Freshness: Does the date or release line match the question?
- Specificity: Does it state the fact needed, or only discuss a related concept?
- Reproducibility: Can the claim be checked against a command, test, schema, or
code path in the repo?
Reject sources that are stale, anonymous, content-farm summaries, unrelated to
the repo's version, or only useful as background.
Citation Capture
Record citations while researching, not afterward. Use this compact shape:
| Claim | Source | URL | Date accessed | Version/date covered | Confidence |
| --- | --- | --- | --- | --- | --- |
| <fact used> | <title or project page> | <link> | <YYYY-MM-DD> | <version/date> | high/medium/low |
For each citation, include only the claim that affects the repo decision. Quote
short fragments only when exact wording matters; otherwise paraphrase and link.
If you infer something from a source, label it as an inference.
Turn Findings Into Actions
End the triage by mapping evidence to work:
Finding: <cited fact>
Repo impact: <file, behavior, command, dependency, or doc affected>
Action: <change, test, doc update, review comment, or no-op>
Confidence: <high/medium/low and why>
Follow-up: <remaining uncertainty or validation command>
Prefer actions that can be validated locally: add or update a test, pin or bump a
dependency, adjust docs to match current behavior, change a command, or open a
small issue with the cited evidence. If the evidence only changes confidence,
say that and avoid inventing a code change.
Output Shape
When reporting results, keep it short and source-backed:
- Search frame: the question, decision, and stop condition.
- Queries used: only the queries that found useful evidence.
- Citations: claim, source, URL, date accessed, version/date covered,
confidence.
- Grounded next actions: repo impact, action, validation, and any remaining
uncertainty.
Quality Rubric
A triage pass is complete only if:
- Every external claim used for a repo decision has a citation.
- Citations include enough context to judge authority, freshness, and version
match.
- Conflicting sources are either resolved or called out with their impact.
- Next actions name concrete repo files, commands, tests, docs, or issue follow
ups.
- The result distinguishes verified facts from inferences and assumptions.
1---2name: external-search-triage-23description: Use when deciding whether external research is needed and turning cited findings into repo actions. Triggers:4---5
6# External Search Triage - ground repository decisions with cited sources
7
8Use this skill when repository work depends on facts that may live outside the
9checkout: current library behavior, API documentation, standards, advisories,
10release notes, issue discussions, or ecosystem conventions. The goal is not to
11collect links. The goal is to decide what evidence is needed, gather the
12smallest useful set of sources, cite the facts that matter, and convert those
13facts into concrete next actions in the repo.
14
15## Critical Constraints
16
17- Search because a decision needs evidence, not because the topic is vaguely
18 interesting.
19- Prefer primary sources: official docs, specs, source repositories, release
20 notes, changelogs, issue threads, security advisories, and package registries.
21- Keep repository evidence in charge. External sources explain dependencies and
22 context; local code, tests, and generated artifacts define what this repo does.
23- Capture the source, date, version, and exact claim being used. A bare URL is
24 not a citation.
25- Separate facts, inferences, and proposed actions. Do not let a blog post
26 become an implementation plan without a repo-specific reason.
27
28## When To Search
29
30Use targeted web/search queries when at least one of these is true:
31
32- The answer depends on current external behavior: package versions, API
33 signatures, platform limits, security guidance, pricing, policies, or release
34 status.
35- The repo references an external tool, service, standard, or dependency and the
36 local documentation may be stale.
37- A failing test, build error, or runtime symptom mentions an external project,
38 error code, protocol, or dependency version.
39- You need a citation for a design decision, review finding, user-facing doc, or
40 risk assessment.
41- Multiple plausible fixes exist and external compatibility facts decide which
42 fix is least risky.
43
44Skip search when the repository already contains authoritative evidence for the
45question, the work is a local refactor with no external contract, or the request
46explicitly asks for local-only analysis.
47
48## Frame The Search
49
50Before searching, write a one-line frame:
51
52```
53Question: <fact needed>
54Decision it affects: <repo action or review conclusion>
55Freshness needed: <current / version-specific / historical>
56Repo anchors: <file, symbol, command, error, dependency, or version>
57Stop condition: <what evidence is enough>
58```
59
60If the decision it affects is unclear, inspect the repo first. Searching before
61you know the local decision usually produces generic evidence.
62
63## Query Strategy
64
65Start narrow and widen only if needed:
66
671. Query the exact repo anchor: dependency name plus version, error code, API
68 symbol, command flag, config key, or protocol name.
692. Add intent terms: migration, deprecation, breaking change, security advisory,
70 compatibility, example, or release notes.
713. Bias toward primary domains with targeted queries, such as an official docs
72 domain, a source repository, a package registry, a standards body, or a
73 vendor advisory page.
744. Add date or version terms when freshness matters.
755. If results conflict, search for the source of the conflict: release notes,
76 merged pull requests, issue closure comments, or documentation history.
77
78Avoid broad queries like "best way to fix build" or "how does this library
79work". They bury the fact you need under unrelated examples.
80
81## Source Triage
82
83For each candidate source, decide whether it is usable before reading deeply:
84
85- Authority: Is it primary, maintained by the project, or directly tied to the
86 service or standard?
87- Match: Does it cover the version, platform, language, and workflow used by the
88 repo?
89- Freshness: Does the date or release line match the question?
90- Specificity: Does it state the fact needed, or only discuss a related concept?
91- Reproducibility: Can the claim be checked against a command, test, schema, or
92 code path in the repo?
93
94Reject sources that are stale, anonymous, content-farm summaries, unrelated to
95the repo's version, or only useful as background.
96
97## Citation Capture
98
99Record citations while researching, not afterward. Use this compact shape:
100
101```
102| Claim | Source | URL | Date accessed | Version/date covered | Confidence |
103| --- | --- | --- | --- | --- | --- |
104| <fact used> | <title or project page> | <link> | <YYYY-MM-DD> | <version/date> | high/medium/low |
105```
106
107For each citation, include only the claim that affects the repo decision. Quote
108short fragments only when exact wording matters; otherwise paraphrase and link.
109If you infer something from a source, label it as an inference.
110
111## Turn Findings Into Actions
112
113End the triage by mapping evidence to work:
114
115```
116Finding: <cited fact>
117Repo impact: <file, behavior, command, dependency, or doc affected>
118Action: <change, test, doc update, review comment, or no-op>
119Confidence: <high/medium/low and why>
120Follow-up: <remaining uncertainty or validation command>
121```
122
123Prefer actions that can be validated locally: add or update a test, pin or bump a
124dependency, adjust docs to match current behavior, change a command, or open a
125small issue with the cited evidence. If the evidence only changes confidence,
126say that and avoid inventing a code change.
127
128## Output Shape
129
130When reporting results, keep it short and source-backed:
131
1321. Search frame: the question, decision, and stop condition.
1332. Queries used: only the queries that found useful evidence.
1343. Citations: claim, source, URL, date accessed, version/date covered,
135 confidence.
1364. Grounded next actions: repo impact, action, validation, and any remaining
137 uncertainty.
138
139## Quality Rubric
140
141A triage pass is complete only if:
142
143- Every external claim used for a repo decision has a citation.
144- Citations include enough context to judge authority, freshness, and version
145 match.
146- Conflicting sources are either resolved or called out with their impact.
147- Next actions name concrete repo files, commands, tests, docs, or issue follow
148 ups.
149- The result distinguishes verified facts from inferences and assumptions.