搜索

PythonReactSEOPDF
GitHub Skill

cc-add-skill-local

Create a project-local Claude Code skill in .claude/skills

lambdalisue☆ 41 仓库 Stars4 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Arguments

$ARGUMENTS = {name} {description...}

Parse the arguments:

  • Name: Skill name (first token) - will become the directory name
  • Description: What the skill provides (everything else)

Target Directory

.claude/skills/{name}/SKILL.md (relative to project root)

Workflow

  1. Parse - Extract name and description from arguments
  2. Locate - Find project root (look for .git, package.json, Cargo.toml, deno.json, etc.)
  3. Analyze - Determine:
    • Project-specific conventions and patterns
    • Key practices unique to this codebase
    • Testing approach if applicable
  4. Draft - Create the skill file with:
    • Frontmatter: name, description
    • Concise, actionable conventions
    • Code examples where helpful
  5. Confirm - Show the proposed file path and content
  6. STOP - Wait for user approval (use AskUserQuestion)
  7. Create - Only after approval, create the skill directory and SKILL.md

Skill Format

---
name: { name }
description: { Brief description ending with period }
---

## Conventions

- **Key Area**: Guidance
- ...

## Patterns

{Code examples if applicable}

## Anti-patterns

- Avoid X because Y

Examples

Input: /cc-add-skill-local api Project API conventions and patterns Output: {project-root}/.claude/skills/api/SKILL.md

Input: /cc-add-skill-local testing Testing patterns for this project Output: {project-root}/.claude/skills/testing/SKILL.md

Content Guidelines

Analyze the {description} to understand the intended purpose, then write the skill file content:

  • In English, optimized for AI comprehension
  • Use clear, imperative language
  • Focus on actionable instructions rather than verbose explanations

Begin

Parse $ARGUMENTS, locate project root, and create the appropriate skill file. Ask for user approval before writing.

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-03-11
索引更新时间
2026-03-11
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!