Logo: Repo Bootstrap

Repo Bootstrap

Communautéit
YuxiaoWang-520
repo-bootstrap

Initialiséiert a pflegt kontinuéierlech den Agent-Kontext op Repository-Niveau ënner `.harness/` mat engem state-baséierte Memory-System. Hält `memory.md`, `prompt.md`, `repowiki.md`, `plan.md` a `checklist.md` synchron mat `.harness/state.json` a suergt dofir, datt `/.harness/` vu git ignoréiert gëtt. Benotzt dëse Skill, wann de Benotzer de Grondopbau vun engem Repository, en dauerhaft Projet-Memory, lafend Kontextaktualiséierungen oder eng Implementatiounsreview op Basis vun engem Plang oder enger Checklëscht ufreet.

Add to TypingMind

Iwwersiicht

EditeurYuxiaoWang-520
Repositoryharness-craft
Skill-Nummrepo-bootstrap
Stären
73
Forks
5
Matgeliwwert Dateien
3
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 3 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    YuxiaoWang-520 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Repo Bootstrap an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/YuxiaoWang-520/harness-craft/tree/main/skills/repo-bootstrap
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Repo Bootstrap an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Repo Bootstrap automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Repo Bootstrap net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Repo Bootstrap?

Initialiséiert a pflegt kontinuéierlech den Agent-Kontext op Repository-Niveau ënner `.harness/` mat engem state-baséierte Memory-System. Hält `memory.md`, `prompt.md`, `repowiki.md`, `plan.md` a `checklist.md` synchron mat `.harness/state.json` a suergt dofir, datt `/.harness/` vu git ignoréiert gëtt. Benotzt dëse Skill, wann de Benotzer de Grondopbau vun engem Repository, en dauerhaft Projet-Memory, lafend Kontextaktualiséierungen oder eng Implementatiounsreview op Basis vun engem Plang oder enger Checklëscht ufreet.

Firwat Repo Bootstrap op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Repo Bootstrap besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Repo Bootstrap an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/YuxiaoWang-520/harness-craft/tree/main/skills/repo-bootstrap an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Repo Bootstrap benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Repo Bootstrap benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Repo Bootstrap domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Repo Bootstrap gratis?

YuxiaoWang-520 huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇