collecting-sources — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited collecting-sources (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Phase 1 of two-phase research: discover, evaluate, and store sources with metadata. Synthesis (Phase 2) and fact-checking (Phase 3) are separate phases — this skill ends at handoff.
Everything lands in the task workspace:
work/<task-id>/
├── source_index.md # human-readable catalogue
└── sources/
├── papers/ # academic papers (.txt from CORE/Unpaywall, .pdf from arXiv)
├── web/ # web pages (Markdown)
├── blogs/ # blog posts (Markdown)
└── docs/ # documentation (Markdown/HTML)Every source file has a .meta.yaml companion conforming to schema v1.0 — fields, missing-data conventions, and a complete example in references/source-metadata-schema.md.
mkdir -p work/<task-id>/sources/{papers,web,blogs,docs}src_001, src_002, …source_index.md exists from a previous collection, load it for duplicate detection.Detect the domain from the research question:
Academic research — discovery finds papers and extracts identifiers (DOI, arXiv ID, PubMed ID, exact title) for the retrieval chain; do not fetch full text during discovery. Run 3–5 targeted WebSearch queries mixing plain and site-specific forms:
site:pubmed.ncbi.nlm.nih.gov [topic]site:arxiv.org [topic]site:scholar.google.com [topic], [topic] research paper peer-reviewedCollect candidate metadata: title, authors, publication date, venue, abstract excerpt, identifiers.
General web research — run 3–5 targeted WebSearch queries with alternative phrasings; target authoritative sources (official docs, expert blogs, reputable sites); use site-specific searches when the site is known (site:docs.python.org async). Collect URLs, titles, authors, dates.
Target: 15–25 candidates from diverse source types, to be filtered to 8–15 on quality.
Before fetching each candidate, check for duplicates: URL match against existing sources, DOI match against doi fields in existing .meta.yaml files. If already collected, skip and log.
Try in order; record which step succeeded as retrieval_method:
1. CORE API — always first; 46M full texts as plain text, all domains:
https://api.core.ac.uk/v3/search/works?q=doi:[DOI] — or q=title:"[exact title]" if no DOIfullText field is non-empty, save it as .txt — done. Otherwise continue.2. Unpaywall MCP — open-access PDF discovery and extraction:
unpaywall_get_fulltext_links(doi=...) → best_oa_location.url_for_pdf; without a DOI, find one via unpaywall_search_titles(query="exact title")unpaywall_fetch_pdf_text(doi=..., truncate_chars=50000) → save as .txt (typical papers run 20,000–30,000 chars; surveys 90,000–100,000)3. Domain repository:
https://export.arxiv.org/pdf/[arxiv_id].pdf — this stores the binary PDF only (WebFetch cannot extract PDF text). Max ~4 requests/second.https://pmc.ncbi.nlm.nih.gov/articles/PMC[PMCID]/ — full-article HTML, store as Markdown or HTML.4. WebFetch the landing page — occasionally yields full text as HTML; at minimum, abstract and bibliographic metadata.
5. Metadata-only (paywalled, last resort):
site:arxiv.org [title], site:biorxiv.org [title], [author] [title] pdf.file_path: "unavailable" and content_hash: "unavailable"; list the attempted strategies in provenance.notes; flag "Metadata only (paywalled)" in the index.Social sciences caveat: OA coverage is ~33% vs ~66% for STEM, and SSRN (1.74M preprints) has no API. Expect 50–60% metadata-only rates and say so in the collection summary.
WebFetch (converts HTML to Markdown). Preserve HTML only when formatting is critical.
Classify source_type (academic_paper, web_page, blog, documentation) and store:
| Source | Path | Format |
|---|---|---|
| Paper via CORE/Unpaywall | sources/papers/src_NNN.txt | plaintext |
| Paper via arXiv direct | sources/papers/src_NNN.pdf | |
| Paper, metadata-only | no file — file_path: "unavailable" | — |
| Web page / blog / documentation | sources/{web,blogs,docs}/src_NNN.md | markdown (or html) |
Generate the content hash — shasum -a 256 <file> → content_hash: "sha256:HEX" — and compare against existing hashes to catch duplicate content fetched from different URLs.
Write src_NNN.meta.yaml beside each source file, conforming to references/source-metadata-schema.md: core fields, source-type-specific fields, provenance (collected_by, collection_method, collected_at, task_id, notes), and retrieval_method for academic papers.
Assess every source on five RADAR dimensions, scored 1–5 with brief notes:
reliability_score = (Relevance + Authority + Date + Accuracy + Rationale) / 25.0Full scoring rubric: skills/verifying-claims/references/source-evaluation-radar.md. Paywalled sources are assessed on abstract, venue, and authors.
Minimum 8 high-quality sources per research question. If short: broaden queries, try alternative tools, lower the floor to 0.5 if necessary, and document the limitation. Retain everything above threshold — more coverage helps synthesis; prioritise the highest scores there.
Write work/<task-id>/source_index.md:
# Source Index
**Task**: [task-id] · **Research question(s)**: […] · **Collection date**: [YYYY-MM-DD]
## Summary Statistics
- Total sources: [N] — [breakdown by type]; papers: [X] full-text / [Y] metadata-only
- Retrieval methods (papers): CORE [n] · Unpaywall [n] · arXiv [n] · PMC [n] · WebFetch [n] · metadata-only [n]
- Average reliability: [score]; distribution: excellent ≥0.8 [n] · good 0.7–0.79 [n] · acceptable 0.6–0.69 [n]
## Sources by Topic
### [Topic/theme]
**src_NNN** — [Title]
- **URL**: […] · **Type**: […] · **Reliability**: […] · **Retrieval**: […]
- **Summary**: [one or two lines]
- **Metadata**: `sources/<subdir>/src_NNN.meta.yaml`
## Collection Notes
- Tools used; quality threshold applied
- Limitations: [paywalled count, coverage gaps, domain caveats]Group sources by themes extracted from abstracts/descriptions and the research question; note sources relevant to multiple topics.
Report to the orchestrator: total sources (full-text vs metadata-only), breakdown by type and retrieval method, average reliability, paths to source_index.md and the sources directory, exclusions and limitations (including domain caveats), and whether the collection is ready for synthesis or needs additional searches.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.