/claw:update [all | pipelines | scripts | prompts | skills | claude-md]from claw
Updates CodeClaw-managed files including CI/CD pipelines, scripts, prompts, and platform instructions to the latest plugin version while preserving user customizations.
Ships in claw. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Project configuration is authoritative. Before executing, run
SH contextto load project configuration. If any instruction here contradicts the project configuration, the project configuration takes priority.
You are an update assistant for the CodeClaw plugin. Detect which CodeClaw-managed files are outdated, show a summary, and selectively update them while preserving user customizations.
Interaction rule (applies throughout): At each AskUserQuestion call, STOP completely. Wait for the user's actual response before proceeding. Never assume answers, never batch questions, only use the exact options specified.
SH context
Use the platform.platform field (github or gitlab). If no config exists, infer from .github/ (github) or .gitlab-ci.yml (gitlab). Default to github.
SH dispatch --skill update --args "$ARGUMENTS"
The flow field determines scope: all, pipelines, scripts, prompts, skills, or claude-md.
python3 -c "import json; print(json.load(open('${CLAW_ROOT}/.claude-plugin/plugin.json'))['version'])"
Display this as the source version in the summary.
All source paths are relative to ${CLAW_ROOT}/.
Core Pipelines (GitHub): templates/github/workflows/ ci.yml, release.yml, security.yml, issue-triage.yml, status-guard.yml, staging-merge.yml → .github/workflows/; templates/github/CODEOWNERS → .github/CODEOWNERS
Core Pipelines (GitLab): templates/gitlab/ .gitlab-ci.yml, staging-merge.gitlab-ci.yml → project root
Legacy automation: retired pipeline templates are no longer part of the supported update surface.
Scripts: scripts/ common.py, config_lock.py, platform_adapter.py, platform_exporter.py, platform_utils.py, skill_helper.py, task_manager.py, release_manager.py, docs_manager.py, test_manager.py, quality_gate.py, ollama_manager.py, social_announcer.py, build_ccpkg.py, build_portable.py → .claude/scripts/
Platform instructions file (project-context.md): If project-context.md exists, the <!-- CodeClaw:START --> to <!-- CodeClaw:END --> section. Canonical content is in ${CLAW_ROOT}/skills/setup/SKILL.md.
| File | Custom Value | Handling |
|---|---|---|
ci.yml (GitHub) / .gitlab-ci.yml (GitLab) | CI runtime steps | Warn — mark as "customized" |
CODEOWNERS | Team names/paths | Warn — mark as "customized" |
project-context.md (if exists) | Everything outside markers | Only replace between CodeClaw markers |
Filter pipeline categories by detected platform. For each file in scope, compare SHA-256 hashes:
python3 -c "
import hashlib; from pathlib import Path
pairs = [
# ('source', 'target', 'name') — populate from manifest based on scope/platform
]
for s, t, n in pairs:
sp, tp = Path(s), Path(t)
if not tp.exists(): print(f'{n}|not_installed|'); continue
if not sp.exists(): print(f'{n}|source_missing|'); continue
sh = hashlib.sha256(sp.read_bytes()).hexdigest()
th = hashlib.sha256(tp.read_bytes()).hexdigest()
print(f'{n}|{\"current\" if sh == th else \"outdated\"}|')
"
Override statuses for customizable files:
ci.yml (GitHub), .gitlab-ci.yml (GitLab), CODEOWNERS: if outdated, change to customizedFor platform instructions file (if project-context.md exists):
python3 -c "
import re, hashlib; from pathlib import Path
p = Path('project-context.md')
if not p.exists(): print('project-context.md|not_installed|'); exit(0)
lm = re.search(r'<!-- CodeClaw:START -->(.+?)<!-- CodeClaw:END -->', p.read_text(), re.DOTALL)
if not lm: print('project-context.md (CodeClaw section)|not_installed|'); exit(0)
setup = Path('${CLAW_ROOT}/skills/setup/SKILL.md').read_text()
tm = re.search(r'<!-- CodeClaw:START -->(.+?)<!-- CodeClaw:END -->', setup, re.DOTALL)
if not tm: print('project-context.md (CodeClaw section)|source_missing|'); exit(0)
lh = hashlib.sha256(lm.group(0).encode()).hexdigest()
th = hashlib.sha256(tm.group(0).encode()).hexdigest()
print(f'project-context.md (CodeClaw section)|{\"current\" if lh == th else \"outdated\"}|')
"
Display results as a categorized table (only categories with installed files). Present results using the report format from Step 7, but with a Status column (Current / Outdated / Customized / Not installed) instead of an Action column.
If all files are current, report everything is up to date and stop.
If $ARGUMENTS specifies a category, skip Step 5 and go directly to Step 6 to update all outdated files in that category. Still warn about customized files.
Use AskUserQuestion with these options:
If "Choose by category", present a second AskUserQuestion listing each category with outdated/customized files, plus "All listed" and "Cancel".
Three update strategies. Apply per file type:
| Strategy | Files | Method |
|---|---|---|
| Direct copy | Scripts, prompts, skills, most workflows | cp source target |
| CodeClaw-section | project-context.md (if exists) | Regex replace between <!-- CodeClaw:START --> / <!-- CodeClaw:END --> markers |
CodeClaw-section implementation (if project-context.md exists):
python3 -c "
import re; from pathlib import Path
p = Path('project-context.md')
if not p.exists(): print('project-context.md not found, skipping CodeClaw section update'); exit(0)
setup = Path('${CLAW_ROOT}/skills/setup/SKILL.md').read_text()
tm = re.search(r'(<!-- CodeClaw:START -->.*?<!-- CodeClaw:END -->)', setup, re.DOTALL)
if not tm: print('ERROR: No CodeClaw section in setup template'); exit(1)
p.write_text(re.sub(r'<!-- CodeClaw:START -->.*?<!-- CodeClaw:END -->', tm.group(1), p.read_text(), flags=re.DOTALL))
print('project-context.md CodeClaw section updated')
"
Customized files (ci.yml, CODEOWNERS, .gitlab-ci.yml): Before updating, warn that user customizations will be overwritten and will need to be re-applied. Then direct-copy.
Verify each updated file exists and is non-empty. If project-context.md exists, verify both CodeClaw markers are intact.
## CodeClaw Update Complete
**Plugin version:** [version]
### Files Updated
| File | Action |
|------|--------|
| [file path] | Updated to latest template |
| project-context.md (if exists) | CodeClaw section updated |
### Files Skipped
| File | Reason |
|------|--------|
| [file path] | Already current |
### Not Installed
These files are available but were never deployed:
| File | Install With |
|------|-------------|
| [file path] | `/setup` or `/setup` |
### Next Steps
1. Review the changes: `git diff`
2. Commit the updates
3. Push to apply updated pipelines
/setup.ci.yml, CODEOWNERS, .gitlab-ci.yml) — user must re-apply project-specific changes after update.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
update, version-management, ci-cd, codeclaw, file-management
npx claudepluginhub dnviti/codeclaw --plugin claw9 skills in this plugin
/crazyCrazy Builder<!-- This skill definition is intentionally comprehensive (~600 lines) as it serves as the complete orchestration spec for autonomous execution. -->/docsGenerate, sync, reset, and publish project documentation. Produces LLM-ready, bot-ready, and human-ready technical documentation with Mermaid diagrams./helpInteractive skill framework guide. Shows all available skills and their usage, or explains a specific topic when given a query./ideaUnified idea management: create, approve, disapprove, refactor, or scout ideas for the project backlog./releaseUnified release management: create milestones, generate roadmaps, continue the 9-stage pipeline, and close releases. Supports yolo mode for fully autonomous execution./setupInitialize and configure projects: create task/idea files, detect tech stack, scaffold new projects, configure branch strategy, or export skills to other AI coding platforms.Other plugins' skills for the same job