Logo di Repo Bootstrap

Repo Bootstrap

Community
YuxiaoWang-520
repo-bootstrap

Inizializza e aggiorna continuamente il contesto dell’agente a livello di repository in `.harness/` usando un sistema di memoria basato sullo stato. Mantiene sincronizzati `memory.md`, `prompt.md`, `repowiki.md`, `plan.md` e `checklist.md` con `.harness/state.json` e fa in modo che `/.harness/` venga ignorata da git. Usala quando l’utente chiede di inizializzare un repository, mantenere una memoria di progetto persistente, aggiornare il contesto nel tempo o rivedere un’implementazione basandosi su piani e checklist.

Add to TypingMind

Panoramica

Pubblicato daYuxiaoWang-520
Repositoryharness-craft
Nome della skillrepo-bootstrap
Stelle
73
Fork
5
File inclusi
3
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 3

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da YuxiaoWang-520 su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Repo Bootstrap in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/YuxiaoWang-520/harness-craft/tree/main/skills/repo-bootstrap
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Repo Bootstrap in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Repo Bootstrap non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Repo Bootstrap non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Repo Bootstrap?

Inizializza e aggiorna continuamente il contesto dell’agente a livello di repository in `.harness/` usando un sistema di memoria basato sullo stato. Mantiene sincronizzati `memory.md`, `prompt.md`, `repowiki.md`, `plan.md` e `checklist.md` con `.harness/state.json` e fa in modo che `/.harness/` venga ignorata da git. Usala quando l’utente chiede di inizializzare un repository, mantenere una memoria di progetto persistente, aggiornare il contesto nel tempo o rivedere un’implementazione basandosi su piani e checklist.

Perché usare Repo Bootstrap su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Repo Bootstrap è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Repo Bootstrap in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/YuxiaoWang-520/harness-craft/tree/main/skills/repo-bootstrap. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Repo Bootstrap?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Repo Bootstrap?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Repo Bootstrap: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Repo Bootstrap è gratuita?

È pubblicata su GitHub da YuxiaoWang-520. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇