Add Factory Droid as a converter target#174
Merged
kieranklaassen merged 1 commit intoEveryInc:mainfrom Feb 11, 2026
Merged
Conversation
Adds a new 'droid' target to the converter that outputs Claude Code plugins in Factory Droid's format: - Commands flattened to ~/.factory/commands/ (strips namespace prefixes) - Agents converted to droids in ~/.factory/droids/ with proper frontmatter - Skills copied to ~/.factory/skills/ - Content transforms: Task calls, slash commands, and @agent references adapted to Droid conventions This resolves the manual workaround described in issue EveryInc#31 by automating the conversion from Claude Code plugin format to Factory Droid's expected directory structure. Includes 13 tests covering converter logic and file writer behavior. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Collaborator
|
Thank you!! This is great |
Contributor
Author
|
cheers! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Factory Droid (docs.factory.ai) as a new converter target, alongside the existing OpenCode and Codex targets. This automates the manual workaround described in #31.
What it does
The converter outputs to
~/.factory/with the following structure:~/.factory/commands/(flattened, top-level.mdfiles — strips namespace prefixes likeworkflows:)~/.factory/droids/(converted to Droid frontmatter format withname,description,model,tools)~/.factory/skills/(copied as-is, directory-per-skill)Content transformations
Task agent-name(args)→Task agent-name: args(Droid's Task tool syntax)/workflows:plan→/plan(namespace prefix stripped for top-level registration)@agent-security-sentinel→the security-sentinel droid(Droid terminology)Bash→Execute,Write→Create, etc.)Files added/modified
src/types/droid.ts— Bundle type definitionssrc/converters/claude-to-droid.ts— Converter logicsrc/targets/droid.ts— File writersrc/targets/index.ts— Target registrationsrc/commands/convert.ts/install.ts— Updated to accept--to droidand route output to~/.factorytests/droid-converter.test.ts— 9 converter teststests/droid-writer.test.ts— 4 writer testsAll 53 tests pass (40 existing + 13 new).
Context
This was suggested by @kieranklaassen in #31 (comment). I wrote about the manual setup process and the workaround here — this PR replaces that manual process with a proper converter.