@bgicli/bgicli 2.2.8 → 2.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/data/skills/anthropic-algorithmic-art/SKILL.md +405 -0
  2. package/data/skills/anthropic-canvas-design/SKILL.md +130 -0
  3. package/data/skills/anthropic-claude-api/SKILL.md +243 -0
  4. package/data/skills/anthropic-doc-coauthoring/SKILL.md +375 -0
  5. package/data/skills/anthropic-docx/SKILL.md +590 -0
  6. package/data/skills/anthropic-frontend-design/SKILL.md +42 -0
  7. package/data/skills/anthropic-internal-comms/SKILL.md +32 -0
  8. package/data/skills/anthropic-mcp-builder/SKILL.md +236 -0
  9. package/data/skills/anthropic-pdf/SKILL.md +314 -0
  10. package/data/skills/anthropic-pptx/SKILL.md +232 -0
  11. package/data/skills/anthropic-skill-creator/SKILL.md +485 -0
  12. package/data/skills/anthropic-webapp-testing/SKILL.md +96 -0
  13. package/data/skills/anthropic-xlsx/SKILL.md +292 -0
  14. package/data/skills/arxiv-database/SKILL.md +362 -0
  15. package/data/skills/astropy/SKILL.md +329 -0
  16. package/data/skills/ctx-advanced-evaluation/SKILL.md +402 -0
  17. package/data/skills/ctx-bdi-mental-states/SKILL.md +311 -0
  18. package/data/skills/ctx-context-compression/SKILL.md +272 -0
  19. package/data/skills/ctx-context-degradation/SKILL.md +206 -0
  20. package/data/skills/ctx-context-fundamentals/SKILL.md +201 -0
  21. package/data/skills/ctx-context-optimization/SKILL.md +195 -0
  22. package/data/skills/ctx-evaluation/SKILL.md +251 -0
  23. package/data/skills/ctx-filesystem-context/SKILL.md +287 -0
  24. package/data/skills/ctx-hosted-agents/SKILL.md +260 -0
  25. package/data/skills/ctx-memory-systems/SKILL.md +225 -0
  26. package/data/skills/ctx-multi-agent-patterns/SKILL.md +257 -0
  27. package/data/skills/ctx-project-development/SKILL.md +291 -0
  28. package/data/skills/ctx-tool-design/SKILL.md +271 -0
  29. package/data/skills/dhdna-profiler/SKILL.md +162 -0
  30. package/data/skills/generate-image/SKILL.md +183 -0
  31. package/data/skills/geomaster/SKILL.md +365 -0
  32. package/data/skills/get-available-resources/SKILL.md +275 -0
  33. package/data/skills/hamelsmu-build-review-interface/SKILL.md +96 -0
  34. package/data/skills/hamelsmu-error-analysis/SKILL.md +164 -0
  35. package/data/skills/hamelsmu-eval-audit/SKILL.md +183 -0
  36. package/data/skills/hamelsmu-evaluate-rag/SKILL.md +177 -0
  37. package/data/skills/hamelsmu-generate-synthetic-data/SKILL.md +131 -0
  38. package/data/skills/hamelsmu-validate-evaluator/SKILL.md +212 -0
  39. package/data/skills/hamelsmu-write-judge-prompt/SKILL.md +144 -0
  40. package/data/skills/hf-cli/SKILL.md +174 -0
  41. package/data/skills/hf-mcp/SKILL.md +178 -0
  42. package/data/skills/hugging-face-dataset-viewer/SKILL.md +121 -0
  43. package/data/skills/hugging-face-datasets/SKILL.md +542 -0
  44. package/data/skills/hugging-face-evaluation/SKILL.md +651 -0
  45. package/data/skills/hugging-face-jobs/SKILL.md +1042 -0
  46. package/data/skills/hugging-face-model-trainer/SKILL.md +717 -0
  47. package/data/skills/hugging-face-paper-pages/SKILL.md +239 -0
  48. package/data/skills/hugging-face-paper-publisher/SKILL.md +624 -0
  49. package/data/skills/hugging-face-tool-builder/SKILL.md +110 -0
  50. package/data/skills/hugging-face-trackio/SKILL.md +115 -0
  51. package/data/skills/hugging-face-vision-trainer/SKILL.md +593 -0
  52. package/data/skills/huggingface-gradio/SKILL.md +245 -0
  53. package/data/skills/matlab/SKILL.md +376 -0
  54. package/data/skills/modal/SKILL.md +381 -0
  55. package/data/skills/openai-cloudflare-deploy/SKILL.md +224 -0
  56. package/data/skills/openai-develop-web-game/SKILL.md +149 -0
  57. package/data/skills/openai-doc/SKILL.md +80 -0
  58. package/data/skills/openai-figma/SKILL.md +42 -0
  59. package/data/skills/openai-figma-implement-design/SKILL.md +264 -0
  60. package/data/skills/openai-gh-address-comments/SKILL.md +25 -0
  61. package/data/skills/openai-gh-fix-ci/SKILL.md +69 -0
  62. package/data/skills/openai-imagegen/SKILL.md +174 -0
  63. package/data/skills/openai-jupyter-notebook/SKILL.md +107 -0
  64. package/data/skills/openai-linear/SKILL.md +87 -0
  65. package/data/skills/openai-netlify-deploy/SKILL.md +247 -0
  66. package/data/skills/openai-notion-knowledge-capture/SKILL.md +56 -0
  67. package/data/skills/openai-notion-meeting-intelligence/SKILL.md +60 -0
  68. package/data/skills/openai-notion-research-documentation/SKILL.md +59 -0
  69. package/data/skills/openai-notion-spec-to-implementation/SKILL.md +58 -0
  70. package/data/skills/openai-openai-docs/SKILL.md +69 -0
  71. package/data/skills/openai-pdf/SKILL.md +67 -0
  72. package/data/skills/openai-playwright/SKILL.md +147 -0
  73. package/data/skills/openai-render-deploy/SKILL.md +479 -0
  74. package/data/skills/openai-screenshot/SKILL.md +267 -0
  75. package/data/skills/openai-security-best-practices/SKILL.md +86 -0
  76. package/data/skills/openai-security-ownership-map/SKILL.md +206 -0
  77. package/data/skills/openai-security-threat-model/SKILL.md +81 -0
  78. package/data/skills/openai-sentry/SKILL.md +123 -0
  79. package/data/skills/openai-sora/SKILL.md +178 -0
  80. package/data/skills/openai-speech/SKILL.md +144 -0
  81. package/data/skills/openai-spreadsheet/SKILL.md +145 -0
  82. package/data/skills/openai-transcribe/SKILL.md +81 -0
  83. package/data/skills/openai-vercel-deploy/SKILL.md +77 -0
  84. package/data/skills/openai-yeet/SKILL.md +28 -0
  85. package/data/skills/pennylane/SKILL.md +224 -0
  86. package/data/skills/polars-bio/SKILL.md +374 -0
  87. package/data/skills/primekg/SKILL.md +97 -0
  88. package/data/skills/pymatgen/SKILL.md +689 -0
  89. package/data/skills/qiskit/SKILL.md +273 -0
  90. package/data/skills/qutip/SKILL.md +316 -0
  91. package/data/skills/recursive-decomposition/SKILL.md +185 -0
  92. package/data/skills/rowan/SKILL.md +427 -0
  93. package/data/skills/scholar-evaluation/SKILL.md +298 -0
  94. package/data/skills/sentry-create-alert/SKILL.md +210 -0
  95. package/data/skills/sentry-fix-issues/SKILL.md +126 -0
  96. package/data/skills/sentry-pr-code-review/SKILL.md +105 -0
  97. package/data/skills/sentry-python-sdk/SKILL.md +317 -0
  98. package/data/skills/sentry-setup-ai-monitoring/SKILL.md +217 -0
  99. package/data/skills/stable-baselines3/SKILL.md +297 -0
  100. package/data/skills/sympy/SKILL.md +498 -0
  101. package/data/skills/trailofbits-ask-questions-if-underspecified/SKILL.md +85 -0
  102. package/data/skills/trailofbits-audit-context-building/SKILL.md +302 -0
  103. package/data/skills/trailofbits-differential-review/SKILL.md +220 -0
  104. package/data/skills/trailofbits-insecure-defaults/SKILL.md +117 -0
  105. package/data/skills/trailofbits-modern-python/SKILL.md +333 -0
  106. package/data/skills/trailofbits-property-based-testing/SKILL.md +123 -0
  107. package/data/skills/trailofbits-semgrep-rule-creator/SKILL.md +172 -0
  108. package/data/skills/trailofbits-sharp-edges/SKILL.md +292 -0
  109. package/data/skills/trailofbits-variant-analysis/SKILL.md +142 -0
  110. package/data/skills/transformers.js/SKILL.md +637 -0
  111. package/data/skills/writing/SKILL.md +419 -0
  112. package/dist/bgi.js +2 -2
  113. package/package.json +1 -1
@@ -0,0 +1,624 @@
1
+ ---
2
+ name: hugging-face-paper-publisher
3
+ description: Publish and manage research papers on Hugging Face Hub. Supports creating paper pages, linking papers to models/datasets, claiming authorship, and generating professional markdown-based research articles.
4
+ ---
5
+
6
+ # Overview
7
+ 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.
8
+
9
+ ## Integration with HF Ecosystem
10
+ - **Paper Pages**: Index and discover papers on Hugging Face Hub
11
+ - **arXiv Integration**: Automatic paper indexing from arXiv IDs
12
+ - **Model/Dataset Linking**: Connect papers to relevant artifacts through metadata
13
+ - **Authorship Verification**: Claim and verify paper authorship
14
+ - **Research Article Template**: Generate professional, modern scientific papers
15
+
16
+ # Version
17
+ 1.0.0
18
+
19
+ # Dependencies
20
+ The included script uses PEP 723 inline dependencies. Prefer `uv run` over
21
+ manual environment setup.
22
+
23
+ - huggingface_hub>=0.26.0
24
+ - pyyaml>=6.0.3
25
+ - requests>=2.32.5
26
+ - markdown>=3.5.0
27
+ - python-dotenv>=1.2.1
28
+
29
+ # Core Capabilities
30
+
31
+ ## 1. Paper Page Management
32
+ - **Index Papers**: Add papers to Hugging Face from arXiv
33
+ - **Claim Authorship**: Verify and claim authorship on published papers
34
+ - **Manage Visibility**: Control which papers appear on your profile
35
+ - **Paper Discovery**: Find and explore papers in the HF ecosystem
36
+
37
+ ## 2. Link Papers to Artifacts
38
+ - **Model Cards**: Add paper citations to model metadata
39
+ - **Dataset Cards**: Link papers to datasets via README
40
+ - **Automatic Tagging**: Hub auto-generates arxiv:<PAPER_ID> tags
41
+ - **Citation Management**: Maintain proper attribution and references
42
+
43
+ ## 3. Research Article Creation
44
+ - **Markdown Templates**: Generate professional paper formatting
45
+ - **Modern Design**: Clean, readable research article layouts
46
+ - **Dynamic TOC**: Automatic table of contents generation
47
+ - **Section Structure**: Standard scientific paper organization
48
+ - **LaTeX Math**: Support for equations and technical notation
49
+
50
+ ## 4. Metadata Management
51
+ - **YAML Frontmatter**: Proper model/dataset card metadata
52
+ - **Citation Tracking**: Maintain paper references across repositories
53
+ - **Version Control**: Track paper updates and revisions
54
+ - **Multi-Paper Support**: Link multiple papers to single artifacts
55
+
56
+ # Usage Instructions
57
+
58
+ The skill includes Python scripts in `scripts/` for paper publishing operations.
59
+
60
+ ### Prerequisites
61
+ - Run scripts with `uv run` (dependencies are resolved from the script header)
62
+ - Set `HF_TOKEN` environment variable with Write-access token
63
+
64
+ > **All paths are relative to the directory containing this SKILL.md
65
+ file.**
66
+ > Before running any script, first `cd` to that directory or use the full
67
+ path.
68
+
69
+
70
+ ### Method 1: Index Paper from arXiv
71
+
72
+ Add a paper to Hugging Face Paper Pages from arXiv.
73
+
74
+ **Basic Usage:**
75
+ ```bash
76
+ uv run scripts/paper_manager.py index \
77
+ --arxiv-id "2301.12345"
78
+ ```
79
+
80
+ **Check If Paper Exists:**
81
+ ```bash
82
+ uv run scripts/paper_manager.py check \
83
+ --arxiv-id "2301.12345"
84
+ ```
85
+
86
+ **Direct URL Access:**
87
+ You can also visit `https://huggingface.co/papers/{arxiv-id}` directly to index a paper.
88
+
89
+ ### Method 2: Link Paper to Model/Dataset
90
+
91
+ Add paper references to model or dataset README with proper YAML metadata.
92
+
93
+ **Add to Model Card:**
94
+ ```bash
95
+ uv run scripts/paper_manager.py link \
96
+ --repo-id "username/model-name" \
97
+ --repo-type "model" \
98
+ --arxiv-id "2301.12345"
99
+ ```
100
+
101
+ **Add to Dataset Card:**
102
+ ```bash
103
+ uv run scripts/paper_manager.py link \
104
+ --repo-id "username/dataset-name" \
105
+ --repo-type "dataset" \
106
+ --arxiv-id "2301.12345"
107
+ ```
108
+
109
+ **Add Multiple Papers:**
110
+ ```bash
111
+ uv run scripts/paper_manager.py link \
112
+ --repo-id "username/model-name" \
113
+ --repo-type "model" \
114
+ --arxiv-ids "2301.12345,2302.67890,2303.11111"
115
+ ```
116
+
117
+ **With Custom Citation:**
118
+ ```bash
119
+ uv run scripts/paper_manager.py link \
120
+ --repo-id "username/model-name" \
121
+ --repo-type "model" \
122
+ --arxiv-id "2301.12345" \
123
+ --citation "$(cat citation.txt)"
124
+ ```
125
+
126
+ #### How Linking Works
127
+
128
+ When you add an arXiv paper link to a model or dataset README:
129
+ 1. The Hub extracts the arXiv ID from the link
130
+ 2. A tag `arxiv:<PAPER_ID>` is automatically added to the repository
131
+ 3. Users can click the tag to view the Paper Page
132
+ 4. The Paper Page shows all models/datasets citing this paper
133
+ 5. Papers are discoverable through filters and search
134
+
135
+ ### Method 3: Claim Authorship
136
+
137
+ Verify your authorship on papers published on Hugging Face.
138
+
139
+ **Start Claim Process:**
140
+ ```bash
141
+ uv run scripts/paper_manager.py claim \
142
+ --arxiv-id "2301.12345" \
143
+ --email "your.email@institution.edu"
144
+ ```
145
+
146
+ **Manual Process:**
147
+ 1. Navigate to your paper's page: `https://huggingface.co/papers/{arxiv-id}`
148
+ 2. Find your name in the author list
149
+ 3. Click your name and select "Claim authorship"
150
+ 4. Wait for admin team verification
151
+
152
+ **Check Authorship Status:**
153
+ ```bash
154
+ uv run scripts/paper_manager.py check-authorship \
155
+ --arxiv-id "2301.12345"
156
+ ```
157
+
158
+ ### Method 4: Manage Paper Visibility
159
+
160
+ Control which verified papers appear on your public profile.
161
+
162
+ **List Your Papers:**
163
+ ```bash
164
+ uv run scripts/paper_manager.py list-my-papers
165
+ ```
166
+
167
+ **Toggle Visibility:**
168
+ ```bash
169
+ uv run scripts/paper_manager.py toggle-visibility \
170
+ --arxiv-id "2301.12345" \
171
+ --show true
172
+ ```
173
+
174
+ **Manage in Settings:**
175
+ Navigate to your account settings → Papers section to toggle "Show on profile" for each paper.
176
+
177
+ ### Method 5: Create Research Article
178
+
179
+ Generate a professional markdown-based research paper using modern templates.
180
+
181
+ **Create from Template:**
182
+ ```bash
183
+ uv run scripts/paper_manager.py create \
184
+ --template "standard" \
185
+ --title "Your Paper Title" \
186
+ --output "paper.md"
187
+ ```
188
+
189
+ **Available Templates:**
190
+ - `standard` - Traditional scientific paper structure
191
+ - `modern` - Clean, web-friendly format inspired by Distill
192
+ - `arxiv` - arXiv-style formatting
193
+ - `ml-report` - Machine learning experiment report
194
+
195
+ **Generate Complete Paper:**
196
+ ```bash
197
+ uv run scripts/paper_manager.py create \
198
+ --template "modern" \
199
+ --title "Fine-Tuning Large Language Models with LoRA" \
200
+ --authors "Jane Doe, John Smith" \
201
+ --abstract "$(cat abstract.txt)" \
202
+ --output "paper.md"
203
+ ```
204
+
205
+ **Convert to HTML:**
206
+ ```bash
207
+ uv run scripts/paper_manager.py convert \
208
+ --input "paper.md" \
209
+ --output "paper.html" \
210
+ --style "modern"
211
+ ```
212
+
213
+ ### Paper Template Structure
214
+
215
+ **Standard Research Paper Sections:**
216
+ ```markdown
217
+ ---
218
+ title: Your Paper Title
219
+ authors: Jane Doe, John Smith
220
+ affiliations: University X, Lab Y
221
+ date: 2025-01-15
222
+ arxiv: 2301.12345
223
+ tags: [machine-learning, nlp, fine-tuning]
224
+ ---
225
+
226
+ # Abstract
227
+ Brief summary of the paper...
228
+
229
+ # 1. Introduction
230
+ Background and motivation...
231
+
232
+ # 2. Related Work
233
+ Previous research and context...
234
+
235
+ # 3. Methodology
236
+ Approach and implementation...
237
+
238
+ # 4. Experiments
239
+ Setup, datasets, and procedures...
240
+
241
+ # 5. Results
242
+ Findings and analysis...
243
+
244
+ # 6. Discussion
245
+ Interpretation and implications...
246
+
247
+ # 7. Conclusion
248
+ Summary and future work...
249
+
250
+ # References
251
+ ```
252
+
253
+ **Modern Template Features:**
254
+ - Dynamic table of contents
255
+ - Responsive design for web viewing
256
+ - Code syntax highlighting
257
+ - Interactive figures and charts
258
+ - Math equation rendering (LaTeX)
259
+ - Citation management
260
+ - Author affiliation linking
261
+
262
+ ### Commands Reference
263
+
264
+ **Index Paper:**
265
+ ```bash
266
+ uv run scripts/paper_manager.py index --arxiv-id "2301.12345"
267
+ ```
268
+
269
+ **Link to Repository:**
270
+ ```bash
271
+ uv run scripts/paper_manager.py link \
272
+ --repo-id "username/repo-name" \
273
+ --repo-type "model|dataset|space" \
274
+ --arxiv-id "2301.12345" \
275
+ [--citation "Full citation text"] \
276
+ [--create-pr]
277
+ ```
278
+
279
+ **Claim Authorship:**
280
+ ```bash
281
+ uv run scripts/paper_manager.py claim \
282
+ --arxiv-id "2301.12345" \
283
+ --email "your.email@edu"
284
+ ```
285
+
286
+ **Manage Visibility:**
287
+ ```bash
288
+ uv run scripts/paper_manager.py toggle-visibility \
289
+ --arxiv-id "2301.12345" \
290
+ --show true|false
291
+ ```
292
+
293
+ **Create Research Article:**
294
+ ```bash
295
+ uv run scripts/paper_manager.py create \
296
+ --template "standard|modern|arxiv|ml-report" \
297
+ --title "Paper Title" \
298
+ [--authors "Author1, Author2"] \
299
+ [--abstract "Abstract text"] \
300
+ [--output "filename.md"]
301
+ ```
302
+
303
+ **Convert Markdown to HTML:**
304
+ ```bash
305
+ uv run scripts/paper_manager.py convert \
306
+ --input "paper.md" \
307
+ --output "paper.html" \
308
+ [--style "modern|classic"]
309
+ ```
310
+
311
+ **Check Paper Status:**
312
+ ```bash
313
+ uv run scripts/paper_manager.py check --arxiv-id "2301.12345"
314
+ ```
315
+
316
+ **List Your Papers:**
317
+ ```bash
318
+ uv run scripts/paper_manager.py list-my-papers
319
+ ```
320
+
321
+ **Search Papers:**
322
+ ```bash
323
+ uv run scripts/paper_manager.py search --query "transformer attention"
324
+ ```
325
+
326
+ ### YAML Metadata Format
327
+
328
+ When linking papers to models or datasets, proper YAML frontmatter is required:
329
+
330
+ **Model Card Example:**
331
+ ```yaml
332
+ ---
333
+ language:
334
+ - en
335
+ license: apache-2.0
336
+ tags:
337
+ - text-generation
338
+ - transformers
339
+ - llm
340
+ library_name: transformers
341
+ ---
342
+
343
+ # Model Name
344
+
345
+ This model is based on the approach described in [Our Paper](https://arxiv.org/abs/2301.12345).
346
+
347
+ ## Citation
348
+
349
+ ```bibtex
350
+ @article{doe2023paper,
351
+ title={Your Paper Title},
352
+ author={Doe, Jane and Smith, John},
353
+ journal={arXiv preprint arXiv:2301.12345},
354
+ year={2023}
355
+ }
356
+ ```
357
+ ```
358
+
359
+ **Dataset Card Example:**
360
+ ```yaml
361
+ ---
362
+ language:
363
+ - en
364
+ license: cc-by-4.0
365
+ task_categories:
366
+ - text-generation
367
+ - question-answering
368
+ size_categories:
369
+ - 10K<n<100K
370
+ ---
371
+
372
+ # Dataset Name
373
+
374
+ Dataset introduced in [Our Paper](https://arxiv.org/abs/2301.12345).
375
+
376
+ For more details, see the [paper page](https://huggingface.co/papers/2301.12345).
377
+ ```
378
+
379
+ The Hub automatically extracts arXiv IDs from these links and creates `arxiv:2301.12345` tags.
380
+
381
+ ### Integration Examples
382
+
383
+ **Workflow 1: Publish New Research**
384
+ ```bash
385
+ # 1. Create research article
386
+ uv run scripts/paper_manager.py create \
387
+ --template "modern" \
388
+ --title "Novel Fine-Tuning Approach" \
389
+ --output "paper.md"
390
+
391
+ # 2. Edit paper.md with your content
392
+
393
+ # 3. Submit to arXiv (external process)
394
+ # Upload to arxiv.org, get arXiv ID
395
+
396
+ # 4. Index on Hugging Face
397
+ uv run scripts/paper_manager.py index --arxiv-id "2301.12345"
398
+
399
+ # 5. Link to your model
400
+ uv run scripts/paper_manager.py link \
401
+ --repo-id "your-username/your-model" \
402
+ --repo-type "model" \
403
+ --arxiv-id "2301.12345"
404
+
405
+ # 6. Claim authorship
406
+ uv run scripts/paper_manager.py claim \
407
+ --arxiv-id "2301.12345" \
408
+ --email "your.email@edu"
409
+ ```
410
+
411
+ **Workflow 2: Link Existing Paper**
412
+ ```bash
413
+ # 1. Check if paper exists
414
+ uv run scripts/paper_manager.py check --arxiv-id "2301.12345"
415
+
416
+ # 2. Index if needed
417
+ uv run scripts/paper_manager.py index --arxiv-id "2301.12345"
418
+
419
+ # 3. Link to multiple repositories
420
+ uv run scripts/paper_manager.py link \
421
+ --repo-id "username/model-v1" \
422
+ --repo-type "model" \
423
+ --arxiv-id "2301.12345"
424
+
425
+ uv run scripts/paper_manager.py link \
426
+ --repo-id "username/training-data" \
427
+ --repo-type "dataset" \
428
+ --arxiv-id "2301.12345"
429
+
430
+ uv run scripts/paper_manager.py link \
431
+ --repo-id "username/demo-space" \
432
+ --repo-type "space" \
433
+ --arxiv-id "2301.12345"
434
+ ```
435
+
436
+ **Workflow 3: Update Model with Paper Reference**
437
+ ```bash
438
+ # 1. Get current README
439
+ hf download username/model-name README.md
440
+
441
+ # 2. Add paper link
442
+ uv run scripts/paper_manager.py link \
443
+ --repo-id "username/model-name" \
444
+ --repo-type "model" \
445
+ --arxiv-id "2301.12345" \
446
+ --citation "Full citation for the paper"
447
+
448
+ # The script will:
449
+ # - Add YAML metadata if missing
450
+ # - Insert arXiv link in README
451
+ # - Add formatted citation
452
+ # - Preserve existing content
453
+ ```
454
+
455
+ ### Best Practices
456
+
457
+ 1. **Paper Indexing**
458
+ - Index papers as soon as they're published on arXiv
459
+ - Include full citation information in model/dataset cards
460
+ - Use consistent paper references across related repositories
461
+
462
+ 2. **Metadata Management**
463
+ - Add YAML frontmatter to all model/dataset cards
464
+ - Include proper licensing information
465
+ - Tag with relevant task categories and domains
466
+
467
+ 3. **Authorship**
468
+ - Claim authorship on papers where you're listed as author
469
+ - Use institutional email addresses for verification
470
+ - Keep paper visibility settings updated
471
+
472
+ 4. **Repository Linking**
473
+ - Link papers to all relevant models, datasets, and Spaces
474
+ - Include paper context in README descriptions
475
+ - Add BibTeX citations for easy reference
476
+
477
+ 5. **Research Articles**
478
+ - Use templates consistently within projects
479
+ - Include code and data links in papers
480
+ - Generate web-friendly HTML versions for sharing
481
+
482
+ ### Advanced Usage
483
+
484
+ **Batch Link Papers:**
485
+ ```bash
486
+ # Link multiple papers to one repository
487
+ for arxiv_id in "2301.12345" "2302.67890" "2303.11111"; do
488
+ uv run scripts/paper_manager.py link \
489
+ --repo-id "username/model-name" \
490
+ --repo-type "model" \
491
+ --arxiv-id "$arxiv_id"
492
+ done
493
+ ```
494
+
495
+ **Extract Paper Info:**
496
+ ```bash
497
+ # Get paper metadata from arXiv
498
+ uv run scripts/paper_manager.py info \
499
+ --arxiv-id "2301.12345" \
500
+ --format "json"
501
+ ```
502
+
503
+ **Generate Citation:**
504
+ ```bash
505
+ # Create BibTeX citation
506
+ uv run scripts/paper_manager.py citation \
507
+ --arxiv-id "2301.12345" \
508
+ --format "bibtex"
509
+ ```
510
+
511
+ **Validate Links:**
512
+ ```bash
513
+ # Check all paper links in a repository
514
+ uv run scripts/paper_manager.py validate \
515
+ --repo-id "username/model-name" \
516
+ --repo-type "model"
517
+ ```
518
+
519
+ ### Error Handling
520
+
521
+ - **Paper Not Found**: arXiv ID doesn't exist or isn't indexed yet
522
+ - **Permission Denied**: HF_TOKEN lacks write access to repository
523
+ - **Invalid YAML**: Malformed metadata in README frontmatter
524
+ - **Authorship Failed**: Email doesn't match paper author records
525
+ - **Already Claimed**: Another user has claimed authorship
526
+ - **Rate Limiting**: Too many API requests in short time
527
+
528
+ ### Troubleshooting
529
+
530
+ **Issue**: "Paper not found on Hugging Face"
531
+ - **Solution**: Visit `hf.co/papers/{arxiv-id}` to trigger indexing
532
+
533
+ **Issue**: "Authorship claim not verified"
534
+ - **Solution**: Wait for admin review or contact HF support with proof
535
+
536
+ **Issue**: "arXiv tag not appearing"
537
+ - **Solution**: Ensure README includes proper arXiv URL format
538
+
539
+ **Issue**: "Cannot link to repository"
540
+ - **Solution**: Verify HF_TOKEN has write permissions
541
+
542
+ **Issue**: "Template rendering errors"
543
+ - **Solution**: Check markdown syntax and YAML frontmatter format
544
+
545
+ ### Resources and References
546
+
547
+ - **Hugging Face Paper Pages**: [hf.co/papers](https://huggingface.co/papers)
548
+ - **Model Cards Guide**: [hf.co/docs/hub/model-cards](https://huggingface.co/docs/hub/en/model-cards)
549
+ - **Dataset Cards Guide**: [hf.co/docs/hub/datasets-cards](https://huggingface.co/docs/hub/en/datasets-cards)
550
+ - **Research Article Template**: [tfrere/research-article-template](https://huggingface.co/spaces/tfrere/research-article-template)
551
+ - **arXiv Format Guide**: [arxiv.org/help/submit](https://arxiv.org/help/submit)
552
+
553
+ ### Integration with tfrere's Research Template
554
+
555
+ This skill complements [tfrere's research article template](https://huggingface.co/spaces/tfrere/research-article-template) by providing:
556
+
557
+ - Automated paper indexing workflows
558
+ - Repository linking capabilities
559
+ - Metadata management tools
560
+ - Citation generation utilities
561
+
562
+ You can use tfrere's template for writing, then use this skill to publish and link the paper on Hugging Face Hub.
563
+
564
+ ### Common Patterns
565
+
566
+ **Pattern 1: New Paper Publication**
567
+ ```bash
568
+ # Write → Publish → Index → Link
569
+ uv run scripts/paper_manager.py create --template modern --output paper.md
570
+ # (Submit to arXiv)
571
+ uv run scripts/paper_manager.py index --arxiv-id "2301.12345"
572
+ uv run scripts/paper_manager.py link --repo-id "user/model" --arxiv-id "2301.12345"
573
+ ```
574
+
575
+ **Pattern 2: Existing Paper Discovery**
576
+ ```bash
577
+ # Search → Check → Link
578
+ uv run scripts/paper_manager.py search --query "transformers"
579
+ uv run scripts/paper_manager.py check --arxiv-id "2301.12345"
580
+ uv run scripts/paper_manager.py link --repo-id "user/model" --arxiv-id "2301.12345"
581
+ ```
582
+
583
+ **Pattern 3: Author Portfolio Management**
584
+ ```bash
585
+ # Claim → Verify → Organize
586
+ uv run scripts/paper_manager.py claim --arxiv-id "2301.12345"
587
+ uv run scripts/paper_manager.py list-my-papers
588
+ uv run scripts/paper_manager.py toggle-visibility --arxiv-id "2301.12345" --show true
589
+ ```
590
+
591
+ ### API Integration
592
+
593
+ **Python Script Example:**
594
+ ```python
595
+ from scripts.paper_manager import PaperManager
596
+
597
+ pm = PaperManager(hf_token="your_token")
598
+
599
+ # Index paper
600
+ pm.index_paper("2301.12345")
601
+
602
+ # Link to model
603
+ pm.link_paper(
604
+ repo_id="username/model",
605
+ repo_type="model",
606
+ arxiv_id="2301.12345",
607
+ citation="Full citation text"
608
+ )
609
+
610
+ # Check status
611
+ status = pm.check_paper("2301.12345")
612
+ print(status)
613
+ ```
614
+
615
+ ### Future Enhancements
616
+
617
+ Planned features for future versions:
618
+ - Support for non-arXiv papers (conference proceedings, journals)
619
+ - Automatic citation formatting from DOI
620
+ - Paper comparison and versioning tools
621
+ - Collaborative paper writing features
622
+ - Integration with LaTeX workflows
623
+ - Automated figure and table extraction
624
+ - Paper metrics and impact tracking