@@ -33,7 +33,7 @@ Describe 'Agent plugin manifest' {
3333 $root.skills [0 ].TrimStart(' ./' ) | Should - Be $claude.skills [0 ].TrimStart(' ./' )
3434 $root.agents | Should - Be ' ./agents/'
3535 $root.mcpServers | Should - Be ' .mcp.json'
36- $claude.agents.Count | Should - Be 5
36+ $claude.agents | Should - BeNullOrEmpty
3737 $claude.mcpServers | Should - Be ' ./.mcp.json'
3838 $claude.outputStyles | Should - Be ' ./output-styles/'
3939 }
@@ -54,9 +54,9 @@ Describe 'Agent plugin manifest' {
5454
5555 It ' Declares resolvable paths for every Claude component' {
5656 $claude = Get-Content (Join-Path $script :Plugin ' .claude-plugin/plugin.json' ) - Raw | ConvertFrom-Json
57- $paths = @ ($claude.commands ) + @ ($claude.agents ) + @ ( $claude . skills ) + @ ($claude.mcpServers ) + @ ($claude.outputStyles )
57+ $paths = @ ($claude.commands ) + @ ($claude.skills ) + @ ($claude.mcpServers ) + @ ($claude.outputStyles )
5858
59- $paths.Count | Should - Be 9
59+ $paths.Count | Should - Be 4
6060 $paths | ForEach-Object {
6161 Join-Path $script :Plugin $_ | Should - Exist
6262 }
@@ -73,13 +73,17 @@ Describe 'Agent plugin manifest' {
7373}
7474
7575Describe ' Agent plugin components' {
76- It ' Ships agent definitions as NAME.agent.md files' {
77- $agents = Get-ChildItem (Join-Path $script :Plugin ' agents' ) - Filter ' *.agent.md'
78- $agents.Count | Should - BeGreaterThan 0
76+ It ' Ships agent definitions as Claude-compatible NAME.md files' {
77+ $agents = Get-ChildItem (Join-Path $script :Plugin ' agents' ) - Filter ' *.md'
78+
79+ $agents.Count | Should - Be 5
80+ $agents.Name | ForEach-Object {
81+ $_ | Should -Not -Match ' \.agent\.md$'
82+ }
7983 }
8084
8185 It ' Gives every agent a name and description in front matter' {
82- Get-ChildItem (Join-Path $script :Plugin ' agents' ) - Filter ' *.agent. md' | ForEach-Object {
86+ Get-ChildItem (Join-Path $script :Plugin ' agents' ) - Filter ' *.md' | ForEach-Object {
8387 $content = Get-Content $_.FullName - Raw
8488 $content | Should -Match ' (?ms)^---\s.*^name:\s*\S.*^description:\s*\S.*^---'
8589 }
0 commit comments