prjct-cli 0.5.1 → 0.7.0
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 +220 -7
- package/CLAUDE.md +476 -55
- package/README.md +48 -55
- package/bin/prjct +170 -225
- package/core/agentic/command-executor.js +113 -0
- package/core/agentic/context-builder.js +85 -0
- package/core/agentic/prompt-builder.js +86 -0
- package/core/agentic/template-loader.js +104 -0
- package/core/agentic/tool-registry.js +117 -0
- package/core/command-registry.js +597 -0
- package/core/commands.js +2046 -2028
- package/core/domain/agent-generator.js +118 -0
- package/core/domain/analyzer.js +211 -0
- package/core/domain/architect-session.js +300 -0
- package/core/{agents → infrastructure/agents}/claude-agent.js +16 -13
- package/core/{author-detector.js → infrastructure/author-detector.js} +3 -1
- package/core/{capability-installer.js → infrastructure/capability-installer.js} +3 -6
- package/core/{command-installer.js → infrastructure/command-installer.js} +4 -2
- package/core/{config-manager.js → infrastructure/config-manager.js} +4 -4
- package/core/{editors-config.js → infrastructure/editors-config.js} +2 -10
- package/core/{migrator.js → infrastructure/migrator.js} +34 -19
- package/core/{path-manager.js → infrastructure/path-manager.js} +20 -44
- package/core/{session-manager.js → infrastructure/session-manager.js} +45 -105
- package/core/{update-checker.js → infrastructure/update-checker.js} +67 -67
- package/core/{animations-simple.js → utils/animations.js} +3 -23
- package/core/utils/date-helper.js +238 -0
- package/core/utils/file-helper.js +327 -0
- package/core/utils/jsonl-helper.js +206 -0
- package/core/{project-capabilities.js → utils/project-capabilities.js} +21 -22
- package/core/utils/session-helper.js +277 -0
- package/core/{version.js → utils/version.js} +1 -1
- package/package.json +5 -12
- package/templates/agents/AGENTS.md +151 -99
- package/templates/analysis/analyze.md +84 -0
- package/templates/commands/analyze.md +37 -233
- package/templates/commands/bug.md +79 -0
- package/templates/commands/build.md +44 -0
- package/templates/commands/cleanup.md +24 -84
- package/templates/commands/design.md +20 -95
- package/templates/commands/done.md +17 -180
- package/templates/commands/feature.md +113 -0
- package/templates/commands/fix.md +58 -66
- package/templates/commands/git.md +35 -57
- package/templates/commands/help.md +18 -52
- package/templates/commands/idea.md +18 -34
- package/templates/commands/init.md +65 -257
- package/templates/commands/next.md +20 -60
- package/templates/commands/now.md +21 -23
- package/templates/commands/progress.md +40 -73
- package/templates/commands/recap.md +52 -75
- package/templates/commands/roadmap.md +30 -85
- package/templates/commands/ship.md +93 -126
- package/templates/commands/status.md +42 -0
- package/templates/commands/sync.md +19 -205
- package/templates/commands/task.md +19 -79
- package/templates/commands/test.md +25 -71
- package/templates/commands/workflow.md +20 -210
- package/core/agent-generator.js +0 -516
- package/core/analyzer.js +0 -600
- package/core/animations.js +0 -277
- package/core/git-integration.js +0 -401
- package/core/workflow-engine.js +0 -213
- package/core/workflow-prompts.js +0 -192
- package/core/workflow-rules.js +0 -147
- package/scripts/post-install.js +0 -121
- package/scripts/preuninstall.js +0 -94
- package/scripts/verify-installation.sh +0 -158
- package/templates/agents/be.template.md +0 -42
- package/templates/agents/data.template.md +0 -41
- package/templates/agents/devops.template.md +0 -41
- package/templates/agents/fe.template.md +0 -42
- package/templates/agents/mobile.template.md +0 -41
- package/templates/agents/pm.template.md +0 -84
- package/templates/agents/qa.template.md +0 -54
- package/templates/agents/scribe.template.md +0 -95
- package/templates/agents/security.template.md +0 -41
- package/templates/agents/ux.template.md +0 -49
- package/templates/commands/context.md +0 -105
- package/templates/commands/stuck.md +0 -48
- package/templates/examples/natural-language-examples.md +0 -532
- /package/core/{agent-detector.js → infrastructure/agent-detector.js} +0 -0
|
@@ -1,79 +1,57 @@
|
|
|
1
1
|
---
|
|
2
|
-
allowed-tools: [Bash, Read,
|
|
3
|
-
description:
|
|
2
|
+
allowed-tools: [Bash, Read, Write]
|
|
3
|
+
description: 'Smart git operations with context'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
This command uses the global prjct architecture:
|
|
8
|
-
- Data stored in: `~/.prjct-cli/projects/{id}/`
|
|
9
|
-
- Config stored in: `{project}/.prjct/prjct.config.json`
|
|
10
|
-
- Commands synchronized across all editors
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
# /p:git - Smart Git Operations
|
|
15
|
-
|
|
16
|
-
## Purpose
|
|
17
|
-
Execute git operations with intelligent commit messages and automatic best practices. No thinking required.
|
|
6
|
+
# /p:git
|
|
18
7
|
|
|
19
8
|
## Usage
|
|
9
|
+
|
|
20
10
|
```
|
|
21
|
-
/p:git
|
|
11
|
+
/p:git commit # Smart commit with metadata
|
|
12
|
+
/p:git push # Push with verification
|
|
13
|
+
/p:git sync # Pull, rebase, push
|
|
14
|
+
/p:git undo # Undo last commit
|
|
22
15
|
```
|
|
23
16
|
|
|
24
|
-
|
|
17
|
+
## Flow: commit
|
|
25
18
|
|
|
26
|
-
|
|
19
|
+
1. Read: `core/now.md` → get task context
|
|
20
|
+
2. Git: `add .` → stage changes
|
|
21
|
+
3. Create: commit message with prjct metadata
|
|
22
|
+
4. Commit: with message
|
|
23
|
+
5. Log: `memory/context.jsonl`
|
|
27
24
|
|
|
28
|
-
|
|
29
|
-
1. Run `git status` to see changes
|
|
30
|
-
2. Analyze changes to generate smart commit message
|
|
31
|
-
3. Stage all changes with `git add -A`
|
|
32
|
-
4. Commit with generated message
|
|
33
|
-
5. Log to `.prjct/memory/context.jsonl`
|
|
25
|
+
## Flow: push
|
|
34
26
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
3. Show deployment status if applicable
|
|
27
|
+
1. Git: `status` → verify clean
|
|
28
|
+
2. Git: `push` with branch tracking
|
|
29
|
+
3. Handle: errors (upstream, conflicts)
|
|
39
30
|
|
|
40
|
-
|
|
41
|
-
1. Show clean git status with emoji indicators
|
|
42
|
-
2. Suggest next logical action
|
|
31
|
+
## Flow: sync
|
|
43
32
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
3. Push to remote
|
|
48
|
-
4. Handle merge conflicts if needed
|
|
33
|
+
1. Git: `pull --rebase`
|
|
34
|
+
2. Resolve: conflicts if any
|
|
35
|
+
3. Git: `push`
|
|
49
36
|
|
|
50
|
-
##
|
|
37
|
+
## Commit Message Format
|
|
51
38
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
- Extract meaningful description from changes
|
|
55
|
-
- Add emoji for visual clarity
|
|
56
|
-
- Include file scope when relevant
|
|
39
|
+
```
|
|
40
|
+
{type}: {description}
|
|
57
41
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
- "🐛 fix: Resolve null pointer in auth middleware"
|
|
61
|
-
- "📝 docs: Update API documentation"
|
|
62
|
-
- "♻️ refactor: Simplify database connection logic"
|
|
42
|
+
Agent: {agent}
|
|
43
|
+
Dev: @{github_dev}
|
|
63
44
|
|
|
64
|
-
|
|
45
|
+
Generated-by: prjct/cli
|
|
46
|
+
Co-Authored-By: @{github_dev}
|
|
65
47
|
```
|
|
66
|
-
✅ Changes committed!
|
|
67
48
|
|
|
68
|
-
|
|
69
|
-
📊 Files: 3 changed, +150 lines
|
|
70
|
-
🔄 Branch: main
|
|
49
|
+
## Response
|
|
71
50
|
|
|
72
|
-
💡 Next: /p:git push to deploy
|
|
73
51
|
```
|
|
52
|
+
✅ Git {operation}
|
|
74
53
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
- Tracks in project memory for context
|
|
54
|
+
{operation_details}
|
|
55
|
+
|
|
56
|
+
/p:ship | /p:status
|
|
57
|
+
```
|
|
@@ -1,72 +1,38 @@
|
|
|
1
1
|
---
|
|
2
|
-
allowed-tools: [
|
|
3
|
-
description:
|
|
2
|
+
allowed-tools: []
|
|
3
|
+
description: 'Interactive guide'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# /p:help
|
|
7
7
|
|
|
8
|
-
## Usage
|
|
9
|
-
```
|
|
10
|
-
/p:help
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Purpose
|
|
14
|
-
Interactive guide for users who want to talk naturally without memorizing commands.
|
|
15
|
-
|
|
16
8
|
## Response
|
|
17
9
|
|
|
18
10
|
```
|
|
19
11
|
🎯 What do you want to do?
|
|
20
12
|
|
|
21
|
-
|
|
13
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
22
14
|
|
|
23
|
-
1. 🚀 Start working
|
|
24
|
-
Say: "I want to start
|
|
25
|
-
Or: /p:now "task
|
|
15
|
+
1. 🚀 Start working
|
|
16
|
+
Say: "I want to start {task}"
|
|
17
|
+
Or: /p:now "{task}"
|
|
26
18
|
|
|
27
|
-
2. ✅
|
|
28
|
-
Say: "I'm done"
|
|
19
|
+
2. ✅ Finish task
|
|
20
|
+
Say: "I'm done"
|
|
29
21
|
Or: /p:done
|
|
30
22
|
|
|
31
|
-
3. 🎉 Ship
|
|
32
|
-
Say: "ship
|
|
33
|
-
Or: /p:ship "feature"
|
|
23
|
+
3. 🎉 Ship feature
|
|
24
|
+
Say: "ship {feature}"
|
|
25
|
+
Or: /p:ship "{feature}"
|
|
34
26
|
|
|
35
|
-
4. 💡 Capture
|
|
36
|
-
Say: "
|
|
37
|
-
Or: /p:idea "idea
|
|
27
|
+
4. 💡 Capture idea
|
|
28
|
+
Say: "idea about {thing}"
|
|
29
|
+
Or: /p:idea "{idea}"
|
|
38
30
|
|
|
39
|
-
5. 📊 See
|
|
40
|
-
Say: "show
|
|
31
|
+
5. 📊 See progress
|
|
32
|
+
Say: "show progress"
|
|
41
33
|
Or: /p:recap
|
|
42
34
|
|
|
43
|
-
|
|
44
|
-
Say: "show my roadmap"
|
|
45
|
-
Or: /p:roadmap
|
|
46
|
-
|
|
47
|
-
7. 🆘 I'm stuck on something
|
|
48
|
-
Say: "I'm stuck on [problem]"
|
|
49
|
-
Or: /p:stuck "issue description"
|
|
50
|
-
|
|
51
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
35
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
52
36
|
|
|
53
|
-
💬
|
|
54
|
-
|
|
55
|
-
Instead of memorizing commands, tell me what you want:
|
|
56
|
-
• "let me start building the login"
|
|
57
|
-
• "I finished that"
|
|
58
|
-
• "ship the authentication system"
|
|
59
|
-
• "what should I work on next?"
|
|
60
|
-
|
|
61
|
-
I understand both natural language and /p:* commands.
|
|
62
|
-
|
|
63
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
64
|
-
|
|
65
|
-
What would you like to do?
|
|
37
|
+
💬 Talk naturally - I understand both!
|
|
66
38
|
```
|
|
67
|
-
|
|
68
|
-
## Implementation Notes
|
|
69
|
-
- Always respond conversationally
|
|
70
|
-
- Detect user intent from natural language
|
|
71
|
-
- Map to appropriate /p:* command
|
|
72
|
-
- Show example in both natural + command format
|
|
@@ -1,50 +1,34 @@
|
|
|
1
1
|
---
|
|
2
|
-
allowed-tools: [
|
|
3
|
-
description:
|
|
2
|
+
allowed-tools: [Write]
|
|
3
|
+
description: 'Quick idea capture'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# /p:idea
|
|
7
7
|
|
|
8
8
|
## Usage
|
|
9
|
+
|
|
9
10
|
```
|
|
10
11
|
/p:idea <text>
|
|
11
12
|
```
|
|
12
13
|
|
|
13
|
-
##
|
|
14
|
-
|
|
15
|
-
1. Append to `~/.prjct-cli/projects/{id}/planning/ideas.md`:
|
|
16
|
-
```markdown
|
|
17
|
-
- [timestamp] [idea]
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
2. If actionable (has action verbs), add to `core/next.md`
|
|
21
|
-
3. Log to `memory/context.jsonl`:
|
|
22
|
-
```json
|
|
23
|
-
{"action":"idea","text":"[idea]","category":"[type]","actionable":true,"added_to_queue":true}
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
4. Response (if actionable):
|
|
27
|
-
```
|
|
28
|
-
💡 Idea captured: [idea text]
|
|
14
|
+
## Flow
|
|
29
15
|
|
|
30
|
-
|
|
16
|
+
1. **Append to session**: `planning/sessions/{YYYY-MM}/{YYYY-MM-DD}.jsonl`
|
|
17
|
+
2. **Update index**: Append to `planning/ideas.md` (keep only last 30 days)
|
|
18
|
+
3. If actionable → add to `core/next.md`
|
|
19
|
+
4. **Archive old**: If ideas.md > 30 days, move to `planning/archive/ideas-{YYYY-MM}.md`
|
|
31
20
|
|
|
32
|
-
|
|
33
|
-
• "start this idea" → Begin now
|
|
34
|
-
• "plan more" → Keep brainstorming
|
|
35
|
-
• "see all ideas" → View backlog
|
|
21
|
+
## Session Log Format
|
|
36
22
|
|
|
37
|
-
|
|
38
|
-
|
|
23
|
+
```jsonl
|
|
24
|
+
{"ts":"2025-10-04T16:00:00Z","type":"idea_add","idea":"{text}","actionable":{true/false},"priority":"{high/med/low}"}
|
|
25
|
+
```
|
|
39
26
|
|
|
40
|
-
|
|
41
|
-
```
|
|
42
|
-
💡 Idea saved: [idea text]
|
|
27
|
+
## Response
|
|
43
28
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
• "see my ideas" → View backlog
|
|
29
|
+
```
|
|
30
|
+
💡 {idea}
|
|
31
|
+
{✅ Added to queue | 📝 Saved to backlog}
|
|
48
32
|
|
|
49
|
-
|
|
50
|
-
|
|
33
|
+
/p:now "{idea}" | /p:next
|
|
34
|
+
```
|
|
@@ -1,295 +1,103 @@
|
|
|
1
1
|
---
|
|
2
|
-
allowed-tools: [Read, Write, Bash
|
|
3
|
-
description:
|
|
2
|
+
allowed-tools: [Read, Write, Bash]
|
|
3
|
+
description: 'Initialize prjct project (with architect mode for blank projects)'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# /p:init
|
|
7
|
-
|
|
8
|
-
## Purpose
|
|
9
|
-
Initialize a new prjct project using global architecture with centralized data storage.
|
|
10
|
-
|
|
11
|
-
## Global Architecture
|
|
12
|
-
This command creates:
|
|
13
|
-
- **Global data directory**: `~/.prjct-cli/projects/{id}/` (shared across editors)
|
|
14
|
-
- **Local config file**: `.prjct/prjct.config.json` (links to global data)
|
|
15
|
-
- **Synchronized commands**: Available in Claude Code, Cursor, Windsurf
|
|
6
|
+
# /p:init
|
|
16
7
|
|
|
17
8
|
## Usage
|
|
18
|
-
```
|
|
19
|
-
/p:init
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## Implementation
|
|
23
9
|
|
|
24
|
-
When this command is executed in Claude Code:
|
|
25
|
-
|
|
26
|
-
### 1. Generate Project ID
|
|
27
|
-
```bash
|
|
28
|
-
# Generate unique ID from project path hash
|
|
29
|
-
PROJECT_PATH="$(pwd)"
|
|
30
|
-
PROJECT_ID=$(echo -n "$PROJECT_PATH" | shasum -a 256 | cut -c1-12)
|
|
31
10
|
```
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
# Create global data directory
|
|
36
|
-
mkdir -p ~/.prjct-cli/projects/$PROJECT_ID/{core,progress,planning,analysis,memory}
|
|
11
|
+
/p:init # Existing project
|
|
12
|
+
/p:init "[idea]" # New blank project (architect mode)
|
|
37
13
|
```
|
|
38
14
|
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
# Create local config directory
|
|
42
|
-
mkdir -p .prjct
|
|
43
|
-
|
|
44
|
-
# Get author info from git
|
|
45
|
-
AUTHOR_NAME=$(git config user.name 2>/dev/null || echo "Unknown")
|
|
46
|
-
AUTHOR_EMAIL=$(git config user.email 2>/dev/null || echo "unknown@example.com")
|
|
15
|
+
## Flow: Existing Project
|
|
47
16
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"author": {
|
|
55
|
-
"name": "$AUTHOR_NAME",
|
|
56
|
-
"email": "$AUTHOR_EMAIL"
|
|
57
|
-
},
|
|
58
|
-
"createdAt": "$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
|
|
59
|
-
}
|
|
60
|
-
EOF
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
### 4. Initialize Core Files (in global directory)
|
|
64
|
-
|
|
65
|
-
**~/.prjct-cli/projects/{id}/core/now.md**:
|
|
66
|
-
```markdown
|
|
67
|
-
# NOW: No current task
|
|
68
|
-
|
|
69
|
-
Start a new task with `/p:now [task description]`
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
**~/.prjct-cli/projects/{id}/core/next.md**:
|
|
73
|
-
```markdown
|
|
74
|
-
# NEXT - Priority Queue
|
|
75
|
-
|
|
76
|
-
Add tasks here that should be done after the current task.
|
|
77
|
-
```
|
|
17
|
+
1. Generate: project ID from path hash
|
|
18
|
+
2. Create: `~/.prjct-cli/projects/{id}/` structure (including `agents/`)
|
|
19
|
+
3. Write: `.prjct/prjct.config.json`
|
|
20
|
+
4. Run: `/p:analyze` to understand stack
|
|
21
|
+
5. Generate: agents based on stack
|
|
22
|
+
6. Log: `memory/context.jsonl`
|
|
78
23
|
|
|
79
|
-
|
|
80
|
-
```markdown
|
|
81
|
-
# Project Context
|
|
24
|
+
## Flow: Blank Project (Architect Mode)
|
|
82
25
|
|
|
83
|
-
|
|
84
|
-
|
|
26
|
+
1. Generate: project ID
|
|
27
|
+
2. Activate: ARCHITECT role
|
|
28
|
+
3. Analyze: idea/requirements
|
|
29
|
+
4. Recommend: tech stack options (Next.js, React, Vue, etc.)
|
|
30
|
+
5. User confirms: choice
|
|
31
|
+
6. Create: directory structure + base files
|
|
32
|
+
7. Generate: initial roadmap
|
|
33
|
+
8. Generate: agents
|
|
34
|
+
9. Ask: "¿Empezamos con la primera feature?"
|
|
85
35
|
|
|
86
|
-
##
|
|
87
|
-
[Link to current task in now.md]
|
|
36
|
+
## Directory Structure
|
|
88
37
|
|
|
89
|
-
## Key Information
|
|
90
|
-
- **Repository**: [auto-detected]
|
|
91
|
-
- **Tech Stack**: [auto-detected]
|
|
92
|
-
- **Architecture**: [auto-detected]
|
|
93
38
|
```
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
#
|
|
100
|
-
|
|
101
|
-
## Week [CURRENT_WEEK], [YEAR]
|
|
102
|
-
|
|
103
|
-
_Ship features with `/p:ship <feature>`_
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
**~/.prjct-cli/projects/{id}/progress/metrics.md**:
|
|
107
|
-
```markdown
|
|
108
|
-
# Progress Metrics
|
|
109
|
-
|
|
110
|
-
## This Week
|
|
111
|
-
- **Shipped**: 0 features
|
|
112
|
-
- **Active**: 0 tasks
|
|
113
|
-
- **Planned**: 0 items
|
|
114
|
-
|
|
115
|
-
## Historical
|
|
116
|
-
[Auto-updated by commands]
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
### 6. Initialize Planning Layer
|
|
120
|
-
|
|
121
|
-
**~/.prjct-cli/projects/{id}/planning/ideas.md**:
|
|
122
|
-
```markdown
|
|
123
|
-
# IDEAS - Brain Dump
|
|
124
|
-
|
|
125
|
-
Capture ideas quickly with `/p:idea <text>`
|
|
126
|
-
|
|
127
|
-
## Backlog
|
|
128
|
-
- [ ] [Ideas will appear here]
|
|
129
|
-
|
|
130
|
-
## Someday/Maybe
|
|
131
|
-
- [ ] [Future ideas]
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
**~/.prjct-cli/projects/{id}/planning/roadmap.md**:
|
|
135
|
-
```markdown
|
|
136
|
-
# Roadmap
|
|
137
|
-
|
|
138
|
-
## Current Sprint
|
|
139
|
-
[Active items from next.md]
|
|
140
|
-
|
|
141
|
-
## Upcoming
|
|
142
|
-
[Planned features and improvements]
|
|
143
|
-
|
|
144
|
-
## Long-term Vision
|
|
145
|
-
[Strategic goals and objectives]
|
|
39
|
+
~/.prjct-cli/projects/{id}/
|
|
40
|
+
├── core/ # now.md, next.md, context.md
|
|
41
|
+
├── progress/ # shipped.md, metrics.md
|
|
42
|
+
├── planning/ # ideas.md, roadmap.md
|
|
43
|
+
├── analysis/ # repo-summary.md
|
|
44
|
+
├── agents/ # AI agent definitions
|
|
45
|
+
└── memory/ # context.jsonl
|
|
146
46
|
```
|
|
147
47
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
Create empty JSONL files for historical tracking:
|
|
151
|
-
- **memory/context.jsonl**: Activity log with timestamps
|
|
152
|
-
- **memory/decisions.jsonl**: Decision history (not used yet)
|
|
153
|
-
|
|
154
|
-
### 8. Run Project Analysis
|
|
48
|
+
## Config Format
|
|
155
49
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
50
|
+
```json
|
|
51
|
+
{
|
|
52
|
+
"version": "0.6.0",
|
|
53
|
+
"projectId": "{id}",
|
|
54
|
+
"dataPath": "~/.prjct-cli/projects/{id}",
|
|
55
|
+
"author": {
|
|
56
|
+
"name": "{from git}",
|
|
57
|
+
"email": "{from git}",
|
|
58
|
+
"github": "{from remote}"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
166
61
|
```
|
|
167
62
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
Based on the analysis, generate specialized AI agents:
|
|
171
|
-
|
|
172
|
-
```javascript
|
|
173
|
-
const agentGenerator = require('../core/agent-generator')
|
|
174
|
-
const analysis = await readAnalysisFile('.prjct/analysis/repo-summary.md')
|
|
175
|
-
|
|
176
|
-
// Generate all required agents
|
|
177
|
-
const generatedAgents = await agentGenerator.generateAll(analysis)
|
|
63
|
+
## Response: Existing Project
|
|
178
64
|
|
|
179
|
-
// Agents are created in ~/.claude/agents/
|
|
180
|
-
// They are immediately available in Claude Code and Claude Desktop
|
|
181
65
|
```
|
|
66
|
+
✅ prjct initialized!
|
|
182
67
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
- DevOps (if Docker/CI/CD detected)
|
|
188
|
-
- Mobile (if React Native/Flutter detected)
|
|
189
|
-
- Data (if ML/data science detected)
|
|
68
|
+
📁 Data: ~/.prjct-cli/projects/{id}
|
|
69
|
+
📝 Config: .prjct/prjct.config.json
|
|
70
|
+
📊 Analysis: {stack_summary}
|
|
71
|
+
🤖 Agents: {N} agents generated
|
|
190
72
|
|
|
191
|
-
|
|
73
|
+
Listo para trabajar! ¿Qué feature agregamos?
|
|
192
74
|
|
|
193
|
-
|
|
194
|
-
```jsonl
|
|
195
|
-
{"timestamp":"2025-10-01T09:00:00Z","action":"init","author":"Name","projectPath":"/path/to/project","projectId":"abc123def456","agents":["pm","ux","fe","be","qa","scribe","security"]}
|
|
75
|
+
/p:feature | /p:analyze
|
|
196
76
|
```
|
|
197
77
|
|
|
198
|
-
|
|
78
|
+
## Response: Blank Project
|
|
199
79
|
|
|
200
80
|
```
|
|
201
|
-
✅
|
|
202
|
-
|
|
203
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
204
|
-
|
|
205
|
-
📦 Project Analysis Complete
|
|
206
|
-
|
|
207
|
-
Project: [PROJECT_NAME]
|
|
208
|
-
Type: [PROJECT_TYPE]
|
|
209
|
-
Stack: [DETECTED_STACK]
|
|
210
|
-
|
|
211
|
-
🤖 AI Agents Generated ([COUNT] specialists)
|
|
212
|
-
|
|
213
|
-
✅ PM - Project coordination
|
|
214
|
-
✅ UX - Design & user experience
|
|
215
|
-
✅ FE - Frontend development
|
|
216
|
-
✅ BE - Backend development
|
|
217
|
-
✅ QA - Testing & quality
|
|
218
|
-
✅ Scribe - Documentation
|
|
219
|
-
[+ conditional agents if detected]
|
|
220
|
-
|
|
221
|
-
These agents are now available in Claude and will provide
|
|
222
|
-
specialized expertise for your project tasks.
|
|
223
|
-
|
|
224
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
225
|
-
|
|
226
|
-
💬 Let me show you around...
|
|
227
|
-
|
|
228
|
-
You don't need to memorize commands.
|
|
229
|
-
Just talk to me naturally!
|
|
81
|
+
✅ prjct initialized!
|
|
230
82
|
|
|
231
|
-
|
|
83
|
+
📐 ARCHITECT MODE
|
|
232
84
|
|
|
233
|
-
|
|
85
|
+
Your idea: "{idea}"
|
|
234
86
|
|
|
235
|
-
|
|
236
|
-
|
|
87
|
+
Recommended stack:
|
|
88
|
+
Option 1: Next.js + TypeScript + Tailwind (⭐ Recommended)
|
|
89
|
+
Option 2: React + Vite + shadcn/ui
|
|
90
|
+
Option 3: Vue 3 + Nuxt
|
|
237
91
|
|
|
238
|
-
|
|
92
|
+
Which option? (or describe your preference)
|
|
239
93
|
|
|
240
|
-
|
|
94
|
+
[After user confirms:]
|
|
241
95
|
|
|
242
|
-
✅
|
|
96
|
+
✅ Structure created!
|
|
97
|
+
📋 Initial roadmap: {N} features
|
|
98
|
+
🤖 Agents: generated
|
|
243
99
|
|
|
244
|
-
|
|
245
|
-
Or: /p:done
|
|
100
|
+
¿Empezamos con la primera feature?
|
|
246
101
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
250
|
-
|
|
251
|
-
🚀 To ship a feature:
|
|
252
|
-
|
|
253
|
-
Say: "ship the authentication system"
|
|
254
|
-
Or: /p:ship "authentication system"
|
|
255
|
-
|
|
256
|
-
→ I'll track your velocity and wins
|
|
257
|
-
|
|
258
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
259
|
-
|
|
260
|
-
💡 Have ideas? Just say:
|
|
261
|
-
|
|
262
|
-
"I have an idea about dark mode"
|
|
263
|
-
"What should I work on next?"
|
|
264
|
-
"Show me my progress"
|
|
265
|
-
"I'm stuck on async state"
|
|
266
|
-
|
|
267
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
268
|
-
|
|
269
|
-
🆘 Need help anytime?
|
|
270
|
-
|
|
271
|
-
Type: /p:help
|
|
272
|
-
|
|
273
|
-
→ I'll show you all options in plain language
|
|
274
|
-
|
|
275
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
276
|
-
|
|
277
|
-
Ready to start? Tell me what you want to build first!
|
|
278
|
-
|
|
279
|
-
(Or type /p:help to see all options)
|
|
102
|
+
/p:feature | /p:ship
|
|
280
103
|
```
|
|
281
|
-
|
|
282
|
-
## Error Handling
|
|
283
|
-
|
|
284
|
-
- **If .prjct/ exists**: Warn that project may already be initialized
|
|
285
|
-
- **If git not available**: Use generic author info
|
|
286
|
-
- **If global directory creation fails**: Show error and suggest manual creation
|
|
287
|
-
- **If config write fails**: Check permissions on .prjct/ directory
|
|
288
|
-
|
|
289
|
-
## Notes
|
|
290
|
-
|
|
291
|
-
- Project ID is deterministic based on project path
|
|
292
|
-
- Same project path always gets same ID
|
|
293
|
-
- Global data enables cross-editor synchronization
|
|
294
|
-
- Local config is minimal (just links to global data)
|
|
295
|
-
- Works for solo developers and small teams (2-5 people)
|