정보
이 스킬은 R, Node.js, Python 프로젝트를 위한 언어별 .gitignore 파일, 브랜치 전략, 커밋 규칙, 그리고 훅으로 Git 저장소를 구성합니다. 새로운 프로젝트에 버전 관리를 초기화하거나 저장소 표준을 설정할 때 사용하세요. 초기 설정, 원격 저장소 구성, 그리고 일반적인 개발 워크플로우 패턴을 처리합니다.
빠른 설치
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/configure-git-repositoryClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
配置 Git 倉庫
依項目類型以合適配置設 Git 倉庫。
適用時機
- 新項目之版本控制之始
- 為特定語言/框架加
.gitignore - 設分支保護與慣例
- 配提交鉤子
輸入
- 必要:項目目錄
- 必要:項目類型(R 包、Node.js、Python、通用)
- 選擇性:遠端倉庫 URL
- 選擇性:分支策(基於主幹、Git Flow)
- 選擇性:提交訊息慣例
步驟
步驟一:初始化倉庫
cd /path/to/project
git init
git branch -M main
預期: .git/ 目錄已建。預設分支名為 main。
失敗時: 若 git init 敗,確 Git 已裝(git --version)。若目錄已有 .git/,倉庫已初始化——略此步。
步驟二:建 .gitignore
R 包:
# R artifacts
.Rhistory
.RData
.Rproj.user/
*.Rproj
# Environment (sensitive)
.Renviron
# renv library (machine-specific)
renv/library/
renv/staging/
renv/cache/
# Build artifacts
*.tar.gz
src/*.o
src/*.so
src/*.dll
# Documentation build
docs/
inst/doc/
# IDE
.vscode/
.idea/
# OS
.DS_Store
Thumbs.db
Node.js/TypeScript:
node_modules/
dist/
build/
.next/
.env
.env.local
.env.*.local
*.log
npm-debug.log*
.DS_Store
Thumbs.db
.vscode/
.idea/
coverage/
Python:
__pycache__/
*.py[cod]
*.egg-info/
dist/
build/
.eggs/
.venv/
venv/
.env
*.log
.mypy_cache/
.pytest_cache/
htmlcov/
.coverage
.DS_Store
.idea/
.vscode/
預期: .gitignore 已建,含項目類型合適之條目。敏感檔(.Renviron、.env)與生成產物已排除。
失敗時: 若不確該含何條目,用 gitignore.io 或 GitHub 之 .gitignore 模板為起點並依項目調。
步驟三:建首次提交
git add .gitignore
git add . # Review what's being added first with git status
git commit -m "Initial project setup"
預期: 首次提交已建,含 .gitignore 與初始項目檔。git log 顯一提交。
失敗時: 若 git commit 敗報「nothing to commit」,確檔已以 git add 暫存。若敗報作者身分錯,設 git config user.name 與 git config user.email。
步驟四:連遠端
# Add remote
git remote add origin [email protected]:username/repo.git
# Push
git push -u origin main
預期: 遠端 origin 已配。git remote -v 顯 fetch 與 push URL。首提交已推至遠端。
失敗時: 若推敗報「Permission denied (publickey)」,配 SSH 金鑰(見 setup-wsl-dev-environment)。若遠端已存,以 git remote set-url origin <url> 更。
步驟五:設分支慣例
基於主幹(小團隊推薦):
main:生產可用代碼- 功能分支:
feature/description - 錯誤修復:
fix/description
# Create feature branch
git checkout -b feature/add-authentication
# After work is done, merge or create PR
git checkout main
git merge feature/add-authentication
預期: 分支命名慣例已立且已記。團隊成員知每類工作之前綴。
失敗時: 若分支已以不一致之名,以 git branch -m old-name new-name 重命並更任何未結之 PR。
步驟六:配提交慣例
Conventional Commits 格式:
type(scope): description
feat: add user authentication
fix: correct calculation in weighted_mean
docs: update README installation section
test: add edge case tests for parser
refactor: extract helper function
chore: update dependencies
預期: 提交訊息慣例已記且團隊已同意。未來提交循 type: description 格式。
失敗時: 若團隊成員未循慣例,以驗格式之 commit-msg 鉤子強行(見步驟七)。
步驟七:設預提交鉤子(選擇性)
建 .githooks/pre-commit:
#!/bin/bash
# Run linter before commit
# For R packages
if [ -f "DESCRIPTION" ]; then
Rscript -e "lintr::lint_package()" || exit 1
fi
# For Node.js
if [ -f "package.json" ]; then
npm run lint || exit 1
fi
chmod +x .githooks/pre-commit
git config core.hooksPath .githooks
預期: 預提交鉤子於每 git commit 自動行。Lint 錯阻提交直至修。
失敗時: 若鉤子不行,驗 core.hooksPath 已設(git config core.hooksPath)且鉤子檔可執行(chmod +x)。
步驟八:建 README
# Minimal README
echo "# Project Name" > README.md
echo "" >> README.md
echo "Brief description of the project." >> README.md
git add README.md
git commit -m "Add README"
預期: README.md 已提至倉庫。項目於 GitHub 上有簡約而有資之落地頁。
失敗時: 若 README.md 已存,更之勿覆。R 項目用 usethis::use_readme_md() 取含徽章之模板。
驗證
-
.gitignore排敏感與生成檔 - 追蹤檔中無敏感數據(令牌、密碼)
- 遠端倉庫已連且可達
- 分支命名慣例已記
- 首次提交已淨建
常見陷阱
- 先提交後
.gitignore:先加.gitignore。已追之檔不受後加條目影響 - 史中之敏感數據:若密碼已提,刪後仍於史。以
git filter-repo或 BFG 清 - 大二進制檔:勿提大二進制。>1MB 之檔用 Git LFS
- 行尾:Windows/WSL 設
core.autocrlf=input以防 CRLF/LF 問題
相關技能
commit-changes- 暫存與提交之工作流manage-git-branches- 分支建與慣例create-r-package- R 包建時之 Git 設setup-wsl-dev-environment- Git 裝與 SSH 金鑰create-github-release- 自倉庫建發行版security-audit-codebase- 查已提之秘密
GitHub 저장소
Frequently asked questions
What is the configure-git-repository skill?
configure-git-repository is a Claude Skill by pjt222. Skills package instructions and resources that Claude loads on demand, so Claude can perform configure-git-repository-related tasks without extra prompting.
How do I install configure-git-repository?
Use the install commands on this page: add configure-git-repository to Claude Code as a plugin, or clone its repository into your skills directory, then restart Claude so it picks up the skill.
What category does configure-git-repository belong to?
configure-git-repository is in the Other category, tagged general.
Is configure-git-repository free to use?
Yes. configure-git-repository is listed on AIMCP and free to install. It runs inside Claude, so no separate service account is required to use the skill itself.
연관 스킬
LlamaGuard는 폭력 및 혐오 발언 등 6가지 안전 범주에서 LLM 입력과 출력을 조정하기 위한 Meta의 70-80억 파라미터 모델입니다. 94-95% 정확도를 제공하며 vLLM, Hugging Face 또는 Amazon SageMaker를 사용해 배포할 수 있습니다. 이 기술을 사용하여 AI 애플리케이션에 콘텐츠 필터링 및 안전 가드레일을 손쉽게 통합하세요.
이 Claude Skill은 리소스 적정화, 태깅 전략, 지출 분석을 통해 개발자들이 클라우드 비용을 최적화할 수 있도록 지원합니다. AWS, Azure, GCP에서 클라우드 비용을 절감하고 비용 거버넌스를 구현하기 위한 프레임워크를 제공합니다. 인프라 비용을 분석하거나, 리소스를 적정화하거나, 예산 제약을 충족해야 할 때 사용하세요.
이 Claude Skill은 스프레드, 오버/언더, 프로프 베트를 포함한 스포츠 베팅 시장을 분석합니다. 역사적 추이와 상황별 통계를 검토하여 가치 베트를 발견하고, 교육적 목적으로 실행 가능한 권장 사항이 담긴 구조화된 마크다운 결과를 제공합니다. 개발자는 이 기능을 스포츠 베팅 분석 도구에 활용할 수 있으며, 단순히 엔터테인먼트/교육 목적으로만 설계되었음을 유의해야 합니다.
이 스킬은 bitsandbytes를 사용하여 LLM을 8비트 또는 4비트 정밀도로 양자화하며, 최소한의 정확도 손실로 50-75%의 메모리 감소를 달성합니다. 제한된 GPU 메모리에서 더 큰 모델을 실행하거나 추론을 가속화하는 데 이상적이며, INT8, NF4, FP4와 같은 형식을 지원합니다. 이 스킬은 HuggingFace Transformers와 통합되어 QLoRA 학습 및 8비트 옵티마이저를 가능하게 합니다.
