AgentStack
SKILL verified MIT Self-run

Pm Init

skill-wei63w-pm-manager-pm-init · by wei63w

Initialize local .pm governance workbench; detect new vs existing project; discover Spec Kit constitution; optional outline from intent.

No reviews yet
0 installs
0 views
view→install

Install

$ agentstack add skill-wei63w-pm-manager-pm-init

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Pm Init? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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.

  1. 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.
  1. Run scaffold (preferred):
  • CLI: pm init (also runs non-interactive npx skills add wei63w/pm-manager -y unless --no-skills-sh / --scaffold-only)
  • PowerShell: scripts/powershell/create-pm-scaffold.ps1 -ProjectRoot
  • Or Python: python scripts/python/create_pm_scaffold.py
  • If scripts unavailable, create the same directory tree manually from templates/pm/.
  1. Ensure git exclude (not .gitignore):
  • Append .pm/ to /.git/info/exclude if git repo and not already present.
  1. Process mode
  • Ask if missing: agile | kanban | waterfall | custom (default agile, iteration 2w).
  1. Charter discovery (scan in order from charter_candidates in project.yaml template):
  • .specify/memory/constitution.md → map into .pm/charter/charter.md + dod hints
  • .specify/specs/**/spec.md → requirements REQ-xxx
  • CONSTITUTION.md, docs/prd.md, docs/requirements.md, docs/nfr.md
  • README.md only as last-resort fallback
  • Write .pm/charter/sources.md; set charter.status=draft, source=discovered
  • Do not overwrite approved charter; only notify if external source changed.
  1. 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)
  1. Do NOT deep-scan all modules (leave to /pm-discover or /pm-all).
  1. Write initial state/overview.md and summarize:
  • lifecycle, process.mode, charter status, recommended next: /pm-status or /pm-all

Done When

  • [ ] .pm/ tree exists with config/state/charter/outline/inbox/evidence
  • [ ] .git/info/exclude contains .pm/ when git is present
  • [ ] User told next command clearly

Shared Workflow (all /pm-* commands)

Follow this order when the command mutates .pm/ state:

  1. Read .pm/config/project.yaml and .pm/config/local.yaml (if missing and command is not init → recommend /pm-init).
  2. On-demand scan using sources + extra_scan_roots + --path + conversation paste (highest priority for /pm-fix).
  3. Desensitize evidence → .pm/evidence/scans/{command}-{timestamp}.json (secrets → ***).
  4. Optional charter compare when charter.status != absent (attach confidence).
  5. Incremental merge into module findings.md / todo.md; sync authoritative state/todo.md.
  6. Refresh state/overview.md (include Today's Top3, max 3, blocking+high by default).
  7. Output risk summary + recommended next step (≤20 lines). Never auto-write source/SQL/cloud without confirmation.
  1. 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/).

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.