スキル一覧に戻る
Tony363

sc-readme

by Tony363

A configuration framework that enhances Claude Code with specialized commands, cognitive personas, and development methodologies.

12🍴 0📅 2026年1月24日
GitHubで見るManusで実行

SKILL.md


name: sc-readme description: Auto-update README.md by analyzing git diff against main branch with PAL consensus validation for significant changes. Use when synchronizing documentation with code changes.

README Auto-Update Skill

Intelligent README maintenance based on git branch changes with multi-model consensus validation for critical updates.

Quick Start

# Analyze and update README based on current branch changes
/sc:readme

# Preview changes without writing
/sc:readme --preview

# Force PAL consensus for all updates
/sc:readme --consensus

# Compare against different base branch
/sc:readme --base develop

Behavioral Flow

  1. DISCOVER - Run git diff main...HEAD --name-status to find changed files
  2. ANALYZE - Read changed files, categorize by type (API, config, deps, features)
  3. PLAN - Read current README, identify sections needing updates
  4. VALIDATE - Use PAL consensus for API/breaking changes
  5. GENERATE - Update README sections via Write tool
  6. VERIFY - Review final README with PAL codereview

Flags

FlagTypeDefaultDescription
--basestringmainBase branch to compare against
--previewboolfalsePreview changes without writing
--consensusboolfalseForce PAL consensus for all updates

Git Commands Used

# Get list of changed files
git diff main...HEAD --name-status

# Get actual diff content for analysis
git diff main...HEAD

# Check for new exports/functions in specific file
git diff main...HEAD -- path/to/file.py

# Get commit messages for context
git log main...HEAD --oneline

Change Categories

CategoryFile PatternsREADME Sections
API*.py, *.ts, *.js with new exportsAPI Reference, Usage
Dependenciespackage.json, requirements.txt, pyproject.tomlInstallation, Dependencies
Config.env*, *.config.*, settings.*Configuration
FeaturesNew modules, significant additionsFeatures, Usage

MCP Integration

PAL MCP

# Consensus for API changes
mcp__pal__consensus(
    models=[{"model": "gpt-5.2", "stance": "for"}, {"model": "gemini-3-pro", "stance": "against"}],
    step="Evaluate: Does this README update accurately reflect the code changes?",
    relevant_files=["/README.md", "/src/changed_file.py"]
)

# Review final README
mcp__pal__codereview(
    review_type="quick",
    step="Review README accuracy",
    relevant_files=["/README.md"]
)

Tool Coordination

  • Bash - Git commands (git diff, git log)
  • Read - README.md, changed source files
  • Write - Update README.md
  • Grep - Find patterns in codebase

Examples

Basic Flow

/sc:readme
# 1. Bash: git diff main...HEAD --name-status
# 2. Read: README.md + changed files
# 3. Analyze: what sections need updates
# 4. PAL consensus if API changes detected
# 5. Write: updated README.md

Preview Mode

/sc:readme --preview
# Same analysis, but output changes instead of writing

Guardrails

  1. Back up README before modifications
  2. Never remove sections without user confirmation
  3. Require consensus for breaking changes
  4. Preserve custom content not related to code changes
  • /sc:git - Git operations
  • /sc:document - General documentation

スコア

総合スコア

70/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です