joss-draft
Draft a JOSS paper.md and paper.bib. Discovers existing manuscripts first, then synthesizes package analysis, competing packages, and the required sections (Summary, Statement of Need, State of the Field, Software Design, Research Impact, AI Disclosure).
What this skill does
# JOSS Paper Drafting
Analyze an R/Python package and draft a complete `paper.md` and `paper.bib` for JOSS submission. The paper follows current JOSS format requirements (2025+) with all required sections.
## Philosophy
Research packages exist in messy, real-world contexts — companion papers, existing LaTeX manuscripts, deep vignettes, `.papermill.md` state files, ecosystem documentation. Use your intelligence to discover and adapt what already exists rather than generating from scratch. Good prose the author has already written is almost always better than template-generated text.
The template structure below is guidance, not a straitjacket. Use it when starting from nothing; reshape existing content when you find it.
## Workflow
### 1. Discover Existing Content
Before generating anything, look for existing paper-like content that can inform or seed the JOSS paper. This is the most important step — skipping it means ignoring potentially excellent prose the author has already written.
**Search for existing manuscripts** (Glob/Read tools):
- `paper/` directory — LaTeX (.tex), Markdown (.md), Rmd (.Rmd) manuscripts
- `inst/paper/`, `manuscript/`, `doc/` — alternative locations
- `.papermill.md` — papermill state file with thesis, venue, outline, and strategic context
- `ECOSYSTEM.md`, `RESEARCH-NOTES.md` — ecosystem context and strategic notes
**Evaluate what you find:**
- Is there existing prose that describes the package well? Read it carefully.
- What is its quality? Could sections be adapted directly for JOSS?
- What is its scope? A 400-line software paper is mostly reusable; a 2000-line theory paper needs selective extraction.
- Does it have a bibliography? Import relevant entries rather than rebuilding from scratch.
- Does it reference companion papers or a broader research program? The JOSS paper should acknowledge this context.
**Key principle:** If the author has a LaTeX paper that already describes the package's purpose, design, and API — reshape it into JOSS format rather than starting from a blank template. Preserve the author's voice, terminology, and framing. Only add what's missing (e.g., State of the Field, AI Disclosure) and trim what's too long.
### 2. Analyze the Package
Thoroughly understand what the package does. Skip files you already read in Step 1.
**Read core files** (Read tool):
- `DESCRIPTION` / `pyproject.toml` — title, description, author info, dependencies
- `README.md` or `README.Rmd` — overview, examples, installation
- `CLAUDE.md` — architecture and design decisions (if present)
- `NEWS.md` / `CHANGELOG.md` — development history and features
- `CITATION.cff` or `inst/CITATION` — existing citation metadata
**Understand the API** (Glob/Grep/Read tools):
- List all exported functions from `NAMESPACE` (R) or public API (Python)
- Read key source files to understand architecture
- Identify the core abstraction (e.g., the main class/object)
- Note the design pattern (closure-returning, S3/S4/R6, functional, etc.)
**Check vignettes/tutorials** (Glob/Read tools):
- Read all vignettes or tutorial notebooks for use cases and examples
- Identify the strongest example for the paper
**Identify the research context**:
- What domain does this serve? (survival analysis, Bayesian stats, etc.)
- What problem does it solve that existing tools don't?
- Who is the target audience? (researchers, practitioners, students)
- Is this package part of a larger research program with companion papers?
- Check `related_work` in the user config for declared companion papers, preprints, and sibling packages. If a companion paper exists at a local path, read it for context.
### 3. Get Author Metadata
Gather author name, ORCID, affiliation, and email. Check these sources before prompting the user:
- `CITATION.cff` or `inst/CITATION`
- `DESCRIPTION` (R) or `pyproject.toml` (Python)
- `.papermill.md` frontmatter
- `.claude/pub-pipeline.local.md` (user config for this plugin)
- Existing manuscript frontmatter
- `deets` CLI (if available — a personal metadata store)
The information is usually already in the repo somewhere. Only ask the user for what you can't find.
### 4. Identify Competing Packages
Search for competing/related packages. Name specific packages and explain how this one differs:
- What does each competitor do?
- What gap does this package fill?
- Why build new rather than contribute to existing?
**How to find competitors** (WebSearch/Read/Grep tools):
- Search CRAN Task Views / PyPI classifiers relevant to the package's domain
- Read the package's dependency files for related packages
- Search the README and vignettes for mentions of other packages (Grep tool)
- Check the user config's `r.competitors` field for pre-identified competitors
- Search the web for "[domain] R/Python package" (WebSearch tool)
This is critical — JOSS reviewers specifically check the "State of the Field" section for this.
### 5. Draft paper.md
**If existing paper content was found in Step 1**, use it as the primary source:
- Read the existing manuscript carefully and reshape it into JOSS structure
- Preserve the author's voice, terminology, and framing
- Extract and condense prose that maps to JOSS sections
- Add any missing JOSS-required sections (State of the Field, AI Disclosure, Research Impact)
- Trim theoretical depth that belongs in vignettes or companion papers — but use judgment about what's worth keeping
- Import bibliography entries from any existing `.bib` files
- If the existing content is close to the right length and covers the right topics, the transformation may be mostly structural (LaTeX -> Markdown, add YAML frontmatter, reorganize sections)
**If no existing paper content exists**, draft from the package analysis in Steps 2-4.
Either way, populate the YAML frontmatter from the user config (`.claude/pub-pipeline.local.md`, if it exists). Use `r.domain` and `r.audience` to inform the Statement of Need. Use `r.competitors` to seed State of the Field. Use `ai_usage` fields for the AI Usage Disclosure section. Use `related_work` entries to identify companion papers (cite them), preprints (reference the DOI), and sibling packages (mention in State of the Field or Software Design).
The paper should follow this structure:
```markdown
---
title: 'packagename: Short description of what it does'
tags:
- R
- [domain tag 1]
- [domain tag 2]
- [method tag]
authors:
- name: First M. Last
orcid: 0000-0000-0000-0000
affiliation: 1
affiliations:
- name: Department, University
index: 1
date: "DD Month YYYY"
bibliography: paper.bib
---
# Summary
[2-3 paragraphs: What the package does, at a high level, for a
non-specialist audience. Include the core abstraction and key
capabilities. Mention the language and any notable design choices.]
# Statement of Need
[1-2 paragraphs: What research problem this solves. Who needs it
and why. What is the gap in existing tools. Be specific about the
target audience — researchers in X, practitioners doing Y.]
# State of the Field
[1-2 paragraphs: Name specific competing packages. For each,
state what it does and what it lacks. Explain why building this
package was justified. Use citations for each package mentioned.]
# Software Design
[1-2 paragraphs: Key architectural decisions. The core abstraction
(e.g., closure-returning pattern, S3 class hierarchy). Trade-offs
made (e.g., flexibility vs performance, generality vs specificity).
Integration with other packages.]
# Research Impact Statement
[1 paragraph: Evidence of use. Published analyses, ongoing projects,
adoption by other packages. If the package is new, describe the
near-term credible impact based on the research community it serves.]
# AI Usage Disclosure
[1 paragraph: Transparent disclosure. If AI tools were used in
development, state which tools, where they were applied, and confirm
human oversight of all design decisions. If no AI was used, state
that explicitly.]
# Acknowledgements
[Funding sources, contriRelated in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.