Labsco
huggingface logo

huggingface-paper-publisher

✓ Official10,800

by huggingface · part of huggingface/skills

Publish and manage research papers on Hugging Face Hub. Supports creating paper pages, linking papers to models/datasets, claiming authorship, and generating…

🔥🔥✓ VerifiedAccount requiredNeeds API keys
🧩 One of 7 skills in the huggingface/skills package — works on its own, and pairs well with its siblings.

Publish and manage research papers on Hugging Face Hub. Supports creating paper pages, linking papers to models/datasets, claiming authorship, and generating…

Inspect the full instructions your agent will receiveExpand

This is the exact playbook injected into your agent when the skill activates — shown here so you can audit it before installing. You don't need to read it to use the skill.

by huggingface

Publish and manage research papers on Hugging Face Hub. Supports creating paper pages, linking papers to models/datasets, claiming authorship, and generating… npx skills add https://github.com/huggingface/skills --skill huggingface-paper-publisher Download ZIPGitHub10.8k

Overview

This skill provides comprehensive tools for AI engineers and researchers to publish, manage, and link research papers on the Hugging Face Hub. It streamlines the workflow from paper creation to publication, including integration with arXiv, model/dataset linking, and authorship management.

Integration with HF Ecosystem

  • Paper Pages: Index and discover papers on Hugging Face Hub

  • arXiv Integration: Automatic paper indexing from arXiv IDs

  • Model/Dataset Linking: Connect papers to relevant artifacts through metadata

  • Authorship Verification: Claim and verify paper authorship

  • Research Article Template: Generate professional, modern scientific papers

Version

1.0.0

Dependencies

The included script uses PEP 723 inline dependencies. Prefer uv run over manual environment setup.

  • huggingface_hub>=0.26.0

  • pyyaml>=6.0.3

  • requests>=2.32.5

  • markdown>=3.5.0

  • python-dotenv>=1.2.1

Core Capabilities

1. Paper Page Management

  • Index Papers: Add papers to Hugging Face from arXiv

  • Claim Authorship: Verify and claim authorship on published papers

  • Manage Visibility: Control which papers appear on your profile

  • Paper Discovery: Find and explore papers in the HF ecosystem

2. Link Papers to Artifacts

  • Model Cards: Add paper citations to model metadata

  • Dataset Cards: Link papers to datasets via README

  • Automatic Tagging: Hub auto-generates arxiv:<PAPER_ID> tags

  • Citation Management: Maintain proper attribution and references

3. Research Article Creation

  • Markdown Templates: Generate professional paper formatting

  • Modern Design: Clean, readable research article layouts

  • Dynamic TOC: Automatic table of contents generation

  • Section Structure: Standard scientific paper organization

  • LaTeX Math: Support for equations and technical notation

4. Metadata Management

  • YAML Frontmatter: Proper model/dataset card metadata

  • Citation Tracking: Maintain paper references across repositories

  • Version Control: Track paper updates and revisions

  • Multi-Paper Support: Link multiple papers to single artifacts

Citation

Copy & paste — that's it
@article{doe2023paper,
 title={Your Paper Title},
 author={Doe, Jane and Smith, John},
 journal={arXiv preprint arXiv:2301.12345},
 year={2023}
}
Copy & paste — that's it

**Dataset Card Example:**
```yaml
---
language:
 - en
license: cc-by-4.0
task_categories:
 - text-generation
 - question-answering
size_categories:
 - 10K The Hub automatically extracts arXiv IDs from these links and creates `arxiv:2301.12345` tags.

### Integration Examples

 **Workflow 1: Publish New Research**

1. Create research article

uv run scripts/paper_manager.py create
--template "modern"
--title "Novel Fine-Tuning Approach"
--output "paper.md"

2. Edit paper.md with your content

3. Submit to arXiv (external process)

Upload to arxiv.org, get arXiv ID

4. Index on Hugging Face

uv run scripts/paper_manager.py index --arxiv-id "2301.12345"

5. Link to your model

uv run scripts/paper_manager.py link
--repo-id "your-username/your-model"
--repo-type "model"
--arxiv-id "2301.12345"

6. Claim authorship

uv run scripts/paper_manager.py claim
--arxiv-id "2301.12345"
--email "your.email@edu"

Copy & paste — that's it

 **Workflow 2: Link Existing Paper**

1. Check if paper exists

uv run scripts/paper_manager.py check --arxiv-id "2301.12345"

2. Index if needed

uv run scripts/paper_manager.py index --arxiv-id "2301.12345"

3. Link to multiple repositories

uv run scripts/paper_manager.py link
--repo-id "username/model-v1"
--repo-type "model"
--arxiv-id "2301.12345"

uv run scripts/paper_manager.py link
--repo-id "username/training-data"
--repo-type "dataset"
--arxiv-id "2301.12345"

uv run scripts/paper_manager.py link
--repo-id "username/demo-space"
--repo-type "space"
--arxiv-id "2301.12345"

Copy & paste — that's it

 **Workflow 3: Update Model with Paper Reference**

1. Get current README

hf download username/model-name README.md

2. Add paper link

uv run scripts/paper_manager.py link
--repo-id "username/model-name"
--repo-type "model"
--arxiv-id "2301.12345"
--citation "Full citation for the paper"

The script will:

- Add YAML metadata if missing

- Insert arXiv link in README

- Add formatted citation

- Preserve existing content

Copy & paste — that's it

### Best Practices

 

- 
 **Paper Indexing**

 

- Index papers as soon as they're published on arXiv 

- Include full citation information in model/dataset cards 

- Use consistent paper references across related repositories 

 

- 
 **Metadata Management**

 

- Add YAML frontmatter to all model/dataset cards 

- Include proper licensing information 

- Tag with relevant task categories and domains 

 

- 
 **Authorship**

 

- Claim authorship on papers where you're listed as author 

- Use institutional email addresses for verification 

- Keep paper visibility settings updated 

 

- 
 **Repository Linking**

 

- Link papers to all relevant models, datasets, and Spaces 

- Include paper context in README descriptions 

- Add BibTeX citations for easy reference 

 

- 
 **Research Articles**

 

- Use templates consistently within projects 

- Include code and data links in papers 

- Generate web-friendly HTML versions for sharing 

 

### Advanced Usage

 **Batch Link Papers:**

Link multiple papers to one repository

for arxiv_id in "2301.12345" "2302.67890" "2303.11111"; do uv run scripts/paper_manager.py link
--repo-id "username/model-name"
--repo-type "model"
--arxiv-id "$arxiv_id" done

Copy & paste — that's it

 **Extract Paper Info:**

Get paper metadata from arXiv

uv run scripts/paper_manager.py info
--arxiv-id "2301.12345"
--format "json"

Copy & paste — that's it

 **Generate Citation:**

Create BibTeX citation

uv run scripts/paper_manager.py citation
--arxiv-id "2301.12345"
--format "bibtex"

Copy & paste — that's it

 **Validate Links:**

Check all paper links in a repository

uv run scripts/paper_manager.py validate
--repo-id "username/model-name"
--repo-type "model"

Copy & paste — that's it

### Error Handling

 

- **Paper Not Found**: arXiv ID doesn't exist or isn't indexed yet 

- **Permission Denied**: HF_TOKEN lacks write access to repository 

- **Invalid YAML**: Malformed metadata in README frontmatter 

- **Authorship Failed**: Email doesn't match paper author records 

- **Already Claimed**: Another user has claimed authorship 

- **Rate Limiting**: Too many API requests in short time 

### Troubleshooting

 **Issue**: "Paper not found on Hugging Face"

 

- **Solution**: Visit `hf.co/papers/{arxiv-id}` to trigger indexing 

 **Issue**: "Authorship claim not verified"

 

- **Solution**: Wait for admin review or contact HF support with proof 

 **Issue**: "arXiv tag not appearing"

 

- **Solution**: Ensure README includes proper arXiv URL format 

 **Issue**: "Cannot link to repository"

 

- **Solution**: Verify HF_TOKEN has write permissions 

 **Issue**: "Template rendering errors"

 

- **Solution**: Check markdown syntax and YAML frontmatter format 

### Resources and References

 

- **Hugging Face Paper Pages**: [hf.co/papers](https://huggingface.co/papers) 

- **Model Cards Guide**: [hf.co/docs/hub/model-cards](https://huggingface.co/docs/hub/en/model-cards) 

- **Dataset Cards Guide**: [hf.co/docs/hub/datasets-cards](https://huggingface.co/docs/hub/en/datasets-cards) 

- **Research Article Template**: [tfrere/research-article-template](https://huggingface.co/spaces/tfrere/research-article-template) 

- **arXiv Format Guide**: [arxiv.org/help/submit](https://arxiv.org/help/submit) 

### Integration with tfrere's Research Template

 This skill complements [tfrere's research article template](https://huggingface.co/spaces/tfrere/research-article-template) by providing:

 

- Automated paper indexing workflows 

- Repository linking capabilities 

- Metadata management tools 

- Citation generation utilities 

 You can use tfrere's template for writing, then use this skill to publish and link the paper on Hugging Face Hub.

### Common Patterns

 **Pattern 1: New Paper Publication**

Write → Publish → Index → Link

uv run scripts/paper_manager.py create --template modern --output paper.md

(Submit to arXiv)

uv run scripts/paper_manager.py index --arxiv-id "2301.12345" uv run scripts/paper_manager.py link --repo-id "user/model" --arxiv-id "2301.12345"

Copy & paste — that's it

 **Pattern 2: Existing Paper Discovery**

Search → Check → Link

uv run scripts/paper_manager.py search --query "transformers" uv run scripts/paper_manager.py check --arxiv-id "2301.12345" uv run scripts/paper_manager.py link --repo-id "user/model" --arxiv-id "2301.12345"

Copy & paste — that's it

 **Pattern 3: Author Portfolio Management**

Claim → Verify → Organize

uv run scripts/paper_manager.py claim --arxiv-id "2301.12345" uv run scripts/paper_manager.py list-my-papers uv run scripts/paper_manager.py toggle-visibility --arxiv-id "2301.12345" --show true

Copy & paste — that's it

### API Integration

 **Python Script Example:**

from scripts.paper_manager import PaperManager

pm = PaperManager(hf_token="your_token")

Index paper

pm.index_paper("2301.12345")

Link to model

pm.link_paper( repo_id="username/model", repo_type="model", arxiv_id="2301.12345", citation="Full citation text" )

Check status

status = pm.check_paper("2301.12345") print(status)

Copy & paste — that's it

### Future Enhancements

 Planned features for future versions:

 

- Support for non-arXiv papers (conference proceedings, journals) 

- Automatic citation formatting from DOI 

- Paper comparison and versioning tools 

- Collaborative paper writing features 

- Integration with LaTeX workflows 

- Automated figure and table extraction 

- Paper metrics and impact tracking