Pm init
Know what to fix next — local .pm governance skill pack for AI coding agents (Spec Kit–inspired).
npx -y skills add wei63w/pm-manager --skill pm-initAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 16 days oldThe repository was created 16 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
What its author says it does
Copied from the file, not written here
Initialize local .pm governance workbench; detect new vs existing project; discover Spec Kit constitution; optional outline from intent.
SKILL.md
3.7 KB, 920 tokens by cl100k_base, as published. Nobody here has run it
User Input
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty). User input may include: process mode, project intent one-liner, or skip charter.
Outline
You are running /pm-init for the current workspace project root.
-
Detect lifecycle
new: empty or scaffold-only (README/.git only, no pom/gradle/src business code)existing: build files, source tree, or app config present- If
.specify/exists, mark Spec Kit project and prioritize constitution/specs.
-
Run scaffold (preferred):
- CLI:
pm init <root>(also runs non-interactivenpx skills add wei63w/pm-manager -yunless--no-skills-sh/--scaffold-only) - PowerShell:
scripts/powershell/create-pm-scaffold.ps1 -ProjectRoot <root> - Or Python:
python scripts/python/create_pm_scaffold.py <root> - If scripts unavailable, create the same directory tree manually from
templates/pm/.
- CLI:
-
Ensure git exclude (not
.gitignore):- Append
.pm/to<root>/.git/info/excludeif git repo and not already present.
- Append
-
Process mode
- Ask if missing:
agile|kanban|waterfall|custom(default agile, iteration2w).
- Ask if missing:
-
Charter discovery (scan in order from
charter_candidatesin project.yaml template):.specify/memory/constitution.md→ map into.pm/charter/charter.md+ dod hints.specify/specs/**/spec.md→ requirements REQ-xxxCONSTITUTION.md,docs/prd.md,docs/requirements.md,docs/nfr.mdREADME.mdonly as last-resort fallback- Write
.pm/charter/sources.md; setcharter.status=draft,source=discovered - Do not overwrite
approvedcharter; only notify if external source changed.
-
If new and no charter candidates
- If user provided intent → run outline generation (same as
/pm-outline) - Else offer: paste intent |
/pm-charter|skip(charter.status=absent)
- If user provided intent → run outline generation (same as
-
Do NOT deep-scan all modules (leave to
/pm-discoveror/pm-all). -
Write initial
state/overview.mdand summarize:- lifecycle, process.mode, charter status, recommended next:
/pm-statusor/pm-all
- lifecycle, process.mode, charter status, recommended next:
Done When
-
.pm/tree exists with config/state/charter/outline/inbox/evidence -
.git/info/excludecontains.pm/when git is present - User told next command clearly
Shared Workflow (all /pm-* commands)
Follow this order when the command mutates .pm/ state:
-
Read
.pm/config/project.yamland.pm/config/local.yaml(if missing and command is not init → recommend/pm-init). -
On-demand scan using
sources+extra_scan_roots+--path+ conversation paste (highest priority for/pm-fix). -
Desensitize evidence →
.pm/evidence/scans/{command}-{timestamp}.json(secrets →***). -
Optional charter compare when
charter.status != absent(attachconfidence). -
Incremental merge into module
findings.md/todo.md; sync authoritativestate/todo.md. -
Refresh
state/overview.md(include Today's Top3, max 3, blocking+high by default). -
Output risk summary + recommended next step (≤20 lines). Never auto-write source/SQL/cloud without confirmation.
-
Closing (required): end the user-facing reply with Summary + Open these links per
templates/commands/_closing.md(dashboard and/or architecture overviews). Ask the user to open them.
Design baseline: repo root pm-manager-v2.md (or packaged copy under memory/).