prjct-cli 0.27.0 → 0.28.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.
@@ -0,0 +1,108 @@
1
+ ---
2
+ name: prjct-sync
3
+ description: Analyze and sync project state. Use when user says "p. sync", wants to analyze the codebase, or needs to generate/update domain agents.
4
+ allowed-tools: [Read, Write, Edit, Bash, Glob, Grep, Task, AskUserQuestion, TodoWrite]
5
+ user-invocable: true
6
+ ---
7
+
8
+ # prjct Sync
9
+
10
+ Analyze codebase and sync project state with intelligent agent generation.
11
+
12
+ ## Context Loading (ALWAYS FIRST)
13
+
14
+ ```
15
+ 1. Read `.prjct/prjct.config.json` → extract projectId
16
+ 2. Set globalPath = ~/.prjct-cli/projects/{projectId}
17
+ 3. Read {globalPath}/project.json → project metadata
18
+ ```
19
+
20
+ ## Sync Workflow
21
+
22
+ ### 1. Analyze Codebase
23
+
24
+ Use Task(Explore) to understand:
25
+ - Tech stack (languages, frameworks)
26
+ - Project structure (src/, lib/, etc.)
27
+ - Key patterns (API routes, components, etc.)
28
+ - Test coverage
29
+
30
+ ### 2. Update Project Metadata
31
+
32
+ Write to `{globalPath}/project.json`:
33
+ ```json
34
+ {
35
+ "projectId": "...",
36
+ "name": "project-name",
37
+ "repoPath": "/path/to/repo",
38
+ "techStack": ["typescript", "react", "node"],
39
+ "fileCount": 150,
40
+ "cliVersion": "0.28.0",
41
+ "lastSync": "ISO timestamp"
42
+ }
43
+ ```
44
+
45
+ ### 3. Generate Domain Agents
46
+
47
+ Based on tech stack, create agents in `{globalPath}/agents/`:
48
+
49
+ | Agent | When to Generate |
50
+ |-------|------------------|
51
+ | `frontend.md` | React, Vue, Svelte, CSS |
52
+ | `backend.md` | Node, Express, APIs |
53
+ | `database.md` | SQL, MongoDB, Prisma |
54
+ | `testing.md` | Jest, Vitest, Playwright |
55
+ | `devops.md` | Docker, CI/CD, K8s |
56
+
57
+ Agent template:
58
+ ```yaml
59
+ ---
60
+ name: {agent-name}
61
+ description: {domain expertise}
62
+ tools: [Read, Write, Edit, Bash, Glob, Grep]
63
+ ---
64
+
65
+ # {Agent Name} Specialist
66
+
67
+ ## Patterns Found
68
+ - {pattern 1}
69
+ - {pattern 2}
70
+
71
+ ## Conventions
72
+ - {convention 1}
73
+ - {convention 2}
74
+ ```
75
+
76
+ ### 4. Sync Context Files
77
+
78
+ Regenerate `{globalPath}/context/`:
79
+ - `now.md` - Current task (if any)
80
+ - `next.md` - Queue summary
81
+ - `shipped.md` - Recently shipped
82
+
83
+ ### 5. Log Event
84
+
85
+ Append to `{globalPath}/memory/events.jsonl`:
86
+ ```json
87
+ {"timestamp": "...", "action": "sync_completed", "agents": [...], "stats": {...}}
88
+ ```
89
+
90
+ ## Paths (CRITICAL)
91
+
92
+ | Type | Path | Access |
93
+ |------|------|--------|
94
+ | Config | `.prjct/prjct.config.json` | Read-only |
95
+ | Project | `{globalPath}/project.json` | Read-Write |
96
+ | Agents | `{globalPath}/agents/*.md` | Write |
97
+ | Context | `{globalPath}/context/*.md` | Write |
98
+ | Memory | `{globalPath}/memory/events.jsonl` | Append |
99
+
100
+ ## Output Format
101
+
102
+ ```
103
+ ✅ Project synced
104
+
105
+ Files: {n} | Stack: {techs}
106
+ Agents: {list}
107
+ Next: p. task "start working"
108
+ ```
@@ -0,0 +1,101 @@
1
+ ---
2
+ name: prjct-task
3
+ description: Start and manage development tasks. Use when user says "p. task", wants to start working on something, or mentions starting a feature/bug/improvement/refactor.
4
+ allowed-tools: [Read, Write, Edit, Bash, Glob, Grep, Task, AskUserQuestion, TodoWrite]
5
+ user-invocable: true
6
+ ---
7
+
8
+ # prjct Task Manager
9
+
10
+ Start and track development tasks with intelligent classification.
11
+
12
+ ## Context Loading (ALWAYS FIRST)
13
+
14
+ ```
15
+ 1. Read `.prjct/prjct.config.json` → extract projectId
16
+ 2. Set globalPath = ~/.prjct-cli/projects/{projectId}
17
+ 3. Read {globalPath}/storage/state.json → current state
18
+ 4. Read {globalPath}/agents/*.md → domain expertise (if exists)
19
+ ```
20
+
21
+ ## Task Workflow
22
+
23
+ ### 1. Classify Task Type
24
+ - **feature**: New functionality
25
+ - **bug**: Fix broken behavior
26
+ - **improvement**: Enhance existing feature
27
+ - **refactor**: Code restructure without behavior change
28
+ - **chore**: Maintenance, deps, config
29
+
30
+ ### 2. Explore Codebase
31
+ Use Task(Explore) to:
32
+ - Find related code patterns
33
+ - Identify affected files
34
+ - Understand dependencies
35
+
36
+ ### 3. Break Down (if complex)
37
+ Create subtasks with clear scope:
38
+ ```json
39
+ {
40
+ "subtasks": [
41
+ { "id": "1", "title": "...", "status": "pending" }
42
+ ]
43
+ }
44
+ ```
45
+
46
+ ### 4. Track in Storage
47
+ Write to `{globalPath}/storage/state.json`:
48
+ ```json
49
+ {
50
+ "currentTask": {
51
+ "id": "uuid",
52
+ "title": "Task description",
53
+ "type": "feature",
54
+ "status": "in_progress",
55
+ "subtasks": [...],
56
+ "startedAt": "ISO timestamp"
57
+ }
58
+ }
59
+ ```
60
+
61
+ ### 5. Generate Context
62
+ Write to `{globalPath}/context/now.md`:
63
+ ```markdown
64
+ # Current Task
65
+ **{title}** ({type})
66
+ Started: {timestamp}
67
+ Subtasks: {completed}/{total}
68
+ ```
69
+
70
+ ### 6. Log Event
71
+ Append to `{globalPath}/memory/events.jsonl`:
72
+ ```json
73
+ {"timestamp": "...", "action": "task_started", "task": {...}}
74
+ ```
75
+
76
+ ## Paths (CRITICAL)
77
+
78
+ | Type | Path | Access |
79
+ |------|------|--------|
80
+ | Config | `.prjct/prjct.config.json` | Read-only |
81
+ | Storage | `{globalPath}/storage/*.json` | Read-Write |
82
+ | Context | `{globalPath}/context/*.md` | Read-Write |
83
+ | Memory | `{globalPath}/memory/events.jsonl` | Append-only |
84
+ | Agents | `{globalPath}/agents/*.md` | Read-only |
85
+
86
+ ## Output Format
87
+
88
+ ```
89
+ ✅ Task started: {title}
90
+
91
+ Type: {type} | Subtasks: {n}
92
+ Next: {first subtask or suggested action}
93
+ ```
94
+
95
+ ## Git Commit Footer
96
+
97
+ When committing, ALWAYS include:
98
+ ```
99
+ 🤖 Generated with [p/](https://www.prjct.app/)
100
+ Designed for [Claude](https://www.anthropic.com/claude)
101
+ ```