Logo von Repo Bootstrap

Repo Bootstrap

Community
YuxiaoWang-520
repo-bootstrap

Initialisieren und pflegen Sie kontinuierlich den Agent-Kontext auf Repository-Ebene unter `.harness/` mithilfe eines zustandsgestützten Speichersystems. Hält `memory.md`, `prompt.md`, `repowiki.md`, `plan.md` und `checklist.md` anhand von `.harness/state.json` synchron und sorgt dafür, dass `/.harness/` von Git ignoriert wird. Verwenden Sie diesen Skill, wenn der Nutzer das Einrichten eines Repositorys, dauerhaftes Projektgedächtnis, fortlaufende Kontextaktualisierungen oder eine Implementierungsprüfung anhand eines Plans oder einer Checkliste wünscht.

Add to TypingMind

Übersicht

HerausgeberYuxiaoWang-520
Repositoryharness-craft
Skill-Namerepo-bootstrap
Sterne
73
Forks
5
Mitgelieferte Dateien
3
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • Mitgelieferte Dateien: 3

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von YuxiaoWang-520 auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Repo Bootstrap in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/YuxiaoWang-520/harness-craft/tree/main/skills/repo-bootstrap
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/YuxiaoWang-520/harness-craft.git /tmp/harness-craft
mkdir -p .claude/skills
cp -r /tmp/harness-craft/skills/repo-bootstrap .claude/skills/repo-bootstrap
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Repo Bootstrap in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Repo Bootstrap automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Repo Bootstrap nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Repo Bootstrap

Create and maintain a .harness/ workspace in the repository root so future turns keep stable project memory, structured plan state, and reviewable execution artifacts.

This skill now uses .harness/state.json as a local machine-readable source of truth. The five markdown files are rendered from that state so the agent can keep updating them without losing prior knowledge.

When To Use It

  • First-time repository bootstrap
  • Ongoing work where the agent should persist memory across turns
  • Non-trivial implementation that needs plan/checklist tracking
  • Periodic repo-wiki refresh after architecture or workflow discovery
  • Long-running sessions where prompt history and decisions should survive context-window loss

Core Model

The durable memory model has two layers:

  1. .harness/state.json
    • structured source of truth for current memory, prompt log, repo facts, plan, and checklist state
    • preserves rolling history and allows deterministic markdown regeneration
  2. Rendered markdown views
    • .harness/memory.md
    • .harness/prompt.md
    • .harness/repowiki.md
    • .harness/plan.md
    • .harness/checklist.md

/.harness/ must remain gitignored.

Quick Start

  1. Resolve repository root.
  2. Run a bootstrap or sync command:

Claude Code:

bash
python3 ~/.claude/skills/repo-bootstrap/scripts/init_docs.py \
  --repo-root <repo-root> \
  --latest-prompt "Summarize and improve this repo bootstrap skill." \
  --intent "Persist durable repo memory and update the harness docs." \
  --objective "Upgrade repo-bootstrap to support rolling updates." \
  --workstream "skill enhancement" \
  --work-summary "Synced harness state for the current task." \
  --next-action "Run verification"

Codex:

bash
python3 "$CODEX_HOME/skills/repo-bootstrap/scripts/init_docs.py" \
  --repo-root <repo-root> \
  --latest-prompt "Summarize and improve this repo bootstrap skill." \
  --intent "Persist durable repo memory and update the harness docs." \
  --objective "Upgrade repo-bootstrap to support rolling updates." \
  --workstream "skill enhancement" \
  --work-summary "Synced harness state for the current task." \
  --next-action "Run verification"
  1. For richer updates, write a JSON payload and pass --context-file:

Claude Code:

bash
python3 ~/.claude/skills/repo-bootstrap/scripts/init_docs.py \
  --repo-root <repo-root> \
  --context-file /tmp/harness-context.json

Codex:

bash
python3 "$CODEX_HOME/skills/repo-bootstrap/scripts/init_docs.py" \
  --repo-root <repo-root> \
  --context-file /tmp/harness-context.json
  1. Confirm these files exist:
    • .harness/state.json
    • .harness/memory.md
    • .harness/prompt.md
    • .harness/repowiki.md
    • .harness/plan.md
    • .harness/checklist.md
  2. Confirm .gitignore contains /.harness/.

Required Turn Workflow

Apply this workflow every time the skill is invoked.

  1. Read .harness/memory.md and .harness/prompt.md before analysis.
  2. For code or architecture tasks, also read .harness/repowiki.md before planning.
  3. Before finishing the turn, sync the latest task context back into .harness/state.json.
  4. Let the script re-render the five markdown files from state.
  5. If facts changed, update repowiki.md through the structured state instead of editing only the markdown view.

The skill is only doing its job if the state is refreshed continuously. Bootstrap alone is not enough.

Non-Negotiable Rules

  1. .harness/state.json is the canonical local memory store.
  2. memory.md and prompt.md must be refreshed on every invocation.
  3. repowiki.md must be refreshed whenever repository facts evolve, or at minimum receive a review entry.
  4. plan.md and checklist.md must stay aligned through shared step IDs or explicit mapping.
  5. /.harness/ must stay ignored in .gitignore.
  6. Do not wipe history just to keep docs tidy; summarize or trim old entries instead.
  7. Do not rely on placeholder-only content after bootstrap.

First-Run Baseline Expectations

The first run should produce useful baseline content automatically:

  • repo name and summary from README when available
  • stack/toolchain guesses from manifests and lockfiles
  • detected run/build/test/lint commands
  • top-level directory map placeholders with concrete paths
  • initial memory objective, risks, next actions, and decisions
  • initial prompt record even when no explicit prompt was supplied

Unknown facts are allowed, but they must be framed as explicit gaps or discovery actions, not empty stubs.

Structured Update Payload

The script accepts structured context through --context-file or --context-json.

Supported top-level fields:

  • latest_prompt
  • prompt_summary
  • intent
  • constraints
  • success_criteria
  • requested_output_format
  • objective
  • definition_of_done
  • workstream
  • why_now
  • work_summary
  • repo_facts
  • assumptions
  • decisions
  • blockers
  • risks
  • open_questions
  • next_actions
  • repo_name
  • repo_summary
  • repo_purpose
  • stakeholders
  • non_goals
  • directory_map
  • architecture
  • data_flow
  • required_env_vars
  • test_strategy
  • deployment_notes
  • observability_notes
  • security_notes
  • known_gaps
  • repowiki_review
  • plan
  • checklist

Recommended shapes:

  • decisions: array of {summary, reason, tradeoff}
  • blockers: array of {item, owner, next_action}
  • risks: array of {item, impact, mitigation}
  • open_questions: array of {question, discovery_action, expected_source}
  • plan.steps: array of {id, step, why, owner, status}
  • plan.files: array of {path, change_type, purpose, linked_step}
  • checklist.plan_mapping: array of {plan_step, item, status, evidence}
  • checklist.files: array of {path, purpose, linked_step, status}
  • checklist.validation_results: array of {check, result, notes}

If plan is present and checklist is omitted, the script auto-derives a checklist skeleton from the plan.

Five-Document Responsibility Contract

FilePrimary responsibilityMinimum useful contentUpdate trigger
memory.mdDurable working memory across turns/sessionscurrent objective, decisions, blockers, risks, open questions, next actions, change logevery interaction
prompt.mdPrompt and intent historylatest prompt, interpretation, constraints, success criteria, prompt timelineevery interaction
repowiki.mdRepository operational wikirepo purpose, stack, commands, directory map, repo facts, known gapswhenever facts are learned or reviewed
plan.mdExecution design for non-trivial workrequest scope, assumptions, steps, file plan, validation, rollbackwhen planning is requested or work is non-trivial
checklist.mdExecution ledger and validation statusplan mapping, file ledger, validation results, post-implementation statuswhen code change is planned or executed

RepoWiki Depth Standard

.harness/repowiki.md must remain a practical wiki, not a summary paragraph. It should stay useful for future sessions by including:

  1. repository purpose and non-goals
  2. architecture notes and control/data-flow hints
  3. module or directory responsibility map
  4. local development commands
  5. runtime/config notes
  6. test strategy and quality gates
  7. operational/security notes when they become known
  8. known gaps and explicit discovery actions

Plan and Checklist Contract

When plan.md is active:

  • record assumptions, dependencies, risks, mitigations, and rollback intent
  • include explicit file-level change plans
  • define validation before implementation

When checklist.md is active:

  • track execution progress honestly
  • include every modified file and one-line purpose
  • record validation outcomes as pass, fail, skip, or pending
  • stay aligned with plan step IDs

Migration Behavior

If legacy markdown files exist (from either .harness/ or the older codex/ directory) but .harness/state.json does not, the script captures those markdown files into state archives before rendering the new state-backed versions. This prevents silent knowledge loss during upgrade.

Anti-Patterns

  • Running bootstrap once and never syncing again
  • Editing markdown views while ignoring state.json
  • Letting memory.md or prompt.md go stale
  • Allowing plan.md and checklist.md to drift apart
  • Replacing explicit unknowns with generic TODO-only stubs
  • Removing historical context without a summary

Resources

scripts/

  • scripts/init_docs.py: bootstraps and continuously syncs .harness/state.json plus the rendered markdown files.

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Repo Bootstrap?

Initialisieren und pflegen Sie kontinuierlich den Agent-Kontext auf Repository-Ebene unter `.harness/` mithilfe eines zustandsgestützten Speichersystems. Hält `memory.md`, `prompt.md`, `repowiki.md`, `plan.md` und `checklist.md` anhand von `.harness/state.json` synchron und sorgt dafür, dass `/.harness/` von Git ignoriert wird. Verwenden Sie diesen Skill, wenn der Nutzer das Einrichten eines Repositorys, dauerhaftes Projektgedächtnis, fortlaufende Kontextaktualisierungen oder eine Implementierungsprüfung anhand eines Plans oder einer Checkliste wünscht.

Warum Repo Bootstrap in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Repo Bootstrap besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Repo Bootstrap in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/YuxiaoWang-520/harness-craft/tree/main/skills/repo-bootstrap ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Repo Bootstrap nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Repo Bootstrap verwenden?

So viele Sie möchten. In TypingMind können Sie Repo Bootstrap mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Repo Bootstrap kostenlos?

Der Skill wird von YuxiaoWang-520 auf GitHub veröffentlicht. Prüfen Sie im Repository, ob dort Lizenzbedingungen angegeben sind. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇