create-project-skills
БесплатноБез исполняемых скриптовНе проверенScan a codebase and generate project skills capturing its inferred conventions. Use when the user asks to "create project skills", "extract skills from the…
от tobihagemann★ 428 звёзд на GitHubОб этом скилле
Create Project Skills
Generates one skill per detected convention area in the project's skill directory so future Claude or Codex sessions auto-load them when working in the repo.
Task Tracking
At the start, use TaskCreate to create a task for each phase:
- Survey codebase
- Extract patterns in parallel
- Evaluate patterns
- Propose skill list
- Run
/write-skillskill
Step 1: Survey Codebase
If $ARGUMENTS specifies paths, scope the scan to those paths; otherwise scan the whole repository.
Build the extraction context:
- Detect primary languages and frameworks from manifest files (
package.json,Cargo.toml,pyproject.toml,go.mod,Package.swift,pom.xml,Gemfile, and others appropriate to the stack). - Map the top-level source directory structure and note test directory conventions.
- Read
CLAUDE.md,.claude/rules/,AGENTS.md, and any.cursor/rulesor.cursorrules. Note the conventions already documented there. The generated skills must not duplicate them. - Determine the target skill directory:
- Check candidate paths
.claude/skills/(Claude Code),.agents/skills/(Codex), and a top-levelskills/directory (match case-insensitively soSkills/or similar non-standard casing is detected too). Resolve symlinks so co-linked paths are treated as one logical location. - Use
AskUserQuestionto confirm where generated skills should live. List each distinct resolved location as an option, noting any symlink alias in the option description. If.claude/skills/is not among the detected locations, include it as a default option. The auto-added "Other" option lets users specify a custom path such as a project-specific directory.
- Check candidate paths
- In the chosen target directory, list existing skills. For each, record the skill name, the description from SKILL.md frontmatter, and the first
##section heading from the body. These signals feed rename-conflict detection in Step 3.
Output a short text summary of detected stack, top-level layout, chosen target directory, and existing skills before moving on.
When that summary shows no source code to extract conventions from, stop here rather than dispatching Step 2. Executable code in any language qualifies, including scripts no manifest declares, so judge from the directory map rather than the detected stack. Documentation, instruction files, and configuration alone do not: extraction run over prose returns that prose's assertions as observed conventions, and Step 3 scores them with no code sites to test them against.
State that as text first — what the survey found, and that conventions extracted from it would have nothing to verify against. Then use AskUserQuestion to offer:
- Write the skills from what we know (Recommended) — build skills from what this session established, rather than from conventions read out of the repo
- Generate nothing yet — leave skills until the repo has code to have conventions about
- Extract anyway — generate skills from the documentation and configuration that are there
On the first option, run the /write-skill skill directly on that knowledge and skip the remaining steps. On either of the first two, mark the extraction phases cancelled so they no longer read as pending work.
Step 2: Extract Patterns in Parallel
Read references/pattern-extractor.md to see the full taxonomy of pattern categories. Decide which categories apply to the detected stack (e.g., drop "Styling and UI" for a backend service, drop "State management" for a static-analysis tool).
Emit all extraction Agent tool calls below in one assistant message. Each Agent call uses model: "opus" and no name. Wait for every agent to report before continuing. Do not begin the next step on a partial set, and do not relaunch an agent that has not yet reported. Launch one Agent per applicable category and state the total count explicitly when emitting the calls. Every agent's prompt must direct it to treat the shared working tree and its git index as read-only and to extract by reading and reasoning. Every agent's prompt must also direct it to search the repository with a tool that skips gitignored files, such as git grep --untracked or the Grep tool, and to open or search a gitignored path only when its prompt or a file its prompt directs it to read names it, or when a dependency's installed source is needed to verify a claim, never one holding local configuration or credentials. HEAD stays where it is: read other refs with git show <ref>:<path> rather than git checkout or git switch. Each agent's prompt must:
- Name its assigned category
- Include the stack summary and directory map from Step 1
- Include the list of conventions already documented in
CLAUDE.mdand.claude/rules/so duplicates are skipped - Instruct the agent to read
${CLAUDE_SKILL_DIR}/references/pattern-extractor.mdas its role brief and return findings in the format defined at the end o
Установить create-project-skills в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл create-project-skills?
Scan a codebase and generate project skills capturing its inferred conventions. Use when the user asks to "create project skills", "extract skills from the codebase", or "codify patterns as skills".
Как установить скилл create-project-skills?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл create-project-skills запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic