| name | obsidian-tracker-project-bug |
| description | Create or update a bug report in Obsidian. Use when the user invokes /project-bug. |
| version | 0.1.0 |
Converted from Claude Code command /project-bug.
Review and adapt: hooks and MCP tool IDs may need manual mapping for Codex.
Project Bug Command
Creates a bug report in the specified project.
Step 0: Check Configuration
Вызови MCP tool:
mcp__plugin_obsidian_tracker_obsidian__getConfig
Если initialized: false: выполни инициализацию как в /projects команде.
Arguments
project-name (optional) - Project to add bug to
--title - Bug title (optional, will ask if not provided)
--priority - Priority: critical|high|medium|low (default: medium)
Examples
/project-bug awac-ai-agent-plugins
/project-bug awac-ai-agent-plugins --title "Search broken" --priority high
Logic
-
Resolve project:
Если project-name не указан:
mcp__plugin_obsidian_tracker_obsidian__listProjects
Покажи нумерованный список:
| # | Project | Status |
|---|
| 1 | name | Active |
Пользователь может ввести номер или имя проекта.
-
Collect bug info via AskUserQuestion:
- Title (если не передан через --title)
- Priority: critical / high / medium / low
- Description (multi-line)
-
Create bug via MCP:
mcp__plugin_obsidian_tracker_obsidian__addBug
с параметрами:
project = project name
title = bug title
description = description
priority = priority
-
Output:
🐛 Bug created: "{title}"
📁 Path: {path}
🔴 Priority: {priority}
-
Auto-start tracking (если ещё не активен):
Если .claude/obsidian-tracking.json не существует — создай через скрипт:
plugins/obsidian-tracker/scripts/start-tracking.sh "{project}" "Bug: {title}" "Created bug: {title}"
Выведи: Tracking started for {project}
Если файл существует — прочитай его через Read, добавь в actions Created bug: {title} и перезапиши через Bash.