add claw-skills: scripts and workflows folders, update-skills, promote-improvements

This commit is contained in:
lyn
2026-04-17 13:23:10 +00:00
parent 3e342e1162
commit 5ad82369a8
3 changed files with 48 additions and 0 deletions

3
claw-skills/SKILL.md Normal file
View File

@@ -0,0 +1,3 @@
# claw-skills
_placeholder skill_

View File

@@ -0,0 +1,29 @@
#!/usr/bin/env bash
set -euo pipefail
WORKSPACE="${AGENT_WORKSPACE:-}"
if [[ -z "$WORKSPACE" ]]; then
echo "Error: AGENT_WORKSPACE not set"
exit 1
fi
cd "$WORKSPACE"
# Get agent name from ego-mgr
AGENT_NAME=$(ego-mgr get name)
if [[ -z "$AGENT_NAME" ]]; then
echo "Error: failed to get agent name"
exit 1
fi
BRANCH_NAME="$AGENT_NAME"
# Checkout new branch based on agent name
echo "Creating and checking out branch: $BRANCH_NAME"
git checkout -b "$BRANCH_NAME"
# Force push to the new branch
echo "Force pushing to origin/$BRANCH_NAME"
git push origin "$BRANCH_NAME" --force
echo "Done."

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
CLAW_DIR="$(cd "${SCRIPT_DIR}/../.." && pwd)"
GIT_LAB_DIR="${CLAW_DIR}/git-hangman-lab"
# Pull latest ClawSkills from git-hangman-lab
echo "Fetching latest ClawSkills..."
"${GIT_LAB_DIR}/scripts/git-ctrl" repo get-latest ClawSkills
# Run learn.sh to install skills
echo "Running learn.sh..."
"${CLAW_DIR}/ClawSkills/learn.sh"
echo "Done."