MCP HubMCP Hub
스킬 목록으로 돌아가기

configure-git-repository

pjt222
업데이트됨 6 days ago
17 조회
17
2
17
GitHub에서 보기
기타general

정보

이 스킬은 언어별 .gitignore 파일, 브랜치 전략, 커밋 규칙, 그리고 훅을 사용해 Git 저장소를 설정합니다. R, Node.js 또는 Python 환경에서 초기 프로젝트 설정을 위해 설계되었습니다. 개발자는 새 프로젝트의 버전 관리를 시작하거나 기존 저장소를 표준화할 때 사용해야 합니다.

빠른 설치

Claude Code

추천
기본
npx skills add pjt222/agent-almanac -a claude-code
플러그인 명령대체
/plugin add https://github.com/pjt222/agent-almanac
Git 클론대체
git clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/configure-git-repository

Claude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요

문서

配 Git 庫

依項類設 Git 庫之宜配。

  • 新項初控
  • .gitignore 於某言/框
  • 設支護與例
  • 配 commit hook

  • :項目錄
  • :項類(R 包、Node.js、Python、通)
  • :遠庫 URL
  • :支策(trunk-based、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 模起並改。

三:建初提交

git add .gitignore
git add .  # Review what's being added first with git status
git commit -m "Initial project setup"

得: 首提交含 .gitignore 與初項檔。git log 示一提交。

敗: 「nothing to commit」→確已 git add。身份錯→設 git config user.nameuser.email

四:連遠

# Add remote
git remote add origin [email protected]:username/repo.git

# Push
git push -u origin main

得:origin 已配。git remote -v 示取推 URL。初提交已推。

敗: 「Permission denied (publickey)」→配 SSH(見 setup-wsl-dev-environment)。遠已在→git remote set-url origin <url> 更。

五:設支例

Trunk-based(小組宜):

  • 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 hook 執(見步七)。

七:設 pre-commit hook(選)

.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

得: hook 於每 git commit 自行。lint 錯阻提交至修。

敗: hook 未行→驗 core.hooksPath 已設(git config core.hooksPath)且 hook 可行(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() 取含 badge 之模。

  • .gitignore 排敏檔與生物
  • 無敏數據(token、密)於追檔
  • 遠庫已連可達
  • 支名例已記
  • 初提交淨建

  • .gitignore 前提交:先加 .gitignore。已追檔不受後 .gitignore 影響。
  • 史中敏數據:秘已提→即後刪仍留於史。git filter-repo 或 BFG 清。
  • 大二進檔:勿提大二進。>1MB 用 Git LFS。
  • 行末:Win/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 저장소

pjt222/agent-almanac
경로: i18n/wenyan-ultra/skills/configure-git-repository
0
agentsagentskillsai-assisted-developmentclaude-codeskillsteams

연관 스킬

llamaguard

기타

LlamaGuard는 폭력 및 혐오 발언 등 6가지 안전 범주에서 LLM 입력과 출력을 조정하기 위한 Meta의 70-80억 파라미터 모델입니다. 94-95% 정확도를 제공하며 vLLM, Hugging Face 또는 Amazon SageMaker를 사용해 배포할 수 있습니다. 이 기술을 사용하여 AI 애플리케이션에 콘텐츠 필터링 및 안전 가드레일을 손쉽게 통합하세요.

스킬 보기

cost-optimization

기타

이 Claude Skill은 리소스 적정화, 태깅 전략, 지출 분석을 통해 개발자들이 클라우드 비용을 최적화할 수 있도록 지원합니다. AWS, Azure, GCP에서 클라우드 비용을 절감하고 비용 거버넌스를 구현하기 위한 프레임워크를 제공합니다. 인프라 비용을 분석하거나, 리소스를 적정화하거나, 예산 제약을 충족해야 할 때 사용하세요.

스킬 보기

quantizing-models-bitsandbytes

기타

이 스킬은 bitsandbytes를 사용하여 LLM을 8비트 또는 4비트 정밀도로 양자화하며, 최소한의 정확도 손실로 50-75%의 메모리 감소를 달성합니다. 제한된 GPU 메모리에서 더 큰 모델을 실행하거나 추론을 가속화하는 데 이상적이며, INT8, NF4, FP4와 같은 형식을 지원합니다. 이 스킬은 HuggingFace Transformers와 통합되어 QLoRA 학습 및 8비트 옵티마이저를 가능하게 합니다.

스킬 보기

dispatching-parallel-agents

기타

이 Claude Skill은 3개 이상의 독립적인 문제를 동시에 조사하고 해결하기 위해 다중 에이전트를 배치합니다. 공유 상태나 의존성 없이 해결 가능한 무관련 장애 시나리오에 맞게 설계되었습니다. 핵심 기능은 병렬 문제 해결로, 각 독립 문제 영역마다 하나의 에이전트를 할당하여 효율성을 극대화합니다.

스킬 보기