fix(skills): project-bootstrap 3.0.0→3.0.1 — unified skill detection paths 5.6/5.7.3 (task:1091, finding ревью 1089)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
name: project-bootstrap
|
name: project-bootstrap
|
||||||
author: ours
|
author: ours
|
||||||
version: 3.0.0
|
version: 3.0.1
|
||||||
description: >
|
description: >
|
||||||
Initializes or upgrades a project in the current folder: git, .gitignore, README.md,
|
Initializes or upgrades a project in the current folder: git, .gitignore, README.md,
|
||||||
.wiki/ using Karpathy's method, .tasks/ for task tracking, AGENTS.md (canon) with
|
.wiki/ using Karpathy's method, .tasks/ for task tracking, AGENTS.md (canon) with
|
||||||
@@ -538,7 +538,11 @@ Mismatch between template and map → silent gaps in the recommendation.
|
|||||||
match any row are user-custom — skip silently. The platform line matches
|
match any row are user-custom — skip silently. The platform line matches
|
||||||
the `active-platform` row regardless of which platform is pinned.
|
the `active-platform` row regardless of which platform is pinned.
|
||||||
3. For each matched canonical line, check the detection path:
|
3. For each matched canonical line, check the detection path:
|
||||||
- `kind: skill` → does `~/.claude/skills/<name>/SKILL.md` exist?
|
- `kind: skill` → does `~/.claude/skills/<name>/SKILL.md` **or**
|
||||||
|
`~/.agents/skills/<name>/SKILL.md` exist? (Skill installs can land in
|
||||||
|
either host path — `scripts/install.sh` writes `~/.claude/skills/`, a
|
||||||
|
manual/alternate install may use `~/.agents/skills/`; a skill present in
|
||||||
|
either path fulfills the trigger. Same two-path rule as Step 5.7.3.)
|
||||||
- `kind: plugin` → does `~/.claude/plugins/installed_plugins.json` contain
|
- `kind: plugin` → does `~/.claude/plugins/installed_plugins.json` contain
|
||||||
the plugin key under `plugins`? (Treat malformed JSON as "missing" and
|
the plugin key under `plugins`? (Treat malformed JSON as "missing" and
|
||||||
continue — don't crash the bootstrap over a detection edge case.)
|
continue — don't crash the bootstrap over a detection edge case.)
|
||||||
@@ -583,6 +587,11 @@ Mismatch between template and map → silent gaps in the recommendation.
|
|||||||
`setup-X` at first use; bootstrap doesn't duplicate that detection.
|
`setup-X` at first use; bootstrap doesn't duplicate that detection.
|
||||||
- The `~/.claude/skills/` and `~/.claude/plugins/` paths resolve identically
|
- The `~/.claude/skills/` and `~/.claude/plugins/` paths resolve identically
|
||||||
on Windows / Linux / macOS — `~` works under git-bash too.
|
on Windows / Linux / macOS — `~` works under git-bash too.
|
||||||
|
- **Detection paths (unified with Step 5.7.3):** a `kind: skill` fulfiller is
|
||||||
|
considered present if its `SKILL.md` exists in `~/.claude/skills/<name>/`
|
||||||
|
OR `~/.agents/skills/<name>/`. The dependency tables below list the
|
||||||
|
canonical install path (`~/.claude/skills/`, what `scripts/install.sh`
|
||||||
|
writes); detection itself accepts both.
|
||||||
- **Hard rule — never auto-install.** Slash commands aren't callable from a
|
- **Hard rule — never auto-install.** Slash commands aren't callable from a
|
||||||
skill, and silently mutating user-level skill / plugin state without
|
skill, and silently mutating user-level skill / plugin state without
|
||||||
consent is overreach. The recommendation is informational. The user can
|
consent is overreach. The recommendation is informational. The user can
|
||||||
@@ -644,8 +653,9 @@ raise on start`, `use project wiki`, `use task management system`. Это не
|
|||||||
1. Определить список mappa-циклов: `mappa-session-orient`,
|
1. Определить список mappa-циклов: `mappa-session-orient`,
|
||||||
`mappa-task-work`, `mappa-knowledge`, `mappa-messaging`,
|
`mappa-task-work`, `mappa-knowledge`, `mappa-messaging`,
|
||||||
`mappa-delegation`, `mappa-brainstorm-promote`, `mappa-closing-ritual`.
|
`mappa-delegation`, `mappa-brainstorm-promote`, `mappa-closing-ritual`.
|
||||||
2. Проверить установку (все есть в `~/.claude/skills/` и
|
2. Проверить установку по правилу детекта Step 5.6 (оба пути:
|
||||||
`~/.agents/skills/`)? → да: пропустить (upgrade-императив не дублировать).
|
`~/.claude/skills/` и `~/.agents/skills/`)? → да: пропустить
|
||||||
|
(upgrade-императив не дублировать).
|
||||||
3. Нет → печать информационного блока (НЕ авто-инсталл, правило 5.6):
|
3. Нет → печать информационного блока (НЕ авто-инсталл, правило 5.6):
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user