specweave 0.23.16 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +93 -38
- package/CLAUDE.md +159 -11
- package/dist/plugins/specweave-github/lib/github-spec-content-sync.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/github-spec-content-sync.js +57 -0
- package/dist/plugins/specweave-github/lib/github-spec-content-sync.js.map +1 -1
- package/dist/src/cli/commands/sync-spec-content.js +3 -0
- package/dist/src/cli/commands/sync-spec-content.js.map +1 -1
- package/dist/src/cli/helpers/ado-area-path-mapper.d.ts +89 -0
- package/dist/src/cli/helpers/ado-area-path-mapper.d.ts.map +1 -0
- package/dist/src/cli/helpers/ado-area-path-mapper.js +213 -0
- package/dist/src/cli/helpers/ado-area-path-mapper.js.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/ado-auto-discover.d.ts +29 -0
- package/dist/src/cli/helpers/issue-tracker/ado-auto-discover.d.ts.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/ado-auto-discover.js +109 -0
- package/dist/src/cli/helpers/issue-tracker/ado-auto-discover.js.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/ado.d.ts +1 -0
- package/dist/src/cli/helpers/issue-tracker/ado.d.ts.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/ado.js +2 -0
- package/dist/src/cli/helpers/issue-tracker/ado.js.map +1 -1
- package/dist/src/cli/helpers/smart-filter.d.ts +83 -0
- package/dist/src/cli/helpers/smart-filter.d.ts.map +1 -0
- package/dist/src/cli/helpers/smart-filter.js +265 -0
- package/dist/src/cli/helpers/smart-filter.js.map +1 -0
- package/dist/src/core/progress/progress-tracker.d.ts +4 -1
- package/dist/src/core/progress/progress-tracker.d.ts.map +1 -1
- package/dist/src/core/progress/progress-tracker.js +33 -4
- package/dist/src/core/progress/progress-tracker.js.map +1 -1
- package/dist/src/core/qa/quality-gate-decider.d.ts +1 -1
- package/dist/src/core/qa/quality-gate-decider.js +2 -2
- package/dist/src/core/qa/quality-gate-decider.js.map +1 -1
- package/dist/src/core/qa/risk-calculator.d.ts +2 -2
- package/dist/src/core/qa/risk-calculator.js +2 -2
- package/dist/src/core/spec-content-sync.d.ts +1 -1
- package/dist/src/core/spec-content-sync.d.ts.map +1 -1
- package/dist/src/core/validators/ac-presence-validator.d.ts +56 -0
- package/dist/src/core/validators/ac-presence-validator.d.ts.map +1 -0
- package/dist/src/core/validators/ac-presence-validator.js +149 -0
- package/dist/src/core/validators/ac-presence-validator.js.map +1 -0
- package/dist/src/integrations/ado/ado-dependency-loader.d.ts +1 -1
- package/dist/src/integrations/ado/ado-dependency-loader.d.ts.map +1 -1
- package/dist/src/integrations/ado/ado-dependency-loader.js +39 -7
- package/dist/src/integrations/ado/ado-dependency-loader.js.map +1 -1
- package/dist/src/integrations/ado/area-path-mapper.d.ts +137 -0
- package/dist/src/integrations/ado/area-path-mapper.d.ts.map +1 -0
- package/dist/src/integrations/ado/area-path-mapper.js +267 -0
- package/dist/src/integrations/ado/area-path-mapper.js.map +1 -0
- package/dist/src/integrations/jira/filter-processor.d.ts +126 -0
- package/dist/src/integrations/jira/filter-processor.d.ts.map +1 -0
- package/dist/src/integrations/jira/filter-processor.js +207 -0
- package/dist/src/integrations/jira/filter-processor.js.map +1 -0
- package/dist/src/integrations/jira/jira-client.d.ts +13 -0
- package/dist/src/integrations/jira/jira-client.d.ts.map +1 -1
- package/dist/src/integrations/jira/jira-client.js +33 -0
- package/dist/src/integrations/jira/jira-client.js.map +1 -1
- package/dist/src/utils/ac-embedder.d.ts +63 -0
- package/dist/src/utils/ac-embedder.d.ts.map +1 -0
- package/dist/src/utils/ac-embedder.js +217 -0
- package/dist/src/utils/ac-embedder.js.map +1 -0
- package/dist/src/utils/env-manager.d.ts +86 -0
- package/dist/src/utils/env-manager.d.ts.map +1 -0
- package/dist/src/utils/env-manager.js +188 -0
- package/dist/src/utils/env-manager.js.map +1 -0
- package/package.json +1 -1
- package/plugins/specweave/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave/agents/AGENTS-INDEX.md +1 -1
- package/plugins/specweave/agents/increment-quality-judge-v2/AGENT.md +9 -9
- package/plugins/specweave/commands/specweave-do.md +37 -0
- package/plugins/specweave/commands/specweave-done.md +159 -0
- package/plugins/specweave/commands/specweave-embed-acs.md +446 -0
- package/plugins/specweave/commands/specweave-next.md +148 -3
- package/plugins/specweave/commands/specweave-qa.md +2 -2
- package/plugins/specweave/hooks/lib/migrate-increment-work.sh +1 -1
- package/plugins/specweave/hooks/lib/migrate-increment-work.sh.bak +245 -0
- package/plugins/specweave/hooks/lib/sync-spec-content.sh +2 -2
- package/plugins/specweave/hooks/lib/sync-spec-content.sh.bak +149 -0
- package/plugins/specweave/hooks/lib/update-status-line.sh +34 -4
- package/plugins/specweave/hooks/lib/validate-spec-status.sh +1 -1
- package/plugins/specweave/hooks/lib/validate-spec-status.sh.bak +163 -0
- package/plugins/specweave/hooks/post-first-increment.sh +1 -1
- package/plugins/specweave/hooks/post-first-increment.sh.bak +61 -0
- package/plugins/specweave/hooks/post-spec-update.sh +1 -1
- package/plugins/specweave/hooks/post-spec-update.sh.bak +158 -0
- package/plugins/specweave/hooks/post-user-story-complete.sh +1 -1
- package/plugins/specweave/hooks/post-user-story-complete.sh.bak +179 -0
- package/plugins/specweave/hooks/pre-command-deduplication.sh +1 -1
- package/plugins/specweave/hooks/pre-command-deduplication.sh.bak +83 -0
- package/plugins/specweave/hooks/pre-increment-start.sh +168 -0
- package/plugins/specweave/hooks/user-prompt-submit.sh +1 -1
- package/plugins/specweave/hooks/user-prompt-submit.sh.bak +386 -0
- package/plugins/specweave/skills/SKILLS-INDEX.md +1 -1
- package/plugins/specweave/skills/specweave-framework/SKILL.md +1 -1
- package/plugins/specweave-ado/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-ado/agents/ado-manager/AGENT.md +23 -0
- package/plugins/specweave-ado/agents/ado-multi-project-mapper/AGENT.md +23 -0
- package/plugins/specweave-ado/agents/ado-sync-judge/AGENT.md +23 -0
- package/plugins/specweave-ado/commands/specweave-ado-import-projects.md +331 -0
- package/plugins/specweave-alternatives/.claude-plugin/plugin.json +10 -0
- package/plugins/specweave-alternatives/commands/alternatives-analyze.md +336 -0
- package/plugins/specweave-alternatives/skills/architecture-alternatives/SKILL.md +651 -0
- package/plugins/specweave-alternatives/skills/bmad-method/SKILL.md +420 -0
- package/plugins/specweave-alternatives/skills/spec-kit-expert/SKILL.md +487 -0
- package/plugins/specweave-backend/agents/database-optimizer/AGENT.md +23 -0
- package/plugins/specweave-backend/commands/api-scaffold.md +80 -0
- package/plugins/specweave-backend/commands/crud-generate.md +109 -0
- package/plugins/specweave-backend/commands/migration-generate.md +139 -0
- package/plugins/specweave-confluent/agents/confluent-architect/AGENT.md +23 -0
- package/plugins/specweave-confluent/commands/connector-deploy.md +154 -0
- package/plugins/specweave-confluent/commands/ksqldb-query.md +179 -0
- package/plugins/specweave-confluent/commands/schema-register.md +123 -0
- package/plugins/specweave-core/.claude-plugin/plugin.json +21 -0
- package/plugins/specweave-core/commands/architecture-review.md +288 -0
- package/plugins/specweave-core/commands/code-review.md +213 -0
- package/plugins/specweave-core/commands/refactor-plan.md +249 -0
- package/plugins/specweave-core/skills/code-quality/SKILL.md +157 -0
- package/plugins/specweave-core/skills/design-patterns/SKILL.md +244 -0
- package/plugins/specweave-core/skills/software-architecture/SKILL.md +83 -0
- package/plugins/specweave-cost-optimizer/.claude-plugin/plugin.json +22 -0
- package/plugins/specweave-cost-optimizer/commands/cost-analyze.md +360 -0
- package/plugins/specweave-cost-optimizer/commands/cost-optimize.md +480 -0
- package/plugins/specweave-cost-optimizer/skills/aws-cost-expert/SKILL.md +416 -0
- package/plugins/specweave-cost-optimizer/skills/cloud-pricing/SKILL.md +325 -0
- package/plugins/specweave-cost-optimizer/skills/cost-optimization/SKILL.md +337 -0
- package/plugins/specweave-diagrams/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-diagrams/agents/diagrams-architect/AGENT.md +23 -0
- package/plugins/specweave-diagrams/commands/diagrams-generate.md +168 -0
- package/plugins/specweave-docs/.claude-plugin/plugin.json +10 -0
- package/plugins/specweave-docs/commands/docs-generate.md +441 -0
- package/plugins/specweave-docs/commands/docs-init.md +334 -0
- package/plugins/specweave-docs/skills/docusaurus/SKILL.md +581 -0
- package/plugins/specweave-docs/skills/spec-driven-brainstorming/SKILL.md +689 -0
- package/plugins/specweave-docs/skills/technical-writing/SKILL.md +1039 -0
- package/plugins/specweave-docs-preview/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-figma/.claude-plugin/plugin.json +23 -0
- package/plugins/specweave-figma/commands/figma-import.md +690 -0
- package/plugins/specweave-figma/commands/figma-to-react.md +834 -0
- package/plugins/specweave-figma/commands/figma-tokens.md +815 -0
- package/plugins/specweave-frontend/.claude-plugin/plugin.json +21 -0
- package/plugins/specweave-frontend/agents/frontend-architect/AGENT.md +387 -0
- package/plugins/specweave-frontend/agents/frontend-architect/README.md +385 -0
- package/plugins/specweave-frontend/agents/frontend-architect/examples.md +590 -0
- package/plugins/specweave-frontend/agents/frontend-architect/templates/component-template.tsx +152 -0
- package/plugins/specweave-frontend/agents/frontend-architect/templates/hook-template.ts +311 -0
- package/plugins/specweave-frontend/agents/frontend-architect/templates/page-template.tsx +228 -0
- package/plugins/specweave-frontend/commands/component-generate.md +510 -0
- package/plugins/specweave-frontend/commands/design-system-init.md +494 -0
- package/plugins/specweave-frontend/commands/frontend-scaffold.md +207 -0
- package/plugins/specweave-frontend/commands/nextjs-setup.md +396 -0
- package/plugins/specweave-frontend/skills/design-system-architect/SKILL.md +278 -0
- package/plugins/specweave-frontend/skills/frontend/SKILL.md +420 -0
- package/plugins/specweave-frontend/skills/nextjs/SKILL.md +546 -0
- package/plugins/specweave-github/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-github/agents/github-manager/AGENT.md +23 -0
- package/plugins/specweave-github/agents/github-task-splitter/AGENT.md +25 -0
- package/plugins/specweave-github/agents/user-story-updater/AGENT.md +25 -0
- package/plugins/specweave-github/hooks/.specweave/logs/hooks-debug.log +194 -0
- package/plugins/specweave-github/lib/github-spec-content-sync.js +49 -0
- package/plugins/specweave-github/lib/github-spec-content-sync.ts +67 -0
- package/plugins/specweave-infrastructure/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-infrastructure/agents/devops/AGENT.md +26 -0
- package/plugins/specweave-infrastructure/agents/network-engineer/AGENT.md +26 -0
- package/plugins/specweave-infrastructure/agents/observability-engineer/AGENT.md +26 -0
- package/plugins/specweave-infrastructure/agents/performance-engineer/AGENT.md +26 -0
- package/plugins/specweave-infrastructure/agents/sre/AGENT.md +26 -0
- package/plugins/specweave-jira/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-jira/agents/jira-manager/AGENT.md +26 -0
- package/plugins/specweave-jira/commands/import-projects.js +183 -0
- package/plugins/specweave-jira/commands/import-projects.md +97 -0
- package/plugins/specweave-jira/commands/import-projects.ts +288 -0
- package/plugins/specweave-jira/commands/specweave-jira-import-projects.md +298 -0
- package/plugins/specweave-kafka/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-kafka/agents/kafka-architect/AGENT.md +26 -0
- package/plugins/specweave-kafka/agents/kafka-devops/AGENT.md +26 -0
- package/plugins/specweave-kafka/agents/kafka-observability/AGENT.md +26 -0
- package/plugins/specweave-kafka-streams/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-kubernetes/agents/kubernetes-architect/AGENT.md +26 -0
- package/plugins/specweave-kubernetes/commands/cluster-setup.md +262 -0
- package/plugins/specweave-kubernetes/commands/deployment-generate.md +242 -0
- package/plugins/specweave-kubernetes/commands/helm-scaffold.md +333 -0
- package/plugins/specweave-ml/.claude-plugin/plugin.json +3 -3
- package/plugins/specweave-ml/agents/data-scientist/AGENT.md +26 -0
- package/plugins/specweave-ml/agents/ml-engineer/AGENT.md +26 -0
- package/plugins/specweave-ml/agents/mlops-engineer/AGENT.md +26 -0
- package/plugins/specweave-mobile/agents/mobile-architect/AGENT.md +26 -0
- package/plugins/specweave-mobile/commands/app-scaffold.md +233 -0
- package/plugins/specweave-mobile/commands/build-config.md +256 -0
- package/plugins/specweave-mobile/commands/screen-generate.md +289 -0
- package/plugins/specweave-n8n/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-payments/agents/payment-integration/AGENT.md +26 -0
- package/plugins/specweave-plugin-dev/.claude-plugin/plugin.json +20 -0
- package/plugins/specweave-plugin-dev/commands/plugin-create.md +333 -0
- package/plugins/specweave-plugin-dev/commands/plugin-publish.md +339 -0
- package/plugins/specweave-plugin-dev/commands/plugin-test.md +293 -0
- package/plugins/specweave-plugin-dev/skills/claude-sdk/SKILL.md +162 -0
- package/plugins/specweave-plugin-dev/skills/marketplace-publishing/SKILL.md +263 -0
- package/plugins/specweave-plugin-dev/skills/plugin-development/SKILL.md +316 -0
- package/plugins/specweave-release/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-release/agents/release-manager/AGENT.md +27 -0
- package/plugins/specweave-release/commands/specweave-release-npm.md +110 -0
- package/plugins/specweave-release/hooks/.specweave/logs/dora-tracking.log +168 -0
- package/plugins/specweave-testing/.claude-plugin/plugin.json +21 -0
- package/plugins/specweave-testing/agents/qa-engineer/AGENT.md +797 -0
- package/plugins/specweave-testing/agents/qa-engineer/README.md +443 -0
- package/plugins/specweave-testing/agents/qa-engineer/templates/playwright-e2e-test.ts +470 -0
- package/plugins/specweave-testing/agents/qa-engineer/templates/test-data-factory.ts +507 -0
- package/plugins/specweave-testing/agents/qa-engineer/templates/vitest-unit-test.ts +400 -0
- package/plugins/specweave-testing/agents/qa-engineer/test-strategies.md +726 -0
- package/plugins/specweave-testing/commands/e2e-setup.md +1081 -0
- package/plugins/specweave-testing/commands/test-coverage.md +979 -0
- package/plugins/specweave-testing/commands/test-generate.md +1156 -0
- package/plugins/specweave-testing/commands/test-init.md +409 -0
- package/plugins/specweave-testing/skills/e2e-playwright/SKILL.md +769 -0
- package/plugins/specweave-testing/skills/tdd-expert/SKILL.md +934 -0
- package/plugins/specweave-testing/skills/unit-testing-expert/SKILL.md +1011 -0
- package/plugins/specweave-tooling/.claude-plugin/plugin.json +22 -0
- package/plugins/specweave-tooling/commands/specweave-tooling-skill-create.md +691 -0
- package/plugins/specweave-tooling/commands/specweave-tooling-skill-package.md +751 -0
- package/plugins/specweave-tooling/commands/specweave-tooling-skill-validate.md +858 -0
- package/plugins/specweave-ui/.claude-plugin/plugin.json +10 -0
- package/plugins/specweave-ui/commands/ui-automate.md +199 -0
- package/plugins/specweave-ui/commands/ui-inspect.md +70 -0
- package/plugins/specweave-ui/skills/browser-automation/SKILL.md +314 -0
- package/plugins/specweave-ui/skills/ui-testing/SKILL.md +716 -0
- package/plugins/specweave-ui/skills/visual-regression/SKILL.md +728 -0
- package/plugins/specweave/commands/check-hooks.md +0 -257
- package/plugins/specweave/commands/specweave-archive-increments.md +0 -82
- package/plugins/specweave/skills/plugin-expert/SKILL.md +0 -340
- /package/plugins/specweave/{agents/code-reviewer.md → skills/code-reviewer/SKILL.md} +0 -0
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# SpecWeave UserPromptSubmit Hook
|
|
4
|
+
# Fires BEFORE user's command executes (prompt-based hook)
|
|
5
|
+
# Purpose: Discipline validation, context injection, command suggestions
|
|
6
|
+
|
|
7
|
+
set -euo pipefail
|
|
8
|
+
|
|
9
|
+
# Read input JSON from stdin
|
|
10
|
+
INPUT=$(cat)
|
|
11
|
+
|
|
12
|
+
# Extract prompt from JSON
|
|
13
|
+
PROMPT=$(echo "$INPUT" | node -e "
|
|
14
|
+
const input = JSON.parse(require('fs').readFileSync(0, 'utf-8'));
|
|
15
|
+
console.log(input.prompt || '');
|
|
16
|
+
")
|
|
17
|
+
|
|
18
|
+
# ==============================================================================
|
|
19
|
+
# DISCIPLINE VALIDATION: Block /specweave:increment if incomplete increments exist
|
|
20
|
+
# ==============================================================================
|
|
21
|
+
|
|
22
|
+
if echo "$PROMPT" | grep -q "/specweave:increment"; then
|
|
23
|
+
# Check increment discipline using check-discipline CLI command
|
|
24
|
+
# This enforces WIP limits (max 1 active, hard cap 2)
|
|
25
|
+
SPECWEAVE_DIR=".specweave"
|
|
26
|
+
|
|
27
|
+
if [[ -d "$SPECWEAVE_DIR/increments" ]]; then
|
|
28
|
+
# Run discipline check (exit code: 0=pass, 1=violations, 2=error)
|
|
29
|
+
if command -v node >/dev/null 2>&1 && [[ -f "dist/src/core/increment/metadata-manager.js" ]]; then
|
|
30
|
+
# Check active increments using MetadataManager
|
|
31
|
+
ACTIVE_COUNT=$(node -e "
|
|
32
|
+
try {
|
|
33
|
+
const { MetadataManager } = require('./dist/src/core/increment/metadata-manager.js');
|
|
34
|
+
const active = MetadataManager.getActive();
|
|
35
|
+
console.log(active.length);
|
|
36
|
+
} catch (e) {
|
|
37
|
+
console.error('Error checking active increments:', e.message);
|
|
38
|
+
process.exit(2);
|
|
39
|
+
}
|
|
40
|
+
" 2>/dev/null || echo "0")
|
|
41
|
+
|
|
42
|
+
# Hard cap: never >2 active
|
|
43
|
+
if [[ "$ACTIVE_COUNT" -ge 2 ]]; then
|
|
44
|
+
# Get list of active increments for error message
|
|
45
|
+
ACTIVE_LIST=$(node -e "
|
|
46
|
+
try {
|
|
47
|
+
const { MetadataManager } = require('./dist/src/core/increment/metadata-manager.js');
|
|
48
|
+
const active = MetadataManager.getActive();
|
|
49
|
+
active.forEach(inc => console.log(' - ' + inc.id + ' [' + inc.type + ']'));
|
|
50
|
+
} catch (e) {}
|
|
51
|
+
" 2>/dev/null || echo "")
|
|
52
|
+
|
|
53
|
+
cat <<EOF
|
|
54
|
+
{
|
|
55
|
+
"decision": "block",
|
|
56
|
+
"reason": "❌ HARD CAP REACHED\n\nYou have $ACTIVE_COUNT active increments (absolute maximum: 2)\n\nActive increments:\n$ACTIVE_LIST\n\n💡 You MUST complete or pause existing work first:\n\n1️⃣ Complete an increment:\n /specweave:done <id>\n\n2️⃣ Pause an increment:\n /specweave:pause <id> --reason=\"...\"\n\n3️⃣ Check status:\n /specweave:status\n\n📝 Multiple hotfixes? Combine them into ONE increment!\n Example: 0009-security-fixes (SQL + XSS + CSRF)\n\n⛔ This limit is enforced for your productivity.\nResearch: 3+ concurrent tasks = 40% slower + more bugs"
|
|
57
|
+
}
|
|
58
|
+
EOF
|
|
59
|
+
exit 0
|
|
60
|
+
fi
|
|
61
|
+
|
|
62
|
+
# Soft warning: 1 active (recommended limit)
|
|
63
|
+
if [[ "$ACTIVE_COUNT" -ge 1 ]]; then
|
|
64
|
+
# Get list of active increments for warning
|
|
65
|
+
ACTIVE_LIST=$(node -e "
|
|
66
|
+
try {
|
|
67
|
+
const { MetadataManager } = require('./dist/src/core/increment/metadata-manager.js');
|
|
68
|
+
const active = MetadataManager.getActive();
|
|
69
|
+
active.forEach(inc => console.log(' - ' + inc.id + ' [' + inc.type + ']'));
|
|
70
|
+
} catch (e) {}
|
|
71
|
+
" 2>/dev/null || echo "")
|
|
72
|
+
|
|
73
|
+
# Just warn, don't block (user can choose to continue)
|
|
74
|
+
cat <<EOF
|
|
75
|
+
{
|
|
76
|
+
"decision": "approve",
|
|
77
|
+
"systemMessage": "⚠️ WIP LIMIT REACHED\n\nYou have $ACTIVE_COUNT active increment (recommended limit: 1)\n\nActive increments:\n$ACTIVE_LIST\n\n🧠 Focus Principle: ONE active increment = maximum productivity\nStarting a 2nd increment reduces focus and velocity.\n\n💡 Consider:\n 1️⃣ Complete current work (recommended)\n 2️⃣ Pause current work (/specweave:pause)\n 3️⃣ Continue anyway (accept 20% productivity cost)\n\n⚠️ Emergency hotfix/bug? Use --type=hotfix or --type=bug to bypass this warning."
|
|
78
|
+
}
|
|
79
|
+
EOF
|
|
80
|
+
exit 0
|
|
81
|
+
fi
|
|
82
|
+
else
|
|
83
|
+
# Fallback: check for active/planning status manually
|
|
84
|
+
INCOMPLETE_INCREMENTS=$(find "$SPECWEAVE_DIR/increments" -mindepth 1 -maxdepth 1 -type d | while read increment_dir; do
|
|
85
|
+
metadata="$increment_dir/metadata.json"
|
|
86
|
+
if [[ -f "$metadata" ]]; then
|
|
87
|
+
status=$(node -e "
|
|
88
|
+
try {
|
|
89
|
+
const data = JSON.parse(require('fs').readFileSync('$metadata', 'utf-8'));
|
|
90
|
+
console.log(data.status || 'unknown');
|
|
91
|
+
} catch (e) {
|
|
92
|
+
console.log('unknown');
|
|
93
|
+
}
|
|
94
|
+
")
|
|
95
|
+
|
|
96
|
+
if [[ "$status" == "active" || "$status" == "planning" ]]; then
|
|
97
|
+
echo "$(basename "$increment_dir")"
|
|
98
|
+
fi
|
|
99
|
+
fi
|
|
100
|
+
done)
|
|
101
|
+
|
|
102
|
+
if [[ -n "$INCOMPLETE_INCREMENTS" ]]; then
|
|
103
|
+
COUNT=$(echo "$INCOMPLETE_INCREMENTS" | wc -l | xargs)
|
|
104
|
+
|
|
105
|
+
# Get incomplete task count for migration guidance
|
|
106
|
+
MIGRATION_SCRIPT="$(dirname "${BASH_SOURCE[0]}")/lib/migrate-increment-work.sh"
|
|
107
|
+
INCOMPLETE_TASKS=""
|
|
108
|
+
|
|
109
|
+
for increment in $INCOMPLETE_INCREMENTS; do
|
|
110
|
+
if [[ -x "$MIGRATION_SCRIPT" ]]; then
|
|
111
|
+
TASK_COUNT=$("$MIGRATION_SCRIPT" count-incomplete "$increment" 2>/dev/null || echo "?")
|
|
112
|
+
INCOMPLETE_TASKS="${INCOMPLETE_TASKS}\n - $increment ($TASK_COUNT incomplete tasks)"
|
|
113
|
+
else
|
|
114
|
+
INCOMPLETE_TASKS="${INCOMPLETE_TASKS}\n - $increment"
|
|
115
|
+
fi
|
|
116
|
+
done
|
|
117
|
+
|
|
118
|
+
cat <<EOF
|
|
119
|
+
{
|
|
120
|
+
"decision": "block",
|
|
121
|
+
"reason": "❌ Cannot create new increment! You have $COUNT incomplete increment(s):$INCOMPLETE_TASKS\n\n💡 **SMART MIGRATION OPTIONS:**\n\n1️⃣ **Transfer Work** (Recommended)\n Move incomplete tasks to new increment:\n \`\`\`bash\n # After creating new increment, run:\n bash plugins/specweave/hooks/lib/migrate-increment-work.sh transfer <old-id> <new-id>\n \`\`\`\n ✅ Clean closure + work continues\n\n2️⃣ **Adjust WIP Limit** (Emergency Only)\n Temporarily allow 3 active increments:\n \`\`\`bash\n bash plugins/specweave/hooks/lib/migrate-increment-work.sh adjust-wip 3\n \`\`\`\n ⚠️ 20% productivity cost, revert ASAP\n\n3️⃣ **Force-Close** (Quick Fix)\n Mark increment as complete (work lost):\n \`\`\`bash\n bash plugins/specweave/hooks/lib/migrate-increment-work.sh force-close <increment-id>\n \`\`\`\n ⚠️ Incomplete work NOT transferred!\n\n📝 **Traditional Options:**\n - /specweave:done <id> # Complete properly\n - /specweave:pause <id> # Pause for later\n - /specweave:abandon <id> # Abandon if obsolete\n\nℹ️ The discipline exists for a reason:\n ✓ Prevents scope creep\n ✓ Ensures completions are tracked\n ✓ Maintains living docs accuracy\n ✓ Keeps work focused"
|
|
122
|
+
}
|
|
123
|
+
EOF
|
|
124
|
+
exit 0
|
|
125
|
+
fi
|
|
126
|
+
fi
|
|
127
|
+
fi
|
|
128
|
+
fi
|
|
129
|
+
|
|
130
|
+
# ==============================================================================
|
|
131
|
+
# PRE-FLIGHT SYNC CHECK: Ensure living docs are fresh before operations
|
|
132
|
+
# ==============================================================================
|
|
133
|
+
|
|
134
|
+
# Detect increment operations that need fresh data
|
|
135
|
+
if echo "$PROMPT" | grep -qE "/(specweave:)?(done|validate|progress|do)"; then
|
|
136
|
+
# Extract increment ID from prompt (if provided)
|
|
137
|
+
INCREMENT_ID=$(echo "$PROMPT" | grep -oE "[0-9]{4}[a-z0-9-]*" | head -1)
|
|
138
|
+
|
|
139
|
+
# If no ID in prompt, try to find active increment
|
|
140
|
+
if [[ -z "$INCREMENT_ID" ]] && [[ -d ".specweave/increments" ]]; then
|
|
141
|
+
INCREMENT_ID=$(find .specweave/increments -mindepth 1 -maxdepth 1 -type d | while read increment_dir; do
|
|
142
|
+
metadata="$increment_dir/metadata.json"
|
|
143
|
+
if [[ -f "$metadata" ]]; then
|
|
144
|
+
status=$(node -e "
|
|
145
|
+
try {
|
|
146
|
+
const data = JSON.parse(require('fs').readFileSync('$metadata', 'utf-8'));
|
|
147
|
+
if (data.status === 'active') {
|
|
148
|
+
console.log('$(basename "$increment_dir")');
|
|
149
|
+
}
|
|
150
|
+
} catch (e) {}
|
|
151
|
+
" 2>/dev/null)
|
|
152
|
+
|
|
153
|
+
if [[ -n "$status" ]]; then
|
|
154
|
+
echo "$status"
|
|
155
|
+
break
|
|
156
|
+
fi
|
|
157
|
+
fi
|
|
158
|
+
done)
|
|
159
|
+
fi
|
|
160
|
+
|
|
161
|
+
# If we have an increment ID, check freshness
|
|
162
|
+
if [[ -n "$INCREMENT_ID" ]]; then
|
|
163
|
+
INCREMENT_SPEC=".specweave/increments/$INCREMENT_ID/spec.md"
|
|
164
|
+
LIVING_DOCS_SPEC=".specweave/docs/internal/specs/spec-$INCREMENT_ID.md"
|
|
165
|
+
|
|
166
|
+
# Check if increment spec exists
|
|
167
|
+
if [[ -f "$INCREMENT_SPEC" ]]; then
|
|
168
|
+
# Get modification times
|
|
169
|
+
if [[ "$(uname)" == "Darwin" ]]; then
|
|
170
|
+
# macOS
|
|
171
|
+
INCREMENT_MTIME=$(stat -f %m "$INCREMENT_SPEC" 2>/dev/null || echo 0)
|
|
172
|
+
LIVING_DOCS_MTIME=$(stat -f %m "$LIVING_DOCS_SPEC" 2>/dev/null || echo 0)
|
|
173
|
+
else
|
|
174
|
+
# Linux
|
|
175
|
+
INCREMENT_MTIME=$(stat -c %Y "$INCREMENT_SPEC" 2>/dev/null || echo 0)
|
|
176
|
+
LIVING_DOCS_MTIME=$(stat -c %Y "$LIVING_DOCS_SPEC" 2>/dev/null || echo 0)
|
|
177
|
+
fi
|
|
178
|
+
|
|
179
|
+
# Check if increment is newer than living docs (or living docs doesn't exist)
|
|
180
|
+
if [[ "$INCREMENT_MTIME" -gt "$LIVING_DOCS_MTIME" ]]; then
|
|
181
|
+
# Sync needed - run sync-living-docs
|
|
182
|
+
PLUGIN_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
183
|
+
SYNC_SCRIPT="$PLUGIN_ROOT/lib/hooks/sync-living-docs.js"
|
|
184
|
+
|
|
185
|
+
if [[ -f "$SYNC_SCRIPT" ]]; then
|
|
186
|
+
# Run sync (capture output but don't block on errors)
|
|
187
|
+
if node "$SYNC_SCRIPT" "$INCREMENT_ID" >/dev/null 2>&1; then
|
|
188
|
+
# Success - sync completed
|
|
189
|
+
:
|
|
190
|
+
else
|
|
191
|
+
# Sync failed - log but continue
|
|
192
|
+
echo "[WARNING] Pre-flight sync failed for $INCREMENT_ID" >&2
|
|
193
|
+
fi
|
|
194
|
+
fi
|
|
195
|
+
fi
|
|
196
|
+
fi
|
|
197
|
+
fi
|
|
198
|
+
fi
|
|
199
|
+
|
|
200
|
+
# ==============================================================================
|
|
201
|
+
# SPEC SYNC CHECK: Detect spec.md changes and warn about sync needed
|
|
202
|
+
# ==============================================================================
|
|
203
|
+
|
|
204
|
+
# Check if spec.md was modified after plan.md (requires sync)
|
|
205
|
+
if [[ -d ".specweave/increments" ]]; then
|
|
206
|
+
# Find active increment
|
|
207
|
+
ACTIVE_INCREMENT_FOR_SYNC=$(find .specweave/increments -mindepth 1 -maxdepth 1 -type d | while read increment_dir; do
|
|
208
|
+
metadata="$increment_dir/metadata.json"
|
|
209
|
+
if [[ -f "$metadata" ]]; then
|
|
210
|
+
status=$(node -e "
|
|
211
|
+
try {
|
|
212
|
+
const data = JSON.parse(require('fs').readFileSync('$metadata', 'utf-8'));
|
|
213
|
+
if (data.status === 'active') {
|
|
214
|
+
console.log('$(basename "$increment_dir")');
|
|
215
|
+
}
|
|
216
|
+
} catch (e) {}
|
|
217
|
+
" 2>/dev/null)
|
|
218
|
+
|
|
219
|
+
if [[ -n "$status" ]]; then
|
|
220
|
+
echo "$status"
|
|
221
|
+
break
|
|
222
|
+
fi
|
|
223
|
+
fi
|
|
224
|
+
done)
|
|
225
|
+
|
|
226
|
+
if [[ -n "$ACTIVE_INCREMENT_FOR_SYNC" ]]; then
|
|
227
|
+
# Check if SpecSyncManager detects changes
|
|
228
|
+
if command -v node >/dev/null 2>&1 && [[ -f "dist/src/core/increment/spec-sync-manager.js" ]]; then
|
|
229
|
+
SYNC_CHECK=$(node -e "
|
|
230
|
+
try {
|
|
231
|
+
const { SpecSyncManager } = require('./dist/src/core/increment/spec-sync-manager.js');
|
|
232
|
+
const manager = new SpecSyncManager(process.cwd());
|
|
233
|
+
const detection = manager.detectSpecChange('$ACTIVE_INCREMENT_FOR_SYNC');
|
|
234
|
+
|
|
235
|
+
if (detection.specChanged) {
|
|
236
|
+
const message = manager.formatSyncMessage(detection);
|
|
237
|
+
console.log(JSON.stringify({ needsSync: true, message }));
|
|
238
|
+
} else {
|
|
239
|
+
console.log(JSON.stringify({ needsSync: false }));
|
|
240
|
+
}
|
|
241
|
+
} catch (e) {
|
|
242
|
+
console.log(JSON.stringify({ needsSync: false, error: e.message }));
|
|
243
|
+
}
|
|
244
|
+
" 2>/dev/null || echo '{"needsSync":false}')
|
|
245
|
+
|
|
246
|
+
NEEDS_SYNC=$(echo "$SYNC_CHECK" | node -e "
|
|
247
|
+
try {
|
|
248
|
+
const data = JSON.parse(require('fs').readFileSync(0, 'utf-8'));
|
|
249
|
+
console.log(data.needsSync || false);
|
|
250
|
+
} catch (e) {
|
|
251
|
+
console.log(false);
|
|
252
|
+
}
|
|
253
|
+
")
|
|
254
|
+
|
|
255
|
+
if [[ "$NEEDS_SYNC" == "true" ]]; then
|
|
256
|
+
SYNC_MESSAGE=$(echo "$SYNC_CHECK" | node -e "
|
|
257
|
+
try {
|
|
258
|
+
const data = JSON.parse(require('fs').readFileSync(0, 'utf-8'));
|
|
259
|
+
console.log(data.message || '');
|
|
260
|
+
} catch (e) {
|
|
261
|
+
console.log('');
|
|
262
|
+
}
|
|
263
|
+
")
|
|
264
|
+
|
|
265
|
+
# Show sync warning (don't block, just warn)
|
|
266
|
+
cat <<EOF
|
|
267
|
+
{
|
|
268
|
+
"decision": "approve",
|
|
269
|
+
"systemMessage": "$SYNC_MESSAGE"
|
|
270
|
+
}
|
|
271
|
+
EOF
|
|
272
|
+
exit 0
|
|
273
|
+
fi
|
|
274
|
+
fi
|
|
275
|
+
fi
|
|
276
|
+
fi
|
|
277
|
+
|
|
278
|
+
# ==============================================================================
|
|
279
|
+
# CONTEXT INJECTION: Add current increment status
|
|
280
|
+
# ==============================================================================
|
|
281
|
+
|
|
282
|
+
CONTEXT=""
|
|
283
|
+
|
|
284
|
+
# Find active increment
|
|
285
|
+
if [[ -d ".specweave/increments" ]]; then
|
|
286
|
+
ACTIVE_INCREMENT=$(find .specweave/increments -mindepth 1 -maxdepth 1 -type d | while read increment_dir; do
|
|
287
|
+
metadata="$increment_dir/metadata.json"
|
|
288
|
+
if [[ -f "$metadata" ]]; then
|
|
289
|
+
status=$(node -e "
|
|
290
|
+
try {
|
|
291
|
+
const data = JSON.parse(require('fs').readFileSync('$metadata', 'utf-8'));
|
|
292
|
+
if (data.status === 'active') {
|
|
293
|
+
console.log('$(basename "$increment_dir")');
|
|
294
|
+
}
|
|
295
|
+
} catch (e) {}
|
|
296
|
+
")
|
|
297
|
+
|
|
298
|
+
if [[ -n "$status" ]]; then
|
|
299
|
+
echo "$status"
|
|
300
|
+
break
|
|
301
|
+
fi
|
|
302
|
+
fi
|
|
303
|
+
done)
|
|
304
|
+
|
|
305
|
+
if [[ -n "$ACTIVE_INCREMENT" ]]; then
|
|
306
|
+
# Simple status: parse tasks.md for completion
|
|
307
|
+
TASKS_FILE=".specweave/increments/$ACTIVE_INCREMENT/tasks.md"
|
|
308
|
+
if [[ -f "$TASKS_FILE" ]]; then
|
|
309
|
+
# Count tasks (headers with T-NNN format - both ### and ####)
|
|
310
|
+
TOTAL_TASKS=$(grep -cE '^#{3,4}\s*T-[0-9]' "$TASKS_FILE" 2>/dev/null | tr -d '\n' || echo "0")
|
|
311
|
+
# Count completed (various formats)
|
|
312
|
+
COMPLETED_TASKS=$(grep -cE '(✅ COMPLETE|\[COMPLETED\]|\[x\] Completed)' "$TASKS_FILE" 2>/dev/null | tr -d '\n' || echo "0")
|
|
313
|
+
|
|
314
|
+
# Ensure valid numbers
|
|
315
|
+
TOTAL_TASKS=${TOTAL_TASKS:-0}
|
|
316
|
+
COMPLETED_TASKS=${COMPLETED_TASKS:-0}
|
|
317
|
+
|
|
318
|
+
if [[ "$TOTAL_TASKS" -gt 0 ]] 2>/dev/null; then
|
|
319
|
+
PERCENTAGE=$(( COMPLETED_TASKS * 100 / TOTAL_TASKS ))
|
|
320
|
+
CONTEXT="✓ Active: $ACTIVE_INCREMENT ($COMPLETED_TASKS/$TOTAL_TASKS tasks, $PERCENTAGE%)"
|
|
321
|
+
else
|
|
322
|
+
CONTEXT="✓ Active: $ACTIVE_INCREMENT"
|
|
323
|
+
fi
|
|
324
|
+
else
|
|
325
|
+
CONTEXT="✓ Active: $ACTIVE_INCREMENT"
|
|
326
|
+
fi
|
|
327
|
+
fi
|
|
328
|
+
fi
|
|
329
|
+
|
|
330
|
+
# ==============================================================================
|
|
331
|
+
# COMMAND SUGGESTIONS: Guide users to structured workflow
|
|
332
|
+
# ==============================================================================
|
|
333
|
+
|
|
334
|
+
if echo "$PROMPT" | grep -qiE "(add|create|implement|build|develop)" && ! echo "$PROMPT" | grep -q "/specweave:"; then
|
|
335
|
+
if [[ -n "$CONTEXT" ]]; then
|
|
336
|
+
CONTEXT="$CONTEXT
|
|
337
|
+
|
|
338
|
+
💡 TIP: Consider using SpecWeave commands for structured development:
|
|
339
|
+
- /specweave:increment \"feature name\" # Plan new increment
|
|
340
|
+
- /specweave:do # Execute current tasks
|
|
341
|
+
- /specweave:progress # Check progress"
|
|
342
|
+
fi
|
|
343
|
+
fi
|
|
344
|
+
|
|
345
|
+
# ==============================================================================
|
|
346
|
+
# STATUS LINE REFRESH: Ensure cache is fresh before showing context
|
|
347
|
+
# ==============================================================================
|
|
348
|
+
# Performance: ~50-100ms (acceptable for UX)
|
|
349
|
+
# Frequency: Every user prompt (high coverage)
|
|
350
|
+
# Benefit: Catches ALL edge cases (manual edits, resume, direct changes)
|
|
351
|
+
#
|
|
352
|
+
# Why here? This hook runs on EVERY user prompt, ensuring status line
|
|
353
|
+
# is ALWAYS up-to-date before showing context to the user.
|
|
354
|
+
#
|
|
355
|
+
# Prevents desync scenarios:
|
|
356
|
+
# - Manual spec.md edits (status: planning → active)
|
|
357
|
+
# - /specweave:resume (status: paused → active)
|
|
358
|
+
# - Direct metadata changes (without hook triggers)
|
|
359
|
+
# - File system operations bypassing hooks
|
|
360
|
+
#
|
|
361
|
+
# Background execution: Runs async, doesn't block user prompt
|
|
362
|
+
|
|
363
|
+
HOOK_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
364
|
+
bash "$HOOK_DIR/lib/update-status-line.sh" 2>/dev/null || true
|
|
365
|
+
|
|
366
|
+
# ==============================================================================
|
|
367
|
+
# OUTPUT: Approve with context or no context
|
|
368
|
+
# ==============================================================================
|
|
369
|
+
|
|
370
|
+
if [[ -n "$CONTEXT" ]]; then
|
|
371
|
+
cat <<EOF
|
|
372
|
+
{
|
|
373
|
+
"decision": "approve",
|
|
374
|
+
"systemMessage": "$CONTEXT"
|
|
375
|
+
}
|
|
376
|
+
EOF
|
|
377
|
+
else
|
|
378
|
+
# Just approve, no extra context
|
|
379
|
+
cat <<EOF
|
|
380
|
+
{
|
|
381
|
+
"decision": "approve"
|
|
382
|
+
}
|
|
383
|
+
EOF
|
|
384
|
+
fi
|
|
385
|
+
|
|
386
|
+
exit 0
|
|
@@ -113,7 +113,7 @@ Step 4: Execute → Follow the increment planning workflow
|
|
|
113
113
|
|
|
114
114
|
#### increment-quality-judge-v2
|
|
115
115
|
|
|
116
|
-
**Description**: Enhanced AI-powered quality assessment with RISK SCORING (
|
|
116
|
+
**Description**: Enhanced AI-powered quality assessment with RISK SCORING (Probability × Impact method) and quality gate decisions. Evaluates specifications, plans, and tests for clarity, testability, completeness, feasibility, maintainability, edge cases, and RISKS. Provides PASS/CONCERNS/FAIL decisions. Activates for validate quality, quality check, assess spec, evaluate increment, spec review, quality score, risk assessment, qa check, quality gate, /specweave:qa command.
|
|
117
117
|
|
|
118
118
|
**Activates for**: validate quality, quality check, assess spec, evaluate increment, spec review, quality score, risk assessment, qa check, quality gate
|
|
119
119
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: specweave-framework
|
|
3
|
-
description: Expert knowledge of SpecWeave framework structure, rules, conventions, and increment lifecycle. Deep understanding of source-of-truth discipline, increment naming,
|
|
3
|
+
description: Expert knowledge of SpecWeave framework structure, rules, conventions, and increment lifecycle. Deep understanding of source-of-truth discipline, increment naming, living docs sync. Covers SpecWeave-specific hooks (post-task-completion), and increment discipline. Activates for specweave rules, increment lifecycle, source of truth, increment naming, tasks.md format, spec.md structure, living docs sync, specweave hooks, where do files go, how to use specweave, specweave best practices, specweave conventions.
|
|
4
4
|
allowed-tools: Read, Grep, Glob
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -12,6 +12,29 @@ context: |
|
|
|
12
12
|
- Optimize sync performance and rate limiting
|
|
13
13
|
---
|
|
14
14
|
|
|
15
|
+
## 🚀 How to Invoke This Agent
|
|
16
|
+
|
|
17
|
+
**Subagent Type**: `specweave-ado:ado-manager:ado-manager`
|
|
18
|
+
|
|
19
|
+
**Usage Example**:
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
Task({
|
|
23
|
+
subagent_type: "specweave-ado:ado-manager:ado-manager",
|
|
24
|
+
prompt: "Your task description here",
|
|
25
|
+
model: "haiku" // optional: haiku, sonnet, opus
|
|
26
|
+
});
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**Naming Convention**: `{plugin}:{directory}:{yaml-name}`
|
|
30
|
+
- **Plugin**: specweave-ado
|
|
31
|
+
- **Directory**: ado-manager
|
|
32
|
+
- **YAML Name**: ado-manager
|
|
33
|
+
|
|
34
|
+
**When to Use**:
|
|
35
|
+
- [TODO: Describe specific use cases for this agent]
|
|
36
|
+
- [TODO: When should this agent be invoked instead of others?]
|
|
37
|
+
- [TODO: What problems does this agent solve?]
|
|
15
38
|
# ADO Manager Agent
|
|
16
39
|
|
|
17
40
|
**Role**: Azure DevOps Integration Specialist
|
|
@@ -5,6 +5,29 @@ tools: Read, Write, Edit, Bash, Glob
|
|
|
5
5
|
model: claude-sonnet-4-5-20250929
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## 🚀 How to Invoke This Agent
|
|
9
|
+
|
|
10
|
+
**Subagent Type**: `specweave-ado:ado-multi-project-mapper:ado-multi-project-mapper`
|
|
11
|
+
|
|
12
|
+
**Usage Example**:
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
Task({
|
|
16
|
+
subagent_type: "specweave-ado:ado-multi-project-mapper:ado-multi-project-mapper",
|
|
17
|
+
prompt: "Your task description here",
|
|
18
|
+
model: "haiku" // optional: haiku, sonnet, opus
|
|
19
|
+
});
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
**Naming Convention**: `{plugin}:{directory}:{yaml-name}`
|
|
23
|
+
- **Plugin**: specweave-ado
|
|
24
|
+
- **Directory**: ado-multi-project-mapper
|
|
25
|
+
- **YAML Name**: ado-multi-project-mapper
|
|
26
|
+
|
|
27
|
+
**When to Use**:
|
|
28
|
+
- [TODO: Describe specific use cases for this agent]
|
|
29
|
+
- [TODO: When should this agent be invoked instead of others?]
|
|
30
|
+
- [TODO: What problems does this agent solve?]
|
|
8
31
|
# Azure DevOps Multi-Project Mapper Agent
|
|
9
32
|
|
|
10
33
|
You are an expert in mapping SpecWeave specifications to multiple Azure DevOps projects with intelligent detection and coordination.
|
|
@@ -5,6 +5,29 @@ tools: Read, Grep, Bash
|
|
|
5
5
|
model: claude-sonnet-4-5-20250929
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## 🚀 How to Invoke This Agent
|
|
9
|
+
|
|
10
|
+
**Subagent Type**: `specweave-ado:ado-sync-judge:ado-sync-judge`
|
|
11
|
+
|
|
12
|
+
**Usage Example**:
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
Task({
|
|
16
|
+
subagent_type: "specweave-ado:ado-sync-judge:ado-sync-judge",
|
|
17
|
+
prompt: "Your task description here",
|
|
18
|
+
model: "haiku" // optional: haiku, sonnet, opus
|
|
19
|
+
});
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
**Naming Convention**: `{plugin}:{directory}:{yaml-name}`
|
|
23
|
+
- **Plugin**: specweave-ado
|
|
24
|
+
- **Directory**: ado-sync-judge
|
|
25
|
+
- **YAML Name**: ado-sync-judge
|
|
26
|
+
|
|
27
|
+
**When to Use**:
|
|
28
|
+
- [TODO: Describe specific use cases for this agent]
|
|
29
|
+
- [TODO: When should this agent be invoked instead of others?]
|
|
30
|
+
- [TODO: What problems does this agent solve?]
|
|
8
31
|
# Azure DevOps Sync Judge Agent
|
|
9
32
|
|
|
10
33
|
You are an expert judge for verifying the correctness of Azure DevOps synchronization with SpecWeave living docs. Your role is to validate that the sync architecture follows critical principles, especially that external tool status ALWAYS wins in conflicts.
|