panayiotism/claude-harness/start
Claude Code and agent skill by panayiotism/claude-harness
- community
Checking that the SKILL.md file is still in the repository.
Start a coding session with full context compilation, GitHub sync, and memory loading. Use for session start, project status check, context restoration, loop state recovery, GitHub issue synchronization, and feature priority review.
Install
npx vskill@latest install panayiotism/claude-harness/startSKILL.md
Start - Session Initialization and Context Compilation
Prepare for a new coding session: compile memory context, show status, sync GitHub.
Session ID: ${CLAUDE_SESSION_ID} — session state lives in .claude-harness/sessions/${CLAUDE_SESSION_ID}/.
Current Harness Snapshot (auto-compiled at invocation)
!python3 "${CLAUDE_PLUGIN_ROOT}/scripts/compile-briefing.py" .claude-harness 2>/dev/null || echo "(harness state not initialized - run /claude-harness:setup)"
Phase 0: Migration Check
Migrations are handled by setup.sh, which the SessionStart hook runs automatically whenever the plugin version changes. Only act here if legacy files are visible at the project root (feature-list.json, feature-archive.json, claude-progress.json, working-context.json, agent-context.json, agent-memory.json, init.sh): run bash {plugin-root}/setup.sh once (plugin root is in the session context) and report what it migrated.
Phase 0.5: Set Paths
- Set path variables:
FEATURES_FILE=".claude-harness/features/active.json"ARCHIVE_FILE=".claude-harness/features/archive.json"MEMORY_DIR=".claude-harness/memory/"SESSION_DIR=".claude-harness/sessions/${CLAUDE_SESSION_ID}/"
Important: All subsequent phases must use these path variables instead of hardcoded paths.
Phase 1: Context Compilation (Memory System)
The snapshot above already contains the compiled overview (features, recent decisions, failures to avoid, learned rules, last session). Use it directly - do NOT re-read the memory files unless you need detail beyond the snapshot.
- Deep-dive reads (only when needed): if the active feature requires filtering memory by
relatedFiles, read IN PARALLEL (single message, multiple Read calls) -- memory layers are OKF concept files (markdown with YAML frontmatter), so read each directory'sindex.mdfirst, then only the relevant concept files:
${FEATURES_FILE}(full feature entries)${MEMORY_DIR}/failures/index.md(then relevant Failure concepts)${MEMORY_DIR}/successes/index.md(then relevant Success concepts)${MEMORY_DIR}/decisions/index.md(then relevant Decision concepts)${MEMORY_DIR}/rules/index.md(then relevant Rule concepts)
- Write compiled context to
${SESSION_DIR}/context.json:
``json { "version": 3, "computedAt": "{ISO timestamp}", "sessionId": "${CLAUDE_SESSION_ID}", "github": { "owner": "{from session context}", "repo": "{from session context}" }, "activeFeature": "{feature-id or null}", "relevantMemory": { "recentDecisions": [{...}], "projectPatterns": [{...}], "avoidApproaches": [{...}], "learnedRules": [{...}] }, "currentTask": { "description": "{feature description}", "files": ["{relatedFiles}"], "acceptanceCriteria": ["{verification}"] } } ``
relevantMemoryfiltering: failures/successes wherefeaturematches orfilesoverlap the active feature'srelatedFiles(top 5 each); decisions from the last 7 days or last 20 entries; learned rules whereapplicability.alwaysis true, orapplicability.features/filePatternsmatch the active feature.
- Display memory summary:
`` MEMORY CONTEXT COMPILED Recent decisions: {N} loaded Success patterns: {N} loaded Approaches to AVOID: {N} loaded Learned rules: {N} active ` If avoidApproaches` or learned rules have entries, list them prominently.
Phase 1.7: Refresh Session Briefing
Regenerate persistent session briefing at .claude-harness/session-briefing.md (same format as the snapshot above, keep under 120 lines). This keeps the briefing fresh for the next session start. Report: "Session briefing refreshed".
Phase 2: Local Status
- If the compiled context has an
activeFeature, display prominently:
`` === Resuming Work === Feature: {activeFeature} - {summary} Working files: {relatedFiles} Next steps: {from briefing} ``
- Read
.claude-harness/claude-progress.jsonfor last-session summary and blockers.
- Read
${FEATURES_FILE}to identify next priority.
- If the file is too large to read (>25000 tokens), use
grepfor pending features and run/claude-harness:checkpointto archive completed ones.
Phase 3: Loop & Orchestration State
- Check active loop state (PRIORITY):
- Interrupt recovery first: read
.claude-harness/sessions/.recovery/interrupted.json. If it exists:
`` INTERRUPTED SESSION DETECTED Feature: {feature} | TDD Phase: {tddPhase} | Attempt: {attemptAtInterrupt} Resume: /claude-harness:flow {feature} (recovery options will be presented) ``
- Read
${SESSION_DIR}/loop-state.json(legacy fallbacks:.claude-harness/loops/state.json,.claude-harness/loop-state.json) - If
statusis "in_progress": display feature/fix, attempt count, last approach and result, and the resume command/claude-harness:flow {feature} - If
statusis "escalated": show escalation reason and history summary; recommend providing guidance or retrying with a fresh delegation
- Check pending fixes: read
${FEATURES_FILE}fixesarray for entries withstatus!= "passing" and list them with their linked features.
- Check orchestration state: read
.claude-harness/agents/context.jsonif it exists.
currentSession.activeFeatureset -> incomplete orchestration; recommend/claude-harness:flow {feature-id}to resumeteamStatenon-null -> display the team roster and status. Note: Agent Teams do not survive session restarts; if teammates are gone, flow will offer to spawn fresh ones or fall back to direct implementation.
- Check procedural memory hotspots: read
${MEMORY_DIR}/patterns/index.mdif it exists; report any Pattern concepts affecting current work.
Phase 4: GitHub Integration
- Get GitHub owner/repo: use the cached values from the session context (injected at SessionStart). Only if absent, parse once from
git remote get-url origin.
- Fetch and display GitHub dashboard (requires
ghCLI; on failure checkgh auth statusand skip gracefully):
- Open feature issues:
gh issue list --label feature --json number,title,labels - Open PRs:
gh pr list --json number,title,headRefName,statusCheckRollup - Cross-reference with
${FEATURES_FILE}
- Sync GitHub Issues with `${FEATURES_FILE}`:
- For each GitHub issue with "feature" label NOT in active.json: add new entry with issueNumber linked
- For each feature in active.json with status="passing" or passes=true: if the linked issue is still open,
gh issue close {number} - Report sync results
Phase 5: Recommendations
- Report session summary:
- Current state and blockers
- Pending features and fixes prioritized
- GitHub sync results
- Recommended next action (in priority order):
- Active loop (fix): Resume with
/claude-harness:flow {fix-id} - Active loop (feature): Resume with
/claude-harness:flow {feature-id} - Escalated loop: Review history and provide guidance
- Pending fixes: Resume fix with
/claude-harness:flow {fix-id} - No features (new project): Bootstrap with
/claude-harness:prd-breakdown @./prd.md - Pending features: Start implementation with
/claude-harness:flow {feature-id} - No features (existing project): Add one with
/claude-harness:flow "description" - Create fix for completed feature:
/claude-harness:flow --fix {feature-id} "bug description"
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/start/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/start)