From packmind-proprietary
Generate a Packmind feature specification from a GitHub issue, file, URL, or direct description. Breaks Phase 3 into 4 fine-grained approval gates (domain data structures, ports/use cases/routes, frontend components, implementation plan) to catch problems early. Routes work between the OSS sibling (../packmind) and the proprietary repo (cwd). Outputs spec artifacts under tmp/feature-specs/{slug}/ for use with /feature-sprint.
How this skill is triggered — by the user, by Claude, or both
Slash command
/packmind-proprietary:feature-specThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate a comprehensive feature specification grounded in Packmind's hexagonal architecture, frontend gateway/PM-UI conventions, and the OSS/proprietary fork boundary.
Generate a comprehensive feature specification grounded in Packmind's hexagonal architecture, frontend gateway/PM-UI conventions, and the OSS/proprietary fork boundary.
Use this skill when the user wants to:
Do NOT use for trivial one-line fixes or pure dependency bumps.
packmind-proprietary): the current working directory when this skill runs.packmind): the sibling directory at ../packmind (cloned next to the proprietary repo). Resolve to an absolute path at runtime with realpath ../packmind.packages/editions, certain packages/deployments extensions). After an OSS merge, you typically pull on the proprietary side.packages/{domain}/{domain,application,infra}), NestJS API at apps/api, React+@packmind/ui frontend at apps/frontend, TypeORM, Jest+@swc/jest.| Source | Examples | Detection |
|---|---|---|
| GitHub | #123, owner/repo#123, full issue URL | Pattern #\d+ or github.com/.../issues/ |
| File | file:spec.md, path/to/spec.md | Prefix file: or readable file |
| URL | https://... | HTTP(S) URL (non-GitHub) |
| Prompt | Any other text | Default |
Execute phases sequentially. Phases 1 and 4 run seamlessly (no approval gate). Phases 2 and 3 require user approval before proceeding.
| Phase | File | Purpose | Gate |
|---|---|---|---|
| 1 | phase-1-resolve-source.md | Detect source type, fetch content, decide OSS-vs-proprietary routing, create state | seamless |
| 2 | phase-2-discovery-and-spec.md | Research Packmind patterns (reference domain, hex layers, frontend conventions), draft acceptance criteria, generate functional spec | approval |
| 3 | phase-3-implementation.md | Technical approach + implementation plan (4 subtasks below) | 4 approvals |
| 3A | ↳ Subtask 3A | Validate domain data structures (entities, value objects, events, migrations) | approval |
| 3B | ↳ Subtask 3B | Validate ports, contracts, use cases, services, adapters, NestJS routes | approval |
| 3C | ↳ Subtask 3C | Validate frontend components, gateways, query hooks, PM-UI usage | approval |
| 3D | ↳ Subtask 3D | Generate full implementation plan (task breakdown, grouping, coverage) | approval |
| 4 | phase-4-finalize.md | Generate context.md, mark spec complete, report (no commit — artifacts live in tmp/) | seamless |
State is persisted to markdown files under a git-ignored tmp/ directory for cross-session continuity. Phase progress is inferred from which output files exist — no separate state file needed.
tmp/feature-specs/{slug}/
├── {slug}.md # Main spec (status: DRAFT → COMPLETE in frontmatter)
├── discovery.md # Phase 2 output (YAML frontmatter + markdown)
├── functional-spec.md # Phase 2 output (informed by discovery)
├── implementation-plan.md # Phase 3 output (includes parallel groups section)
└── context.md # Phase 4 output (YAML frontmatter + markdown)
| Files Present | Completed Phase | Resume At |
|---|---|---|
{slug}.md only | Phase 1 | Phase 2 |
+ discovery.md, functional-spec.md | Phase 2 | Phase 3 |
+ implementation-plan.md | Phase 3 | Phase 4 |
+ context.md (status: COMPLETE) | Phase 4 | Done |
Before starting, check for an existing task directory at tmp/feature-specs/{slug}/:
status: DRAFT|COMPLETE**Resuming Feature Spec**: {slug}
**Current Phase**: {detected_phase}
**Status**: {status from frontmatter}
Continue from Phase {detected_phase}? (Y/n)
To start a new feature spec: Read phase-1-resolve-source.md and follow its instructions.
Final deliverable: tmp/feature-specs/{slug}/{slug}.md + sibling artifacts.
Contains:
file:line patterns)/feature-sprint)target_repo: oss | proprietary | bothPhase 3 includes a grouping step that analyzes task dependencies and creates parallel execution groups:
How grouping works:
implementation-plan.md (Parallel Groups section) and context.md (YAML frontmatter)When grouping is skipped:
When the spec is complete (Phase 4), the next step is /feature-sprint {slug} — the companion skill that executes the implementation plan.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub packmindhub/packmind-marketplace --plugin packmind-proprietary