Skip to content

Latest commit

 

History

History
executable file
·
139 lines (106 loc) · 4.44 KB

File metadata and controls

executable file
·
139 lines (106 loc) · 4.44 KB

Skill Tracking Implementation Summary

Overview

All agents in the Claude Swarm orchestration system are now required to track skill usage by sending webhook notifications to Zapier whenever they invoke a skill.

Changes Made

1. System Prompt Update

File: /home/dev/claude_dev/claude_swarm/src/agent_options.py

Added mandatory skill tracking to the orchestrator's system prompt (lines 47-66):

  • Required curl command template
  • Tracking requirements (agentName, skillName, timestamp)
  • ISO 8601 timestamp format specification
  • Non-negotiable enforcement language

2. Agent Prompt Updates

Migration Specialist

Files Updated:

  • /home/dev/claude_dev/claude_swarm/src/agent_options.py (inline prompt, lines 81-107)
  • /home/dev/claude_dev/claude_swarm/prompts/airflow_prompts/migration-specialist.md (lines 7-36)

Added:

  • Mandatory tracking section with curl command template
  • Example for /validate-migration-readiness skill
  • Requirements for skill name format and timestamp

DAG Developer

File: /home/dev/claude_dev/claude_swarm/prompts/airflow_prompts/dag-developer.md (lines 5-34)

Added:

  • Mandatory tracking section with curl command template
  • Example for /check-common-components skill
  • Requirements for immediate execution after skill invocation

Airflow Code Reviewer

File: /home/dev/claude_dev/claude_swarm/prompts/airflow_prompts/airflow-code-reviewer.md (lines 13-42)

Added:

  • Mandatory tracking section with curl command template
  • Example for /check-common-components skill
  • Emphasis on non-negotiable analytics tracking

Orchestrator User Prompt

File: /home/dev/claude_dev/claude_swarm/src/agent_options.py (dag_migration_user_prompt function, lines 192-210)

Added:

  • Tracking requirement for orchestrator and all subagents
  • Instructions for agent name selection
  • Emphasis on tracking EVERY skill invocation

Webhook Configuration

Endpoint: https://hooks.zapier.com/hooks/catch/10447300/uif0yda/

Payload Format:

{
  "agentName": "<agent-name>",
  "skillName": "<skill-name>",
  "timestamp": "<ISO-8601-timestamp>"
}

Agent Names:

  • orchestrator - Main orchestrator
  • migration-specialist - Airflow migration specialist
  • dag-developer - DAG developer
  • airflow-code-reviewer - Code reviewer

Skill Name Format:

  • Remove leading slash: analyze-legacy-dag (not /analyze-legacy-dag)

Timestamp Format:

  • ISO 8601 with timezone: 2025-10-29T17:00:39-06:00

Testing

Webhook endpoint tested and confirmed working:

curl --location 'https://hooks.zapier.com/hooks/catch/10447300/uif0yda/' \
--header 'Content-Type: application/json' \
--data '{
  "agentName": "test-agent",
  "skillName": "test-skill",
  "timestamp": "2025-10-29T22:55:00-00:00"
}'

# Response: {"status":"success", "id":"...", ...}

Expected Behavior

When any agent invokes a skill like:

/check-common-components

They MUST immediately follow with:

curl --location 'https://hooks.zapier.com/hooks/catch/10447300/uif0yda/' \
--header 'Content-Type: application/json' \
--data '{
  "agentName": "migration-specialist",
  "skillName": "check-common-components",
  "timestamp": "2025-10-29T17:00:39-06:00"
}'

Benefits

  1. Analytics: Track which skills are used most frequently
  2. Compliance: Verify agents follow mandatory skill workflows
  3. Audit Trail: Complete record of skill execution
  4. Process Improvement: Identify skill usage patterns
  5. Quality Assurance: Ensure Phase 1 skills executed before implementation

Tools Required

All agents that can invoke skills now require Bash tool access to execute curl commands:

  • migration-specialist: Read, Write, Edit, Grep, Glob, Bash
  • airflow-code-reviewer: Read, Grep, Glob, Bash
  • dag-developer: Read, Write, Edit, Bash
  • ✅ Orchestrator: Skill, Read, Write, Edit, Bash, Grep, Glob

Related Files

  • /home/dev/claude_dev/claude_swarm/src/agent_options.py - Agent definitions and prompts
  • /home/dev/claude_dev/claude_swarm/prompts/airflow_prompts/migration-specialist.md - Migration specialist prompt
  • /home/dev/claude_dev/claude_swarm/prompts/airflow_prompts/dag-developer.md - DAG developer prompt
  • /home/dev/claude_dev/claude_swarm/prompts/airflow_prompts/airflow-code-reviewer.md - Code reviewer prompt
  • .claude/skills/README.md - Skills documentation

Date Implemented

2025-10-29

Status

COMPLETE - All agents updated with mandatory skill tracking