Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true

[*.go]
indent_style = tab

[*.py]
indent_size = 4

[Makefile]
indent_style = tab

[*.md]
trim_trailing_whitespace = false
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,22 @@ __pycache__/
/Archived/
/.claude/
/obsidian/
NS_0327
/projects/production/gwx/
/projects/production/claude_code_telegram_bot/
.zshrc-wrap
scripts/login-agents.sh
.session-wrap-trigger.json

# Nested project metadata / local agent state
.git/
.agents/
.claude/
.codex/
.coverage
.venv/
.pytest_cache/

# Database & cache files
*.rdb
dump.db
Expand Down
15 changes: 8 additions & 7 deletions .zshrc-workspace
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# YD 2026 Workspace Shortcuts
# Source this from ~/.zshrc with: source ~/YD\ 2026/.zshrc-workspace

export WORKSPACE_ROOT="$HOME/YD 2026"
export WORKSPACE_ROOT="${YD_WORKSPACE:-/Users/dex/YD 2026}"

# 載入 session-wrap aliases(agent tools, viz, wrap)
[ -f "$WORKSPACE_ROOT/.zshrc-wrap" ] && source "$WORKSPACE_ROOT/.zshrc-wrap"

# 快速進入項目
alias p1="cd '$WORKSPACE_ROOT/projects/production/gwx'"
Expand All @@ -10,9 +13,7 @@ alias p3="cd '$WORKSPACE_ROOT/projects/experimental/NS_0327'"
alias pw="cd '$WORKSPACE_ROOT'"
alias pj="cd '$WORKSPACE_ROOT/projects'"

# 知識庫
alias kb="code '$WORKSPACE_ROOT/obsidian'"
alias mem="cat '$HOME/.claude/projects/-Users-dex-YD-2026/memory/MEMORY.md'"
# 知識庫 (kb, mem 由 .zshrc-wrap 統一定義)

yd-info() {
sed -n '1,220p' "$WORKSPACE_ROOT/PROJECTS_INFO.md"
Expand Down Expand Up @@ -44,9 +45,9 @@ yd-status() {
}

# Skill 飛輪部署
alias skill-deploy="bash '$WORKSPACE_ROOT/scripts/skill-deploy.sh'"
alias skill-list="bash '$WORKSPACE_ROOT/scripts/skill-deploy.sh' --list"
alias skill-status="bash '$WORKSPACE_ROOT/scripts/skill-deploy.sh' --status"
alias skill-deploy="bash '$WORKSPACE_ROOT/scripts/deploy/skill-deploy.sh'"
alias skill-list="bash '$WORKSPACE_ROOT/scripts/deploy/skill-deploy.sh' --list"
alias skill-status="bash '$WORKSPACE_ROOT/scripts/deploy/skill-deploy.sh' --status"

# 新專案快速建立
skill-new() {
Expand Down
31 changes: 15 additions & 16 deletions .zshrc-wrap
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# YD 2026 — Session Wrap & Auto-sync Aliases
# Source this in ~/.zshrc: source ~/YD\ 2026/.zshrc-wrap

export YD_WORKSPACE="/Users/dex/YD 2026"
export YD_MEMORY="/Users/dex/.claude/projects/-Users-dex-YD-2026/memory"
export YD_OBSIDIAN="$YD_WORKSPACE/obsidian"
export YD_WORKSPACE="${YD_WORKSPACE:-/Users/dex/YD 2026}"
export YD_MEMORY="${YD_MEMORY:-/Users/dex/.claude/projects/-Users-dex-YD-2026/memory}"
export YD_OBSIDIAN="${YD_OBSIDIAN:-$YD_WORKSPACE/obsidian}"

# Session Wrap — Save context at session end
function wrap() {
Expand All @@ -25,19 +25,19 @@ alias sync-kb='bash "$YD_WORKSPACE/scripts/obsidian-sync.sh"'
alias sync-all='wrap && sync-kb'

# Agent tools (v3.4.0)
alias agent-context='bash "$YD_WORKSPACE/scripts/agent-context.sh"'
alias agent-share='bash "$YD_WORKSPACE/scripts/agent-share.sh"'
alias agent-decision='bash "$YD_WORKSPACE/scripts/agent-decision.sh"'
alias agent-checkpoint='bash "$YD_WORKSPACE/scripts/agent-checkpoint.sh"'
alias agent-knowledge='bash "$YD_WORKSPACE/scripts/agent-knowledge.sh"'
alias agent-optimize='bash "$YD_WORKSPACE/scripts/agent-optimize.sh"'
alias agent-tasks='bash "$YD_WORKSPACE/scripts/agent-tasks.sh"'
alias agent-context='bash "$YD_WORKSPACE/scripts/agent/agent-context.sh"'
alias agent-share='bash "$YD_WORKSPACE/scripts/agent/agent-share.sh"'
alias agent-decision='bash "$YD_WORKSPACE/scripts/agent/agent-decision.sh"'
alias agent-checkpoint='bash "$YD_WORKSPACE/scripts/agent/agent-checkpoint.sh"'
alias agent-knowledge='bash "$YD_WORKSPACE/scripts/agent/agent-knowledge.sh"'
alias agent-optimize='bash "$YD_WORKSPACE/scripts/agent/agent-optimize.sh"'
alias agent-tasks='bash "$YD_WORKSPACE/scripts/agent/agent-tasks.sh"'

# Visualization tools (v3.4.0)
alias visualize-tasks='bash "$YD_WORKSPACE/scripts/visualize-tasks.sh"'
alias analyze-decisions='bash "$YD_WORKSPACE/scripts/analyze-decisions.sh"'
alias memory-report='bash "$YD_WORKSPACE/scripts/memory-report.sh"'
alias timeline='bash "$YD_WORKSPACE/scripts/timeline.sh"'
alias visualize-tasks='bash "$YD_WORKSPACE/scripts/viz/visualize-tasks.sh"'
alias analyze-decisions='bash "$YD_WORKSPACE/scripts/viz/analyze-decisions.sh"'
alias memory-report='bash "$YD_WORKSPACE/scripts/viz/memory-report.sh"'
alias timeline='bash "$YD_WORKSPACE/scripts/viz/timeline.sh"'

# Memory shortcuts
alias mem='cat "$YD_MEMORY/MEMORY.md" | head -50'
Expand All @@ -47,9 +47,8 @@ alias mem-edit='code "$YD_MEMORY"'
# Status checks
alias yd-km-status='echo "KB: $(find "$YD_OBSIDIAN" -name "*.md" | wc -l) files" && echo "Memory: $(ls -1 "$YD_MEMORY"/*.md 2>/dev/null | wc -l) files"'

# Quick nav
# Quick nav (pw 由 .zshrc-workspace 定義)
alias kb='code "$YD_OBSIDIAN"'
alias pw='cd "$YD_WORKSPACE" && pwd'

# Session workflow
function yd-start-session() {
Expand Down
3 changes: 1 addition & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,4 @@ YD 2026/
```

## 注意
- `dexapi`、`test-ydapi`、`watermark-0324` 不再是主項目入口。
- README 中 session-wrap 產品文檔統一放在 `docs/`。
- session-wrap 產品文檔已歸檔至 `docs/archive/session-wrap/`。
Loading