Skip to content

Commit 67a1b57

Browse files
committed
Update SKILL
1 parent 49442cc commit 67a1b57

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.claude/skills/find-bib/SKILL.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,12 @@ If a DOI was found (say `10.1145/355934.355936`), try these endpoints in order:
5151
1. **CrossRef** (primary): `https://api.crossref.org/works/10.1145/355934.355936/transform/application/x-bibtex`
5252
2. **doi2bib.org** (fallback): `https://www.doi2bib.org/bib/10.1145/355934.355936`
5353

54-
The response is plain-text BibTeX — use it as-is (clean up whitespace if needed).
55-
If both fail or return an error, fall through to Step 4.
54+
The response is plain-text BibTeX — clean up whitespace if needed, then apply these normalizations:
55+
56+
- **Citation key**: CrossRef often returns auto-generated keys like `More_1981` or `more1981testingunconstrained`. Always rename the key to the `Author1Author2YYYY` format described in Step 4 (e.g. `MoreGarbowHillstrom1981`).
57+
- **`pages` field**: normalize to BibTeX double-hyphen. Replace Unicode en-dash `` or a single hyphen `-` between page numbers with `--` (e.g. `175--184`).
58+
59+
If both endpoints fail or return an error, fall through to Step 4.
5660

5761
### Step 4 — Construct BibTeX manually (fallback)
5862

@@ -67,7 +71,9 @@ Choose the entry type:
6771
| `@techreport` | institutional or technical report |
6872
| `@misc` | dataset, software, website, or unclear |
6973

70-
**Citation key format:** `Author1Author2YYYY` using last names only (e.g. `MoreGarbowHillstrom1981`, `HockSchittkowski1981`). For a single author: `AuthorYYYY`.
74+
**Citation key format:** `Author1Author2YYYY` using last names only (e.g. `MoreGarbowHillstrom1981`, `HockSchittkowski1981`). For a single author: `AuthorYYYY`. For institutional authors use a compact CamelCase form (e.g. `NISTStRD`).
75+
76+
**`pages` field:** always use double-hyphen: `175--184`. Convert Unicode en-dash ``, em-dash ``, or single hyphen `-` between page numbers to `--`.
7177

7278
**LaTeX encoding for special characters:** `Mor{\'e}`, `{\'E}`, etc.
7379

@@ -112,7 +118,7 @@ Show three things:
112118
### Step 6 — Suggest next steps
113119

114120
- List any fields marked `% UNVERIFIED` that the user should check manually.
115-
- If a DOI was found and the file's `:url` field does not already contain it, suggest adding `https://doi.org/<DOI>` to `:url`.
121+
- If a DOI was found and the file's `:url` field does not already contain it, suggest adding `https://doi.org/<DOI>` to `:url`. The `:url` field supports multiple URLs as a **comma-separated string**. If a URL is already present, append the new one: `"https://existing.url, https://doi.org/<DOI>"`.
116122
- If the problem name was given, name the exact file to edit: `src/Meta/<name>.jl`.
117123

118124
---

0 commit comments

Comments
 (0)