prjct-cli 1.45.4 → 1.45.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -2
- package/dist/bin/prjct-core.mjs +160 -160
- package/dist/cli/jira.mjs +1 -1
- package/dist/cli/linear.mjs +1 -1
- package/dist/daemon/entry.mjs +99 -99
- package/dist/templates.json +1 -1
- package/package.json +2 -1
- package/templates/agentic/agent-routing.md +45 -0
- package/templates/agentic/agents/uxui.md +63 -0
- package/templates/agentic/checklist-routing.md +98 -0
- package/templates/agentic/orchestrator.md +68 -0
- package/templates/agentic/task-fragmentation.md +89 -0
- package/templates/agents/AGENTS.md +67 -0
- package/templates/analysis/analyze.md +84 -0
- package/templates/analysis/patterns.md +60 -0
- package/templates/antigravity/SKILL.md +39 -0
- package/templates/architect/discovery.md +67 -0
- package/templates/architect/phases.md +59 -0
- package/templates/baseline/anti-patterns/nextjs.json +18 -0
- package/templates/baseline/anti-patterns/react.json +18 -0
- package/templates/baseline/anti-patterns/typescript.json +18 -0
- package/templates/baseline/patterns/nextjs.json +18 -0
- package/templates/baseline/patterns/react.json +18 -0
- package/templates/baseline/patterns/typescript.json +18 -0
- package/templates/checklists/architecture.md +28 -0
- package/templates/checklists/code-quality.md +28 -0
- package/templates/checklists/data.md +33 -0
- package/templates/checklists/documentation.md +33 -0
- package/templates/checklists/infrastructure.md +33 -0
- package/templates/checklists/performance.md +33 -0
- package/templates/checklists/security.md +33 -0
- package/templates/checklists/testing.md +33 -0
- package/templates/checklists/ux-ui.md +37 -0
- package/templates/codex/SKILL.md +36 -0
- package/templates/commands/analyze.md +11 -0
- package/templates/commands/auth.md +15 -0
- package/templates/commands/bug.md +28 -0
- package/templates/commands/cleanup.md +11 -0
- package/templates/commands/dash.md +16 -0
- package/templates/commands/design.md +11 -0
- package/templates/commands/done.md +33 -0
- package/templates/commands/enrich.md +20 -0
- package/templates/commands/git.md +17 -0
- package/templates/commands/history.md +13 -0
- package/templates/commands/idea.md +13 -0
- package/templates/commands/impact.md +13 -0
- package/templates/commands/init.md +11 -0
- package/templates/commands/jira.md +88 -0
- package/templates/commands/learnings.md +11 -0
- package/templates/commands/linear.md +82 -0
- package/templates/commands/merge.md +25 -0
- package/templates/commands/next.md +12 -0
- package/templates/commands/p.md +62 -0
- package/templates/commands/p.toml +37 -0
- package/templates/commands/pause.md +16 -0
- package/templates/commands/plan.md +13 -0
- package/templates/commands/prd.md +21 -0
- package/templates/commands/resume.md +12 -0
- package/templates/commands/review.md +20 -0
- package/templates/commands/serve.md +11 -0
- package/templates/commands/sessions.md +13 -0
- package/templates/commands/setup.md +11 -0
- package/templates/commands/ship.md +46 -0
- package/templates/commands/skill.md +13 -0
- package/templates/commands/spec.md +20 -0
- package/templates/commands/status.md +11 -0
- package/templates/commands/sync.md +23 -0
- package/templates/commands/task.md +52 -0
- package/templates/commands/test.md +22 -0
- package/templates/commands/update.md +11 -0
- package/templates/commands/verify.md +11 -0
- package/templates/commands/workflow.md +69 -0
- package/templates/config/skill-mappings.json +82 -0
- package/templates/context/dashboard.md +251 -0
- package/templates/context/roadmap.md +221 -0
- package/templates/cursor/commands/bug.md +8 -0
- package/templates/cursor/commands/done.md +4 -0
- package/templates/cursor/commands/pause.md +6 -0
- package/templates/cursor/commands/resume.md +4 -0
- package/templates/cursor/commands/ship.md +8 -0
- package/templates/cursor/commands/sync.md +4 -0
- package/templates/cursor/commands/task.md +8 -0
- package/templates/cursor/p.md +29 -0
- package/templates/cursor/router.mdc +28 -0
- package/templates/design/api.md +95 -0
- package/templates/design/architecture.md +77 -0
- package/templates/design/component.md +89 -0
- package/templates/design/database.md +78 -0
- package/templates/design/flow.md +94 -0
- package/templates/global/ANTIGRAVITY.md +17 -0
- package/templates/global/CLAUDE.md +20 -0
- package/templates/global/CURSOR.mdc +20 -0
- package/templates/global/GEMINI.md +17 -0
- package/templates/global/STORAGE-SPEC.md +328 -0
- package/templates/global/WINDSURF.md +22 -0
- package/templates/global/modules/CLAUDE-commands.md +1 -0
- package/templates/global/modules/CLAUDE-core.md +16 -0
- package/templates/global/modules/CLAUDE-git.md +1 -0
- package/templates/global/modules/CLAUDE-intelligence.md +1 -0
- package/templates/global/modules/CLAUDE-storage.md +1 -0
- package/templates/global/modules/module-config.json +12 -0
- package/templates/mcp-config.json +29 -0
- package/templates/permissions/default.jsonc +60 -0
- package/templates/permissions/permissive.jsonc +49 -0
- package/templates/permissions/strict.jsonc +58 -0
- package/templates/planning-methodology.md +195 -0
- package/templates/skills/code-review.md +47 -0
- package/templates/skills/debug.md +61 -0
- package/templates/skills/refactor.md +47 -0
- package/templates/subagents/agent-base.md +21 -0
- package/templates/subagents/domain/backend.md +109 -0
- package/templates/subagents/domain/database.md +121 -0
- package/templates/subagents/domain/devops.md +152 -0
- package/templates/subagents/domain/frontend.md +103 -0
- package/templates/subagents/domain/testing.md +169 -0
- package/templates/subagents/pm-expert.md +366 -0
- package/templates/subagents/workflow/chief-architect.md +653 -0
- package/templates/subagents/workflow/prjct-planner.md +120 -0
- package/templates/subagents/workflow/prjct-shipper.md +175 -0
- package/templates/subagents/workflow/prjct-workflow.md +82 -0
- package/templates/tools/bash.txt +22 -0
- package/templates/tools/edit.txt +18 -0
- package/templates/tools/glob.txt +19 -0
- package/templates/tools/grep.txt +21 -0
- package/templates/tools/read.txt +14 -0
- package/templates/tools/task.txt +20 -0
- package/templates/tools/webfetch.txt +16 -0
- package/templates/tools/websearch.txt +18 -0
- package/templates/tools/write.txt +17 -0
- package/templates/windsurf/router.md +28 -0
- package/templates/windsurf/workflows/bug.md +8 -0
- package/templates/windsurf/workflows/done.md +4 -0
- package/templates/windsurf/workflows/pause.md +4 -0
- package/templates/windsurf/workflows/resume.md +4 -0
- package/templates/windsurf/workflows/ship.md +8 -0
- package/templates/windsurf/workflows/sync.md +4 -0
- package/templates/windsurf/workflows/task.md +8 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: [Bash, AskUserQuestion]
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# p. git $ARGUMENTS
|
|
6
|
+
|
|
7
|
+
Supports: `commit`, `push`, `sync`, `undo`.
|
|
8
|
+
|
|
9
|
+
## BLOCKING: Never commit/push to main/master.
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
prjct git $ARGUMENTS --md
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Follow the instructions in the CLI output.
|
|
16
|
+
|
|
17
|
+
Every commit MUST include footer: `Generated with [p/](https://www.prjct.app/)`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: [Bash, AskUserQuestion]
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# p. impact $ARGUMENTS
|
|
6
|
+
|
|
7
|
+
Supports: `list`, `summary`, or specific feature ID (default: most recent ship).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
prjct impact $ARGUMENTS --md
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Follow the instructions in the CLI output. When collecting effort data, success metrics, and learnings, ask the user for input.
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: ["*"]
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# p. jira $ARGUMENTS
|
|
6
|
+
|
|
7
|
+
Jira is MCP-only — no API tokens, no REST calls.
|
|
8
|
+
|
|
9
|
+
## Step 0: Check MCP readiness (ALWAYS, except for `setup`)
|
|
10
|
+
|
|
11
|
+
Look for tools starting with `mcp__jira` or `mcp__atlassian` in your tool list.
|
|
12
|
+
|
|
13
|
+
**If tools ARE available** → proceed with the requested operation below.
|
|
14
|
+
|
|
15
|
+
**If NOT available** → run: `prjct jira status --md` and interpret:
|
|
16
|
+
|
|
17
|
+
| Status | Action |
|
|
18
|
+
|--------|--------|
|
|
19
|
+
| `configured: false` | Run `p. jira setup` |
|
|
20
|
+
| `configured: true, oauthReady: false` | Tell user to run in a terminal: `npx -y mcp-remote@0.1.38 https://mcp.atlassian.com/v1/mcp` then restart their AI client |
|
|
21
|
+
| `configured: true, oauthReady: true` | Tell user to restart their AI client |
|
|
22
|
+
|
|
23
|
+
**Do NOT attempt MCP tool calls if Jira tools are not in your tool list.**
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Setup (`p. jira setup`)
|
|
28
|
+
|
|
29
|
+
Run step by step:
|
|
30
|
+
|
|
31
|
+
### Step 1: Write MCP config
|
|
32
|
+
```bash
|
|
33
|
+
prjct jira setup --md
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Step 2: Complete OAuth in terminal (REQUIRED before restarting)
|
|
37
|
+
|
|
38
|
+
Tell the user to open a NEW terminal and run this **exact** command (version pinned to match mcp.json):
|
|
39
|
+
```
|
|
40
|
+
npx -y mcp-remote@0.1.38 https://mcp.atlassian.com/v1/mcp
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
This will:
|
|
44
|
+
1. Print an OAuth URL
|
|
45
|
+
2. Try to open the browser automatically
|
|
46
|
+
3. If browser doesn't open → copy-paste the URL manually
|
|
47
|
+
|
|
48
|
+
Tell the user: **Complete the authorization in the browser, then come back here.**
|
|
49
|
+
|
|
50
|
+
Wait for the user to confirm they completed OAuth before continuing.
|
|
51
|
+
|
|
52
|
+
### Step 3: Restart Claude Code
|
|
53
|
+
|
|
54
|
+
Tell the user: "Close and reopen Claude Code. The Jira MCP tools will be ready."
|
|
55
|
+
|
|
56
|
+
After restart, Jira MCP tools are available — no more auth needed.
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Status (`p. jira status`)
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
prjct jira status --md
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Sprint / Backlog
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
prjct jira sprint --md # → JQL for active sprint
|
|
72
|
+
prjct jira backlog --md # → JQL for backlog
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Use the returned JQL with the Jira MCP search tool (available after setup + restart).
|
|
76
|
+
Show sprint and backlog issues **separately**:
|
|
77
|
+
- `## 🏃 Active Sprint` for sprint issues
|
|
78
|
+
- `## 📋 Backlog` for backlog issues
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## Issue Operations (list / get / create / update / start / done)
|
|
83
|
+
|
|
84
|
+
Use Jira MCP tools directly. No REST API, no API tokens.
|
|
85
|
+
|
|
86
|
+
- `start <KEY>`: transition to In Progress via MCP → `prjct task "<title>" --md`
|
|
87
|
+
- `done <KEY>`: transition to Done via MCP → `prjct done --md`
|
|
88
|
+
- `list`: fetch assigned issues via MCP → show as table
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: ["*"]
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# p. linear $ARGUMENTS
|
|
6
|
+
|
|
7
|
+
Linear is MCP-only — no SDK, no API tokens.
|
|
8
|
+
|
|
9
|
+
## Step 0: Check MCP readiness (ALWAYS, except for `setup`)
|
|
10
|
+
|
|
11
|
+
Look for tools starting with `mcp__linear` in your tool list.
|
|
12
|
+
|
|
13
|
+
**If tools ARE available** → proceed with the requested operation below.
|
|
14
|
+
|
|
15
|
+
**If NOT available** → run: `prjct linear status --md` and interpret:
|
|
16
|
+
|
|
17
|
+
| Status | Action |
|
|
18
|
+
|--------|--------|
|
|
19
|
+
| `configured: false` | Run `p. linear setup` |
|
|
20
|
+
| `configured: true, oauthReady: false` | Tell user to run in a terminal: `npx -y mcp-remote@0.1.38 https://mcp.linear.app/mcp` then restart their AI client |
|
|
21
|
+
| `configured: true, oauthReady: true` | Tell user to restart their AI client |
|
|
22
|
+
|
|
23
|
+
**Do NOT attempt MCP tool calls if Linear tools are not in your tool list.**
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Setup (`p. linear setup`)
|
|
28
|
+
|
|
29
|
+
Run step by step:
|
|
30
|
+
|
|
31
|
+
### Step 1: Write MCP config
|
|
32
|
+
```bash
|
|
33
|
+
prjct linear setup --md
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Step 2: Complete OAuth in terminal (REQUIRED before restarting)
|
|
37
|
+
|
|
38
|
+
Tell the user to open a NEW terminal and run this **exact** command (version pinned to match mcp.json):
|
|
39
|
+
```
|
|
40
|
+
npx -y mcp-remote@0.1.38 https://mcp.linear.app/mcp
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
This will:
|
|
44
|
+
1. Print an OAuth URL
|
|
45
|
+
2. Try to open the browser automatically
|
|
46
|
+
3. If browser doesn't open → copy-paste the URL manually
|
|
47
|
+
|
|
48
|
+
Tell the user: **Complete the authorization in the browser, then come back here.**
|
|
49
|
+
|
|
50
|
+
Wait for the user to confirm they completed OAuth before continuing.
|
|
51
|
+
|
|
52
|
+
### Step 3: Restart Claude Code
|
|
53
|
+
|
|
54
|
+
Tell the user: "Close and reopen Claude Code. The Linear MCP tools will be ready."
|
|
55
|
+
|
|
56
|
+
After restart, Linear MCP tools are available — no more auth needed.
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Status (`p. linear status`)
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
prjct linear status --md
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Issue Operations (list / get / start / done / update / comment / create)
|
|
69
|
+
|
|
70
|
+
Use Linear MCP tools directly. No SDK, no API tokens.
|
|
71
|
+
|
|
72
|
+
- `start <ID>`: move to In Progress via MCP → `prjct task "<title>" --md`
|
|
73
|
+
- `done <ID>`: move to Done via MCP → `prjct done --md`
|
|
74
|
+
- `list`: fetch assigned issues via MCP → show as table with ID, title, status, priority
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Sync (`p. linear sync`)
|
|
79
|
+
|
|
80
|
+
1. Fetch assigned issues via Linear MCP tools
|
|
81
|
+
2. For each untracked issue: `prjct task "<title>" --md`
|
|
82
|
+
3. Show sync summary
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: [Bash, AskUserQuestion]
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# p. merge
|
|
6
|
+
|
|
7
|
+
## Pre-flight (BLOCKING)
|
|
8
|
+
Verify: active task exists, PR exists, PR is approved, CI passes, no conflicts.
|
|
9
|
+
|
|
10
|
+
## Step 1: Get merge plan
|
|
11
|
+
```bash
|
|
12
|
+
prjct merge --md
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Step 2: Get approval (BLOCKING)
|
|
16
|
+
ASK: "Merge this PR?" Yes / No
|
|
17
|
+
|
|
18
|
+
## Step 3: Execute
|
|
19
|
+
```bash
|
|
20
|
+
gh pr merge {prNumber} --squash --delete-branch
|
|
21
|
+
git checkout main && git pull origin main
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Step 4: Update issue tracker
|
|
25
|
+
If linked to Linear/JIRA, mark as Done via CLI.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: [Bash, AskUserQuestion]
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# p. next $ARGUMENTS
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
prjct next $ARGUMENTS --md
|
|
9
|
+
```
|
|
10
|
+
If CLI output is JSON with `options`, present the options to the user and execute the chosen command.
|
|
11
|
+
|
|
12
|
+
Follow the instructions in the CLI output.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: 'prjct CLI - Context layer for AI agents'
|
|
3
|
+
allowed-tools: [Read, Write, Edit, Bash, Glob, Grep, Task, AskUserQuestion, TodoWrite, WebFetch]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# prjct Command Router
|
|
7
|
+
|
|
8
|
+
**ARGUMENTS**: $ARGUMENTS
|
|
9
|
+
|
|
10
|
+
All commands use the `p.` prefix.
|
|
11
|
+
|
|
12
|
+
## Quick Reference
|
|
13
|
+
|
|
14
|
+
| Command | Description |
|
|
15
|
+
|---------|-------------|
|
|
16
|
+
| `p. task <desc>` | Start a task |
|
|
17
|
+
| `p. done` | Complete current subtask |
|
|
18
|
+
| `p. ship [name]` | Ship feature with PR + version bump |
|
|
19
|
+
| `p. sync` | Analyze project, regenerate agents |
|
|
20
|
+
| `p. pause` | Pause current task |
|
|
21
|
+
| `p. resume` | Resume paused task |
|
|
22
|
+
| `p. next` | Show priority queue |
|
|
23
|
+
| `p. idea <desc>` | Quick idea capture |
|
|
24
|
+
| `p. bug <desc>` | Report bug with auto-priority |
|
|
25
|
+
| `p. linear` | Linear integration (via MCP) |
|
|
26
|
+
| `p. jira` | JIRA integration (via MCP) |
|
|
27
|
+
|
|
28
|
+
## Execution
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
1. PARSE: $ARGUMENTS → extract command (first word)
|
|
32
|
+
2. GET npm root: npm root -g
|
|
33
|
+
3. LOAD template: {npmRoot}/prjct-cli/templates/commands/{command}.md
|
|
34
|
+
4. EXECUTE template
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Command Aliases
|
|
38
|
+
|
|
39
|
+
| Input | Redirects To |
|
|
40
|
+
|-------|--------------|
|
|
41
|
+
| `p. undo` | `p. history undo` |
|
|
42
|
+
| `p. redo` | `p. history redo` |
|
|
43
|
+
|
|
44
|
+
## State Context
|
|
45
|
+
|
|
46
|
+
All state is managed by the `prjct` CLI via SQLite (prjct.db).
|
|
47
|
+
Templates should use CLI commands for data operations — never read/write JSON storage files directly.
|
|
48
|
+
|
|
49
|
+
## Error Handling
|
|
50
|
+
|
|
51
|
+
| Error | Action |
|
|
52
|
+
|-------|--------|
|
|
53
|
+
| Unknown command | "Unknown command: {command}. Run `p. help` for available commands." |
|
|
54
|
+
| No project | "No prjct project. Run `p. init` first." |
|
|
55
|
+
| Template not found | "Template not found: {command}.md" |
|
|
56
|
+
|
|
57
|
+
## NOW: Execute
|
|
58
|
+
|
|
59
|
+
1. Parse command from $ARGUMENTS
|
|
60
|
+
2. Handle aliases (undo → history undo, redo → history redo)
|
|
61
|
+
3. Run `npm root -g` to get template path
|
|
62
|
+
4. Load and execute command template
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# prjct Command Router for Gemini CLI
|
|
2
|
+
description = "prjct - Context layer for AI coding agents"
|
|
3
|
+
|
|
4
|
+
prompt = """
|
|
5
|
+
# prjct Command Router
|
|
6
|
+
|
|
7
|
+
You are using prjct, a context layer for AI coding agents.
|
|
8
|
+
|
|
9
|
+
**ARGUMENTS**: {{args}}
|
|
10
|
+
|
|
11
|
+
## Instructions
|
|
12
|
+
|
|
13
|
+
1. Parse arguments: first word = `command`, rest = `commandArgs`
|
|
14
|
+
2. Get npm global root by running: `npm root -g`
|
|
15
|
+
3. Read the command template from:
|
|
16
|
+
`{npmRoot}/prjct-cli/templates/commands/{command}.md`
|
|
17
|
+
4. Execute the template with `commandArgs` as input
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
If arguments = "task fix the login bug":
|
|
22
|
+
- command = "task"
|
|
23
|
+
- commandArgs = "fix the login bug"
|
|
24
|
+
- npm root -g → `/opt/homebrew/lib/node_modules`
|
|
25
|
+
- Read: `/opt/homebrew/lib/node_modules/prjct-cli/templates/commands/task.md`
|
|
26
|
+
- Execute template with: "fix the login bug"
|
|
27
|
+
|
|
28
|
+
## Available Commands
|
|
29
|
+
|
|
30
|
+
task, done, ship, sync, init, idea, dash, next, pause, resume, bug,
|
|
31
|
+
linear, jira, feature, prd, plan, review, merge, git, test, cleanup,
|
|
32
|
+
design, analyze, history, enrich, update
|
|
33
|
+
|
|
34
|
+
## Action
|
|
35
|
+
|
|
36
|
+
NOW run `npm root -g` and read the appropriate command template.
|
|
37
|
+
"""
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: [Bash, AskUserQuestion]
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# p. pause $ARGUMENTS
|
|
6
|
+
|
|
7
|
+
If no reason provided, ask the user:
|
|
8
|
+
|
|
9
|
+
Ask the user: "Why are you pausing?" with options: Blocked, Switching task, Break, Researching
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
prjct pause "$ARGUMENTS" --md
|
|
13
|
+
```
|
|
14
|
+
If CLI output is JSON with `options`, present the options to the user and execute the chosen command.
|
|
15
|
+
|
|
16
|
+
Follow the instructions in the CLI output.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: [Bash, AskUserQuestion]
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# p. plan $ARGUMENTS
|
|
6
|
+
|
|
7
|
+
Supports: `quarter`, `prioritize`, `add <prd-id>`, `capacity` (default: show status).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
prjct plan $ARGUMENTS --md
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Follow the instructions in the CLI output. When selecting features or adjusting capacity, ask the user for input.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: [Bash, Read, Write, AskUserQuestion, Task]
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# p. prd $ARGUMENTS
|
|
6
|
+
|
|
7
|
+
## Step 1: Validate
|
|
8
|
+
If $ARGUMENTS is empty, ASK the user for a feature title.
|
|
9
|
+
|
|
10
|
+
## Step 2: Create PRD via CLI
|
|
11
|
+
```bash
|
|
12
|
+
prjct prd "$ARGUMENTS" --md
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Step 3: Follow CLI methodology
|
|
16
|
+
The CLI guides through discovery, sizing, and phase execution.
|
|
17
|
+
Search the codebase for architecture patterns.
|
|
18
|
+
|
|
19
|
+
## Step 4: Get approval
|
|
20
|
+
Show the PRD summary and get explicit approval.
|
|
21
|
+
ASK: "Add to roadmap now?" Yes / No (keep as draft)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: [Bash, AskUserQuestion]
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# p. resume $ARGUMENTS
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
prjct resume $ARGUMENTS --md
|
|
9
|
+
```
|
|
10
|
+
If CLI output is JSON with `options`, present them to the user with AskUserQuestion and execute the chosen command.
|
|
11
|
+
|
|
12
|
+
Follow the instructions in the CLI output. If the CLI says to switch branches, do so.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: [Bash, Read, AskUserQuestion]
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# p. review $ARGUMENTS
|
|
6
|
+
|
|
7
|
+
## Step 1: Run review
|
|
8
|
+
```bash
|
|
9
|
+
prjct review $ARGUMENTS --md
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Step 2: Analyze changes
|
|
13
|
+
Read changed files and check for security issues, logic errors, and missing error handling.
|
|
14
|
+
|
|
15
|
+
## Step 3: Create/check PR
|
|
16
|
+
If no PR exists, create one with `gh pr create`.
|
|
17
|
+
If PR exists, check approval status with `gh pr view`.
|
|
18
|
+
|
|
19
|
+
## Step 4: Follow CLI next steps
|
|
20
|
+
The CLI output indicates what to do next (fix issues, wait for approval, merge).
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: [Bash, Read, AskUserQuestion]
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# p. sessions
|
|
6
|
+
|
|
7
|
+
## Step 1: Show recent sessions
|
|
8
|
+
```bash
|
|
9
|
+
prjct sessions --md
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Step 2: Offer to resume
|
|
13
|
+
If sessions exist, ask the user which one to resume. Then switch to that project directory and run `prjct resume --md`.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: [Bash, Read, AskUserQuestion]
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# p. ship $ARGUMENTS
|
|
6
|
+
|
|
7
|
+
## Step 0: Complete task (implicit)
|
|
8
|
+
The ship workflow automatically completes the current task before shipping.
|
|
9
|
+
This means `p. done` is implicit — you do NOT need to run it separately before shipping.
|
|
10
|
+
|
|
11
|
+
## Pre-flight (BLOCKING)
|
|
12
|
+
```bash
|
|
13
|
+
git branch --show-current
|
|
14
|
+
```
|
|
15
|
+
IF on main/master: STOP. Create a feature branch first.
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
gh auth status
|
|
19
|
+
```
|
|
20
|
+
IF not authenticated: STOP. Run `gh auth login`.
|
|
21
|
+
|
|
22
|
+
## Step 1: Quality checks
|
|
23
|
+
```bash
|
|
24
|
+
prjct ship "$ARGUMENTS" --md
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Step 2: Review changes
|
|
28
|
+
Show the user what will be committed, versioned, and PR'd.
|
|
29
|
+
|
|
30
|
+
## Step 3: Get approval (BLOCKING)
|
|
31
|
+
ASK: "Ready to ship?" Yes / No / Show diff
|
|
32
|
+
|
|
33
|
+
## Step 4: Ship
|
|
34
|
+
- Commit with prjct footer: `Generated with [p/](https://www.prjct.app/)`
|
|
35
|
+
- Push and create PR
|
|
36
|
+
- Update issue tracker if linked
|
|
37
|
+
- Every commit MUST include the prjct footer. No exceptions.
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
## Presentation
|
|
41
|
+
Format the ship flow as:
|
|
42
|
+
|
|
43
|
+
1. `**Shipping**: {feature name}`
|
|
44
|
+
2. Quality checks as a table: | Check | Status |
|
|
45
|
+
3. Show the PR summary
|
|
46
|
+
4. Ask for approval with clear formatting
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: [Bash, Read, Glob]
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# p. skill $ARGUMENTS
|
|
6
|
+
|
|
7
|
+
Supports: `list` (default), `search <query>`, `show <id>`, `invoke <id>`, `add <source>`, `remove <name>`, `init <name>`, `check`.
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
prjct skill $ARGUMENTS --md
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Follow the instructions in the CLI output.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: [Bash, Read, Write, AskUserQuestion, Task]
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# p. spec $ARGUMENTS
|
|
6
|
+
|
|
7
|
+
## Step 1: Validate
|
|
8
|
+
If $ARGUMENTS is empty, ASK the user for a feature name.
|
|
9
|
+
|
|
10
|
+
## Step 2: Create spec via CLI
|
|
11
|
+
```bash
|
|
12
|
+
prjct spec "$ARGUMENTS" --md
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Step 3: Follow CLI instructions
|
|
16
|
+
The CLI will guide through requirements, design decisions, and task breakdown.
|
|
17
|
+
Search the codebase for relevant patterns.
|
|
18
|
+
|
|
19
|
+
## Step 4: Get approval
|
|
20
|
+
Show the spec to the user and get explicit approval before adding tasks to queue.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: [Bash, AskUserQuestion]
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# p. sync $ARGUMENTS
|
|
6
|
+
|
|
7
|
+
## Step 1: Run CLI sync
|
|
8
|
+
```bash
|
|
9
|
+
prjct sync $ARGUMENTS --md
|
|
10
|
+
```
|
|
11
|
+
If CLI output is JSON with `options`, present the options to the user and execute the chosen command.
|
|
12
|
+
|
|
13
|
+
Follow ALL instructions in the CLI output (including LLM Analysis if present).
|
|
14
|
+
|
|
15
|
+
## Step 2: Present results
|
|
16
|
+
After all steps complete, present the output clearly:
|
|
17
|
+
- Use the tables and sections as-is from CLI markdown
|
|
18
|
+
- If LLM analysis was performed, summarize key findings:
|
|
19
|
+
- Architecture style and top insights
|
|
20
|
+
- Critical anti-patterns (high severity)
|
|
21
|
+
- Top tech debt items
|
|
22
|
+
- Key conventions discovered
|
|
23
|
+
- Add a brief interpretation of what changed and why
|