prjct-cli 1.47.0 → 1.47.4

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.
Files changed (95) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/bin/prjct +8 -27
  3. package/dist/bin/prjct-core.mjs +519 -753
  4. package/dist/cli/jira.mjs +13 -13
  5. package/dist/cli/linear.mjs +12 -12
  6. package/dist/daemon/entry.mjs +506 -740
  7. package/dist/templates.json +1 -1
  8. package/package.json +1 -1
  9. package/templates/antigravity/SKILL.md +12 -31
  10. package/templates/codex/SKILL.md +7 -23
  11. package/templates/cursor/commands/bug.md +2 -4
  12. package/templates/cursor/commands/done.md +2 -2
  13. package/templates/cursor/commands/pause.md +2 -2
  14. package/templates/cursor/commands/resume.md +2 -2
  15. package/templates/cursor/commands/ship.md +3 -5
  16. package/templates/cursor/commands/sync.md +2 -2
  17. package/templates/cursor/commands/task.md +2 -4
  18. package/templates/cursor/p.md +2 -25
  19. package/templates/cursor/router.mdc +2 -21
  20. package/templates/global/ANTIGRAVITY.md +7 -8
  21. package/templates/global/CURSOR.mdc +7 -6
  22. package/templates/global/GEMINI.md +7 -8
  23. package/templates/global/WINDSURF.md +7 -8
  24. package/templates/windsurf/router.md +2 -21
  25. package/templates/windsurf/workflows/bug.md +2 -4
  26. package/templates/windsurf/workflows/done.md +2 -2
  27. package/templates/windsurf/workflows/pause.md +4 -2
  28. package/templates/windsurf/workflows/resume.md +2 -2
  29. package/templates/windsurf/workflows/ship.md +2 -4
  30. package/templates/windsurf/workflows/sync.md +2 -2
  31. package/templates/windsurf/workflows/task.md +2 -4
  32. package/templates/agentic/agent-routing.md +0 -45
  33. package/templates/agentic/agents/uxui.md +0 -63
  34. package/templates/baseline/anti-patterns/nextjs.json +0 -18
  35. package/templates/baseline/anti-patterns/react.json +0 -18
  36. package/templates/baseline/anti-patterns/typescript.json +0 -18
  37. package/templates/baseline/patterns/nextjs.json +0 -18
  38. package/templates/baseline/patterns/react.json +0 -18
  39. package/templates/baseline/patterns/typescript.json +0 -18
  40. package/templates/commands/analyze.md +0 -11
  41. package/templates/commands/auth.md +0 -15
  42. package/templates/commands/bug.md +0 -28
  43. package/templates/commands/cleanup.md +0 -11
  44. package/templates/commands/dash.md +0 -16
  45. package/templates/commands/design.md +0 -11
  46. package/templates/commands/done.md +0 -46
  47. package/templates/commands/enrich.md +0 -20
  48. package/templates/commands/git.md +0 -17
  49. package/templates/commands/history.md +0 -13
  50. package/templates/commands/idea.md +0 -13
  51. package/templates/commands/impact.md +0 -13
  52. package/templates/commands/init.md +0 -11
  53. package/templates/commands/jira.md +0 -94
  54. package/templates/commands/learnings.md +0 -11
  55. package/templates/commands/linear.md +0 -88
  56. package/templates/commands/merge.md +0 -25
  57. package/templates/commands/next.md +0 -12
  58. package/templates/commands/p.md +0 -62
  59. package/templates/commands/p.toml +0 -37
  60. package/templates/commands/pause.md +0 -16
  61. package/templates/commands/plan.md +0 -13
  62. package/templates/commands/prd.md +0 -21
  63. package/templates/commands/resume.md +0 -12
  64. package/templates/commands/review.md +0 -20
  65. package/templates/commands/serve.md +0 -11
  66. package/templates/commands/sessions.md +0 -13
  67. package/templates/commands/setup.md +0 -11
  68. package/templates/commands/ship.md +0 -46
  69. package/templates/commands/skill.md +0 -13
  70. package/templates/commands/spec.md +0 -20
  71. package/templates/commands/status.md +0 -11
  72. package/templates/commands/sync.md +0 -23
  73. package/templates/commands/task.md +0 -69
  74. package/templates/commands/test.md +0 -22
  75. package/templates/commands/update.md +0 -11
  76. package/templates/commands/verify.md +0 -11
  77. package/templates/commands/workflow.md +0 -69
  78. package/templates/global/CLAUDE.md +0 -20
  79. package/templates/global/modules/CLAUDE-commands.md +0 -1
  80. package/templates/global/modules/CLAUDE-core.md +0 -16
  81. package/templates/global/modules/CLAUDE-git.md +0 -1
  82. package/templates/global/modules/CLAUDE-intelligence.md +0 -1
  83. package/templates/global/modules/CLAUDE-storage.md +0 -1
  84. package/templates/global/modules/module-config.json +0 -12
  85. package/templates/subagents/agent-base.md +0 -21
  86. package/templates/subagents/domain/backend.md +0 -109
  87. package/templates/subagents/domain/database.md +0 -121
  88. package/templates/subagents/domain/devops.md +0 -152
  89. package/templates/subagents/domain/frontend.md +0 -103
  90. package/templates/subagents/domain/testing.md +0 -169
  91. package/templates/subagents/pm-expert.md +0 -366
  92. package/templates/subagents/workflow/chief-architect.md +0 -653
  93. package/templates/subagents/workflow/prjct-planner.md +0 -120
  94. package/templates/subagents/workflow/prjct-shipper.md +0 -175
  95. package/templates/subagents/workflow/prjct-workflow.md +0 -82
@@ -1,18 +0,0 @@
1
- {
2
- "items": [
3
- {
4
- "name": "Prefer strict typing contracts",
5
- "description": "Functions and component props should be explicitly typed; avoid implicit any boundaries.",
6
- "severity": "high",
7
- "language": "TypeScript",
8
- "confidence": 0.88
9
- },
10
- {
11
- "name": "Type-first API surfaces",
12
- "description": "Exported modules should define reusable domain types for inputs and outputs.",
13
- "severity": "medium",
14
- "language": "TypeScript",
15
- "confidence": 0.8
16
- }
17
- ]
18
- }
@@ -1,11 +0,0 @@
1
- ---
2
- allowed-tools: [Bash]
3
- ---
4
-
5
- # p. analyze $ARGUMENTS
6
-
7
- ```bash
8
- prjct analyze $ARGUMENTS --md
9
- ```
10
-
11
- Follow the instructions in the CLI output.
@@ -1,15 +0,0 @@
1
- ---
2
- allowed-tools: [Bash, AskUserQuestion]
3
- ---
4
-
5
- # p. auth $ARGUMENTS
6
-
7
- Supports: `login`, `logout`, `status` (default: show status).
8
-
9
- ```bash
10
- prjct auth $ARGUMENTS --md
11
- ```
12
-
13
- Follow the instructions in the CLI output.
14
-
15
- For `login`: ASK for API key if needed.
@@ -1,28 +0,0 @@
1
- ---
2
- allowed-tools: [Bash, Task, AskUserQuestion]
3
- ---
4
-
5
- # p. bug $ARGUMENTS
6
-
7
- ## Step 1: Validate
8
- If $ARGUMENTS is empty, ASK the user for a bug description.
9
-
10
- ## Step 2: Report and explore
11
- ```bash
12
- prjct bug "$ARGUMENTS" --md
13
- ```
14
-
15
- Search the codebase for affected files.
16
-
17
- ## Step 3: Fix now or queue
18
- ASK: "Fix this bug now?" Fix now / Queue for later
19
-
20
- If fix now: create branch `bug/{slug}` and start working.
21
- If queue: done -- bug is tracked.
22
-
23
- ## Presentation
24
- Format bug reports as:
25
-
26
- 1. `**Bug reported**: {description}`
27
- 2. Show affected files with `code formatting` for paths
28
- 3. Present fix/queue options clearly
@@ -1,11 +0,0 @@
1
- ---
2
- allowed-tools: [Bash, Read, Edit]
3
- ---
4
-
5
- # p. cleanup $ARGUMENTS
6
-
7
- ```bash
8
- prjct cleanup $ARGUMENTS --md
9
- ```
10
-
11
- Follow the instructions in the CLI output.
@@ -1,16 +0,0 @@
1
- ---
2
- allowed-tools: [Bash]
3
- ---
4
-
5
- # p. dash $ARGUMENTS
6
-
7
- Supports views: `compact`, `week`, `month`, `roadmap` (default: full dashboard).
8
-
9
- ```bash
10
- prjct dash ${ARGUMENTS || ""} --md
11
- ```
12
-
13
- Follow the instructions in the CLI output.
14
-
15
- ## Presentation
16
- Present dashboard data using the tables and sections from CLI markdown. Keep it scannable — the dashboard should be a quick status overview.
@@ -1,11 +0,0 @@
1
- ---
2
- allowed-tools: [Bash, Read, Write]
3
- ---
4
-
5
- # p. design $ARGUMENTS
6
-
7
- ```bash
8
- prjct design $ARGUMENTS --md
9
- ```
10
-
11
- Follow the instructions in the CLI output.
@@ -1,46 +0,0 @@
1
- ---
2
- allowed-tools: [Bash, Read, AskUserQuestion]
3
- ---
4
-
5
- # p. done
6
-
7
- ## Step 1: Complete via CLI
8
- ```bash
9
- prjct done --md
10
- ```
11
- If CLI output is JSON with `options`, present the options to the user and execute the chosen command.
12
-
13
- ## Step 2: Verify completion
14
- - Review files changed: `git diff --name-only HEAD`
15
- - Ensure work is complete and tested
16
-
17
- ## Step 3: Pattern compliance check
18
-
19
- If a Pattern Commitment table was created during the "Pattern commitment" step of the task workflow, review each committed pattern against the actual changes:
20
-
21
- | Pattern | Status | Evidence |
22
- |---------|--------|----------|
23
- | (name) | FOLLOWED | `path/file.ts:line` — used correct abstraction |
24
- | (name) | VIOLATED | reason — e.g., needed `use client` for interactivity |
25
-
26
- Report any VIOLATED pattern with a clear reason. The user decides whether to accept the violation.
27
-
28
- If no commitment table exists (e.g., project not synced, or patterns were empty), skip this step.
29
-
30
- ## Step 4: Handoff context
31
- Summarize what was done and what the next subtask needs to know.
32
-
33
- ## Step 5: Follow CLI next steps → Ship
34
- After completing, you MUST ask:
35
- ASK: "Subtask done. Ready to ship or continue to next subtask?"
36
- - Ship now → execute `p. ship` workflow (load and follow `~/.claude/commands/p/ship.md`)
37
- - Next subtask → continue working
38
- - Pause → execute `p. pause`
39
-
40
- ## Presentation
41
- Format your completion summary as:
42
-
43
- 1. `**Subtask complete**: {what was done}`
44
- 2. Brief summary of changes (2-3 lines max)
45
- 3. If next subtask exists, preview what's next
46
- 4. Show next commands as a table
@@ -1,20 +0,0 @@
1
- ---
2
- allowed-tools: [Bash, Read, Task, AskUserQuestion]
3
- ---
4
-
5
- # p. enrich $ARGUMENTS
6
-
7
- ## Step 1: Validate
8
- If $ARGUMENTS is empty, ASK for an issue ID or description.
9
-
10
- ## Step 2: Fetch and analyze
11
- ```bash
12
- prjct enrich "$ARGUMENTS" --md
13
- ```
14
-
15
- Search the codebase for similar implementations and affected files.
16
-
17
- ## Step 3: Publish
18
- ASK: "Update description / Add as comment / Just show me"
19
-
20
- Follow the CLI instructions for publishing.
@@ -1,17 +0,0 @@
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/)`
@@ -1,13 +0,0 @@
1
- ---
2
- allowed-tools: [Bash]
3
- ---
4
-
5
- # p. history $ARGUMENTS
6
-
7
- Supports: `undo`, `redo` (default: show snapshot history).
8
-
9
- ```bash
10
- prjct history $ARGUMENTS --md
11
- ```
12
-
13
- Follow the instructions in the CLI output.
@@ -1,13 +0,0 @@
1
- ---
2
- allowed-tools: [Bash, AskUserQuestion]
3
- ---
4
-
5
- # p. idea $ARGUMENTS
6
-
7
- If $ARGUMENTS is empty, ASK the user for their idea.
8
-
9
- ```bash
10
- prjct idea "$ARGUMENTS" --md
11
- ```
12
-
13
- Follow the instructions in the CLI output.
@@ -1,13 +0,0 @@
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.
@@ -1,11 +0,0 @@
1
- ---
2
- allowed-tools: [Bash, AskUserQuestion]
3
- ---
4
-
5
- # p. init $ARGUMENTS
6
-
7
- ```bash
8
- prjct init $ARGUMENTS --md
9
- ```
10
-
11
- Follow the instructions in the CLI output.
@@ -1,94 +0,0 @@
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 follow the instructions in the output.
16
- The CLI auto-validates tokens, auto-migrates from legacy versions, and auto-cleans corrupted state. Trust its diagnosis.
17
-
18
- **Do NOT attempt MCP tool calls if Jira tools are not in your tool list.**
19
-
20
- ---
21
-
22
- ## Setup (`p. jira setup`)
23
-
24
- Run step by step:
25
-
26
- ### Step 1: Write MCP config + auto-repair
27
- ```bash
28
- prjct jira setup --md
29
- ```
30
-
31
- Setup now auto-cleans corrupted tokens and auto-migrates from legacy mcp-remote versions.
32
- If setup reports "ready" → skip to Step 3.
33
-
34
- ### Step 2: Complete OAuth in terminal (only if setup says OAuth is required)
35
-
36
- Tell the user to open a NEW terminal and run this **exact** command (version pinned to match mcp.json):
37
- ```
38
- npx -y mcp-remote@0.1.38 https://mcp.atlassian.com/v1/mcp
39
- ```
40
-
41
- This will:
42
- 1. Print an OAuth URL
43
- 2. Try to open the browser automatically
44
- 3. If browser doesn't open → copy-paste the URL manually
45
-
46
- Tell the user: **Complete the authorization in the browser, then come back here.**
47
-
48
- Wait for the user to confirm they completed OAuth before continuing.
49
-
50
- ### Step 2.5: Verify OAuth worked
51
- ```bash
52
- prjct jira verify --md
53
- ```
54
-
55
- This scans `~/.mcp-auth/`, validates tokens, auto-migrates from legacy versions, and gives a clear READY / NOT READY verdict.
56
- If NOT READY → follow the instructions in the output.
57
-
58
- ### Step 3: Restart Claude Code
59
-
60
- Tell the user: "Close and reopen Claude Code. The Jira MCP tools will be ready."
61
-
62
- After restart, Jira MCP tools are available — no more auth needed.
63
-
64
- ---
65
-
66
- ## Status (`p. jira status`)
67
-
68
- ```bash
69
- prjct jira status --md
70
- ```
71
-
72
- ---
73
-
74
- ## Sprint / Backlog
75
-
76
- ```bash
77
- prjct jira sprint --md # → JQL for active sprint
78
- prjct jira backlog --md # → JQL for backlog
79
- ```
80
-
81
- Use the returned JQL with the Jira MCP search tool (available after setup + restart).
82
- Show sprint and backlog issues **separately**:
83
- - `## 🏃 Active Sprint` for sprint issues
84
- - `## 📋 Backlog` for backlog issues
85
-
86
- ---
87
-
88
- ## Issue Operations (list / get / create / update / start / done)
89
-
90
- Use Jira MCP tools directly. No REST API, no API tokens.
91
-
92
- - `start <KEY>`: transition to In Progress via MCP → `prjct task "<title>" --md`
93
- - `done <KEY>`: transition to Done via MCP → `prjct done --md`
94
- - `list`: fetch assigned issues via MCP → show as table
@@ -1,11 +0,0 @@
1
- ---
2
- allowed-tools: [Bash]
3
- ---
4
-
5
- # p. learnings
6
-
7
- ```bash
8
- prjct learnings --md
9
- ```
10
-
11
- Follow the instructions in the CLI output.
@@ -1,88 +0,0 @@
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 follow the instructions in the output.
16
- The CLI auto-validates tokens, auto-migrates from legacy versions, and auto-cleans corrupted state. Trust its diagnosis.
17
-
18
- **Do NOT attempt MCP tool calls if Linear tools are not in your tool list.**
19
-
20
- ---
21
-
22
- ## Setup (`p. linear setup`)
23
-
24
- Run step by step:
25
-
26
- ### Step 1: Write MCP config + auto-repair
27
- ```bash
28
- prjct linear setup --md
29
- ```
30
-
31
- Setup now auto-cleans corrupted tokens and auto-migrates from legacy mcp-remote versions.
32
- If setup reports "ready" → skip to Step 3.
33
-
34
- ### Step 2: Complete OAuth in terminal (only if setup says OAuth is required)
35
-
36
- Tell the user to open a NEW terminal and run this **exact** command (version pinned to match mcp.json):
37
- ```
38
- npx -y mcp-remote@0.1.38 https://mcp.linear.app/mcp
39
- ```
40
-
41
- This will:
42
- 1. Print an OAuth URL
43
- 2. Try to open the browser automatically
44
- 3. If browser doesn't open → copy-paste the URL manually
45
-
46
- Tell the user: **Complete the authorization in the browser, then come back here.**
47
-
48
- Wait for the user to confirm they completed OAuth before continuing.
49
-
50
- ### Step 2.5: Verify OAuth worked
51
- ```bash
52
- prjct linear verify --md
53
- ```
54
-
55
- This scans `~/.mcp-auth/`, validates tokens, auto-migrates from legacy versions, and gives a clear READY / NOT READY verdict.
56
- If NOT READY → follow the instructions in the output.
57
-
58
- ### Step 3: Restart Claude Code
59
-
60
- Tell the user: "Close and reopen Claude Code. The Linear MCP tools will be ready."
61
-
62
- After restart, Linear MCP tools are available — no more auth needed.
63
-
64
- ---
65
-
66
- ## Status (`p. linear status`)
67
-
68
- ```bash
69
- prjct linear status --md
70
- ```
71
-
72
- ---
73
-
74
- ## Issue Operations (list / get / start / done / update / comment / create)
75
-
76
- Use Linear MCP tools directly. No SDK, no API tokens.
77
-
78
- - `start <ID>`: move to In Progress via MCP → `prjct task "<title>" --md`
79
- - `done <ID>`: move to Done via MCP → `prjct done --md`
80
- - `list`: fetch assigned issues via MCP → show as table with ID, title, status, priority
81
-
82
- ---
83
-
84
- ## Sync (`p. linear sync`)
85
-
86
- 1. Fetch assigned issues via Linear MCP tools
87
- 2. For each untracked issue: `prjct task "<title>" --md`
88
- 3. Show sync summary
@@ -1,25 +0,0 @@
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.
@@ -1,12 +0,0 @@
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.
@@ -1,62 +0,0 @@
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
@@ -1,37 +0,0 @@
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
- """
@@ -1,16 +0,0 @@
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.
@@ -1,13 +0,0 @@
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.
@@ -1,21 +0,0 @@
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)
@@ -1,12 +0,0 @@
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.
@@ -1,20 +0,0 @@
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).