add claw-skills: scripts and workflows folders, update-skills, promote-improvements
This commit is contained in:
3
claw-skills/SKILL.md
Normal file
3
claw-skills/SKILL.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# claw-skills
|
||||
|
||||
_placeholder skill_
|
||||
29
claw-skills/scripts/promote-improvements
Executable file
29
claw-skills/scripts/promote-improvements
Executable 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."
|
||||
16
claw-skills/scripts/update-skills
Executable file
16
claw-skills/scripts/update-skills
Executable 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."
|
||||
Reference in New Issue
Block a user