Initialize a new workspace for multi-project llm-dev management
Creates a new workspace structure for managing multiple llm-dev projects with templates and git setup.
/plugin marketplace add DallasElleman/llm-dev/plugin install dallaselleman-llm-dev@DallasElleman/llm-dev<workspace-name> [--path PATH]Create a new workspace structure for managing multiple llm-dev projects.
Workspace name: $ARGUMENTS (first argument)
If workspace name not provided, ask the user for:
TEMPLATE_PATH="${CLAUDE_PLUGIN_ROOT}/.workspace-template"
if [[ ! -d "$TEMPLATE_PATH" ]]; then
echo "Error: Workspace template not found at $TEMPLATE_PATH"
exit 1
fi
echo "Using template: $TEMPLATE_PATH"
WORKSPACE_NAME="<workspace-name>"
WORKSPACE_PATH="<target-path>/$WORKSPACE_NAME"
WORKSPACE_DESCRIPTION="<description>"
# Copy template to workspace
# Use cp for cross-platform compatibility (works on macOS, Linux, Git Bash)
mkdir -p "$WORKSPACE_PATH"
cp -r "$TEMPLATE_PATH/." "$WORKSPACE_PATH/"
rm -rf "$WORKSPACE_PATH/.git" "$WORKSPACE_PATH/.gitmodules-template"
# Create .claude directory
mkdir -p "$WORKSPACE_PATH/.claude"
# Replace placeholders in all markdown files
# Use GNU sed syntax (works on Linux, Git Bash, macOS with GNU sed)
find "$WORKSPACE_PATH" -type f -name "*.md" -exec sed -i \
-e "s/{{WORKSPACE_NAME}}/$WORKSPACE_NAME/g" \
-e "s/{{WORKSPACE_DESCRIPTION}}/$WORKSPACE_DESCRIPTION/g" \
{} +
cd "$WORKSPACE_PATH"
git init
Ask user how they want to include llm-dev:
If submodule:
git submodule add https://github.com/DallasElleman/llm-dev.git llm-dev
If clone:
git clone https://github.com/DallasElleman/llm-dev.git "$WORKSPACE_PATH/llm-dev"
Ask user if they want to add reference material submodules:
# Add 12-factor-agents
git submodule add https://github.com/humanlayer/12-factor-agents.git .references/12-factor-agents
# Add ccpm
git submodule add https://github.com/automazeio/ccpm.git .references/ccpm
# Initialize all submodules
git submodule update --init --recursive
git add .
git commit -m "Initialize workspace from llm-dev template"
Report to user:
$WORKSPACE_PATH/llm-dev:init-project my-project/llm-dev:init-session to start tracking conversations