From my-workflow
Initializes my-workflow plugin: creates SQLite database and JSON config interactively or with --defaults/--reset flags, verifies Obsidian vault and GitHub CLI.
npx claudepluginhub mwguerra/claude-code-plugins# Workflow Init Command Initialize the my-workflow plugin for first-time setup. ## Usage ## Setup Steps ### 1. Create Directory Structure ### 2. Initialize Database Read the schema file and create the SQLite database: ### 3. Create Configuration File If interactive, use AskUserQuestion to gather: 1. **GitHub Integration** - GitHub username - Track all repos or specific list? - Track issues? PRs? Reviews? 2. **Briefing Preferences** - Show briefing on session start? - Include GitHub items? - Include commitments? Decisions? Goals? 3. **Logging Preferences** ...
/initInitializes Secretary plugin: creates SQLite databases, config, vault structure, encryption key; checks dependencies like sqlite3/jq; optionally migrates from my-workflow.
/setupOrchestrates interactive Obsidian vault setup wizard: performs app preflight check and optional install, then delegates vault interview to socratic subagent.
/initInitializes Obsidian vault by creating ~/.claude/obsidian-vault.json config file and standard folder structure for projects, technologies, claude-code components, notes, and auto-captures. Supports --check and --vault <path> flags.
/init-projectConfigures repo for Obsidian PKM by linking to vault project folder, optionally scaffolding index, and adding PKM directives to CLAUDE.md.
/setupConfigures task-management plugin: sets tasks root path, folder structure, link format (obsidian/markdown), research integration; creates config.yaml and missing folders.
/obsidian-integrationInteractively configures Obsidian vault path for project notes, persists settings in .claude/project-config, and creates session notes via default (sessions-history), custom, or skip modes.
Share bugs, ideas, or general feedback.
Initialize the my-workflow plugin for first-time setup.
/workflow:init # Interactive setup
/workflow:init --defaults # Use default configuration
/workflow:init --reset # Reset database (caution!)
mkdir -p ~/.claude/my-workflow
Read the schema file and create the SQLite database:
SCHEMA_FILE="${CLAUDE_PLUGIN_ROOT}/schemas/schema.sql"
DB_PATH="$HOME/.claude/my-workflow/workflow.db"
if [[ ! -f "$DB_PATH" ]]; then
sqlite3 "$DB_PATH" < "$SCHEMA_FILE"
echo "Database created at $DB_PATH"
fi
If interactive, use AskUserQuestion to gather:
GitHub Integration
Briefing Preferences
Logging Preferences
Vault Integration
Location: ~/.claude/my-workflow.json
{
"github": {
"username": "mwguerra",
"trackRepos": ["*"],
"excludeRepos": [],
"trackIssues": true,
"trackPRs": true,
"trackReviews": true,
"cacheMinutes": 15
},
"briefing": {
"showOnStart": true,
"includeGitHub": true,
"includePendingCommitments": true,
"includeRecentDecisions": true,
"includeGoalProgress": true,
"includePatterns": false,
"daysBack": 7
},
"logging": {
"captureCommits": true,
"captureDecisions": true,
"captureCommitments": true,
"captureToolCalls": false
},
"vault": {
"enabled": true,
"syncOnSessionEnd": true,
"workflowFolder": "workflow"
},
"patterns": {
"enabled": true,
"minConfidence": 0.6,
"minEvidence": 3
}
}
Check if obsidian-vault plugin is configured:
VAULT_CONFIG="$HOME/.claude/obsidian-vault.json"
if [[ -f "$VAULT_CONFIG" ]]; then
VAULT_PATH=$(jq -r '.vaultPath' "$VAULT_CONFIG")
if [[ -d "$VAULT_PATH" ]]; then
# Create workflow folders in vault
mkdir -p "$VAULT_PATH/workflow"/{sessions,decisions,commitments,reviews,goals,patterns}
echo "Vault integration ready at $VAULT_PATH/workflow/"
fi
fi
if command -v gh &>/dev/null; then
if gh auth status &>/dev/null; then
echo "GitHub CLI authenticated and ready"
else
echo "GitHub CLI found but not authenticated. Run: gh auth login"
fi
else
echo "GitHub CLI not found. Install with: brew install gh"
fi
# My Workflow Setup
## Database
Database created at: ~/.claude/my-workflow/workflow.db
## Configuration
### GitHub Integration
- **Username:** mwguerra
- **Track Repos:** All (*)
- **Track Issues:** Yes
- **Track PRs:** Yes
- **Track Reviews:** Yes
### Session Briefings
- **Show on Start:** Yes
- **Include GitHub:** Yes
- **Include Commitments:** Yes
- **Include Decisions:** Yes
- **Include Goals:** Yes
### Activity Logging
- **Capture Commits:** Yes
- **Extract Decisions:** Yes
- **Extract Commitments:** Yes
### Vault Integration
- **Enabled:** Yes
- **Vault Path:** ~/guerra_vault
- **Workflow Folder:** workflow/
## Vault Folders Created
- ~/guerra_vault/workflow/sessions/
- ~/guerra_vault/workflow/decisions/
- ~/guerra_vault/workflow/commitments/
- ~/guerra_vault/workflow/reviews/
- ~/guerra_vault/workflow/goals/
- ~/guerra_vault/workflow/patterns/
## Dependencies
| Dependency | Status |
|------------|--------|
| SQLite | Ready |
| jq | Ready |
| GitHub CLI | Authenticated |
| Obsidian Vault | Configured |
---
Setup complete! Use `/workflow:briefing` to see your first briefing.
# My Workflow Quick Setup
Using default configuration...
- Database: ~/.claude/my-workflow/workflow.db
- Config: ~/.claude/my-workflow.json
- Vault sync: Enabled (if obsidian-vault configured)
- GitHub: Will use authenticated user
Run `/workflow:init` again for custom configuration.
With --reset:
if [[ -f "$DB_PATH" ]]; then
BACKUP="$DB_PATH.backup.$(date +%Y%m%d%H%M%S)"
cp "$DB_PATH" "$BACKUP"
rm "$DB_PATH"
sqlite3 "$DB_PATH" < "$SCHEMA_FILE"
echo "Database reset. Backup at: $BACKUP"
fi