Fix test failures and rename Makefile targets for consistency

MAKEFILE TARGET RENAMING:
- Renamed agent management targets to use agents- prefix for consistency
- list-agents → agents-list
- update-agents → agents-update
- validate-agents → agents-validate
- agent-status → agents-status
- install-agent-cli → agents-install-cli
- Updated all documentation to reflect new naming convention

TEST FIXES:
- Fixed backup directory collision in tests by adding microseconds and counter
- Improved dependency detection to be more precise and avoid false positives
- Updated dependency parsing to support YAML frontmatter dependencies
- Fixed test expectations to match actual validation behavior
- All 24 tests now passing

DEPENDENCY SYSTEM IMPROVEMENTS:
- Enhanced dependency extraction from YAML frontmatter (dependencies, depends_on, requires)
- More precise agent reference detection in content
- Better handling of explicit vs implicit dependencies
- Improved validation error reporting

This ensures consistent naming convention (setup-, standards-, agents-) across
all Makefile targets while fixing test reliability issues.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-10-19 08:03:45 +02:00
parent 38965c1d4a
commit 873120c2d3
7 changed files with 89 additions and 58 deletions

View File

@@ -219,9 +219,9 @@ Agents automatically integrate with Claude Code:
The CLI automatically adds agent management targets:
```bash
make list-agents # List installed agents
make update-agents # Update to latest versions
make validate-agents # Validate agent definitions
make agents-list # List installed agents
make agents-update # Update to latest versions
make agents-validate # Validate agent definitions
```
### Documentation Integration

View File

@@ -123,9 +123,9 @@ cat CLAUDE.md # Read agent documentation
### Without Makefile
```bash
# Direct CLI usage when Makefile targets aren't available
kaizen-agentic status # Instead of: make list-agents
kaizen-agentic update # Instead of: make update-agents
kaizen-agentic validate # Instead of: make validate-agents
kaizen-agentic status # Instead of: make agents-list
kaizen-agentic update # Instead of: make agents-update
kaizen-agentic validate # Instead of: make agents-validate
```
### With Build Tools
@@ -142,10 +142,10 @@ kaizen-agentic validate # Instead of: make validate-agents
**Make targets (auto-added):**
```bash
make list-agents # List installed agents
make update-agents # Update agents
make validate-agents # Validate agents
make agent-status # Show detailed status
make agents-list # List installed agents
make agents-update # Update agents
make agents-validate # Validate agents
make agents-status # Show detailed status
```
## Troubleshooting

View File

@@ -81,17 +81,17 @@ The agents will create/update files, but you need to integrate with your build s
cat >> Makefile << 'EOF'
# Agent Management (added by kaizen-agentic)
list-agents:
agents-list:
@echo "Installed agents:"
@ls agents/ 2>/dev/null | grep agent- | sed 's/agent-//g' | sed 's/.md//g' | sort
update-agents:
agents-update:
@kaizen-agentic update
validate-agents:
agents-validate:
@kaizen-agentic validate
agent-status:
agents-status:
@kaizen-agentic status
EOF
```
@@ -144,13 +144,13 @@ If you're in a project without the Kaizen Agentic Makefile targets, you can stil
### Direct CLI Usage
```bash
# Instead of 'make list-agents'
# Instead of 'make agents-list'
kaizen-agentic status
# Instead of 'make update-agents'
# Instead of 'make agents-update'
kaizen-agentic update
# Instead of 'make validate-agents'
# Instead of 'make agents-validate'
kaizen-agentic validate
# Install new agents