跳到正文
cccskills
免费在 GitHub 公开

setup-claude-skills-for-web

Setup Claude Code skills from berlysia/dotfiles for web version in other projects. Creates .claude/settings.json with auto-update hook. Use when setting up skills for web version or when user asks to configure, install, or setup external Claude Code skills for web.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md3.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Setup Claude Skills

This Skill sets up Claude Code skills from berlysia/dotfiles repository in other projects with a single command.

What it does

  1. Creates .claude/settings.json with SessionStart hook (if not exists)
  2. Installs all skills to ~/.claude/ immediately
  3. Skills auto-update on every Claude Code startup

When to use

  • Setting up skills in a new project
  • User asks to "setup Claude skills" or "install skills"
  • User wants to use berlysia/dotfiles skills in current project

Implementation Steps

Step 1: Check if .claude/settings.json exists

Read .claude/settings.json to check current state:

  • If file doesn't exist → Proceed to Step 2
  • If file exists → Proceed to Step 3

Step 2: Create new settings.json (if not exists)

Create .claude/settings.json with this content:

{
  "hooks": {
    "SessionStart": [
      {
        "matcher": "startup",
        "hooks": [
          {
            "type": "command",
            "command": "curl -fsSL https://raw.githubusercontent.com/berlysia/dotfiles/master/scripts/install-skills.sh | bash"
          }
        ]
      }
    ]
  }
}

Important: Use exact JSON structure with proper nesting.

Step 3: Handle existing settings.json

If .claude/settings.json already exists, guide user to manually add SessionStart hook:

  1. Read current settings.json content
  2. Check if SessionStart hook already exists
  3. If SessionStart exists, check if it includes the install-skills.sh command
  4. If not exists, provide instructions to add it:
To enable auto-update, add this to your .claude/settings.json:

{
  "hooks": {
    "SessionStart": [
      {
        "matcher": "startup",
        "hooks": [
          {
            "type": "command",
            "command": "curl -fsSL https://raw.githubusercontent.com/berlysia/dotfiles/master/scripts/install-skills.sh | bash"
          }
        ]
      }
    ]
  }
}

Step 4: Run installation immediately

After creating or updating settings.json, run installation:

curl -fsSL https://raw.githubusercontent.com/berlysia/dotfiles/master/scripts/install-skills.sh | bash

This installs skills to ~/.claude/skills/ right away.

Step 5: Verify installation

Check that skills were installed:

ls ~/.claude/skills/

Expected output: List of skill directories.

Step 6: Inform user

Tell user:

Available Skills

After installation, these skills will be available:

  • /semantic-commit - Complex commit splitting and semantic commit generation
  • /react-hooks - React hooks best practices and optimization
  • /codex:review - Code review via Codex plugin
  • /logic-validation - Logic consistency validation
  • /optimizing-claude-md - CLAUDE.md quality analysis
  • /skill-builder - Guided skill creation

Error Handling

curl command fails:

  • Check network connection
  • Verify GitHub is accessible
  • Try manual installation: git clone https://github.com/berlysia/dotfiles

Settings.json syntax error:

  • Validate JSON syntax
  • Ensure proper quote escaping
  • Check no trailing commas

Skills not appearing:

  • Check ~/.claude/skills/ directory exists
  • Verify curl and git are installed
  • Run install script manually

Example Usage

User: "Setup Claude skills from your dotfiles"

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Migrate existing ADRs to YAML frontmatter format. Scans docs/decisions/ for ADRs without frontmatter, infers status from body text, shows dry-run for approval. Trigger: /adr-migrate

中文简介正在准备中。当前显示原文说明。

berlysia/dotfiles92026年10月22日 更新

Start or resume an ADR session. Without number: show status overview and recommend next actionable ADR. With number: provide phase-specific guidance. Trigger: /adr-session, /adr-session NNN, /adr-session new

中文简介正在准备中。当前显示原文说明。

berlysia/dotfiles92026年10月22日 更新

Analyze a project's harness maturity and guide staged adoption of Harness Engineering best practices (quality loops, safety gates, linters, CLAUDE.md optimization).

中文简介正在准备中。当前显示原文说明。

berlysia/dotfiles92026年10月22日 更新

bugfix

免费

Standardized bug fix workflow using TDD (Red-Green-Refactor). Use when fixing bugs, resolving issues, or when the user invokes /bugfix. Ensures root cause analysis, failing test first, then minimal fix.

中文简介正在准备中。当前显示原文说明。

berlysia/dotfiles92026年10月22日 更新

clarify

免费

Create detailed specifications by iteratively clarifying unclear points for Plan mode. Use when: After completing a plan when detailed requirements need clarification before implementation.

中文简介正在准备中。当前显示原文说明。

berlysia/dotfiles92026年10月22日 更新

Policy-enforcing installer that deploys hardened Claude Code Action workflows (`@claude` manual mention + dependency-bot auto-fix) into a personal GitHub repository the user administers. Use when asked to introduce Claude Code Action, apply `@claude` mention support, or set up automated CI auto-fix for dependency bot PRs, using the security-hardened templates shipped with this skill.

中文简介正在准备中。当前显示原文说明。

berlysia/dotfiles92026年10月22日 更新

查看 berlysia 的全部技能

报告此技能的问题