@getpipher/workspace 0.2.0 → 0.3.1
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/README.md +2 -2
- package/package.json +2 -2
- package/skills/catch-up/SKILL.md +4 -3
- package/skills/{ecosystem-claude → ecosystem-agents}/SKILL.md +3 -5
- package/skills/init-agents/SKILL.md +2 -4
- package/skills/organize-docs/SKILL.md +21 -27
- package/skills/planning-sync/SKILL.md +27 -28
- package/skills/session-handoff/SKILL.md +25 -11
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# @getpipher/workspace
|
|
2
2
|
|
|
3
|
-
repo catch-up, AGENTS.md initialization, ecosystem context-file architecture, doc organization, planning sync, and cross-session handoff.
|
|
3
|
+
repo catch-up, AGENTS.md initialization, ecosystem context-file architecture, doc organization, planning sync, and cross-session handoff. Host-neutral — works in [pi](https://github.com/earendil-works/pi-coding-agent), Claude Code, and any AGENTS.md-aware coding agent.
|
|
4
4
|
|
|
5
5
|
## Skills
|
|
6
6
|
|
|
7
7
|
| Skill | Purpose |
|
|
8
8
|
|---|---|
|
|
9
9
|
| `workspace-catch-up` | Show repo mission, tech stack, current state, last 5 commits, analyze uncommitted files |
|
|
10
|
-
| `workspace-ecosystem-
|
|
10
|
+
| `workspace-ecosystem-agents` | Create ecosystem-wide context-file architecture (AGENTS.md | CLAUDE.md) for multi-repo orgs |
|
|
11
11
|
| `workspace-init-agents` | Create or improve a project AGENTS.md with intelligent codebase analysis (host-neutral) |
|
|
12
12
|
| `workspace-organize-docs` | Intelligently analyze and organize all .md files in a repository (read-only advisor) |
|
|
13
13
|
| `workspace-planning-sync` | Analyze repo and provide intelligent planning documentation suggestions (read-only) |
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpipher/workspace",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Workspace & context-management skills
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "Workspace & context-management skills — repo catch-up, AGENTS.md initialization, ecosystem context-file architecture, doc organization, planning sync, and cross-session handoff. Host-neutral: any AGENTS.md-aware coding agent.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
7
7
|
"pi-skills",
|
package/skills/catch-up/SKILL.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: workspace-catch-up
|
|
3
3
|
description: Show repo mission, tech stack, current state, last 5 commits, and analyze uncommitted files
|
|
4
|
-
allowed-tools: ["bash", "read", "write", "edit"]
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
# Catch-Up: Complete Repository Context
|
|
@@ -12,6 +11,8 @@ Bismillah! Let me show you where we are and what we just did.
|
|
|
12
11
|
|
|
13
12
|
Let me gather complete context for you:
|
|
14
13
|
|
|
14
|
+
0. **Handoff check** — If `$HANDOFF_VAULT/{project}/` (`$HANDOFF_VAULT` defaults to `~/.local/handoffs`) contains session handoffs, surface the newest one (`ls "$HANDOFF_VAULT"/{project}/session-handoff-*.md | sort -r | head -1`) and offer to render its starter prompt before gathering git state.
|
|
15
|
+
|
|
15
16
|
1. **Extract Mission & Purpose**
|
|
16
17
|
- Read the project context file — `AGENTS.md` (or `CLAUDE.md`, CC's legacy name) — first, for Repository Overview and Tech Stack
|
|
17
18
|
- Fallback to README.md if no context file exists
|
|
@@ -54,7 +55,7 @@ Let me gather complete context for you:
|
|
|
54
55
|
- First paragraph after title
|
|
55
56
|
- Features/Goals section
|
|
56
57
|
- Tech Stack section
|
|
57
|
-
- If no docs found: Infer from file structure and suggest creating an `AGENTS.md` (try
|
|
58
|
+
- If no docs found: Infer from file structure and suggest creating an `AGENTS.md` (try the `workspace-init-agents` skill)
|
|
58
59
|
|
|
59
60
|
### Smart File Analysis Patterns
|
|
60
61
|
|
|
@@ -148,7 +149,7 @@ Let me gather complete context for you:
|
|
|
148
149
|
|
|
149
150
|
```bash
|
|
150
151
|
# Get complete context when returning to a project
|
|
151
|
-
|
|
152
|
+
Invoke with: workspace-catch-up
|
|
152
153
|
|
|
153
154
|
# Use when:
|
|
154
155
|
# - You just opened the project after time away
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: workspace-ecosystem-
|
|
2
|
+
name: workspace-ecosystem-agents
|
|
3
3
|
description: Create ecosystem-wide context-file architecture (AGENTS.md | CLAUDE.md) for multi-repo organizations. Host-neutral — works for Claude Code, Pi, and any AGENTS.md-aware agent.
|
|
4
|
-
argument-hint: "[org-name]"
|
|
5
|
-
allowed-tools: ["bash", "read", "write", "edit"]
|
|
6
4
|
---
|
|
7
5
|
|
|
8
6
|
# Ecosystem Context-File Architecture (AGENTS.md)
|
|
9
7
|
|
|
10
8
|
Bismillah! I'll analyze your organization's repositories and help set up an ecosystem-wide **context-file architecture** — the cross-tool standard where `AGENTS.md` is the primary file (read by Claude Code, Pi, and any `AGENTS.md`-aware agent) and `CLAUDE.md` is Claude Code's legacy name for the same file.
|
|
11
9
|
|
|
12
|
-
> **Hub / satellite model.** One **ecosystem hub** `AGENTS.md` (usually in your org's main/overview repo) carries org-wide context: mission, repo index, cross-repo standards. Each member repo gets a lightweight **satellite** `AGENTS.md` that links to the hub and holds only repo-specific content. An agent landing in any repo can orient itself: the satellite points to the hub, the hub indexes everything. This mirrors the
|
|
10
|
+
> **Hub / satellite model.** One **ecosystem hub** `AGENTS.md` (usually in your org's main/overview repo) carries org-wide context: mission, repo index, cross-repo standards. Each member repo gets a lightweight **satellite** `AGENTS.md` that links to the hub and holds only repo-specific content. An agent landing in any repo can orient itself: the satellite points to the hub, the hub indexes everything. This mirrors the `workspace-init-agents` hub/satellite pattern at org scale.
|
|
13
11
|
|
|
14
12
|
**This command is always safe to run.** It detects first, shows analysis, and asks before any changes.
|
|
15
13
|
|
|
@@ -24,7 +22,7 @@ Bismillah! I'll analyze your organization's repositories and help set up an ecos
|
|
|
24
22
|
- **`AGENTS.md` exists** → analyze and build on it.
|
|
25
23
|
- **Neither exists** → create from scratch (Step 4+).
|
|
26
24
|
|
|
27
|
-
When migrating, rephrase any CC-flavored framing host-neutrally ("guidance to Claude Code" → "guidance for AI agents"). This is the same migration the
|
|
25
|
+
When migrating, rephrase any CC-flavored framing host-neutrally ("guidance to Claude Code" → "guidance for AI agents"). This is the same migration the `workspace-init-agents` skill performs per-repo; run it across every member repo as you wire the ecosystem.
|
|
28
26
|
|
|
29
27
|
---
|
|
30
28
|
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: workspace-init-agents
|
|
3
3
|
description: Create or improve a project AGENTS.md with intelligent codebase analysis. Host-neutral satellite context file read by Claude Code, Pi, and any AGENTS.md-aware agent.
|
|
4
|
-
argument-hint: ""
|
|
5
|
-
allowed-tools: ["bash", "read", "write", "edit"]
|
|
6
4
|
---
|
|
7
5
|
|
|
8
6
|
# AGENTS.md Initialization (project satellite)
|
|
9
7
|
|
|
10
8
|
Bismillah! I'll analyze this codebase and create (or improve) a project `AGENTS.md` — the cross-tool context file that Claude Code, Pi, and any `AGENTS.md`-aware agent read on startup.
|
|
11
9
|
|
|
12
|
-
> **Hub / satellite model.** This skill generates a **satellite**: a host-neutral file describing *this repo*. It extends — never duplicates — the **global hub** (
|
|
10
|
+
> **Hub / satellite model.** This skill generates a **satellite**: a host-neutral file describing *this repo*. It extends — never duplicates — the **global hub** (your global agent context file), which already carries persona, dev standards, git conventions, secret rules, etc. A satellite holds **only project-specific** content (overview, architecture, commands, conventions, gotchas). No identity, no generic standards, no host-specific tooling — those belong to the hub.
|
|
13
11
|
|
|
14
12
|
---
|
|
15
13
|
|
|
@@ -94,7 +92,7 @@ Information that requires reading **multiple files** to understand:
|
|
|
94
92
|
Use this structure (omit sections if not applicable):
|
|
95
93
|
|
|
96
94
|
```
|
|
97
|
-
<!-- Satellite context file — extends
|
|
95
|
+
<!-- Satellite context file — extends your global agent context file (the hub). Host-neutral; project-specific only. Do not duplicate hub standards here. -->
|
|
98
96
|
|
|
99
97
|
# {Project Name}
|
|
100
98
|
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: workspace-organize-docs
|
|
3
3
|
description: Intelligently analyze and organize all .md files in repository (read-only advisor)
|
|
4
|
-
argument-hint: "[--apply] [--dry-run] [--backup] [--config CONFIG_FILE]"
|
|
5
|
-
allowed-tools: ["bash", "read", "write", "edit"]
|
|
6
4
|
---
|
|
7
5
|
|
|
8
6
|
# Documentation Organization Advisor v2
|
|
9
7
|
|
|
10
8
|
Bismillah! I'll analyze all markdown files in your repository and propose an intelligent organization structure.
|
|
11
9
|
|
|
12
|
-
Arguments
|
|
10
|
+
Arguments: [--apply] [--dry-run] [--backup] [--config FILE]
|
|
13
11
|
|
|
14
12
|
---
|
|
15
13
|
|
|
@@ -226,7 +224,8 @@ DRY_RUN=true
|
|
|
226
224
|
CREATE_BACKUP=true
|
|
227
225
|
CONFIG_FILE=".docs-organize.yml"
|
|
228
226
|
|
|
229
|
-
|
|
227
|
+
ARGS="<flags from the invocation arguments>"
|
|
228
|
+
for arg in $ARGS; do
|
|
230
229
|
case $arg in
|
|
231
230
|
--apply)
|
|
232
231
|
APPLY_CHANGES=true
|
|
@@ -510,8 +509,7 @@ Files already in docs/: 3
|
|
|
510
509
|
Scattered files: 15
|
|
511
510
|
⚠️ tmux/TMUX_GUIDE.md
|
|
512
511
|
⚠️ zsh/SHELL_CONFIG.md
|
|
513
|
-
⚠️
|
|
514
|
-
⚠️ scripts/SCRIPTS_README.md
|
|
512
|
+
⚠️ dotfiles/agent/COMMANDS.md
|
|
515
513
|
... [11 more files]
|
|
516
514
|
|
|
517
515
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
@@ -546,8 +544,7 @@ Updates needed: 12 internal links
|
|
|
546
544
|
│
|
|
547
545
|
└── 📁 reference/ (4 files) - Information-oriented
|
|
548
546
|
├── api.md ← REORGANIZE: ./docs/API.md
|
|
549
|
-
├── commands.md ← MOVE: ./
|
|
550
|
-
├── scripts.md ← MOVE: ./scripts/SCRIPTS_README.md
|
|
547
|
+
├── commands.md ← MOVE: ./dotfiles/agent/COMMANDS.md
|
|
551
548
|
└── ...
|
|
552
549
|
|
|
553
550
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
@@ -692,8 +689,7 @@ When you need technical specifications.
|
|
|
692
689
|
- **Reference**: Technical descriptions
|
|
693
690
|
|
|
694
691
|
Last updated: 2025-10-14
|
|
695
|
-
Generated by:
|
|
696
|
-
```
|
|
692
|
+
Generated by: the workspace-organize-docs skill
|
|
697
693
|
|
|
698
694
|
### For API-First Structure:
|
|
699
695
|
```markdown
|
|
@@ -728,8 +724,7 @@ Complete API documentation for [Project Name].
|
|
|
728
724
|
---
|
|
729
725
|
|
|
730
726
|
Last updated: 2025-10-14
|
|
731
|
-
Generated by:
|
|
732
|
-
```
|
|
727
|
+
Generated by: the workspace-organize-docs skill
|
|
733
728
|
|
|
734
729
|
---
|
|
735
730
|
|
|
@@ -823,10 +818,9 @@ HTML: <a href="file.md">text</a>
|
|
|
823
818
|
|
|
824
819
|
```bash
|
|
825
820
|
# Generate configuration template
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
```
|
|
821
|
+
workspace-organize-docs --generate-config divio
|
|
822
|
+
workspace-organize-docs --generate-config microsoft
|
|
823
|
+
workspace-organize-docs --generate-config api-first
|
|
830
824
|
|
|
831
825
|
Creates `.docs-organize.yml` with sensible defaults for chosen structure.
|
|
832
826
|
|
|
@@ -847,9 +841,9 @@ Creates `.docs-organize.yml` with sensible defaults for chosen structure.
|
|
|
847
841
|
|
|
848
842
|
## Integration with Workflow
|
|
849
843
|
|
|
850
|
-
✅ **Complements
|
|
851
|
-
-
|
|
852
|
-
-
|
|
844
|
+
✅ **Complements `workspace-planning-sync`:**
|
|
845
|
+
- `workspace-planning-sync` detects scattered docs → suggests `workspace-organize-docs`
|
|
846
|
+
- `workspace-organize-docs` fixes organization → keeps planning docs synced
|
|
853
847
|
|
|
854
848
|
✅ **Context-File Alignment (AGENTS.md):**
|
|
855
849
|
- "Clarify Before Acting" - Multiple confirmation points
|
|
@@ -869,28 +863,28 @@ Creates `.docs-organize.yml` with sensible defaults for chosen structure.
|
|
|
869
863
|
|
|
870
864
|
```bash
|
|
871
865
|
# Dry run with auto-detection (safe, read-only analysis)
|
|
872
|
-
|
|
866
|
+
workspace-organize-docs
|
|
873
867
|
|
|
874
868
|
# Dry run with specific config
|
|
875
|
-
|
|
869
|
+
workspace-organize-docs --config .docs-organize.yml
|
|
876
870
|
|
|
877
871
|
# Generate configuration template
|
|
878
|
-
|
|
872
|
+
workspace-organize-docs --generate-config divio
|
|
879
873
|
|
|
880
874
|
# Apply reorganization (with confirmation)
|
|
881
|
-
|
|
875
|
+
workspace-organize-docs --apply
|
|
882
876
|
|
|
883
877
|
# Apply with backup (recommended)
|
|
884
|
-
|
|
878
|
+
workspace-organize-docs --apply --backup
|
|
885
879
|
|
|
886
880
|
# Apply without backup (use with caution)
|
|
887
|
-
|
|
881
|
+
workspace-organize-docs --apply --no-backup
|
|
888
882
|
|
|
889
883
|
# Try different structure type
|
|
890
|
-
|
|
884
|
+
workspace-organize-docs --structure microsoft --dry-run
|
|
891
885
|
|
|
892
886
|
# Export report without applying
|
|
893
|
-
|
|
887
|
+
workspace-organize-docs --export docs-plan.md
|
|
894
888
|
```
|
|
895
889
|
|
|
896
890
|
---
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: workspace-planning-sync
|
|
3
3
|
description: Analyze repo and provide intelligent planning documentation suggestions (read-only)
|
|
4
|
-
argument-hint: "[--force] [--type=<repo-type>] [--export]"
|
|
5
|
-
allowed-tools: ["bash", "read", "write", "edit"]
|
|
6
4
|
---
|
|
7
5
|
|
|
8
6
|
# Adaptive Planning Advisor (Read-Only Analysis)
|
|
9
7
|
|
|
10
8
|
Bismillah! I'll intelligently analyze your codebase and provide comprehensive planning documentation suggestions without modifying any files.
|
|
11
9
|
|
|
12
|
-
Arguments
|
|
10
|
+
Arguments: [--force] [--type=<repo-type>] [--export]
|
|
13
11
|
|
|
14
12
|
---
|
|
15
13
|
|
|
@@ -48,7 +46,7 @@ This command adapts to different repository types:
|
|
|
48
46
|
|
|
49
47
|
## Using with Thinking Mode
|
|
50
48
|
|
|
51
|
-
When executing
|
|
49
|
+
When executing (use an extended-reasoning mode if your environment provides one), I will:
|
|
52
50
|
|
|
53
51
|
- **Repository Type Intelligence**: Deep analysis to detect repo purpose
|
|
54
52
|
- **Context-Aware Suggestions**: Recommendations matching your workflow
|
|
@@ -72,7 +70,8 @@ FORCE_MODE=false
|
|
|
72
70
|
OVERRIDE_TYPE=""
|
|
73
71
|
EXPORT_MODE=false
|
|
74
72
|
|
|
75
|
-
|
|
73
|
+
ARGS="<flags from the invocation arguments>"
|
|
74
|
+
for arg in $ARGS; do
|
|
76
75
|
case $arg in
|
|
77
76
|
--force)
|
|
78
77
|
FORCE_MODE=true
|
|
@@ -313,7 +312,7 @@ esac
|
|
|
313
312
|
**Search Patterns:**
|
|
314
313
|
```
|
|
315
314
|
PRD: PRD.md, REQUIREMENTS.md, PRODUCT_REQUIREMENTS.md
|
|
316
|
-
Locations: /, /docs/, /planning/, /.github/ (also check
|
|
315
|
+
Locations: /, /docs/, /planning/, /.github/ (also check your global agent context dir if known, e.g. via $AGENT_CONTEXT_DIR, for global notes)
|
|
317
316
|
|
|
318
317
|
Execution: EXECUTION.md, EXECUTION_PLAN.md, IMPLEMENTATION.md, PROGRESS.md
|
|
319
318
|
Locations: /, /docs/, /planning/
|
|
@@ -364,7 +363,7 @@ SCATTERED_COUNT=$(echo "$SCATTERED" | grep -c "\.md$" || echo "0")
|
|
|
364
363
|
- Inconsistent location patterns
|
|
365
364
|
- No clear docs/ directory structure
|
|
366
365
|
|
|
367
|
-
**Note for report:** If scattered documentation is detected (>3 .md files outside docs/), mention this in the recommendations section and suggest using
|
|
366
|
+
**Note for report:** If scattered documentation is detected (>3 .md files outside docs/), mention this in the recommendations section and suggest using the `workspace-organize-docs` skill for comprehensive reorganization.
|
|
368
367
|
|
|
369
368
|
---
|
|
370
369
|
|
|
@@ -487,7 +486,7 @@ Analysis: 2025-10-13 09:30 UTC
|
|
|
487
486
|
Searched locations:
|
|
488
487
|
- /docs/PRD.md ❌
|
|
489
488
|
- /PRD.md ❌
|
|
490
|
-
-
|
|
489
|
+
- /<agent-context-dir>/PRD.md ❌
|
|
491
490
|
- /EXECUTION.md ❌
|
|
492
491
|
|
|
493
492
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
@@ -516,9 +515,9 @@ Tool 2: Shell Configuration (Zsh)
|
|
|
516
515
|
├─ Config Area 2.3: Functions ⏳
|
|
517
516
|
│ └─ Settings: Custom functions (planned)
|
|
518
517
|
|
|
519
|
-
Tool 3:
|
|
518
|
+
Tool 3: AI Assistant Configuration
|
|
520
519
|
├─ Status: 55% Complete (6/11 config areas)
|
|
521
|
-
├─ Config Area 3.1:
|
|
520
|
+
├─ Config Area 3.1: Custom Commands ✅
|
|
522
521
|
│ └─ Settings: 15 commands across 6 categories
|
|
523
522
|
├─ Config Area 3.2: Global Config ✅
|
|
524
523
|
│ └─ Settings: context-file (AGENTS.md) workflow
|
|
@@ -529,7 +528,7 @@ Evidence Files:
|
|
|
529
528
|
- tmux/.tmux.conf (234 lines)
|
|
530
529
|
- tmux/plugins/ (12 plugins installed)
|
|
531
530
|
- zsh/.zshrc (456 lines)
|
|
532
|
-
-
|
|
531
|
+
- agent/commands/ (15 commands)
|
|
533
532
|
|
|
534
533
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
535
534
|
💡 RECOMMENDATIONS
|
|
@@ -571,7 +570,7 @@ Evidence Files:
|
|
|
571
570
|
TODO: Categorize and document purpose
|
|
572
571
|
|
|
573
572
|
🟡 MEDIUM PRIORITY (Consider Adding):
|
|
574
|
-
-
|
|
573
|
+
- Agent hooks not configured
|
|
575
574
|
Suggested: Pre-commit formatting hook
|
|
576
575
|
|
|
577
576
|
- Shell functions lacking documentation
|
|
@@ -589,7 +588,7 @@ Evidence Files:
|
|
|
589
588
|
**Scattered documentation locations:**
|
|
590
589
|
- tmux/TMUX_SETUP.md
|
|
591
590
|
- zsh/ALIASES_GUIDE.md
|
|
592
|
-
-
|
|
591
|
+
- agent/COMMANDS_REFERENCE.md
|
|
593
592
|
- [5 more files in various directories]
|
|
594
593
|
|
|
595
594
|
**Recommended structure:**
|
|
@@ -604,7 +603,7 @@ Evidence Files:
|
|
|
604
603
|
- Better documentation navigation
|
|
605
604
|
|
|
606
605
|
**How to fix:**
|
|
607
|
-
Run:
|
|
606
|
+
Run: `workspace-organize-docs` for intelligent reorganization suggestions
|
|
608
607
|
|
|
609
608
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
610
609
|
📝 PROPOSED STRUCTURE PREVIEW
|
|
@@ -725,23 +724,23 @@ Here's what I suggest for docs/CONFIG_PLAN.md:
|
|
|
725
724
|
|
|
726
725
|
---
|
|
727
726
|
|
|
728
|
-
## Tool 3:
|
|
727
|
+
## Tool 3: AI Assistant Configuration
|
|
729
728
|
**Purpose:** AI-powered development assistant setup
|
|
730
729
|
**Status:** 55% Complete (6/11 areas)
|
|
731
730
|
**Priority:** High
|
|
732
731
|
|
|
733
|
-
### Config Area 3.1:
|
|
734
|
-
**What:** Custom
|
|
732
|
+
### Config Area 3.1: Custom Commands ✅
|
|
733
|
+
**What:** Custom assistant commands
|
|
735
734
|
**Why:** Automate common workflows
|
|
736
735
|
**Implementation:**
|
|
737
|
-
- Command directory:
|
|
736
|
+
- Command directory: agent/commands/
|
|
738
737
|
- 15 commands across 6 categories:
|
|
739
738
|
- git/ (7 commands): commit, create-pr, merge-pr, etc.
|
|
740
739
|
- init/ (2 commands): repo initialization
|
|
741
|
-
- planning/ (1 command): planning
|
|
740
|
+
- planning/ (1 command): planning-sync
|
|
742
741
|
- quality/ (2 commands): lint-fix, type-check
|
|
743
742
|
- superteam/ (2 commands): bounty, hackathon
|
|
744
|
-
- meta/ (1 command): make-
|
|
743
|
+
- meta/ (1 command): make-command
|
|
745
744
|
**Status:** Complete
|
|
746
745
|
**Tested:** ✅ All commands functional
|
|
747
746
|
|
|
@@ -749,17 +748,17 @@ Here's what I suggest for docs/CONFIG_PLAN.md:
|
|
|
749
748
|
**What:** CLAUDE.md/AGENTS.md workflow preferences
|
|
750
749
|
**Why:** Consistent AI assistance behavior
|
|
751
750
|
**Implementation:**
|
|
752
|
-
- Global config:
|
|
751
|
+
- Global config: the global agent context file (whichever you maintain)
|
|
753
752
|
- Workflow definitions
|
|
754
753
|
- Code standards and preferences
|
|
755
754
|
**Status:** Complete
|
|
756
755
|
**Maintained:** Regularly updated
|
|
757
756
|
|
|
758
757
|
### Config Area 3.3: Hooks ⏳
|
|
759
|
-
**What:** Automated
|
|
758
|
+
**What:** Automated agent triggers
|
|
760
759
|
**Why:** Pre-commit checks, auto-formatting
|
|
761
760
|
**Implementation:**
|
|
762
|
-
- Hook directory:
|
|
761
|
+
- Hook directory: agent/hooks/ (not created)
|
|
763
762
|
- Pre-commit: Planned linting/formatting
|
|
764
763
|
- Post-write: Planned test triggers
|
|
765
764
|
**Status:** Not started
|
|
@@ -767,7 +766,7 @@ Here's what I suggest for docs/CONFIG_PLAN.md:
|
|
|
767
766
|
**Suggested Hooks:**
|
|
768
767
|
- pre-commit: Run linters before commit
|
|
769
768
|
- on-file-write: Trigger related tests
|
|
770
|
-
**Next Step:** Research
|
|
769
|
+
**Next Step:** Research agent hook capabilities
|
|
771
770
|
|
|
772
771
|
---
|
|
773
772
|
|
|
@@ -779,7 +778,7 @@ Here's what I suggest for docs/CONFIG_PLAN.md:
|
|
|
779
778
|
| 🔴 HIGH | Shell | Organize aliases | 1h | Medium |
|
|
780
779
|
| 🟡 MED | Tmux | TPM plugin system | 1.5h | Medium |
|
|
781
780
|
| 🟡 MED | Shell | Document functions | 2h | Medium |
|
|
782
|
-
| 🟡 MED |
|
|
781
|
+
| 🟡 MED | Assistant | Configure hooks | 3h | High |
|
|
783
782
|
| 🟢 LOW | All | Plugin docs | 4h | Low |
|
|
784
783
|
|
|
785
784
|
## Next Session Goals
|
|
@@ -791,7 +790,7 @@ Here's what I suggest for docs/CONFIG_PLAN.md:
|
|
|
791
790
|
|
|
792
791
|
2. **Short-term (This Month):**
|
|
793
792
|
- Set up TPM for tmux plugins
|
|
794
|
-
- Configure
|
|
793
|
+
- Configure agent hooks
|
|
795
794
|
- Document all configuration choices
|
|
796
795
|
|
|
797
796
|
3. **Long-term (This Quarter):**
|
|
@@ -967,7 +966,7 @@ Found 12 discrepancies across documentation:
|
|
|
967
966
|
To prevent this:
|
|
968
967
|
- Sync docs weekly (every Monday)
|
|
969
968
|
- Update EXECUTION.md after each PR merge
|
|
970
|
-
- Run
|
|
969
|
+
- Run workspace-planning-sync before major releases
|
|
971
970
|
|
|
972
971
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
973
972
|
📝 PROPOSED UPDATES PREVIEW
|
|
@@ -1198,7 +1197,7 @@ echo "1. Review drafts: cd /tmp/planning-sync-drafts && ls -la"
|
|
|
1198
1197
|
echo "2. Edit if needed: open /tmp/planning-sync-drafts/CONFIG_PLAN.md"
|
|
1199
1198
|
echo "3. Copy to repo: cp /tmp/planning-sync-drafts/*.md docs/"
|
|
1200
1199
|
echo ""
|
|
1201
|
-
echo "Or run:
|
|
1200
|
+
echo "Or run: workspace-planning-sync --apply-drafts"
|
|
1202
1201
|
```
|
|
1203
1202
|
|
|
1204
1203
|
### Option 2: Show Detailed Analysis
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: workspace-session-handoff
|
|
3
|
-
description: Use when ending a session and work needs to continue in a new session (
|
|
4
|
-
allowed-tools: ["bash", "read", "write", "edit"]
|
|
3
|
+
description: Use when ending a session and work needs to continue in a new session (any host). Creates a self-contained starter prompt with full context so the next session picks up seamlessly. Host-neutral — the handoff bridges sessions across hosts (shared workspace + vault).
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
# Session Handoff
|
|
8
7
|
|
|
9
8
|
Create a starter prompt file that a fresh session can use to continue work without context loss.
|
|
10
9
|
|
|
11
|
-
> **Host-neutral.** This skill works the same in
|
|
10
|
+
> **Host-neutral.** This skill works the same in any harness. The handoff file lives in the shared `$HANDOFF_VAULT/{project}/` vault (default `$HANDOFF_VAULT`=`~/.local/handoffs` — a local directory; override via the `HANDOFF_VAULT` env var to point at your own private/synced vault), so a session in any host can write it and the next session (same host or another) can resume — they share the workspace and the vault. Don't assume the next session runs in the same host as this one.
|
|
12
11
|
|
|
13
12
|
## When to Use
|
|
14
13
|
|
|
15
14
|
- End of a long session with pending tasks
|
|
16
|
-
- Before a context-compaction / session switch (
|
|
15
|
+
- Before a context-compaction / session switch (your host's context-compaction or session-restart mechanism) when work remains
|
|
17
16
|
- When context window is getting full and work remains
|
|
18
17
|
- User says "save progress", "wrap up", "continue later", "new session"
|
|
19
18
|
|
|
20
19
|
## Output
|
|
21
20
|
|
|
22
|
-
Write to: `$HANDOFF_VAULT/{project}/session-handoff-{YYYY-MM-DD}.md` (default `$HANDOFF_VAULT`=`~/.local/handoffs`)
|
|
21
|
+
Write to: `$HANDOFF_VAULT/{project}/session-handoff-{YYYY-MM-DD}.md` (default `$HANDOFF_VAULT`=`~/.local/handoffs` — the canonical vault). `$HANDOFF_VAULT` is set machine-globally in the shell profile, never per-session. Durability/backup of the vault is an out-of-band concern (mirror/sync jobs) — never a reason to write elsewhere.
|
|
22
|
+
|
|
23
|
+
`{project}` = the working directory's repo/bucket folder name (for bug-bounty hunts: the per-target hunt folder name `<platform>-<program>`). Flat, single segment — never a nested path.
|
|
23
24
|
|
|
24
25
|
If a handoff file already exists for today, append a letter suffix (e.g., `-b`, `-c`).
|
|
25
26
|
|
|
@@ -44,7 +45,7 @@ A **progress table** sits near the top of the handoff (between the header block
|
|
|
44
45
|
|
|
45
46
|
**Generate a progress table when ANY apply:**
|
|
46
47
|
|
|
47
|
-
1. **Predecessor handoff has one** — `ls
|
|
48
|
+
1. **Predecessor handoff has one** — `ls "$HANDOFF_VAULT"/{project}/session-handoff-*.md | sort -r | head -1` contains `## Progress Table`. Chain consistency > per-session re-evaluation. (Reverse-lexicographic sort, not mtime — the `YYYY-MM-DD[-letter]` naming is lexicographically ordered; mtime lies on restore/copy/sync.)
|
|
48
49
|
2. **User explicitly requested** — prompt contains "MUST include progress table" or "include the progress table".
|
|
49
50
|
3. **Work has numbered discrete units** — multi-phase plan with slices/tasks (e.g., "Slice 5.7 done, next 5.8"), or stacked PR chain where order matters.
|
|
50
51
|
4. **More than 3 PRs/issues stacked across sessions** — flat bullet list becomes unscannable.
|
|
@@ -62,7 +63,7 @@ A **progress table** sits near the top of the handoff (between the header block
|
|
|
62
63
|
1. **Find the most recent predecessor handoff** for this project:
|
|
63
64
|
|
|
64
65
|
```bash
|
|
65
|
-
ls
|
|
66
|
+
ls "$HANDOFF_VAULT"/{project}/session-handoff-*.md 2>/dev/null | sort -r | head -1
|
|
66
67
|
```
|
|
67
68
|
|
|
68
69
|
Locate its `## Progress Table` section.
|
|
@@ -106,7 +107,7 @@ Structure (the `## Progress Table` section is inserted only if Steps 2–3 produ
|
|
|
106
107
|
|
|
107
108
|
## Starter Prompt
|
|
108
109
|
|
|
109
|
-
Copy-paste this into a new session
|
|
110
|
+
Copy-paste this into a new session:
|
|
110
111
|
|
|
111
112
|
\```
|
|
112
113
|
{OPENER-ECHO — include ONLY when a progress table was generated (Steps 2–3); omit entirely otherwise. Embed the table verbatim so it travels with the prompt even if the user pastes only this block:}
|
|
@@ -170,9 +171,22 @@ pbpaste # macOS — expected: the handoff path
|
|
|
170
171
|
|
|
171
172
|
If the clipboard tool isn't available (e.g., remote SSH session without clipboard forwarding), skip silently — don't treat it as an error. The Confirm step still shows the path as text.
|
|
172
173
|
|
|
173
|
-
### Step 6: Update
|
|
174
|
+
### Step 6: Update the project chain index
|
|
175
|
+
|
|
176
|
+
Maintain `$HANDOFF_VAULT/{project}/MEMORY.md` — the ONLY hand-maintained index:
|
|
177
|
+
|
|
178
|
+
```markdown
|
|
179
|
+
# {Project} — Handoff Chain Index
|
|
180
|
+
|
|
181
|
+
|Date|Handoff|State at handoff|
|
|
182
|
+
|---|---|---|
|
|
183
|
+
|{date}|{filename}|{one-line state}|
|
|
184
|
+
|
|
185
|
+
## Standing context
|
|
186
|
+
- {spec of record / conventions / frozen facts — items that outlive any single handoff}
|
|
187
|
+
```
|
|
174
188
|
|
|
175
|
-
Add
|
|
189
|
+
Add the new row at the bottom (newest last); update stale state lines while there. The global vault-level `MEMORY.md` (if present) is GENERATED by tooling — never hand-edit it.
|
|
176
190
|
|
|
177
191
|
### Step 7: Confirm
|
|
178
192
|
|
|
@@ -196,7 +210,7 @@ The new session performs the mirror action on arrival: the starter prompt (Step
|
|
|
196
210
|
- **No secrets in the prompt** — API keys, passwords, keypairs stay out
|
|
197
211
|
- **Specific over general** — "execute Task 3 in docs/plans/foo.md" beats "continue the work"
|
|
198
212
|
- **Include gotchas** — anything surprising or non-obvious that would trip up a fresh session
|
|
199
|
-
- **Private vault only** —
|
|
213
|
+
- **Private vault only** — the vault must be a private, local, strategy-safe location. `~/.local/handoffs` is the canonical home; durability is provided by an out-of-band mirror, not by writers choosing alternate locations.
|
|
200
214
|
- **Progress table is part of the chain contract** — once a chain starts using a progress table, every handoff in the chain MUST include + update it. Skipping breaks scannability for the next session and forces a rebuild from prior handoffs.
|
|
201
215
|
- **Progress table echo is the closer, not the full handoff** — Step 7's inline table is a snapshot for the current chat. The handoff file (`.md`) is the durable artifact. Don't paraphrase or trim the table when echoing — render it verbatim.
|
|
202
216
|
- **Opener-echo mirrors the closer** — when a progress table exists, the starter prompt's FIRST instruction MUST be "render the table before doing anything." Embed the table inside the starter-prompt block (Step 4), not as a file reference, so it survives the user pasting the prompt alone. The fresh session renders it as its first action — a "where we left off" snapshot symmetric to Step 7's "where we ended" closer. No table generated → no opener-echo.
|