wangchuan 4.1.0 → 4.2.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.
@@ -1,96 +0,0 @@
1
- ---
2
- name: wangchuan
3
- description: >
4
- AI memory sync system — auto-sync configs, skills, and memories across agents and environments.
5
- TRIGGER: Activate at the END of every task session to check if any configs, memories, or skills
6
- should be synced. Also activate when user says "sync", "wangchuan", "push memories", "pull memories".
7
- ---
8
-
9
- # Wangchuan — AI Agent Config Sync System
10
-
11
- ## When to Activate
12
-
13
- This skill MUST activate in these scenarios:
14
-
15
- 1. **End of every task session** — Before concluding, check if anything valuable was learned or changed
16
- 2. **User explicitly requests** — "sync", "wangchuan sync", "push/pull memories"
17
- 3. **After modifying agent config files** — CLAUDE.md, settings.json, skills/, .claude.json
18
- 4. **After learning something reusable** — New workflow patterns, user preferences, tool configurations
19
-
20
- ## Auto-start Watch Daemon
21
-
22
- On skill activation, check if the watch daemon is running:
23
- ```bash
24
- # Check if watch daemon PID file exists and process is alive
25
- if [ -f ~/.wangchuan/watch.pid ] && kill -0 $(cat ~/.wangchuan/watch.pid) 2>/dev/null; then
26
- : # Watch daemon is running
27
- else
28
- # Start watch daemon in background for continuous sync
29
- nohup wangchuan watch > /dev/null 2>&1 &
30
- fi
31
- ```
32
- This ensures continuous sync while the agent session is active.
33
-
34
- ## Self-Evolution Protocol
35
-
36
- At the end of each task session, evaluate whether the conversation produced any of these:
37
-
38
- | Category | What to look for | Where to update |
39
- |----------|-----------------|-----------------|
40
- | **New skill learned** | Reusable workflow, automation pattern, or domain knowledge | Create/update skill in `~/.claude/skills/` |
41
- | **User preference discovered** | Coding style, tool preference, communication preference | Append to `~/.claude/CLAUDE.md` |
42
- | **Memory worth preserving** | Key decisions, project context, recurring patterns | Append to agent memory file |
43
- | **Config change made** | MCP servers added, settings changed, permissions updated | Already tracked by file sync |
44
-
45
- ### Decision Criteria — Only Update When Truly Valuable
46
-
47
- Do NOT update for:
48
- - Trivial one-off tasks (fixing a typo, answering a quick question)
49
- - Information that is project-specific and not reusable
50
- - Temporary debugging steps
51
-
52
- DO update for:
53
- - Patterns the user will likely need again across projects
54
- - Explicit user requests ("remember this", "add this to my preferences")
55
- - New tool integrations or workflow automations
56
- - Corrections to existing memory/skills (fixing outdated info)
57
-
58
- ## Commands — Just 6
59
-
60
- ```bash
61
- # The ONE daily command — smart bidirectional sync
62
- wangchuan sync
63
-
64
- # Check sync state at a glance
65
- wangchuan status
66
-
67
- # Full detail (file list, diff, history, health)
68
- wangchuan status -v
69
-
70
- # Diagnose + auto-fix everything
71
- wangchuan doctor
72
-
73
- # Filter to specific agent
74
- wangchuan sync --agent claude
75
-
76
- # Multi-environment management
77
- wangchuan env list
78
- wangchuan env create work
79
- wangchuan env switch work
80
- ```
81
-
82
- ## Current Sync Status
83
-
84
- !`wangchuan status 2>/dev/null || echo "wangchuan not initialized"`
85
-
86
- ## End-of-Session Checklist
87
-
88
- Before concluding any task:
89
-
90
- 1. **Review**: Did this session produce reusable knowledge?
91
- 2. **Evaluate**: Is it worth persisting? (Apply the decision criteria above)
92
- 3. **Update**: If yes, update the appropriate file (memory/skill/config)
93
- 4. **Sync**: Run `wangchuan sync` to propagate to all agents and cloud
94
- 5. **Report**: Briefly tell the user what was synced (if anything)
95
-
96
- If nothing valuable was produced, skip silently — do not announce "nothing to sync".