skill-create

A command that studies a repository’s Git history—the record of past code changes—to extract recurring coding and workflow patterns into a SKILL.md file.

In plain words
What is it for?
Use it to inspect commit messages, files changed together, repeated workflows, folder conventions, and testing habits, then create a skill and optionally learning rules.
Why use it?
It turns team habits found in commits into written instructions that an AI coding assistant can follow.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/luohaothu/everything-codex/skill-create
Clone the repo
git clone --depth 1 https://github.com/Luohaothu/everything-codex
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,240 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00030 $0.01240
Opus 5 $0.00015 $0.00620
Sonnet 5 $0.00006 $0.00248
Haiku 4.5 $0.00003 $0.00124

Measured 2d ago against content hash 5ba32336fe75, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

skill-create scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/zh-CN/commands/skill-create.md · 178 lines

How it starts

The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/skill-create - 本地技能生成

分析你的仓库的 git 历史,以提取编码模式并生成 SKILL.md 文件,用于向 Claude 传授你团队的实践方法。

使用方法

/skill-create                    # Analyze current repo
/skill-create --commits 100      # Analyze last 100 commits
/skill-create --output ./skills  # Custom output directory
/skill-create --instincts        # Also generate instincts for continuous-learning-v2

功能说明

  1. 解析 Git 历史 - 分析提交记录、文件更改和模式
  2. 检测模式 - 识别重复出现的工作流程和约定
  3. 生成 SKILL.md - 创建有效的 Claude Code 技能文件
  4. 可选创建 Instincts - 用于 continuous-learning-v2 系统

分析步骤

步骤 1:收集 Git 数据

# Get recent commits with file changes
git log --oneline -n ${COMMITS:-200} --name-only --pretty=format:"%H|%s|%ad" --date=short

# Get commit frequency by file
git log --oneline -n 200 --name-only | grep -v "^$" | grep -v "^[a-f0-9]" | sort | uniq -c | sort -rn | head -20

# Get commit message patterns
git log --oneline -n 200 | cut -d' ' -f2- | head -50

步骤 2:检测模式

寻找以下模式类型:

模式 检测方法
提交约定 对提交消息进行正则匹配 (feat:, fix:, chore:)
文件协同更改 总是同时更改的文件
工作流序列 重复的文件更改模式
架构 文件夹结构和命名约定
测试模式 测试文件位置、命名、覆盖率

步骤 3:生成 SKILL.md

输出格式:

---
name: {repo-name}-patterns
description: 从 {repo-name} 提取的编码模式
version: 1.0.0
source: local-git-analysis
analyzed_commits: {count}
---

# {Repo Name} 模式

## 提交规范
{detected commit message patterns}

## 代码架构
{detected folder structure and organization}

## 工作流
{detected repeating file change patterns}

## 测试模式
{detected test conventions}

步骤 4:生成 Instincts(如果使用 --instincts)

用于 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 可能会产生:

Read the full file on GitHub · 178 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 178 lines · 30 tokens per session scan A 5ba32336fe75

Subscribe to this mod's changes

skill-create is a command published in the GitHub repository Luohaothu/everything-codex (24 stars, last pushed 21d ago), licensed MIT. It adds 30 tokens to every session and 1,240 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.