Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

darwin-plugins iter 2 β€” ruflo-plugin-creator: fix validate-plugin contradiction (plugin.json must not have skills/commands/agents arrays)

ruv99dd600e2754
diff --git a/plugins/ruflo-plugin-creator/skills/validate-plugin/SKILL.md b/plugins/ruflo-plugin-creator/skills/validate-plugin/SKILL.md
index 5bbeddc671..e157cbca9d 100644
--- a/plugins/ruflo-plugin-creator/skills/validate-plugin/SKILL.md
+++ b/plugins/ruflo-plugin-creator/skills/validate-plugin/SKILL.md
@@ -17,18 +17,19 @@ After creating or modifying a plugin, run validation to catch structural issues
1. **Directory structure** β€” `.claude-plugin/plugin.json` exists at plugin root
2. **plugin.json schema** β€” required fields present (name, description, version)
-3. **Skills** β€” each skill in `plugin.json.skills` has a matching `skills/<name>/SKILL.md`
-4. **Commands** β€” each command in `plugin.json.commands` has a matching `commands/<name>.md`
-5. **Agents** β€” each agent in `plugin.json.agents` has a matching `agents/<name>.md`
-6. **SKILL.md frontmatter** β€” each skill has `name`, `description`, and `allowed-tools`
-7. **Agent frontmatter** β€” each agent has `name`, `description`, and `model`
-8. **No files in wrong locations** β€” skills/commands/agents not inside `.claude-plugin/`
-9. **MCP tool references** β€” tools in `allowed-tools` are valid `mcp__claude-flow__*` identifiers
+3. **Skills auto-discovery** β€” every `skills/<name>/SKILL.md` is a valid skill (Claude Code auto-discovers from directory; `plugin.json` MUST NOT list a `skills` array)
+4. **Commands auto-discovery** β€” every `commands/<name>.md` is a valid command (auto-discovered; no `commands` array in `plugin.json`)
+5. **Agents auto-discovery** β€” every `agents/<name>.md` is a valid agent (auto-discovered; no `agents` array in `plugin.json`)
+6. **No legacy arrays in plugin.json** β€” presence of `skills`, `commands`, or `agents` arrays in `plugin.json` is a validation error (they cause Claude Code to reject the plugin)
+7. **SKILL.md frontmatter** β€” each skill has `name`, `description`, and `allowed-tools` (no wildcards)
+8. **Agent frontmatter** β€” each agent has `name`, `description`, and `model`
+9. **No files in wrong locations** β€” skills/commands/agents not inside `.claude-plugin/`
+10. **MCP tool references** β€” tools in `allowed-tools` are valid `mcp__claude-flow__*` identifiers
## Steps
-1. Read the plugin's `plugin.json`
-2. For each skill, command, and agent declared, verify the file exists
-3. For each SKILL.md, verify frontmatter has required fields
+1. Read the plugin's `plugin.json` and assert no `skills` / `commands` / `agents` arrays present
+2. Glob `skills/*/SKILL.md`, `commands/*.md`, `agents/*.md` and validate each frontmatter
+3. For each SKILL.md, verify frontmatter has required fields and `allowed-tools` has no wildcards
4. For each agent .md, verify frontmatter has required fields
5. Report pass/fail for each check with actionable fix suggestions