Community Health Files
Primary Actions
- Create baseline community files for open-source repositories.
- Generate/adjust contribution, conduct, security, and support policies.
- Provide CITATION.cff metadata for research software citation.
- Create issue/PR templates for consistent triage and review.
Core File Set
- Required:
README.md,LICENSE,CONTRIBUTING.md,CODE_OF_CONDUCT.md - Recommended:
SECURITY.md,SUPPORT.md,CITATION.cff, issue/PR templates
Minimal CITATION.cff Example
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
title: "MyProject"
version: 1.0.0
date-released: "2024-01-15"
authors:
- family-names: "Smith"
given-names: "Jane"
orcid: "https://orcid.org/0000-0000-0000-0000"
repository-code: "https://github.com/org/myproject"
doi: "10.5281/zenodo.1234567"
license: MIT
Required fields: cff-version, message, title, authors. Add version, date-released, and doi for a complete academic citation.
Minimal GitHub Issue Template (Bug Report)
Place at .github/ISSUE_TEMPLATE/bug_report.yml:
name: Bug Report
description: Report a reproducible bug
labels: ["bug"]
body:
- type: textarea
id: description
attributes:
label: Describe the bug
placeholder: A clear description of what went wrong.
validations:
required: true
- type: textarea
id: steps
attributes:
label: Steps to reproduce
placeholder: "1. Run `command`\n2. See error"
validations:
required: true
- type: input
id: environment
attributes:
label: Environment
placeholder: "OS, Python version, package version"
Setup and Validation Workflow
- Create baseline files using templates below.
- Fill project-specific metadata (name, maintainers, contacts, citation fields).
- Validate
CITATION.cff:
```bash
pip install cffconvert
cffconvert --validate
```
If validation fails: check date-released is YYYY-MM-DD, authors is a list, and all required fields are present. Common error: version field must be a string ("1.0.0", not 1.0.0).
- Verify issue/PR templates render in GitHub UI by opening a new issue in the repository.
- Check repository Community Standards page (
github.com/org/repo/community) and address flagged gaps.
Templates
- assets/readme-template.md
- assets/contributing-template.md
- assets/code-of-conduct-template.md
- assets/security-template.md
- assets/citation-template.cff
Deep References
- License selection and compatibility:
- CITATION.cff fields and academic citation patterns:
- GitHub issue/PR template details:
references/github-templates.md
- Setup sequence and validation checkpoints: