agentleFS
panayiotismpanayiotism/claude-harness/skills/start/SKILL.md

start

Skill79 starsChanged 4 months agoMITView on GitHub

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.

130 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-engine, team-audio and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CoralGameSkill

    setup-engine

    Configure the project's game engine and version. Pins the engine in CLAUDE.md, detects knowledge gaps, and populates engine reference docs via WebSearch when the version is beyond the LLM's training data.

    Also in 13 projects that use this

  • CoralGameSkill

    team-audio

    Orchestrate audio team: audio-director + sound-designer + technical-artist + gameplay-programmer for full audio pipeline from direction to implementation.

    Also in 13 projects that use this

  • lilangMaxSkill

    create-stories

    Break a single epic into implementable story files. Reads the epic, its GDD, governing ADRs, and control manifest. Each story embeds its GDD requirement TR-ID, ADR guidance, acceptance criteria, story type, and test evidence path. Run after /create-epics for each epic.

    Also in 11 projects that use this

  • lilangMaxSkill

    story-done

    End-of-story completion review. Reads the story file, verifies each acceptance criterion against the implementation, checks for GDD/ADR deviations, prompts code review, updates story status to Complete, and surfaces the next ready story from the sprint.

    Also in 11 projects that use this

  • +5 more from CoralGame
  • +3 more from lilangMax

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. 0 are common, 2 are distinctive, and 15 are very specific to this project.

  • 0

    Common

    Most of the 117 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 15

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Important: All subsequent phases must use these path variables instead of hardcoded paths.

    line 29
  2. Very specific:

    Deep-dive reads (only when needed): if the active feature requires filtering memory by relatedFiles, read IN PARALLEL (single message, …

    line 35
  3. Very specific:

    If avoidApproaches or learned rules have entries, list them prominently.

    line 73
  4. Very specific:

    If the compiled context has an activeFeature, display prominently:

    line 81
  5. Very specific:

    Read .claude-harness/claude-progress.json for last-session summary and blockers.

    line 89
  6. Very specific:

    Read ${FEATURES_FILE} to identify next priority.

    line 91
  7. Very specific:

    If the file is too large to read (>25000 tokens), use grep for pending features and run /claude-harness:checkpoint to archive completed …

    line 92
  8. Very specific:

    Interrupt recovery first: read .claude-harness/sessions/.recovery/interrupted.json.

    line 97
  9. Very specific:

    Read ${SESSION_DIR}/loop-state.json (legacy fallbacks: .claude-harness/loops/state.json, .claude-harness/loop-state.json)

    line 103
  10. Very specific:

    If status is "in_progress": display feature/fix, attempt count, last approach and result, and the resume command /claude-harness:flow …

    line 104
  11. Very specific:

    If status is "escalated": show escalation reason and history summary.

    line 105
  12. Very specific:

    Check pending fixes: read ${FEATURES_FILE} fixes array for entries with status != "passing" and list them with their linked features.

    line 107
  13. Very specific:

    Check orchestration state: read .claude-harness/agents/context.json if it exists.

    line 109
  14. Very specific:

    Check procedural memory hotspots: read ${MEMORY_DIR}/patterns/index.md if it exists.

    line 113
  15. Distinctive:

    Get GitHub owner/repo: use the cached values from the session context (injected at SessionStart).

    line 117
  16. Very specific:

    Pending features: Start implementation with /claude-harness:flow {feature-id}

    line 141
  17. Very specific:

    No features (existing project): Add one with /claude-harness:flow "description"

    line 142

“Common” is measured: kept by at least 6 in 10 of the 117 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.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

  1. 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.

  1. 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's index.md first, 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)
  2. Write compiled context to ${SESSION_DIR}/context.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}"]
      }
    }
    • relevantMemory filtering: failures/successes where feature matches or files overlap the active feature's relatedFiles (top 5 each); decisions from the last 7 days or last 20 entries; learned rules where applicability.always is true, or applicability.features/filePatterns match the active feature.
  3. 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

  1. If the compiled context has an activeFeature, display prominently:
    === Resuming Work ===
    Feature: {activeFeature} - {summary}
    Working files: {relatedFiles}
    Next steps: {from briefing}
  2. Read .claude-harness/claude-progress.json for last-session summary and blockers.
  3. Read ${FEATURES_FILE} to identify next priority.
    • If the file is too large to read (>25000 tokens), use grep for pending features and run /claude-harness:checkpoint to archive completed ones.

Phase 3: Loop & Orchestration State

  1. 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 status is "in_progress": display feature/fix, attempt count, last approach and result, and the resume command /claude-harness:flow {feature}
    • If status is "escalated": show escalation reason and history summary; recommend providing guidance or retrying with a fresh delegation
  2. Check pending fixes: read ${FEATURES_FILE} fixes array for entries with status != "passing" and list them with their linked features.
  3. Check orchestration state: read .claude-harness/agents/context.json if it exists.
    • currentSession.activeFeature set -> incomplete orchestration; recommend /claude-harness:flow {feature-id} to resume
    • teamState non-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.
  4. Check procedural memory hotspots: read ${MEMORY_DIR}/patterns/index.md if it exists; report any Pattern concepts affecting current work.

Phase 4: GitHub Integration

  1. 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.
  2. Fetch and display GitHub dashboard (requires gh CLI; on failure check gh auth status and 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}
  3. 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

  1. Report session summary:
    • Current state and blockers
    • Pending features and fixes prioritized
    • GitHub sync results
    • Recommended next action (in priority order):
      1. Active loop (fix): Resume with /claude-harness:flow {fix-id}
      2. Active loop (feature): Resume with /claude-harness:flow {feature-id}
      3. Escalated loop: Review history and provide guidance
      4. Pending fixes: Resume fix with /claude-harness:flow {fix-id}
      5. No features (new project): Bootstrap with /claude-harness:prd-breakdown @./prd.md
      6. Pending features: Start implementation with /claude-harness:flow {feature-id}
      7. No features (existing project): Add one with /claude-harness:flow "description"
      8. Create fix for completed feature: /claude-harness:flow --fix {feature-id} "bug description"

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.