Restore an archived repository to active queries
This skill restores an archived repository so it appears in query results again.
git rev-parse --show-toplevel to get repo pathExecute the manage_memory.py script:
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
source venv/bin/activate # or venv\Scripts\Activate.ps1 on Windows
# Use python3 on Linux/WSL, python on Windows
$PYTHON_CMD scripts/manage_memory.py unarchive-repo \
--config-repo "$YW_CONFIG_REPO_PATH" \
--repo-name {repo_name}
Parse the JSON output:
{
"success": true,
"repo_slug": "revived-project",
"archived": false,
"filepath": "domains/dev/memory/repositories/revived-project.md"
}
Return confirmation to the user:
Repository restored!
- Repository: revived-project
- Status: Now visible in queries
- Synced to remote: Yes
If error occurs:
{
"success": false,
"error": "Repository 'xyz' not found in memory system"
}
Inform user that the repository doesn't exist in the memory system.
User: "unarchive the legacy-api repo, we're using it again"
Agent:
User: "restore this repo to my active list"
Agent: