mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-06 09:13:31 +08:00
fix: namespace opencode command agents
This commit is contained in:
@@ -184,7 +184,7 @@ Create a detailed implementation plan for: {input}
|
||||
```markdown
|
||||
---
|
||||
description: Create implementation plan
|
||||
agent: planner
|
||||
agent: everything-claude-code:planner
|
||||
---
|
||||
|
||||
Create a detailed implementation plan for: $ARGUMENTS
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Fix build and TypeScript errors with minimal changes
|
||||
agent: build-error-resolver
|
||||
agent: everything-claude-code:build-error-resolver
|
||||
subtask: true
|
||||
---
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Save verification state and progress checkpoint
|
||||
agent: build
|
||||
agent: everything-claude-code:build
|
||||
---
|
||||
|
||||
# Checkpoint Command
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Review code for quality, security, and maintainability
|
||||
agent: code-reviewer
|
||||
agent: everything-claude-code:code-reviewer
|
||||
subtask: true
|
||||
---
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Generate and run E2E tests with Playwright
|
||||
agent: e2e-runner
|
||||
agent: everything-claude-code:e2e-runner
|
||||
subtask: true
|
||||
---
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Run evaluation against acceptance criteria
|
||||
agent: build
|
||||
agent: everything-claude-code:build
|
||||
---
|
||||
|
||||
# Eval Command
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Analyze instincts and suggest or generate evolved structures
|
||||
agent: build
|
||||
agent: everything-claude-code:build
|
||||
---
|
||||
|
||||
# Evolve Command
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Fix Go build and vet errors
|
||||
agent: go-build-resolver
|
||||
agent: everything-claude-code:go-build-resolver
|
||||
subtask: true
|
||||
---
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Go code review for idiomatic patterns
|
||||
agent: go-reviewer
|
||||
agent: everything-claude-code:go-reviewer
|
||||
subtask: true
|
||||
---
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Go TDD workflow with table-driven tests
|
||||
agent: tdd-guide
|
||||
agent: everything-claude-code:tdd-guide
|
||||
subtask: true
|
||||
---
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Export instincts for sharing
|
||||
agent: build
|
||||
agent: everything-claude-code:build
|
||||
---
|
||||
|
||||
# Instinct Export Command
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Import instincts from external sources
|
||||
agent: build
|
||||
agent: everything-claude-code:build
|
||||
---
|
||||
|
||||
# Instinct Import Command
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Show learned instincts (project + global) with confidence
|
||||
agent: build
|
||||
agent: everything-claude-code:build
|
||||
---
|
||||
|
||||
# Instinct Status Command
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Extract patterns and learnings from current session
|
||||
agent: build
|
||||
agent: everything-claude-code:build
|
||||
---
|
||||
|
||||
# Learn Command
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Orchestrate multiple agents for complex tasks
|
||||
agent: planner
|
||||
agent: everything-claude-code:planner
|
||||
subtask: true
|
||||
---
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Create implementation plan with risk assessment
|
||||
agent: planner
|
||||
agent: everything-claude-code:planner
|
||||
subtask: true
|
||||
---
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: List registered projects and instinct counts
|
||||
agent: build
|
||||
agent: everything-claude-code:build
|
||||
---
|
||||
|
||||
# Projects Command
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Promote project instincts to global scope
|
||||
agent: build
|
||||
agent: everything-claude-code:build
|
||||
---
|
||||
|
||||
# Promote Command
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Remove dead code and consolidate duplicates
|
||||
agent: refactor-cleaner
|
||||
agent: everything-claude-code:refactor-cleaner
|
||||
subtask: true
|
||||
---
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Fix Rust build errors and borrow checker issues
|
||||
agent: rust-build-resolver
|
||||
agent: everything-claude-code:rust-build-resolver
|
||||
subtask: true
|
||||
---
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Rust code review for ownership, safety, and idiomatic patterns
|
||||
agent: rust-reviewer
|
||||
agent: everything-claude-code:rust-reviewer
|
||||
subtask: true
|
||||
---
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Rust TDD workflow with unit and property tests
|
||||
agent: tdd-guide
|
||||
agent: everything-claude-code:tdd-guide
|
||||
subtask: true
|
||||
---
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Run comprehensive security review
|
||||
agent: security-reviewer
|
||||
agent: everything-claude-code:security-reviewer
|
||||
subtask: true
|
||||
---
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Configure package manager preference
|
||||
agent: build
|
||||
agent: everything-claude-code:build
|
||||
---
|
||||
|
||||
# Setup Package Manager Command
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Generate skills from git history analysis
|
||||
agent: build
|
||||
agent: everything-claude-code:build
|
||||
---
|
||||
|
||||
# Skill Create Command
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Enforce TDD workflow with 80%+ coverage
|
||||
agent: tdd-guide
|
||||
agent: everything-claude-code:tdd-guide
|
||||
subtask: true
|
||||
---
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Analyze and improve test coverage
|
||||
agent: tdd-guide
|
||||
agent: everything-claude-code:tdd-guide
|
||||
subtask: true
|
||||
---
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Update codemaps for codebase navigation
|
||||
agent: doc-updater
|
||||
agent: everything-claude-code:doc-updater
|
||||
subtask: true
|
||||
---
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Update documentation for recent changes
|
||||
agent: doc-updater
|
||||
agent: everything-claude-code:doc-updater
|
||||
subtask: true
|
||||
---
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Run verification loop to validate implementation
|
||||
agent: build
|
||||
agent: everything-claude-code:build
|
||||
---
|
||||
|
||||
# Verify Command
|
||||
|
||||
@@ -76,6 +76,28 @@ if (
|
||||
passed++;
|
||||
else failed++;
|
||||
|
||||
if (
|
||||
test('command markdown frontmatter uses plugin-scoped agent ids', () => {
|
||||
const commandsDir = path.join(opencodeDir, 'commands');
|
||||
|
||||
for (const entry of fs.readdirSync(commandsDir)) {
|
||||
const body = fs.readFileSync(path.join(commandsDir, entry), 'utf8');
|
||||
const match = body.match(/^agent:\s*(.+)$/m);
|
||||
|
||||
if (!match) {
|
||||
continue;
|
||||
}
|
||||
|
||||
assert.ok(
|
||||
match[1].startsWith('everything-claude-code:'),
|
||||
`Expected plugin-scoped agent id in ${entry}, got: ${match[1]}`
|
||||
);
|
||||
}
|
||||
})
|
||||
)
|
||||
passed++;
|
||||
else failed++;
|
||||
|
||||
console.log(`\nPassed: ${passed}`);
|
||||
console.log(`Failed: ${failed}`);
|
||||
process.exit(failed > 0 ? 1 : 0);
|
||||
|
||||
Reference in New Issue
Block a user