From 1de1479bfa7510229c0b3f8b6a68954502c03a0f Mon Sep 17 00:00:00 2001 From: Adnan Zahir Date: Thu, 27 Aug 2026 13:08:07 +0700 Subject: [PATCH] Add Taiga auto-sync Codex plugin --- marketplace.json | 12 ++++++++++++ .../taiga-auto-sync/.codex-plugin/plugin.json | 18 ++++++++++++++++++ .../hooks/claude-codex-hooks.json | 12 ++++++++++++ .../taiga-auto-sync/hooks/taiga-reminder.sh | 4 ++++ 4 files changed, 46 insertions(+) create mode 100644 marketplace.json create mode 100644 plugins/taiga-auto-sync/.codex-plugin/plugin.json create mode 100644 plugins/taiga-auto-sync/hooks/claude-codex-hooks.json create mode 100755 plugins/taiga-auto-sync/hooks/taiga-reminder.sh diff --git a/marketplace.json b/marketplace.json new file mode 100644 index 0000000..634de75 --- /dev/null +++ b/marketplace.json @@ -0,0 +1,12 @@ +{ + "name": "infra-plugins", + "interface": { "displayName": "Infra Plugins" }, + "plugins": [ + { + "name": "taiga-auto-sync", + "source": { "source": "local", "path": "./plugins/taiga-auto-sync" }, + "policy": { "installation": "AVAILABLE", "authentication": "ON_INSTALL" }, + "category": "Productivity" + } + ] +} diff --git a/plugins/taiga-auto-sync/.codex-plugin/plugin.json b/plugins/taiga-auto-sync/.codex-plugin/plugin.json new file mode 100644 index 0000000..c049c08 --- /dev/null +++ b/plugins/taiga-auto-sync/.codex-plugin/plugin.json @@ -0,0 +1,18 @@ +{ + "name": "taiga-auto-sync", + "version": "0.1.0", + "description": "Injects Taiga tracking rules on every Codex prompt.", + "author": { + "name": "Local developer" + }, + "hooks": "./hooks/claude-codex-hooks.json", + "interface": { + "displayName": "Taiga Auto Sync", + "shortDescription": "Automatic Taiga tracking reminder.", + "longDescription": "Injects the IT Infra & Ops Taiga contract before each prompt.", + "developerName": "Local developer", + "category": "Productivity", + "capabilities": ["Lifecycle hooks"], + "defaultPrompt": "Help me use Taiga Auto Sync." + } +} diff --git a/plugins/taiga-auto-sync/hooks/claude-codex-hooks.json b/plugins/taiga-auto-sync/hooks/claude-codex-hooks.json new file mode 100644 index 0000000..c8d4003 --- /dev/null +++ b/plugins/taiga-auto-sync/hooks/claude-codex-hooks.json @@ -0,0 +1,12 @@ +{ + "hooks": { + "UserPromptSubmit": [{ + "hooks": [{ + "type": "command", + "command": "sh \"${CLAUDE_PLUGIN_ROOT}/hooks/taiga-reminder.sh\"", + "timeout": 3, + "statusMessage": "Checking Taiga tracking..." + }] + }] + } +} diff --git a/plugins/taiga-auto-sync/hooks/taiga-reminder.sh b/plugins/taiga-auto-sync/hooks/taiga-reminder.sh new file mode 100755 index 0000000..37afac2 --- /dev/null +++ b/plugins/taiga-auto-sync/hooks/taiga-reminder.sh @@ -0,0 +1,4 @@ +#!/bin/sh +cat <<'EOF' +TAIGA AUTO-SYNC: For material IT Infra & Ops work, create or update the matching Taiga item now through the scoped launcher. Do not track read-only/no-op work. A new User Story must use the Wiki description template; preserve its state file for progress, blocked, and verified done updates. +EOF