본문으로 건너뛰기
cccskills
무료GitHub에 공개

pa-maintenance

Unified workspace maintenance skill. Covers: (1) backing up the workspace to GitHub git repo, and (2) updating OpenClaw and skills. Use when: asked to backup, push to git, update openclaw, update skills, or run maintenance.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구GitHub

실행 점수 미검증

설치 방법 보기

포함된 파일(2)

  • SKILL.md6.5 KB
  • sync-pa-skills.sh2.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Maintenance Skill

Minimum Model

Any model. Both sections are scripted operations.

Trigger Phrases

  • "backup workspace" / "push to git" / "save to github"
  • "update openclaw" / "update skills" / "run maintenance"
  • Runs automatically on schedule (see Cron section)

Section 1 — Workspace Backup

Back up the entire workspace to GitHub on a regular schedule or on demand.

When to Run

  • After significant MEMORY.md changes
  • After editing or creating skills
  • After completing a major task
  • On cron schedule: every 6 hours silently

Step 1 — Find the GitHub Token

Priority order:

  1. Git remote URL — check if token is embedded:
    git -C /path/to/openclaw/workspace remote get-url origin
    
  2. Environment variable:
    echo $GITHUB_TOKEN
    echo $GH_TOKEN
    
  3. Credentials file:
    cat ~/.credentials/github-token.txt 2>/dev/null
    cat ~/.credentials/github-pat.txt 2>/dev/null
    

If no token found → report BLOCKED to owner.

Step 2 — Commit and Push

cd /path/to/openclaw/workspace

# Stage all changes
git add -A

# Commit with timestamp
TIMESTAMP=$(date -u +"%Y-%m-%d %H:%M UTC")
git commit -m "Auto-backup: $TIMESTAMP" 2>/dev/null || echo "Nothing to commit"

# Push
git push origin main

Step 3 — Report (On-Demand Only)

If triggered manually (not by cron):

✅ Workspace backed up to GitHub — [timestamp]
[X] files changed

If triggered by cron → silent (no message to owner).

Cron Schedule

openclaw cron add \
  --name "workspace-backup" \
  --every 6h \
  --session isolated \
  --message "Run the maintenance skill, Section 1 (Workspace Backup). cd /path/to/openclaw/workspace && git add -A && git commit -m 'Auto-backup: $(date -u +\"%Y-%m-%d %H:%M UTC\")' && git push origin main. Silent — do not message owner unless push fails." \
  --timeout-seconds 60

Troubleshooting

IssueFix
git push auth errorToken expired — update in remote URL or credentials file
nothing to commitNormal — workspace unchanged since last backup
rejected (non-fast-forward)Run git pull --rebase origin main first, then push
No token foundAsk owner for a GitHub PAT with repo scope

Section 2 — OpenClaw Updates

Keep OpenClaw and installed skills up to date.

When to Run

  • Weekly on Sunday at 03:00 UTC (cron)
  • When owner says "update openclaw" or "update skills"
  • After a new OpenClaw version is released

Step 1 — Update OpenClaw

# Update the OpenClaw platform
openclaw update

# Check the new version
openclaw --version

Step 2 — Update Skills via ClawHub

# Update all installed skills to latest
clawhub update

# Or update a specific skill
# clawhub update <skill-name>

Step 3 — Report What Changed

After updates, report to owner:

🔄 Maintenance complete (Sunday update):

OpenClaw: v1.2.3 → v1.2.4
  - [changelog item if available]

Skills updated:
  - skill-master: v1.1 → v1.2
  - whatsapp: v2.0 → v2.1
  - [others]

No action needed. Everything is up to date.

If nothing changed:

✅ No updates available — everything is current.

Step 4 — Verify After Update

# Check gateway is still running
openclaw gateway status

# Check agent is responding (send a test message or check logs)
openclaw logs --last 10

If gateway is down after update → run openclaw gateway restart.

Cron Schedule

openclaw cron add \
  --name "weekly-update" \
  --cron "0 3 * * 0" \
  --session isolated \
  --message "Run maintenance skill Section 2 (OpenClaw Updates): run 'openclaw update' and 'clawhub update', then report what changed to owner via WhatsApp." \
  --to "OWNER_PHONE" \
  --channel whatsapp \
  --timeout-seconds 300

Troubleshooting

IssueFix
openclaw update failsCheck internet connectivity; retry in 30 min
clawhub update not foundInstall: npm install -g clawhub
Gateway down after updateRun openclaw gateway restart
Skills missing after updateRe-install: clawhub install <skill-name>


Section 3 — Session Store Cleanup

Prevent sessions.json from bloating (observed growing to 67MB+ with 600+ stale cron run entries).

When to Run

  • Weekly (Sunday maintenance window)
  • If agent response time degrades noticeably
  • Whenever sessions.json exceeds 10MB

Step 1 — Check Size

ls -lh /path/to/openclaw/agents/main/sessions/sessions.json

If under 10MB → skip cleanup.

Step 2 — Clean Stale Cron Run Entries

cd /path/to/openclaw/agents/main/sessions

# Backup first
cp sessions.json sessions.json.bak.$(date +%Y%m%d-%H%M%S)

# Remove all :run: entries (completed cron run histories)
python3 -c "
import json
with open('sessions.json') as f:
    d = json.load(f)
before = len(d)
cleaned = {k:v for k,v in d.items() if ':run:' not in k}
after = len(cleaned)
with open('sessions.json', 'w') as f:
    json.dump(cleaned, f)
print(f'Removed {before-after} entries. {after} remaining.')
"

Step 3 — Restart Gateway

openclaw gateway restart

Step 4 — Report

🧹 Session cleanup: [X]MB → [Y]MB, removed [N] stale cron run entries.

Section 4 — Sync Skills to pa-skills Repo

Sync all local skills to netanel-abergel/pa-skills (public repo for PA network).

When to Run

  • After updating any skill
  • On demand: "סנכרני סקילים" / "sync pa-skills"

How to Run

bash /path/to/workspace/skills/pa-maintenance/sync-pa-skills.sh

Privacy Filter (MANDATORY)

The script in sync-pa-skills.sh automatically skips:

  • .context files (personal agent context)
  • data/ directories (pa-directory.json, personal data)
  • context.md, .env, credentials, secrets

NEVER manually upload these to pa-skills.


Cost Tips

  • Both sections: Very cheap — scripted operations, no LLM tokens for the actual backup/update.
  • Cron: Both jobs run in isolated sessions. Backup is silent; updates report only if something changed.
  • Don't over-backup: Every 6h is enough. More frequent = wasted compute and noisy git history.
  • sessions.json bloat is a known issue — cron runs accumulate unbounded. Weekly cleanup keeps response time fast.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

ai-pa

무료

AI Personal Assistant network skill for multi-agent PA coordination. Use when: contacting another PA, coordinating with peer agents, scheduling meetings between owners, broadcasting messages to PA groups, or looking up contacts from the local PA directory. Reads contact data from data/pa-directory.json in the workspace.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

netanel-abergel/pa-skills62026년 5월 10일 업데이트

ai-pa

무료

Route and execute inter-PA coordination tasks in the OpenClaw multi-agent PA network. Triggers when: contacting another PA, passing a message between owners, broadcasting to a PA group, handling group lead/silence rules, or adding a new PA to the directory. NOT for: contact lookups (use contact-list skill), calendar invites (use meetings skill), or billing issues (use billing-monitor skill).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

netanel-abergel/pa-skills62026년 5월 10일 업데이트

ai-pa

무료

AI Personal Assistant network skill. Use when: contacting another PA, coordinating with peer agents, scheduling meetings between owners, broadcasting messages, looking up contacts from the local PA directory, or performing any cross-PA task. Reads contact data from data/pa-directory.json in the workspace. Does NOT contain hardcoded contact data — each PA maintains their own directory file.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

netanel-abergel/pa-skills62026년 5월 10일 업데이트

OpenClaw API gateway proxy for authenticated SaaS calls (100+ services in references/SERVICES.md). Use ONLY when making an HTTP request to a third-party service that requires the gateway's stored credentials. NOT for direct API calls with bearer tokens already in scope, NOT for monday.com (use monday-for-agents), NOT for WhatsApp (use heleni-whatsapp). Triggers: "call the X API", "fetch from <service>", "send to Slack via gateway", "use the gateway for".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

netanel-abergel/pa-skills62026년 5월 10일 업데이트

Automatically creates new skills from complex problem-solving sessions. Triggers at the end of multi-step tasks that required novel approaches, debugging sessions, or workflow creation. Use when: a task took 3+ tool calls, involved a non-obvious solution, or established a pattern likely to recur. Also triggers on: "create a skill from this", "save this as a skill", "this should be a skill".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

netanel-abergel/pa-skills62026년 5월 10일 업데이트

Monitor for API billing errors and alert the owner and admin immediately. Use when: an API billing error is detected, a peer PA reports a billing error, or during routine health checks. Handles detection, notification, and fallback model switching. Model-agnostic: works with any LLM provider (Anthropic, OpenAI, Google, etc.).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

netanel-abergel/pa-skills62026년 5월 10일 업데이트

netanel-abergel의 스킬 모두 보기

이 스킬의 문제 신고