/corezoid:corezoid-git-contextfrom corezoid
Updates _ext/docs/*.md in the git mirror after sessions with real deploys or decisions. Invoked by "save context" or "збережи контекст".
Ships in corezoid. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
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.
Before doing anything, verify all of the following. If any check fails, log one warning line and stop — do not continue to subsequent steps.
~/.corezoid/config.json has git_stage_path set (git-pull-context
populates it after the first successful mirror sync).
_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.
create-process or push-process was actually called (not just previewed);dependencies.md;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."
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.
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/.
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:
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.
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.
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.
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}
What it is: known problems, limitations, TODOs. When to touch: new issue found, or existing issue resolved. How:
- [ ] {description} — found {YYYY-MM-DD}
- [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.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)"
For each file that needs updating:
Call update-context-file with:
path: {STAGE_PATH}/_ext/docs/{filename}.mdcontent: the full new file content (for replace) or the text to appendmode: replace for context/invariants/issues (full rewrite or targeted
replace); append for decisions/dependencies when adding a new entryIf the file does not exist yet, mode: replace with the full content
creates it — the directory structure is created automatically.
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.
| Situation | Action |
|---|---|
read-context-file returns "not found" | Treat as empty file, continue — and don't read further unlisted files |
update-context-file returns error | Log warning, skip that file, continue with others |
git-push-context returns error | Log 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." |
CLAUDE.md — that file is owned by the git mirror bot._ext/docs/ (no _ext/meta/, no root files).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
26 skills in this plugin
/corezoidCorezoid basics: platform model, .conv.json, nodes, MCP tools, validation. Use for any Corezoid task that no narrower corezoid-* skill covers.
/corezoid-accessShare processes, folders, stages, projects; groups, API-key users, invites, access audit. Triggers: "share", "доступ", "пошарь", "create API key".
/corezoid-alias-managerProcess aliases (short_name, conv[@alias]): create, list, modify, delete, link; callback hash / Direct URL. Triggers: "alias", "алиас".
npx claudepluginhub corezoid/corezoid-ai-plugin --plugin corezoidOther plugins' skills for the same job