ai4pkm-helper
npx skills add https://github.com/jykim/claude-obsidian-skills --skill ai4pkm-helper
Agent 安装分布
Skill 文档
AI4PKM Helper
This skill provides guidance for configuring and managing AI4PKM orchestrator and workers. It helps users set up agents, configure multi-worker execution, and manage CLI workflows.
AI4PKM Architecture
flowchart BT
subgraph Gobi["Gobi Desktop"]
subgraph Storage["Storage"]
FS[File System]
end
subgraph Interface["Interface"]
OBS[Obsidian]
CC[Claude Code]
end
subgraph Core["Core"]
ORC[Orchestrator]
CLI[AI4PKM CLI]
end
end
Storage --> Interface --> Core
3-tier model:
- Storage: Markdown files (AI-optimal format)
- Interface: Obsidian for viewing/editing, Claude Code for AI interaction
- Core: Orchestrator for automation, CLI for quick commands
- GUI: Gobi Desktop wraps all above with visual interface
When to Use This Skill
Claude should automatically load this skill when:
- User wants to add, modify, or remove agents/nodes in orchestrator.yaml
- User wants to configure multi-worker execution (comparing AI models)
- User wants to update orchestrator defaults (executor, timeout, max_parallel)
- User wants to add or modify pollers (limitless, apple_photos, apple_notes)
- User asks about CLI commands for orchestrator management
- User needs help with orchestrator.yaml structure
Quick Commands
"ì커 ì¤ì " / "Worker config" â Worker Configuration Guide
"ìì´ì í¸ ì¶ê°" / "Add agent" â Add New Agent Node
"í´ë¬ ì¤ì " / "Poller config" â Poller Configuration
"ì¤ì 보기" â Show Current Config (ai4pkm --show-config)
"ìì´ì í¸ ëª©ë¡" â List Agents (ai4pkm --list-agents)
"Orchestrator ì¤ì " â Orchestrator Setup Module
"íì¤í¬ ì¶ê°" â Task Management Module
Core Modules
Module 1: Orchestrator Setup (ìí¬íë¡ì° ìëí)
Purpose: Configure orchestrator.yaml for event-driven automation
Key Concepts:
- Node: Event-driven agent that triggers on file changes or schedules
- Executor: AI engine to run (claude_code, codex_cli, gemini_cli)
- Poller: External data sync (limitless, apple_photos, apple_notes)
- Worker: Execution unit within a node (supports multi-worker for model comparison)
Setup Process:
- Explain orchestrator purpose and benefits
- Show orchestrator.yaml structure (nodes, pollers, defaults)
- Configure first agent (e.g., EIC – Enrich Ingested Content)
- Test agent execution with file trigger
Prompt: AI4PKM - Orchestrator Setup.md
Example Configuration (current format):
version: "1.0"
orchestrator:
prompts_dir: _Settings_/Prompts
tasks_dir: _Settings_/Tasks
logs_dir: _Settings_/Logs
skills_dir: _Settings_/Skills
max_concurrent: 3
poll_interval: 1
defaults:
executor: claude_code
timeout_minutes: 30
max_parallel: 3
task_create: true
nodes:
- type: agent
name: Enrich Ingested Content (EIC)
input_path: Ingest/Clippings
output_path: AI/Articles
executor: claude_code
- type: agent
name: Daily Driver Workflow (DDW)
cron: "15,45 * * * *"
output_path: Journal
completion_status: IGNORE
agent_params:
calendars:
- Default
- Work
past_hours: 24
future_days: 3
goals_file: _Settings_/Goals & Principles.md
roundup_lookback_days: 7
pollers:
limitless:
enabled: true
target_dir: "Ingest/Limitless"
poll_interval: 300
Node Configuration Fields Reference
| íë | íì | ì¤ëª | ìì |
|---|---|---|---|
type |
â | ë ¸ë íì | agent |
name |
â | Agent ì´ë¦ | Enrich Ingested Content (EIC) |
prompt |
í롬íí¸ íì¼ ì°¸ì¡° (ABBR) | EIC |
|
input_path |
ì ë ¥ ëë í 리 (íì¼ í¸ë¦¬ê±°) | Ingest/Clippings |
|
output_path |
ì¶ë ¥ ëë í 리 | AI/Articles |
|
executor |
ì¤í ìì§ | claude_code, codex_cli, gemini_cli |
|
cron |
ì¤ì¼ì¤ ì¤í (cron ííì) | "15,45 * * * *" |
|
enabled |
íì±í ì¬ë¶ | true / false |
|
timeout_minutes |
íììì | 30 |
|
completion_status |
ìë£ í ìí | DONE, IGNORE |
|
agent_params |
Agent-specific íë¼ë¯¸í° | (object) | |
workers |
Multi-Worker ì¤ì | (list) |
Node Types
| Type | Trigger | Example |
|---|---|---|
| File-triggered | New/updated file in input_path | EIC, GDR |
| Cron-scheduled | Time-based (cron expression) | DDW |
Worker Configuration Fields
Multi-worker ì¤ì ì ê° workerì ì¬ì© ê°ë¥í íë:
| íë | ì¤ëª | ìì |
|---|---|---|
executor |
ì¤í ìì§ | claude_code, gemini_cli |
label |
Worker ìë³ ë¼ë²¨ | Claude, Gemini |
output_path |
Workerë³ ì¶ë ¥ ê²½ë¡ | AI/Summary/Claude |
agent_params |
Workerë³ íë¼ë¯¸í° | (object) |
Multi-Worker ì¤ì ìì (ì¬ë¬ AI ëª¨ë¸ ë¹êµ/íê°):
- type: agent
name: Article Summary Comparison
prompt: EIC
input_path: Ingest/Articles
workers:
- executor: gemini_cli
label: Gemini
output_path: AI/Summary/Gemini
- executor: claude_code
label: Claude
output_path: AI/Summary/Claude
- executor: codex_cli
label: Codex
output_path: AI/Summary/Codex
Poller Configuration
Pollers sync external data sources to your vault.
| Poller | ì¤ëª | 주ì ì¤ì |
|---|---|---|
limitless |
Limitless ë¼ì´íë¡ê·¸ ë기í | target_dir, poll_interval |
apple_photos |
Apple Photos ë기í | target_dir, albums |
apple_notes |
Apple Notes ë기í | target_dir, folders |
Poller ì¤ì ìì:
pollers:
limitless:
enabled: true
target_dir: "Ingest/Limitless"
poll_interval: 300
apple_photos:
enabled: false
target_dir: "Ingest/Photos"
albums:
- "Screenshots"
- "PKM"
apple_notes:
enabled: false
target_dir: "Ingest/Notes"
folders:
- "Quick Notes"
CLI Quick Reference
| Command | ì¤ëª |
|---|---|
ai4pkm --show-config |
íì¬ ì¤ì 보기 |
ai4pkm --list-agents |
ìì´ì í¸ ëª©ë¡ |
ai4pkm --run <agent> |
í¹ì ìì´ì í¸ ì¤í |
ai4pkm --enable <agent> |
ìì´ì í¸ íì±í |
ai4pkm --disable <agent> |
ìì´ì í¸ ë¹íì±í |
ai4pkm --status |
ì¤í ìí íì¸ |
ai4pkm --logs |
ë¡ê·¸ íì¸ |
Common Configuration Tasks
Add New Agent
- Open
orchestrator.yaml - Add new node under
nodes::
- type: agent
name: Your New Agent (ABBR)
input_path: Ingest/YourFolder
output_path: AI/YourOutput
executor: claude_code
- Create corresponding prompt in
_Settings_/Prompts/
Enable/Disable Agent
- type: agent
name: Some Agent
enabled: false # Add this line to disable
Set Up Multi-Worker Comparison
- Replace single
executorwithworkerslist - Define output_path per worker to separate results
- Use consistent labels for tracking
Module 2: Task Management (íì¤í¬ ê´ë¦¬)
Purpose: Add, update, and track tasks in AI4PKM system
Operations:
- Add Task: Create new task with description, category, priority
- Update Status: Mark tasks as in_progress, completed, or blocked
- View Tasks: List tasks by status, category, or date
Prompt: AI4PKM - Add Task.md
Task Categories:
- ð Research
- ð Design
- ð ï¸ Implement
- âï¸ Write
- ð Docs & System
Voice Mode Configuration
Language Support
- Support both English and Korean
- Use
tts_model="gpt-4o-mini-tts"for natural pronunciation - Continue conversation naturally
Listening Behavior
- Patient listening: Wait for user to finish (use
min_listen_duration=8) - Adaptive waiting: Don’t interrupt incomplete thoughts
- Use
vad_aggressiveness=0for permissive voice detection
Progress Updates
- For long operations (10+ seconds), provide voice updates
- “ì§ê¸ ì¤ì íì¸ ì¤ì´ìì…” / “ìì´ì í¸ ì¶ê°íë ì¤ì ë뤅”
- Keep user informed throughout process
Example Interactions
Adding an Agent
User: ìì´ì í¸ ì¶ê°í´ì¤
Agent: ì´ë¤ ìì´ì í¸ë¥¼ ì¶ê°í ê¹ì?
- íì¼ ê¸°ë° (input_path íì)
- ì¤ì¼ì¤ ê¸°ë° (cron íì)
User: íì¼ ê¸°ë°, Ingest/Articles í´ë ê°ìí´ì AI/Summariesì ìì½ ì ì¥
Agent: ë¤ì ì¤ì ì¼ë¡ ì¶ê°í ê²ì:
- name: Article Summarizer
- input_path: Ingest/Articles
- output_path: AI/Summaries
- executor: claude_code
í롬íí¸ë ì´ë¤ 걸 ì¬ì©í ê¹ì?
Configuring Multi-Worker
User: ì¬ë¬ 모ë¸ë¡ ë¹êµíê³ ì¶ì´
Agent: Multi-worker ì¤ì ì ëìë릴ê²ì.
ì´ë¤ 모ë¸ë¤ì ë¹êµí ê¹ì?
- claude_code (Claude)
- gemini_cli (Gemini)
- codex_cli (Codex)
User: Claudeë Gemini
Agent: ê° ëª¨ë¸ ê²°ê³¼ë¥¼ ì´ëì ì ì¥í ê¹ì?
ì: AI/Compare/Claude, AI/Compare/Gemini
Implementation Notes
Prompt Chaining
Each prompt is independent but connected:
- Input: Previous step’s output (optional)
- Process: Execute current step
- Output: Results for next step
Semi-Automatic Execution
- Each step requires user confirmation
- Keywords: “ì룔, “ë¤ì”, “ê³ì” â proceed
- Keywords: “ì¤ë¨”, “ëì¤ì” â pause
- User can resume from any step
Error Handling
- Clear error messages in Korean
- Suggest fixes or alternatives
- Allow retry or skip (when safe)
- Never leave user stuck
Files Structure
_Settings_/Skills/ai4pkm-helper/
âââ SKILL.md # This file
âââ modules/ # (Future: detailed module guides)
âââ orchestrator.md
âââ tasks.md
_Settings_/Prompts/
âââ AI4PKM - Orchestrator Setup.md
âââ AI4PKM - Add Task.md
âââ ...
orchestrator.yaml # Main config file (vault root)
References
Documentation
- Orchestrator config reference:
orchestrator.yaml - CLI documentation:
ai4pkm --help
Design Documents
[[AI/Analysis/2025-12-10 AI4PKM Onboarding Agent Design - Claude Code]]
Troubleshooting
Common Issues
“ìì´ì í¸ê° ì¤í ì ë¼ì”
â ai4pkm --statusë¡ ìí íì¸ í, ë¡ê·¸ íì¸: ai4pkm --logs
“í´ë¬ê° ëì ì í´ì”
â pollers: ì¹ì
ìì enabled: true íì¸, poll_interval ê° íì¸
“Multi-worker ê²°ê³¼ê° ìì¬ì”
â ê° workerì ë¤ë¥¸ output_path ì§ì íëì§ íì¸
“cronì´ í¸ë¦¬ê±° ì ë¼ì”
â cron ííì ë¬¸ë² íì¸, ai4pkm --statusë¡ ë¤ì ì¤í ìê° íì¸
“ì¤ì ë³ê²½ì´ ë°ì ì ë¼ì”
â orchestrator ì¬ìì íì: ai4pkm --restart
Future Enhancements
Planned (v2.1+)
- GUI-based config editor (Gobi Desktop)
- Agent template library
- Performance monitoring dashboard
- Webhook triggers support
- Remote execution support
Notes
- Config validation: Always validate YAML syntax before saving
- Backup: Keep backup of working orchestrator.yaml
- Testing: Test new agents with small input sets first
- Logging: Check logs for troubleshooting execution issues