Add or update repository metadata and description
This skill adds or updates metadata for the current repository.
git rev-parse --show-toplevelgit remote get-url originFrom user's description, extract:
Get current machine and OS context:
hostname (lowercase)Get configuration repository path:
YW_CONFIG_REPO_PATH environment variable (required)Execute the script from plugin directory:
cd "${CLAUDE_PLUGIN_ROOT}"
# Detect Python command (python3 on Linux, python on Windows)
PYTHON_CMD=$(command -v python3 || command -v python)
# Try to use venv if available, create if needed, skip if venv creation fails
if [ -d "venv" ]; then
# Activate venv (cross-platform)
if [ -f "venv/bin/activate" ]; then
source venv/bin/activate
elif [ -f "venv/Scripts/activate" ]; then
source venv/Scripts/activate
fi
elif $PYTHON_CMD -m venv venv 2>/dev/null; then
echo "Setting up Python environment (first time)..."
if [ -f "venv/bin/activate" ]; then
source venv/bin/activate
elif [ -f "venv/Scripts/activate" ]; then
source venv/Scripts/activate
fi
pip install -r requirements.txt
else
echo "Note: Using system Python (venv creation not available)"
fi
$PYTHON_CMD scripts/manage_memory.py describe-repo \
--config-repo "$YW_CONFIG_REPO_PATH" \
--repo-path {repo_path} \
--description "{description}" \
--tags "{tags}" \
--machine {machine} \
--os {os}
Parse the JSON output:
{
"success": true,
"repo_slug": "dynamics-solutions",
"filepath": "memory/repositories/dynamics-solutions.md"
}
Return confirmation to the user:
Repository metadata updated!
- Repository: dynamics-solutions
- Description: [user's description]
- Tags: [tags if any]
- Synced to remote: Yes
User: "Hey, this repo contains Dynamics solution packages. We need Core-Platform approval for PRs."
Agent: