panayiotism/claude-harness/setup
Claude Code and agent skill by panayiotism/claude-harness
- community
Checking that the SKILL.md file is still in the repository.
Initialize, upgrade, or migrate the claude-harness plugin in a project. Use for first-time setup, plugin installation, version migration, memory directory configuration, legacy file cleanup, and project harness initialization.
Install
npx vskill@latest install panayiotism/claude-harness/setupSKILL.md
Setup - Initialize or Upgrade Claude Harness
Initialize or upgrade claude-harness in the current project directory.
Auto-Detection
This command automatically detects what needs to be done:
- Fresh install: Creates v3.0 structure from scratch
- v2.x upgrade: Migrates existing files to v3.0 memory architecture
- Cleanup: Removes legacy command copies from
.claude/commands/(commands are now served from plugin cache)
Note: Commands and hooks are served from the plugin cache. setup.sh only initializes project-level state (memory directories, CLAUDE.md, .gitignore, migrations).
Phase 0: Run setup.sh (Handles ALL Cases)
setup.sh handles fresh installs, v2.x migrations, and cleanup in a single script. Always run it.
Steps:
- Find the plugin root path from the session context (look for "Plugin Root:" in the session start context)
- Run:
bash {plugin-root}/setup.sh
- Fresh install: Creates v3.0 structure,
.gitignorepatterns, CLAUDE.md - v2.x migration: Detects legacy files, migrates to v3.0 structure, then creates missing files
- Cleanup: Removes stale command copies from
.claude/commands/and legacy hooks - Existing project files are NEVER overwritten (skipped automatically)
.gitignorepatterns are added if missing
- Report what was created vs what was skipped
- Skip Phase 3 --
setup.shhandles it
Fallback: If the plugin root path is not available in the session context, fall through to Phase 1 -> Phase 4 (manual setup).
Plugin updates: Run claude plugin update claude-harness to update the plugin itself.
Phase 3: Update Project .gitignore (FALLBACK -- only if setup.sh unavailable)
CRITICAL: You MUST update the project's .gitignore to exclude harness ephemeral files. This prevents uncommitted file clutter after /checkpoint.
Execute these steps:
- Read the current
.gitignorefile (create if missing)
- Check if
.claude-harness/sessions/pattern exists in the file
- If the pattern is NOT present, append these lines to
.gitignore:
``` # Claude Harness - Ephemeral/Per-Session State .claude-harness/sessions/ .claude-harness/memory/compaction-backups/
# Claude Code - Local settings .claude/settings.local.json ```
- Use the Edit tool to append these patterns to
.gitignore
- Report: "Updated .gitignore with harness ephemeral patterns"
DO NOT SKIP THIS PHASE - it is required for proper harness operation.
File Schemas
Canonical schemas are defined in the plugin's schemas/ directory (JSON Schema format). Key state files:
| File | Schema | Created By | |
|---|---|---|---|
sessions/{id}/context.json | schemas/context.schema.json (v3) | Phase 1 context compilation | |
sessions/{id}/loop-state.json | schemas/loop-state.schema.json (v9) | Phase 4 implementation | |
sessions/{id}/autonomous-state.json | schemas/autonomous-state.schema.json (v4) | --autonomous mode | |
features/active.json | schemas/active-features.schema.json (v3) | Phase 2 feature creation |
Memory knowledge layers (memory/decisions/, failures/, successes/, patterns/, rules/) are an OKF v0.1 bundle -- markdown concept files with YAML frontmatter, not JSON. Their conformance rules are documented in schemas/okf-memory.md and checked by scripts/check-okf.py; setup.sh migrates legacy JSON memory files to the bundle automatically (stamp-gated). Semantic memory (memory/semantic/*.json) and runtime state stay JSON with v3 schemas as created by setup.sh.
After Setup
Report:
- What was done (fresh install / migration / version update)
- Files created or migrated
- Current plugin version
- Next steps:
- Run
/claude-harness:startto compile context and sync GitHub - For new projects: Run
/claude-harness:prd-breakdown @./prd.mdto analyze PRD and extract features - Use
/claude-harness:flow "description"for end-to-end automated workflow (recommended) - Use
/claude-harness:flow --no-merge "description"for step-by-step control - Use
/claude-harness:flow --fix feature-XXX "bug"to create bug fixes
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/setup/SKILL.md
Popularity
- Repository stars
- 74
- Repository forks
- 8
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 28 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/panayiotism/claude-harness/setup)