Repo Bootstrapのロゴ

Repo Bootstrap

コミュニティ
YuxiaoWang-520
repo-bootstrap

状態ベースのメモリシステムを使って、`.harness/`内のリポジトリレベルのAIエージェントコンテキストを初期化し、継続的に管理します。`.harness/state.json`をもとに`memory.md`、`prompt.md`、`repowiki.md`、`plan.md`、`checklist.md`の内容を同期し、`/.harness/`がgitで無視される状態を維持します。ユーザーから、リポジトリの初期設定、永続的なプロジェクトメモリ、コンテキストの継続的な更新、または計画やチェックリストに基づく実装レビューを依頼されたときに使用します。

Add to TypingMind

概要

公開者YuxiaoWang-520
リポジトリharness-craft
スキル名repo-bootstrap
スター
73
フォーク
5
同梱ファイル
3
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    YuxiaoWang-520がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Repo Bootstrap」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/YuxiaoWang-520/harness-craft/tree/main/skills/repo-bootstrap
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでRepo Bootstrapを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にRepo Bootstrapを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Repo Bootstrapは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Repo Bootstrap」では何ができますか?

状態ベースのメモリシステムを使って、`.harness/`内のリポジトリレベルのAIエージェントコンテキストを初期化し、継続的に管理します。`.harness/state.json`をもとに`memory.md`、`prompt.md`、`repowiki.md`、`plan.md`、`checklist.md`の内容を同期し、`/.harness/`がgitで無視される状態を維持します。ユーザーから、リポジトリの初期設定、永続的なプロジェクトメモリ、コンテキストの継続的な更新、または計画やチェックリストに基づく実装レビューを依頼されたときに使用します。

TypingMindでRepo Bootstrapを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Repo Bootstrapはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにRepo Bootstrapをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/YuxiaoWang-520/harness-craft/tree/main/skills/repo-bootstrapを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Repo Bootstrapを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Repo Bootstrapで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもRepo Bootstrapを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Repo Bootstrap」は無料ですか?

YuxiaoWang-520がGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇