release-package-version
정보
이 Claude Skill은 R 패키지의 전체 릴리스 프로세스를 자동화하며, 버전 업데이트, NEWS.md 갱신, git 태깅, 그리고 GitHub 릴리스 생성을 처리합니다. 패키지가 패치, 마이너 또는 메이저 릴리스 준비가 되었거나 CRAN 승인 이후에 사용하도록 설계되었습니다. 또한 이 스킬은 릴리스 직후 다음 개발 버전을 즉시 설정합니다.
빠른 설치
Claude Code
추천npx skills add pjt222/agent-almanac -a claude-code/plugin add https://github.com/pjt222/agent-almanacgit clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/release-package-versionClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
Release Package Version
Execute the full version release cycle for an R package.
When to Use
- Ready to release a new version (bug fix, feature, or breaking change)
- After CRAN acceptance, creating a corresponding GitHub release
- Setting up post-release development version
Inputs
- Required: Package with changes ready for release
- Required: Release type: patch (0.1.0 -> 0.1.1), minor (0.1.0 -> 0.2.0), or major (0.1.0 -> 1.0.0)
- Optional: Whether to submit to CRAN (default: no, use
submit-to-cranskill separately)
Procedure
Step 1: Determine Version Bump
Follow semantic versioning:
| Change Type | Version Bump | Example |
|---|---|---|
| Bug fixes only | Patch | 0.1.0 -> 0.1.1 |
| New features (backward compatible) | Minor | 0.1.0 -> 0.2.0 |
| Breaking changes | Major | 0.1.0 -> 1.0.0 |
Got: The correct bump type (patch, minor, or major) is determined based on the nature of changes since the last release.
If fail: If unsure, review git log since the last tag and classify each change. Any breaking API change requires a major bump.
Step 2: Update Version
usethis::use_version("minor") # or "patch" or "major"
This updates the Version field in DESCRIPTION and adds a heading to NEWS.md.
Got: DESCRIPTION version updated. NEWS.md has a new section header for the release version.
If fail: If usethis::use_version() is not available, manually update the Version field in DESCRIPTION and add a # packagename x.y.z heading to NEWS.md.
Step 3: Update NEWS.md
Fill in the release notes under the new version heading:
# packagename 0.2.0
## New Features
- Added `new_function()` for processing data (#42)
- Support for custom themes in `plot_results()` (#45)
## Bug Fixes
- Fixed crash when input contains all NAs (#38)
- Corrected off-by-one error in `window_calc()` (#41)
## Minor Improvements
- Improved error messages for invalid input types
- Updated documentation examples
Use issue/PR numbers for traceability.
Got: NEWS.md contains a complete summary of user-facing changes organized by category, with issue/PR numbers for traceability.
If fail: If changes are hard to reconstruct, use git log --oneline v<previous>..HEAD to list all commits since the last release and categorize them.
Step 4: Final Checks
devtools::check()
devtools::spell_check()
urlchecker::url_check()
Got: devtools::check() returns 0 errors, 0 warnings, and 0 notes. Spell check and URL check find no issues.
If fail: Fix all errors and warnings before releasing. Add false-positive words to inst/WORDLIST for the spell checker. Replace broken URLs.
Step 5: Commit Release
git add DESCRIPTION NEWS.md
git commit -m "Release packagename v0.2.0"
Got: A single commit containing the version bump in DESCRIPTION and the updated NEWS.md.
If fail: If other uncommitted changes are present, stage only DESCRIPTION and NEWS.md. Release commits should contain only version-related changes.
Step 6: Tag the Release
git tag -a v0.2.0 -m "Release v0.2.0"
git push origin main --tags
Got: Annotated tag v0.2.0 created and pushed to the remote. git tag -l shows the tag locally; git ls-remote --tags origin confirms it on the remote.
If fail: If push fails, check that you have write access. If the tag already exists, verify it points to the correct commit with git show v0.2.0.
Step 7: Create GitHub Release
gh release create v0.2.0 \
--title "packagename v0.2.0" \
--notes-file NEWS.md
Or use:
usethis::use_github_release()
Got: GitHub release created with release notes visible on the repository's Releases page.
If fail: If gh release create fails, ensure the gh CLI is authenticated (gh auth status). If usethis::use_github_release() fails, create the release manually on GitHub.
Step 8: Set Development Version
After release, bump to development version:
usethis::use_dev_version()
This changes version to 0.2.0.9000 indicating development.
git add DESCRIPTION NEWS.md
git commit -m "Begin development for next version"
git push
Got: DESCRIPTION version is now 0.2.0.9000 (development version). NEWS.md has a new heading for the development version. Changes are pushed to the remote.
If fail: If usethis::use_dev_version() is not available, manually change the version to x.y.z.9000 in DESCRIPTION and add a # packagename (development version) heading to NEWS.md.
Validation
- Version in DESCRIPTION matches intended release
- NEWS.md has complete, accurate release notes
-
R CMD checkpasses - Git tag matches version (e.g.,
v0.2.0) - GitHub release exists with release notes
- Post-release development version set (x.y.z.9000)
Pitfalls
- Forgetting to push tags:
git pushalone doesn't push tags. Use--tagsorgit push origin v0.2.0 - NEWS.md format: Use markdown headers matching the pkgdown/CRAN expected format
- Tagging wrong commit: Always tag after the version-bump commit, not before
- CRAN version already exists: CRAN won't accept a version that's already been published. Always increment.
- Development version in release: Never submit a
.9000version to CRAN
Related Skills
submit-to-cran- CRAN submission after version releasecreate-github-release- general GitHub release creationsetup-github-actions-ci- triggers pkgdown rebuild on releasebuild-pkgdown-site- documentation site reflects new version
GitHub 저장소
연관 스킬
content-collections
메타이 스킬은 콘텐츠 콜렉션(Content Collections)을 위한 프로덕션 검증된 설정을 제공합니다. 콘텐츠 콜렉션은 Markdown/MDX 파일을 Zod 검증이 포함된 타입 안전한 데이터 콜렉션으로 변환해주는 TypeScript 최우선 도구입니다. 블로그, 문서 사이트 또는 콘텐츠 중심의 Vite + React 애플리케이션을 구축할 때 타입 안전성과 자동 콘텐츠 검증을 보장하기 위해 사용하세요. Vite 플러그인 구성과 MDX 컴파일부터 배포 최적화 및 스키마 검증에 이르기까지 모든 것을 다룹니다.
polymarket
메타이 스킬은 개발자들이 Polymarket 예측 시장 플랫폼을 활용한 애플리케이션을 구축할 수 있도록 지원하며, 거래 및 시장 데이터를 위한 API 통합 기능을 포함합니다. 또한 WebSocket을 통한 실시간 데이터 스트리밍을 제공하여 실시간 거래와 시장 활동을 모니터링할 수 있습니다. 이를 통해 거래 전략을 구현하거나 실시간 시장 업데이트를 처리하는 도구를 생성하는 데 활용할 수 있습니다.
creating-opencode-plugins
메타이 스킬은 개발자들이 명령어, 파일, LSP 작업 등 25개 이상의 이벤트 유형에 연결되는 OpenCode 플러그인을 만들 수 있도록 돕습니다. JavaScript/TypeScript 모듈을 위한 플러그인 구조, 이벤트 API 명세, 구현 패턴을 제공합니다. OpenCode AI 어시스턴트의 라이프사이클을 사용자 정의 이벤트 기반 로직으로 가로채거나, 모니터링하거나, 확장해야 할 때 사용하세요.
sglang
메타SGLang은 RadixAttention 프리픽스 캐싱을 활용하여 JSON, 정규식, 에이전트 워크플로우를 위한 고속 구조화 생성에 특화된 고성능 LLM 서빙 프레임워크입니다. 특히 반복되는 프리픽스가 있는 작업에서 상당히 빠른 추론 속도를 제공하여 복잡한 구조화 출력 및 다중 턴 대화에 이상적입니다. 제약 디코딩이 필요하거나 광범위한 프리픽스 공유가 있는 애플리케이션을 구축할 때는 vLLM과 같은 대안보다 SGLang을 선택하십시오.
