/everything-claude-code:skill-createfrom everything-claude-code
分析本地 git 历史以提取编码模式并生成 SKILL.md 文件。Skill Creator GitHub App 的本地版本。
Ships in everything-claude-code. Installing the plugin adds it to Claude Code.
分析您仓库的 git 历史以提取编码模式并生成 SKILL.md 文件,教 Claude 您团队的实践。
/skill-create # 分析当前仓库
/skill-create --commits 100 # 分析最近 100 次提交
/skill-create --output ./skills # 自定义输出目录
/skill-create --instincts # 同时为 continuous-learning-v2 生成直觉
# 获取最近的提交和文件更改
git log --oneline -n ${COMMITS:-200} --name-only --pretty=format:"%H|%s|%ad" --date=short
# 获取按文件的提交频率
git log --oneline -n 200 --name-only | grep -v "^$" | grep -v "^[a-f0-9]" | sort | uniq -c | sort -rn | head -20
# 获取提交消息模式
git log --oneline -n 200 | cut -d' ' -f2- | head -50
查找这些模式类型:
| 模式 | 检测方法 |
|---|---|
| 提交约定 | 提交消息的正则表达式(feat:、fix:、chore:) |
| 文件协同更改 | 总是一起更改的文件 |
| 工作流序列 | 重复的文件更改模式 |
| 架构 | 文件夹结构和命名约定 |
| 测试模式 | 测试文件位置、命名、覆盖率 |
输出格式:
---
name: {repo-name}-patterns
description: Coding patterns extracted from {repo-name}
version: 1.0.0
source: local-git-analysis
analyzed_commits: {count}
---
# {Repo Name} Patterns
## Commit Conventions
{detected commit message patterns}
## Code Architecture
{detected folder structure and organization}
## Workflows
{detected repeating file change patterns}
## Testing Patterns
{detected test conventions}
用于 continuous-learning-v2 集成:
---
id: {repo}-commit-convention
trigger: "when writing a commit message"
confidence: 0.8
domain: git
source: local-repo-analysis
---
# Use Conventional Commits
## Action
Prefix commits with: feat:, fix:, chore:, docs:, test:, refactor:
## Evidence
- Analyzed {n} commits
- {percentage}% follow conventional commit format
在 TypeScript 项目上运行 /skill-create 可能产生:
---
name: my-app-patterns
description: Coding patterns from my-app repository
version: 1.0.0
source: local-git-analysis
analyzed_commits: 150
---
# My App Patterns
## Commit Conventions
This project uses **conventional commits**:
- `feat:` - New features
- `fix:` - Bug fixes
- `chore:` - Maintenance tasks
- `docs:` - Documentation updates
## Code Architecture
src/ ├── components/ # React components (PascalCase.tsx) ├── hooks/ # Custom hooks (use*.ts) ├── utils/ # Utility functions ├── types/ # TypeScript type definitions └── services/ # API and external services
## Workflows
### Adding a New Component
1. Create `src/components/ComponentName.tsx`
2. Add tests in `src/components/__tests__/ComponentName.test.tsx`
3. Export from `src/components/index.ts`
### Database Migration
1. Modify `src/db/schema.ts`
2. Run `pnpm db:generate`
3. Run `pnpm db:migrate`
## Testing Patterns
- Test files: `__tests__/` directories or `.test.ts` suffix
- Coverage target: 80%+
- Framework: Vitest
对于高级功能(10k+ 提交、团队共享、自动 PR),使用 Skill Creator GitHub App:
/skill-creator analyze/instinct-import - 导入生成的直觉/instinct-status - 查看已学习的直觉/evolve - 将直觉聚类到技能/代理属于 Everything Claude Code 的一部分
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub a20070322/everything-claude-code-zh --plugin everything-claude-code23 commands in this plugin
/e2eE2E 命令使用 Playwright 生成并运行端到端测试。创建测试流程、运行测试、捕获截图/视频/跟踪,并上传工件。Other plugins' commands for the same job