Corezoid Git Contextのロゴ

Corezoid Git Context

組織
corezoid
corezoid-git-context

Analyzes the current session and updates _ext/docs/*.md in the Corezoid git mirror for the active stage. Use after corezoid-edit, corezoid-create, or corezoid-review when the session was substantial (processes deployed, new external dependencies discovered, architectural decisions made, issues found or resolved). Activate when the user says "update context", "save context", "update docs", "push context", "зафіксуй контекст", "збережи контекст", "оновити документацію", "corezoid-git-context", or signals the session is wrapping up after real changes were made to Corezoid. Do NOT activate for purely informational sessions where nothing was deployed.

概要

公開者corezoid
リポジトリcorezoid-ai-plugin
スキル名corezoid-git-context
スター
74
フォーク
26
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/corezoid/corezoid-ai-plugin.git /tmp/corezoid-ai-plugin
mkdir -p .claude/skills
cp -r /tmp/corezoid-ai-plugin/plugins/corezoid/skills/corezoid-git-context .claude/skills/corezoid-git-context
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

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

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

スキルの指示

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

Session Analysis — Update _ext/docs/*.md

You manage the documentation layer for the Corezoid stage in the git mirror. Your only write surface is _ext/docs/ inside the stage directory. You use four operations: read-context-file, update-context-file, git-pull-context, git-push-context.


How to call these tools

Every operation in this skill is an action of the single cz-git-context MCP tool — the individual names below are action strings, not tools of their own:

cz-git-context {"action": "read-context-file", "args": {"path": "_ext/docs/architecture.md"}}

Arguments always go inside args; the shorthand used below — read-context-file(path=…) — means exactly that call. When unsure about an action's arguments, call cz-git-context {"action": "<action>", "help": true} — it returns the full schema and runs nothing.

Prerequisites — skip entirely if any condition is not met

Before doing anything, verify all of the following. If any check fails, log one warning line and stop — do not continue to subsequent steps.

  1. Stage path known — check whether the current Folder in ~/.corezoid/config.json has git_stage_path set (git-pull-context populates it after the first successful mirror sync).
    • If the field is empty → "Git context not configured for this stage (git_stage_path missing). Skipping context update."
  2. Git credentials (optional — only needed for push) — writing to _ext/docs/ works locally regardless of whether git credentials are set. The git-push-context step at the end will silently skip if api_login, api_secret, or git_url are missing from the current Folder — local commits are preserved and will be pushed when credentials become available.
    • Do not skip the entire context update just because credentials are absent.
  3. Session was substantial — at least one of:
    • create-process or push-process was actually called (not just previewed);
    • a new external host/API/service appeared in a process that is not yet in dependencies.md;
    • an architectural decision was explicitly made (one approach chosen over another);
    • an issue was found or closed during the session.
    • If none of the above → "Session was informational only. No context update needed."

Step 1 — Sync git context

Call git-pull-context with no arguments. This ensures .git-context/ is up to date before reading or writing any files. If the tool returns an error, stop and report: "Could not sync git context: {error}. Skipping update."


Step 2 — Read the context files that exist

The git-pull-context result from Step 1 ends with two lines:

Stage path: projects/123_Foo/stages/456_Dev
Context docs (projects/123_Foo/stages/456_Dev/_ext/docs/): context.md, decisions.md — read only these; …

Use the Stage path value as STAGE_PATH, and the Context docs line as the list of files that exist. Do not probe the standard file set with read-context-file — a file not in that list does not exist, and reading it only returns a "not found" error.

  • Files listed → call read-context-file for each listed file ({STAGE_PATH}/_ext/docs/{file}), all in one parallel batch, before analysing — you need the full picture to avoid duplication and to detect which existing entries need updating. Treat every unlisted standard file as empty.
  • none yet → first use of this stage: read nothing. All five files start empty; Step 3 decides which ones to create, and Step 5 creates them with update-context-file (mode: replace). Say so in Step 4 (new file).

The standard files are context.md, invariants.md, decisions.md, dependencies.md, issues.md, all under {STAGE_PATH}/_ext/docs/.


Step 3 — Classify: which files to touch and how

Analyse the session transcript and the Corezoid diff (what was created/changed/deployed) against the current file contents.

Typically only 1–2 files need changes. Apply the following rules per file:

context.md

What it is: living description of the stage's business purpose and role. When to touch: only if the stage's purpose or role genuinely changed. How: replace the relevant sentence/paragraph in place. Not a journal — do not append. If the file is missing and there is clear new context to record, create it.

invariants.md

What it is: constraints that must never be violated. When to touch: new invariant discovered, or existing one proved wrong. How: replace in place. Never create an empty placeholder.

decisions.md

What it is: ADR-style log of architectural decisions. When to touch: a real architectural decision was made (chose approach A over B, accepted a trade-off, chose a pattern). How: append a new entry in this format:

## {Short title} — {YYYY-MM-DD}
**Decision:** {what was decided}
**Rationale:** {why}
**Alternatives rejected:** {what and why not}

If an older decision is now superseded, add **Superseded by:** {new title} to the old entry — do not silently rewrite it.

dependencies.md

What it is: external APIs, services, queues this stage integrates with. When to touch: a new external host/service appeared in the session. How: check existing entries first — if the same service is already listed, do not add a duplicate. If genuinely new, append:

- **{ServiceName}** — {URL or endpoint pattern} — {what it's used for}

issues.md

What it is: known problems, limitations, TODOs. When to touch: new issue found, or existing issue resolved. How:

  • New issue → append:
    - [ ] {description} — found {YYYY-MM-DD}
  • Resolved issue → find the matching open entry and mark it:
    - [x] {description} — found {date}, resolved {YYYY-MM-DD}
    Replace the existing line in-place using mode: replace on the full file content, do not append a duplicate.

Step 4 — Unified diff and confirmation

Before writing anything, present the full planned changes to the user as a single markdown block:

## Proposed context updates

### {filename}.md — {replace | append | new file}
{show the new content or the changed section clearly}

### {filename2}.md — ...
...

Then ask: "Apply these context updates and push to git? (yes/no)"

  • If yes → proceed to Step 5.
  • If no → "Context update skipped. Your Corezoid changes are already deployed and unaffected." Stop here.

Step 5 — Write files and push

For each file that needs updating:

  1. Call update-context-file with:

    • path: {STAGE_PATH}/_ext/docs/{filename}.md
    • content: the full new file content (for replace) or the text to append
    • mode: replace for context/invariants/issues (full rewrite or targeted replace); append for decisions/dependencies when adding a new entry

    If the file does not exist yet, mode: replace with the full content creates it — the directory structure is created automatically.

  2. After all files are written, call the git-push-context action once with a meaningful commit message in commit_message, e.g.:

    cz-git-context {"action": "git-push-context",
                    "args": {"commit_message": "docs: update _ext/docs/ after session — {brief summary of what changed}"}}

    One push for the whole session, not one push per file.


Error handling

SituationAction
read-context-file returns "not found"Treat as empty file, continue — and don't read further unlisted files
update-context-file returns errorLog warning, skip that file, continue with others
git-push-context returns errorLog warning, report to user: "Changes written locally but push failed: {error}. Run git-push-context manually when git is available."
No files needed updating"Session analysed — no context updates needed."

What this skill never does

  • Never writes to CLAUDE.md — that file is owned by the git mirror bot.
  • Never touches files outside _ext/docs/ (no _ext/meta/, no root files).
  • Never creates empty/placeholder files — only writes when there is real content.
  • Never pushes more than once per session invocation.
  • Never blocks or rolls back the main Corezoid task — context update is always optional.

よくある質問

AIスキル「Corezoid Git Context」では何ができますか?

Analyzes the current session and updates _ext/docs/*.md in the Corezoid git mirror for the active stage. Use after corezoid-edit, corezoid-create, or corezoid-review when the session was substantial (processes deployed, new external dependencies discovered, architectural decisions made, issues found or resolved). Activate when the user says "update context", "save context", "update docs", "push context", "зафіксуй контекст", "збережи контекст", "оновити документацію", "corezoid-git-context", or signals the session is wrapping up after real changes were made to Corezoid. Do NOT activate for...

TypingMindでCorezoid Git Contextを使うメリットは何ですか?

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

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

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/corezoid/corezoid-ai-plugin/tree/main/plugins/corezoid/skills/corezoid-git-contextを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Corezoid Git Contextを使えるAIモデルはどれですか?

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

Corezoid Git Contextは何個のAIモデルで使えますか?

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

AIスキル「Corezoid Git Context」は無料ですか?

はい。corezoidがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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