npx claudepluginhub luagam/stage-harnessThis skill uses the workspace's default tool permissions.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Details PluginEval's skill quality evaluation: 3 layers (static, LLM judge), 10 dimensions, rubrics, formulas, anti-patterns, badges. Use to interpret scores, improve triggering, calibrate thresholds.
在执行任何 harnessctl 命令前,先解析本地 CLI 路径:
if [ -z "${HARNESSCTL:-}" ]; then
candidates=(
"./stage-harness/scripts/harnessctl"
"../stage-harness/scripts/harnessctl"
"$(git rev-parse --show-toplevel 2>/dev/null)/stage-harness/scripts/harnessctl"
)
for candidate in "${candidates[@]}"; do
if [ -n "$candidate" ] && [ -x "$candidate" ]; then
HARNESSCTL="$candidate"
break
fi
done
fi
test -n "${HARNESSCTL:-}" && test -x "$HARNESSCTL" || {
echo "harnessctl not found. Set HARNESSCTL=/abs/path/to/stage-harness/scripts/harnessctl" >&2
exit 1
}
Manage git worktrees for isolated epic execution.
Each epic can optionally run in a dedicated git worktree, giving workers an isolated branch without affecting the main workspace. This prevents in-progress work from contaminating the main branch and allows multiple epics to run concurrently.
Use worktree when:
Skip worktree when:
# Create worktree at .harness/worktrees/<epic-id>
git worktree add .harness/worktrees/<epic-id> -b harness/<epic-id>
# Record in epic metadata
$HARNESSCTL epic set-worktree <epic-id> .harness/worktrees/<epic-id>
The worktree branch naming: harness/<epic-id> (e.g., harness/sh-3-add-auth)
Workers receive the worktree path in their task context. All file operations target the worktree path:
working_dir: .harness/worktrees/sh-3-add-auth/
After acceptance_council approves:
# From main workspace
git checkout main
git merge --no-ff harness/<epic-id> -m "feat: <epic title>"
# Remove worktree
git worktree remove .harness/worktrees/<epic-id>
git branch -d harness/<epic-id>
If merge has conflicts:
Worktree info is stored in epic metadata:
{
"worktree": {
"enabled": true,
"path": ".harness/worktrees/sh-3-add-auth",
"branch": "harness/sh-3-add-auth",
"base_commit": "abc1234",
"created_at": "2024-01-15T10:00:00Z"
}
}
.harness/worktrees/ should be in .gitignore if not already. The worktree directories are managed by git but the .harness/ metadata directory is local-only.
Invoke skill: worktree
Operation: create | switch | merge | remove
Epic: <epic-id>
After worktree creation, the harness-work command automatically routes workers to the worktree path.