-
Notifications
You must be signed in to change notification settings - Fork 7
feat: Agent Skill #91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
dcda926
2b87488
f62dc0b
c0481b7
8aa8807
ddc6041
f3a0863
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,155 @@ | ||||||||||||||||||||||||||||||||||
| --- | ||||||||||||||||||||||||||||||||||
| name: wenxian | ||||||||||||||||||||||||||||||||||
| description: Generate BibTeX entries from academic paper identifiers including DOI, PMID, arXiv ID, or paper titles. Use this skill when users need to create citations, bibliography entries, or convert paper identifiers to BibTeX format for LaTeX documents. | ||||||||||||||||||||||||||||||||||
| license: LGPL-2.1 | ||||||||||||||||||||||||||||||||||
| compatibility: Requires Python 3.10+, uv package manager recommended | ||||||||||||||||||||||||||||||||||
| metadata: | ||||||||||||||||||||||||||||||||||
| author: njzjz | ||||||||||||||||||||||||||||||||||
| version: "1.0" | ||||||||||||||||||||||||||||||||||
| repository: https://github.com/njzjz/wenxian | ||||||||||||||||||||||||||||||||||
| --- | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| # Wenxian - BibTeX Entry Generator | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ## When to use this skill | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| Use this skill when: | ||||||||||||||||||||||||||||||||||
| - Users need to generate BibTeX entries for academic papers | ||||||||||||||||||||||||||||||||||
| - Users have DOI, PMID, arXiv ID, or paper titles and need citations | ||||||||||||||||||||||||||||||||||
| - Users are working on LaTeX documents and need bibliography entries | ||||||||||||||||||||||||||||||||||
| - Users mention citations, references, BibTeX, or academic papers | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ## Overview | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| Wenxian is a tool that generates BibTeX entries from various academic paper identifiers. The name "wenxian" (文献) means "literature" or "references" in Chinese. | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ## Installation and Prerequisites | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| Wenxian requires Python 3.10+. It's recommended to use `uv` package manager: | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||
| pip install uv | ||||||||||||||||||||||||||||||||||
|
njzjz marked this conversation as resolved.
|
||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||
|
njzjz marked this conversation as resolved.
|
||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ## How to generate BibTeX entries | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ### Using DOI (Digital Object Identifier) | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||
| uvx wenxian from 10.1063/5.0155600 | ||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ### Using arXiv ID | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||
| uvx wenxian from 1512.03385 | ||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| or with the arXiv prefix: | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||
| uvx wenxian from arXiv:1512.03385 | ||||||||||||||||||||||||||||||||||
|
njzjz marked this conversation as resolved.
Outdated
|
||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ### Using PMID (PubMed ID) | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||
| uvx wenxian from PMID:12345678 | ||||||||||||||||||||||||||||||||||
|
njzjz marked this conversation as resolved.
Outdated
|
||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ### Using paper title | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| When the identifier is a text string, wenxian searches by paper title: | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||
| uvx wenxian from "Attention is all you need" | ||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| Note: Enclose paper titles in quotes if they contain spaces. | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ## Expected output | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| The command will print a BibTeX entry to standard output. For example: | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ```bibtex | ||||||||||||||||||||||||||||||||||
| @article{vaswani2017attention, | ||||||||||||||||||||||||||||||||||
| title={Attention is all you need}, | ||||||||||||||||||||||||||||||||||
| author={Vaswani, Ashish and Shazeer, Noam and ...}, | ||||||||||||||||||||||||||||||||||
| journal={Advances in neural information processing systems}, | ||||||||||||||||||||||||||||||||||
| volume={30}, | ||||||||||||||||||||||||||||||||||
| year={2017} | ||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ## Common use cases | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| 1. **Single citation**: Generate a BibTeX entry for one paper | ||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||
| uvx wenxian from "10.1038/nature12373" | ||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| 2. **Multiple citations**: Generate entries for multiple papers by running the command multiple times | ||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||
| uvx wenxian from "10.1038/nature12373" | ||||||||||||||||||||||||||||||||||
| uvx wenxian from "10.1126/science.1158899" | ||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| 3. **Save to file**: Redirect output to a .bib file | ||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||
| uvx wenxian from "10.1038/nature12373" >> references.bib | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
| uvx wenxian from "10.1038/nature12373" >> references.bib | |
| uvx wenxian from 10.1038/nature12373 >> references.bib |
Copilot
AI
Feb 15, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent quoting of DOI identifiers. Lines 119, 125, 126, 131, and 183 use quotes around DOI identifiers (e.g., "10.1038/nature12373"), but lines 49 and 171 show DOI identifiers without quotes. According to line 72, quotes are only required for paper titles with spaces. For consistency with the "Using DOI" example at line 49 and the guidance at line 72, consider removing quotes from DOI identifiers in these examples, or add a note explaining when quotes are needed.
| uvx wenxian from "10.1038/nature12373" | |
| ``` | |
| 2. **Multiple citations**: Generate entries for multiple papers by running the command multiple times | |
| ```bash | |
| uvx wenxian from "10.1038/nature12373" | |
| uvx wenxian from "10.1126/science.1158899" | |
| ``` | |
| 3. **Save to file**: Redirect output to a .bib file | |
| ```bash | |
| uvx wenxian from "10.1038/nature12373" >> references.bib | |
| uvx wenxian from 10.1038/nature12373 |
-
Multiple citations: Generate entries for multiple papers by running the command multiple times
uvx wenxian from 10.1038/nature12373 uvx wenxian from 10.1126/science.1158899
-
Save to file: Redirect output to a .bib file
uvx wenxian from 10.1038/nature12373 >> references.bib
Uh oh!
There was an error while loading. Please reload this page.