/pfd-skills:pjm-pfd-migrate-v7from pfd-skills
Migrates PFD projects from pfd-tools 6.6.x-or-earlier format (with answers.md) to 7.0.0-or-later scenario settings files. Moves estimation assumptions into project_<scenario>.json and deletes answers.md.
Ships in pfd-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Migrate an old-format PFD project that has answers.md to the 7.0.0-or-later scenario settings file format. Knowledge of answers.md lives only in this skill. Other skills do not know the contents, keys, or conversion rules of answers.md; they only check for the file's existence and delegate to this skill.
| Item | Details |
|---|---|
| Source | Projects created with the bootstrap that kept estimation assumptions in answers.md (pfd-tools 6.6.x or earlier) |
| Target | The format consolidated into scenario settings files project_<scenario>.json (7.0.0 or later) |
| Detection | If <project>/answers.md exists, the project is a migration target. Otherwise this skill does nothing |
| Out of scope | Running estimation and planning (pjm-pfd-estimation-plan), migrating from the old estimate columns in the master ap.tsv (the compatibility procedure in pjm-pfd-estimation-plan) |
Create one migration skill per target major version, named pjm-pfd-migrate-v<target major version>. For projects spanning multiple versions, apply them in ascending version order (e.g., to bring a 6.x project to 9.x: pjm-pfd-migrate-v7 → pjm-pfd-migrate-v8 → pjm-pfd-migrate-v9). Each skill handles only one hop and has no knowledge of the hops before or after it.
When adding a new migration skill, confine the knowledge of the settings, files, and columns removed in that hop to that skill. Do not write anything in other skills beyond "if that old file exists, invoke the corresponding migration skill".
Once no projects need migration, delete this skill's entire directory. Also remove the delegation notes in these two places:
answers.md in the Scenario Settings of pjm-pfd-estimation-planpjm-pfd-project-bootstrapThis is a compatibility path, so do not grow it. When keys are added to the target format, first consider whether this skill can be removed before extending Key Mapping.
<project>/answers.md exists and inspect its contents (Detect)answers.md (Missing Settings)resource_mode (Cleanup By Resource Mode)pfdlint that the migrated inputs are valid (Verify)answers.md and hand off to pjm-pfd-estimation-plan (Finish)answers.md, and (when migrating to resource_mode: infinite) the resource tables and the master's resource columns.If <project>/answers.md exists, the project is a migration target. The old format has the following YAML block.
# pjm-pfd-project-bootstrap answers
```yaml
project: sample
output_format: github-mermaid
resource_conflicts: enabled
optimistic_worker_count: 3
pessimistic_worker_count: 3
plan_start_date: 2026-06-01
```
Present to the user what you read and what will be written where according to Key Mapping / Missing Settings, and proceed after getting agreement. If the scenario settings files (project_optimistic.json / project_pessimistic.json) do not exist, create them using the full set of keys for one scenario in pjm-pfd-project-bootstrap as a template.
Key in answers.md | Destination | Conversion |
|---|---|---|
output_format: github-mermaid | output_format in each project_*.json | mermaid |
output_format: google-sheets-timeline | Same as above | google-spreadsheet-tsv |
resource_conflicts: enabled | resource_mode in each project_*.json | finite |
resource_conflicts: disabled | Same as above | infinite |
optimistic_worker_count | worker_count in project_optimistic.json | As-is (not needed with resource_mode: infinite, so do not write it) |
pessimistic_worker_count | worker_count in project_pessimistic.json | Same as above |
plan_start_date | start_day in each project_*.json | As-is |
project | No destination | Discard; the project directory name suffices |
Use the same output_format and start_day values in all scenarios. Write the per-scenario worker count into worker_count.
The following keys are absent from answers.md because the old format passed them on the command line. The current format reads them from the scenario settings files, so always add them during migration. If you omit them, the plan is computed with default values without any warning.
| Destination | How to decide | What happens if omitted |
|---|---|---|
duration in each project_*.json | Hours per business day. Set a value that fits your practice (e.g. 8) explicitly | Falls back to the command-line default 9 |
not_biz_days in each project_*.json | Create the holiday list with holidays -locale ja > <project>/holidays_ja.txt and write its path (relative to the settings file) | Holidays are treated as business days |
feedback_mode in each project_*.json | Decide by whether the PFD has rework (dashed) edges: enabled if it does, disabled otherwise | Falls back to the pfd-tools default disabled. If there are rework edges, pfdlint reports feedback-edge-not-available |
scenario in each project_*.json | That scenario's name (optimistic / pessimistic) | A skill-only key, so it does not affect pfd-tools' computation |
Generate the holiday list:
$ holidays -locale ja > <project>/holidays_ja.txt
When migrating from resource_conflicts: disabled to resource_mode: infinite, the model no longer reads resources, so the following become unnecessary. Confirm deletion with the user.
resource_table and worker_count keys in each project_*.json<project>/r_optimistic.tsv / r_pessimistic.tsv (and the old r.tsv)楽観必要資源 / 悲観必要資源 (optimistic / pessimistic needed resources) columns in the master <project>/ap.tsv必要資源 (needed resources) column in the derived tables ap_*.tsv (it disappears on the next derivation, and pfdlint passes even if left as-is)When migrating from resource_conflicts: enabled to resource_mode: finite, keep the resource tables and the master's resource columns as they are.
Lint with the migrated scenario settings files. If the derived tables are stale, re-derive them with Derive Scenario Tables in pjm-pfd-estimation-plan before linting.
$ pfdlint -f <project>/project_optimistic.json
$ pfdlint -f <project>/project_pessimistic.json
Report starting from the error / warning counts, listing each issue's severity, target ID, message, and a fix candidate. Do not delete answers.md while errors remain (so as not to lose the source data while the migration is incomplete).
Once lint passes, delete answers.md.
$ rm <project>/answers.md
Report to the user what was migrated (which keys went where, the settings filled in and their values, and the files deleted), and tell them that the scenario settings files are the reference from now on. Then hand off to pjm-pfd-estimation-plan.
If the master ap.tsv still has 楽観作業量 / 悲観作業量 (optimistic / pessimistic work volume) columns (and the PFD has no estimate boxes), the estimation method is also in the old format. That is a separate migration from answers.md, so tell the user to refer to the compatibility procedure in Derive Scenario Tables of pjm-pfd-estimation-plan.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/pjm-pfd-delay-triageA lightweight triage for when a worker (process owner) thinks "my process is going to be late". It uses the total float (maximum elasticity) from the critical path to judge the impact on the planned end date and decides whether escalation to the PjM/PMO is needed. If the delay is within the total float, no escalation is needed and the delay is OK; if it exceeds it, it generates an escalation report addressed to the PjM/PMO. Triggers when the user says things like "it's going to be late", "I might not make it", "how much can I delay", "I want to check whether escalation is needed" (or in Japanese, "遅れそう", "間に合わなそう", "どこまで遅らせていい", "エスカレーションが必要か確認したい"). It does not replan (redo the dates) itself; the PjM/PMO does that with pjm-pfd-replan.
/pjm-pfd-estimation-planA workflow that uses pfd-tools to produce a two-point optimistic/pessimistic estimate from the estimate boxes on the PFD and the ap.tsv of a bootstrapped project. It derives scenario tables, lints, runs pfdplan, analyzes the critical path, runs an improvement loop, and generates a Mermaid Gantt or Google Sheets Timeline. Triggers when the user says things like "run the estimate", "I want to build a Gantt", "check the critical path", "generate a timeline" (or in Japanese, "見積もりを実行", "Gantt を作りたい", "クリティカルパスを確認", "タイムラインを生成").
Other plugins' skills for the same job
npx claudepluginhub kuniwak/pfd-tools --plugin pfd-skills