К основному содержанию
скилл CX Codex

utility-pm-skill-iterate — скилл для Claude Code: правки скиллов

Правит существующий скилл из набора pm-skills по отчёту валидатора или вашему замечанию: читает файлы, показывает до/после, пишет после подтверждения.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add product-on-purpose/pm-skills --skill utility-pm-skill-iterate -a claude-code
Открыть на GitHub

Что делает utility-pm-skill-iterate

Скилл берёт готовый скилл из репозитория pm-skills и вносит в него точечные изменения. На вход годится отчёт от utility-pm-skill-validate, обычная претензия вроде «в шаблоне нет раздела X», смена конвенции репозитория или просьба переделать пример. Всё это приводится к одному списку правок с указанием файла и раздела, и вы подтверждаете список до того, как агент что-то тронет.

Дальше идёт предпросмотр: изменения сгруппированы по файлам, для каждого показано «до» и «после». Пока вы не скажете «да», файлы не пишутся. Перед записью скилл перечитывает целевые файлы и сверяет их с тем, что видел на старте. Если файл изменился между предпросмотром и подтверждением, запись отменяется и предпросмотр строится заново — так правки не затирают чужую работу. После записи обновляется поле updated во фронтматтере и предлагается класс бампа версии, номер автоматически не проставляется.

Создавать скилл с нуля этот инструмент не умеет — для этого есть utility-pm-skill-builder. И перед правками стоит прогнать валидатор: без отчёта список изменений придётся формулировать вручную. Если среда не даёт читать файлы, скилл попросит вставить содержимое в чат.

Какие задачи решает

  • внести правки в скилл по отчёту валидатора
  • привести существующий скилл к новой конвенции репозитория
  • посмотреть до/после перед записью изменений
  • обновить пример или шаблон в скилле pm-skills
  • подобрать класс бампа версии после правок

Примеры запросов агенту

  • прогони utility-pm-skill-iterate по отчёту для скилла deliver-prd
  • в скилле deliver-prd в шаблоне нет раздела Limitations, добавь его
  • переделай пример в references/EXAMPLE.md, он слишком игрушечный

Как установить utility-pm-skill-iterate

1Через Skills CLI (Vercel)

npx skills add product-on-purpose/pm-skills --skill utility-pm-skill-iterate -a claude-code

2Вручную: положить файлы

~/.claude/skills/utility-pm-skill-iterate/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/utility-pm-skill-iterate/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о utility-pm-skill-iterate

Как установить utility-pm-skill-iterate в Claude?

Выполните npx skills add product-on-purpose/pm-skills --skill utility-pm-skill-iterate -a claude-code. Скилл окажется в ~/.claude/skills/utility-pm-skill-iterate/SKILL.md.

Что делает utility-pm-skill-iterate?

Применяет точечные правки к существующему скиллу pm-skills: читает текущие файлы, показывает изменения в формате до/после и записывает их после подтверждения.

Чем он отличается от utility-pm-skill-validate?

Валидатор проверяет скилл и выдаёт отчёт с замечаниями, а итератор эти замечания применяет. Создание нового скилла — задача utility-pm-skill-builder.

Исходный текст

SKILL.md · Apache-2.0
---
name: utility-pm-skill-iterate
description: Applies targeted improvements to an existing pm-skills skill based on feedback, validation reports, or convention changes. Reads current files, previews proposed changes, writes on confirmation, and suggests a version bump. Use when improving a skill after validation or feedback.
license: Apache-2.0
metadata:
  classification: utility
  version: "1.1.0"
  updated: 2026-10-16
  category: coordination
  frameworks: [triple-diamond]
  author: product-on-purpose
---
# PM Skill Iterate

This skill improves an existing pm-skills skill by applying targeted changes
based on input you provide. It reads the current skill files, proposes
changes as before/after previews grouped by file, and writes them on your
confirmation. After applying changes, it suggests a version bump class and
offers to update HISTORY.md.

The iterator accepts any of these as input:
- A validation report from `utility-pm-skill-validate`
- Direct feedback ("the template is missing section X")
- A convention change ("all skills now need a Limitations section")
- A general improvement request ("make the example more realistic")

## When to Use

- After running `utility-pm-skill-validate` and getting a report with findings
- When you have specific feedback on a skill and want to apply it
- When a repo convention changes and a skill needs to conform
- When a skill's example, template, or instructions need improvement
- When iterating on a skill before a release

## When NOT to Use

- To create a new skill from scratch -> use `utility-pm-skill-builder`
- To audit a skill before making changes -> use `utility-pm-skill-validate` first
- To make bulk convention changes across many skills -> run `utility-pm-skill-validate --all` first to triage, then iterate one skill at a time

## Instructions

When asked to iterate on a skill, follow these steps:

### Step 1: Identify the Target Skill

Accept the skill name in any form:
- Directory name: `deliver-prd`
- Full path: `skills/deliver-prd/SKILL.md`
- Slash command: `deliver-prd`

Resolve to the canonical directory path: `skills/{name}/`.

If the skill directory does not exist, stop and report: "Skill directory
`skills/{name}/` does not exist. Use `utility-pm-skill-builder` to create it."

### Step 2: Read Current Skill Files

Read all files in the skill directory:

| File | Required | Purpose |
|------|----------|---------|
| `SKILL.md` | yes | Frontmatter + instructions (the primary edit target) |
| `references/TEMPLATE.md` | yes | Output template |
| `references/EXAMPLE.md` | yes | Worked example |
| `HISTORY.md` | no | Version history (needed for Step 7) |

Record the exact content of each file at this point. You will compare
against this content before writing in Step 5 (stale-preview guard).

If reading files is not possible (MCP/embedded environment), ask the user
to paste the relevant file contents before proceeding (see Degraded Mode).

### Step 3: Normalize Input into Intended Changes

Regardless of input type, extract a structured list of intended changes
before generating any edits. This normalization step is what makes the
unified flow work consistently across all input types.

**If the input is a validation report** (from `utility-pm-skill-validate`):
- Check for `Report schema: v1` in the header. If absent or a different
  schema version, warn: "This report uses an unrecognized schema. I'll
  do my best but may miss structured fields."
- Parse the `## Recommendations` section.
- Split each recommendation line on `|` to extract:
  - Position 1: severity (FAIL, WARN, INFO)
  - Position 2: check ID
  - After `Target:`: file path
  - After `Action:` (next line): what to change
- Build the intended changes list from these fields.

**If the input is free text** (feedback, convention change, improvement request):
- Read the input and identify what needs to change.
- Map each change to a specific target file and section.
- If the input is vague, ask ONE clarifying question before proceeding.

Present the normalized list for user confirmation:

```
Intended changes:
1. Target: skills/{name}/SKILL.md -> {section}
   Change: {what will change}
   Source: {validation report check ID | user feedback | convention change}
2. Target: skills/{name}/references/EXAMPLE.md -> {section}
   Change: {what will change}
   Source: {source}
```

If the user wants to modify the list (add, remove, or change items),
adjust and re-present before proceeding.

### Step 4: Preview Proposed Changes

For each intended change, generate the proposed edit and present it as
a before/after block grouped by file:

```
### skills/{name}/SKILL.md

**{Section name} -- before:**
> {exact current content of the section being changed}

**{Section name} -- after:**
> {proposed new content for this section}

### skills/{name}/references/EXAMPLE.md

**{Section name} -- before:**
> {exact current content}

**{Section name} -- after:**
> {proposed new content}
```

**Preview rules:**
- Group all changes by file. Show each file once, with all its changes.
- Show enough surrounding context for the user to understand the change.
- For small edits (a few lines), show the full section before and after.
- For large edits (rewriting most of a section), show the section header
  and the first/last few lines of before, then the full after.
- Do NOT show files that are not being changed.

Ask: "Apply these changes? [yes / no]"

If the user says no, ask what to adjust and return to Step 3 or Step 4.

### Step 5: Apply Changes (with Stale-Preview Guard)

**Before writing any file**, re-read each target file and compare its
content to what you recorded in Step 2.

**If any target file has changed since Step 2:**
- Do NOT write any files.
- Report: "File `{path}` has changed since the preview was generated.
  Regenerating preview with current content."
- Return to Step 2 with the same intended changes list.

**If all target files match:**
- Write the changes to each target file.
- Update the `updated` field in SKILL.md frontmatter to today's date.
  (The `updated` field tracks when the file was last modified, regardless
  of whether a version bump is accepted.)
- **Byte-0 preservation:** verify each rewritten file still has `---` at
  byte 0 of the file (no preceding content). If the previous content
  violated byte-0 placement (e.g., HTML attribution comment on line 1),
  surface this defensively before applying other changes and offer to
  fix the placement as part of the same write. Reference:
  `library/skill-output-samples/SAMPLE_CREATION.md` Section 5.
- Report what was written: list each file and a one-line summary of
  what changed.

### Step 6: Suggest Version Bump

After changes are applied, classify the overall change and suggest a
version bump class. Do NOT auto-write the version number.

**Classification rules** (from `docs/internal/skill-versioning.md`):

| Change type | Bump class | Examples |
|------------|------------|---------|
| Wording clarified, examples improved, typos fixed | **patch** | Reworded checklist item, better example scenario, description expanded |
| New optional capability or section added | **minor** | New optional output section, handles more scenarios, new quality check |
| Required contract changed, interaction pattern breaks | **major** | Command renamed, required section removed, "done" definition narrowed |

**Tie-breaker:** If a user must do something new to stay compliant with
the skill's required contract, classify as major. If the new behavior is
additive or optional, classify as minor. If the required behavior is
unchanged and only clarified, classify as patch.

Present the suggestion:

```
Suggested bump: {class} ({reason}).
Current version: {current}.
Bump to {suggested}? [yes / override / skip]
```

- **yes**: Write the new version to SKILL.md frontmatter.
- **override**: Ask for the desired version, validate it's valid SemVer
  and higher than current, then write it.
- **skip**: Leave the version unchanged. The user may bump it later
  during release prep.

### Step 7: Offer HISTORY.md Update

After the version decision, produce a change summary and handle
HISTORY.md based on the current state:

**If HISTORY.md exists and version was bumped:**
1. Read HISTORY.md and validate its format:
   - Has a summary table with `| Version | Date | Release | ...` header
   - Versions are newest-first in the table
   - Each table version has a corresponding `## X.Y.Z` section below
2. **If format is valid**: offer to append.
   "Would you like me to add this version to HISTORY.md? [yes / no]"
   On yes: add a new row to the summary table (newest-first) and a new
   `## X.Y.Z` section with the change summary.
3. **If format is invalid**: warn and show the proposed content without
   writing. "HISTORY.md doesn't follow the expected format. Here's what
   I would add -- you can paste it manually:"
   Then show the proposed table row and version section.

**If HISTORY.md does not exist and the skill is at 1.0.0 or later:**
The file is missing, whether or not this change bumps the version. Every
skill at 1.0.0 or later carries a HISTORY.md from its first version
(`docs/internal/skill-versioning.md`, "When to create"). Offer to create it.
"This skill has no HISTORY.md. Would you like me to create it? [yes / no]"
On yes: create HISTORY.md in that document's format, with a baseline row for
the version the skill shipped at (from release history or the effort brief)
and, if this change bumps the version, a row for the new version.

**If HISTORY.md does not exist and the skill is still at 0.x:**
- **If this change bumps it** (typically to 1.0.0): offer to create HISTORY.md
  with a first row for the new version that says why the contract is now
  stable. Do not backfill a row for the 0.x version.
- **If this change does not bump it:** no offer. A 0.x skill is pre-contract,
  and its file starts at its first bump.

**If HISTORY.md exists but version was not bumped (skip):**
No offer. The change summary is available in the conversation for the user
to use at their discretion.

### Step 8: Report Summary

Present a final summary:

```
## Iteration Complete: {skill-name}

**Files changed:**
- skills/{name}/SKILL.md -- {summary}
- skills/{name}/references/EXAMPLE.md -- {summary}

**Version:** {current} -> {new} ({class}) | or: unchanged (skipped)
**HISTORY.md:** updated | created | skipped | not applicable

**Next steps:**
- Run `utility-pm-skill-validate {name}` to verify the changes pass
- Run local CI: `bash scripts/lint-skills-frontmatter.sh`
- If satisfied, commit the changes
```

## Degraded Mode

If you cannot read skill files directly (e.g., running via MCP or in an
embedded environment without file system access):

1. **Validation-report-driven iteration** is preferred in this mode.
   The report carries the context (check IDs, target paths, actions).
2. For free-text iteration, ask the user to paste the content of each
   relevant file before proposing changes.
3. The stale-preview guard (Step 5) cannot run -- note in the summary:
   "Applied without stale-preview check (file system not available)."
4. HISTORY.md operations require the user to paste the current file
   content or confirm it does not exist.

## Output Contract

The iterator MUST:
- Normalize input into a structured intended-changes list before editing
- Present all proposed changes as before/after previews grouped by file
- Require explicit user confirmation before writing any file
- Re-read target files before writing to guard against stale previews
- Update the `updated` frontmatter field on every apply
- Suggest a version bump class without auto-writing the version number
- Handle HISTORY.md according to the rules in Step 7

The iterator MUST NOT:
- Write files without showing a preview first
- Write files without user confirmation
- Auto-increment the version number without explicit confirmation
- Create HISTORY.md for a 0.x skill whose version this change does not bump
- Append to HISTORY.md without validating its format first

## Quality Checklist

Before completing the iteration, verify:

- [ ] Input was normalized into an intended-changes list before editing
- [ ] All proposed changes were shown as before/after previews
- [ ] User confirmed before any files were written
- [ ] Stale-preview guard ran before writing (or noted as unavailable)
- [ ] `updated` date was set to today in SKILL.md frontmatter
- [ ] Version bump class was suggested with correct reasoning
- [ ] Version was only written after explicit user confirmation
- [ ] HISTORY.md was handled correctly per Step 7 rules
- [ ] Final summary was presented with next steps

## Examples

See `references/EXAMPLE.md` for a completed iteration demonstrating
a validation-report-driven improvement to a real shipped skill.

© product-on-purpose · Apache-2.0 · product-on-purpose/pm-skills

Похожие скиллы

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →
iterate-until-verified MengTo Скилл превращает расплывчатое «сделай хорошо» в проверяемые ворота качества и гоняет работу по кругу, пока они не пройдут. CX Codex +1 1 200установок multi-agent-coordinator VoltAgent Community Планирует работу нескольких субагентов: порядок шагов, обмен файлами, общую память и обработку сбоев. Подходит для задач с параллельными исполнителями. 632установок iterate-pr getsentry Доводит пуллреквест до зелёного статуса CI и закрывает важные замечания ревью. Помогает передать рутинные исправления агенту без ожидания аппрувов от людей. CX Codex +1 4 600установок hive-mind-advanced ruvnet Система координации множественных агентов с королевой-координатором, консенсусными механизмами и общей памятью. Подходит для сложных проектов, где нужно распределить задачи между специализированными агентами. CX Codex +1 1 100установок ai-behavior-trees-utility-ai gamedev-skills Помогает реализовать деревья поведений и систему Utility AI для игровых NPC. Пригодится при создании логики ботов в Unity или Godot за пределами обычного FSM. CX Codex +1 4 900установок unit-test-utility-methods giuseppe-trisciuoglio Скилл пишет юнит-тесты для утилитных классов и статических методов: проверяет null, пустые строки, границы и точность. CX Codex +1 3 700установок

Из того же набора68

foundation-stakeholder-update Превращает итоги встречи в асинхронное сообщение для тех, кого в комнате не было: с понятным CTA и переводом технического на бизнес-язык. CX Codex +1 693установок foundation-meeting-recap Разбирает транскрипт или заметки после встречи в отчёт по темам: решения выделены, задачи с ответственными и сроками — внутри каждой темы. CX Codex +1 691установок utility-pm-skill-validate Аудит готового скилла из репозитория pm-skills: структурные проверки и оценка качества с отчётом, который можно отдать на доработку. CX Codex +1 690установок foundation-meeting-synthesize Скилл собирает несколько recap'ов встреч за период и показывает то, чего не видно в одной встрече: как менялись решения, где спорят, что зависло. CX Codex +1 690установок foundation-meeting-brief Скилл готовит закрытый документ для личной подготовки к важным переговорам. Он помогает оценить позиции участников, сформулировать цели и продумать ответы на неудобные вопросы. CX Codex +1 686установок utility-update-pm-skills Проверяет свежие релизы pm-skills, сравнивает версии, показывает, что изменится, и обновляет файлы после подтверждения. CX Codex +1 685установок measure-okr-grader Считает итоговые значения KR в конце цикла OKR, разбирает доказательства и собирает выводы для следующего цикла. Пригодится, когда команда спорит, хороший ли это результат. CX Codex +1 674установок define-prioritization-framework Ранжирует список инициатив сразу по нескольким методикам и находит расхождения в оценках. Пригодится продакт-менеджерам перед формированием квартального бэклога. CX Codex +1 641установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой